*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

:root {
  --navy:   #0A1628;
  --blue:   #1E6FD9;
  --blue-lt:#3B8AEF;
  --blue-bg:#EBF2FC;
  --white:  #FFFFFF;
  --light:  #F4F7FB;
  --muted:  #6B7A90;
  --border: #D8E4F0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  padding: 0 6vw;
  height: 68px;
  border-bottom: 1px solid rgba(30,111,217,0.3);
}
.nav-logo {
  margin-right: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--blue-lt); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue-lt); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--blue-lt); color: var(--white); }
.lang-btn-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--blue-lt); background: rgba(30,111,217,0.1); }

/* ── SECTION COMMONS ── */
section { padding: 80px 6vw; }
.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: #060E1C;
  color: rgba(255,255,255,0.45);
  padding: 3rem 6vw 2rem;
  font-size: 0.82rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--blue-lt); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-links-col h4 {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-links-col a {
  display: block;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color .2s;
}
.footer-links-col a:hover { color: var(--blue-lt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--blue-lt); }

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 6vw 80px;
}
.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.legal-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: block;
}
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--navy);
}
.legal-page p {
  font-size: 0.93rem;
  color: #445;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.legal-notice-box {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

/* ── BURGER (mobile only) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.nav-burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger-open span:nth-child(2) { opacity: 0; }
.nav-burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-right { display: flex; align-items: center; gap: 1rem; order: 2; flex-wrap: nowrap; flex-shrink: 0; }
.nav-links { order: 1; }

/* ── RESPONSIVE (nav) ── */
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10,22,40,0.98);
    border-bottom: 1px solid rgba(30,111,217,0.3);
    padding: 0.5rem 6vw 1.2rem;
  }
  .nav-links-open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; }
  .nav-links .nav-cta { display: inline-block; }
}


/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 120px 6vw 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(30,111,217,0.12) 0%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(30,111,217,0.04) 0px, rgba(30,111,217,0.04) 1px, transparent 1px, transparent 100px),
    repeating-linear-gradient(0deg,  rgba(30,111,217,0.04) 0px, rgba(30,111,217,0.04) 1px, transparent 1px, transparent 100px);
}
.hero-content { position: relative; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--blue-lt);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.18; color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--blue-lt); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  max-width: 560px; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@keyframes expand { from { width: 0 } to { width: 56px } }
.blue-rule {
  height: 2px; background: var(--blue);
  animation: expand 0.8s ease-out forwards;
  margin-top: 3rem;
}

/* ── STATS ── */
#stats {
  background: var(--blue);
  padding: 1.8rem 6vw;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.stat-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-top: 0.3rem;
}

/* ── SERVICES ── */
#services { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem;
  transition: border-color .25s, box-shadow .25s;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 28px rgba(30,111,217,0.1);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--blue-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.3rem;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--navy);
}
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── MARCHÉS ── */
#marches { background: var(--white); }
.marches-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.marche-item {
  border-left: 3px solid var(--blue);
  padding: 1.4rem 1.6rem;
  background: var(--light);
  border-radius: 0 6px 6px 0;
}
.marche-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; margin-bottom: 0.5rem;
}
.marche-item p { font-size: 0.9rem; color: var(--muted); }

/* ── POURQUOI ── */
#pourquoi { background: var(--navy); }
#pourquoi .section-tag  { color: var(--blue-lt); }
#pourquoi .section-title { color: var(--white); }
#pourquoi .section-intro { color: rgba(255,255,255,0.55); }
.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.pourquoi-item { padding: 1.6rem; }
.pourquoi-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; color: var(--blue-lt);
  line-height: 1; margin-bottom: 0.8rem;
}
.pourquoi-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); }
.pourquoi-item p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ── PROCESSUS ── */
#processus { background: var(--light); }
.processus-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.step { background: var(--white); padding: 2rem 1.6rem; }
.step-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.8rem;
}
.step h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info p.section-intro { margin-bottom: 2rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.contact-detail-icon {
  width: 36px; height: 36px; background: var(--blue-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail-text { font-size: 0.9rem; color: var(--muted); }
.contact-detail-text strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.85rem; }
.contact-detail-text a { color: var(--muted); text-decoration: none; }
.contact-detail-text a:hover { color: var(--blue); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--navy);
  outline: none; transition: border-color .2s; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  background: var(--blue); color: var(--white);
  border: none; border-radius: 4px;
  padding: 0.85rem 1.8rem;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background .2s; align-self: flex-start;
}
.form-submit:hover { background: var(--blue-lt); }
.privacy-note {
  font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem;
}
.privacy-note a { color: var(--blue); text-decoration: none; }
.error-msg { color: #dc3545; font-size: 0.75rem; display: none; }

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  #stats { gap: 1.5rem; }
}

/* ── BANDEAU "MON ESPACE" (utilisateur portail connecté) ── */
#portal-banner {
  background: var(--blue-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 6vw;
  margin-top: 68px; /* hauteur de la nav fixe */
}
.portal-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.portal-banner-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
#portal-banner h2 { font-size: 1.15rem; margin-bottom: 0.15rem; }
#portal-banner p { color: var(--muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 768px) {
  #portal-banner { padding: 1rem 5vw; }
  .portal-banner-inner { flex-direction: column; align-items: flex-start; }
}
