/* ═══════════════════════════════════════════════════════════════════
   Essalys — feuille de style commune des pages d'accueil (FR/NL/EN)
   Factorisée depuis les blocs <style> identiques d'index/nl/en.html.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --navy: #0F2440;
  --navy-2: #0F2440;
  --blue: #2E75B6;
  --gold: #C89B3C;
  --gold-light: #E8D5A8;
  --ink: #1c2431;
  --muted: #5b6b80;
  --paper: #FAFBFD;
  --line: #E3E9F1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
img, svg { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,36,64,.92); backdrop-filter: blur(10px);
  transition: box-shadow .25s;
}
header.scrolled { box-shadow: 0 4px 20px rgba(15,36,64,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { display: block; }
.brand-name { font-family: 'Fraunces', serif; font-size: 1.45rem; color: #fff; letter-spacing: .04em; }
.brand-name em { font-style: normal; color: var(--gold); }
nav { display: flex; align-items: center; }
nav a {
  color: #c9d6e6; text-decoration: none; margin-left: 26px; font-size: .93rem; font-weight: 500;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
nav a:hover { color: #fff; border-bottom-color: var(--gold); }
nav > a.active, nav .nav-item > a.active { color: #fff; border-bottom-color: var(--gold); }

/* ── Menu déroulant Services ── */
.nav-item { position: relative; display: inline-block; }
.nav-item::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 18px; }
.nav-item > a .caret { display: inline-block; font-size: .55rem; margin-left: 5px; transform: translateY(-2px); transition: transform .2s; }
.nav-item:hover > a .caret { transform: translateY(-2px) rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 50px rgba(15,36,64,.28); padding: 10px;
  min-width: min(320px, calc(100vw - 32px));
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.dropdown::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px;
  border-radius: 9px; color: var(--navy); font-size: .9rem; border-bottom: none;
}
.dropdown a:hover { background: #F2F6FB; color: var(--navy); border-bottom: none; }
.dropdown a .dd-ico { color: var(--gold); font-size: .7rem; }
.dropdown a small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }

.lang { margin-left: 30px; font-size: .82rem; color: #7e93ad; letter-spacing: .08em; }
.lang b { color: var(--gold); }
/* .lang vit désormais DANS <nav> (pour le panneau mobile) : on neutralise
   les styles de lien de nav pour garder le rendu desktop identique. */
.lang a {
  color: #7e93ad; text-decoration: none;
  margin-left: 0; font-size: inherit; font-weight: inherit;
  padding-bottom: 0; border-bottom: none;
}
.lang a:hover { color: #fff; border-bottom: none; }

/* ── Bouton burger (masqué sur desktop) ── */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-left: 14px;
  flex-direction: column; justify-content: center; gap: 5px;
  position: relative; z-index: 101;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-backdrop { display: none; position: fixed; inset: 0; z-index: 98; background: rgba(10,26,48,.55); }

/* ── Hero ── */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(46,117,182,.35), transparent),
    radial-gradient(ellipse 700px 400px at -5% 110%, rgba(200,155,60,.18), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 90px 0 70px; position: relative; overflow: hidden;
  min-height: calc(100svh - 72px); display: flex; align-items: center;
}
.hero > .container { width: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, black, transparent);
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(200,155,60,.45); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 26px; font-weight: 600;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.15; max-width: 780px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.sub { font-size: 1.15rem; color: #c9d6e6; margin-top: 22px; max-width: 620px; }
.hero p.diff {
  font-size: .96rem; color: #fff; margin-top: 20px; max-width: 640px;
  padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.05);
  border-radius: 0 8px 8px 0;
}
.hero p.diff em { font-style: normal; color: var(--gold-light); font-weight: 600; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 8px; font-weight: 600;
  text-decoration: none; font-size: .98rem; transition: transform .15s, box-shadow .15s;
}
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(200,155,60,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,155,60,.45); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-ghost-light { border: 1px solid var(--line); color: var(--navy); }
.btn-ghost-light:hover { border-color: var(--navy); transform: translateY(-2px); }
.hero-stats {
  margin-top: 64px; display: flex; gap: 0; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px;
}
.stat { padding-right: 48px; margin-right: 48px; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: none; }
.stat .big { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--gold-light); }
.stat .small { font-size: .82rem; color: #8fa3bd; margin-top: 2px; }

/* ── Sections ── */
section { padding: 88px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
h2 { color: var(--navy); font-size: 2.1rem; margin: 10px 0 14px; }
.lede { color: var(--muted); max-width: 640px; margin-bottom: 46px; }

/* ── Cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(15,36,64,.05); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,36,64,.12); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue)); opacity: 0; transition: opacity .2s;
}
.card:hover::before { opacity: 1; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EAF1F9, #F7F2E4); margin-bottom: 20px;
}
.card h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: .93rem; color: var(--muted); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { font-size: .9rem; color: #46586e; padding: 5px 0 5px 22px; position: relative; }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card li strong { color: var(--navy); }
.card[id] { scroll-margin-top: 100px; }
.card:target { border-color: var(--gold); box-shadow: 0 14px 34px rgba(200,155,60,.30); }
.card:target::before { opacity: 1; }
.card.no-lift:hover { transform: none; box-shadow: 0 1px 3px rgba(15,36,64,.05); border-color: var(--gold-light); }
.card.no-lift:hover::before { opacity: .5; }
.grid-support { margin-top: 26px; }

/* ── Carte service phare ── */
.card-featured {
  background: linear-gradient(155deg, var(--navy), #16305a); color: #fff; border-radius: 18px;
  padding: 44px 44px; box-shadow: 0 20px 46px rgba(15,36,64,.28); margin-bottom: 26px;
  scroll-margin-top: 100px;
}
.feat-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: stretch; }
.feat-text { flex: 1.3; min-width: 300px; }
.feat-text h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.feat-text > p { color: #c9d6e6; font-size: .96rem; }
.feat-text ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feat-text li { font-size: .93rem; color: #dbe4f0; padding: 6px 0 6px 22px; position: relative; }
.feat-text li::before { content: "—"; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.feat-text li strong { color: #fff; }
.feat-pricing {
  flex: 1; min-width: 260px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px;
}
.price-tier { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 14px; }
.price-tier.highlight { border: 1px solid rgba(200,155,60,.5); border-radius: 10px; padding: 12px 14px; background: rgba(200,155,60,.08); }
.price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier-name { font-family: 'Fraunces', serif; font-size: 1.05rem; color: #fff; }
.tier-price { font-size: .95rem; color: var(--gold-light); font-weight: 700; }
.price-tier p { font-size: .84rem; color: #a9bbd4; margin-top: 5px; }
.price-note { font-size: .78rem; color: #8fa3bd; margin: 0; }

/* ── Méthode ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.step .num {
  font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ── CTA stratégique ── */
.cta-strip { padding: 0 0 88px; }
.cta-box {
  background: linear-gradient(150deg, var(--navy), #16305a); border-radius: 18px;
  padding: 44px 48px; text-align: center; color: #fff;
  box-shadow: 0 16px 40px rgba(15,36,64,.22);
}
.cta-box h3 { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.cta-box p { color: #c9d6e6; max-width: 520px; margin: 0 auto 26px; }

/* ── About ── */
.about-flex { display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap; }
.about-text { flex: 2; min-width: 320px; }
.about-text p { margin-bottom: 16px; }
.about-text p.story {
  font-family: 'Fraunces', serif; font-size: 1.12rem; font-style: italic; color: var(--navy);
  border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 22px;
}
.about-side {
  flex: 1; min-width: 280px; background: var(--navy); color: #fff;
  padding: 32px 30px; border-radius: 14px; box-shadow: 0 14px 34px rgba(15,36,64,.25);
}
.about-side h4 { font-family: 'Fraunces', serif; color: var(--gold-light); margin-bottom: 16px; font-size: 1.15rem; }
.about-side ul { list-style: none; }
.about-side li { font-size: .92rem; color: #c9d6e6; padding: 7px 0 7px 24px; position: relative; }
.about-side li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .65rem; top: 11px; }

/* ── Blog ── */
.tag {
  display: inline-block; background: #EAF1F9; color: var(--navy-2);
  font-size: .72rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.blog-card h3 { font-size: 1.06rem; line-height: 1.4; }
.soon-note { font-size: .8rem; color: var(--gold); font-weight: 600; margin-top: 14px; }

/* ── Contact ── */
.contact-wrap {
  background:
    radial-gradient(ellipse 600px 300px at 90% 0%, rgba(200,155,60,.2), transparent),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: 20px; padding: 60px 56px;
  display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start;
}
.contact-left { flex: 1.4; min-width: 300px; }
.contact-wrap h2 { color: #fff; }
.contact-wrap p.lede { color: #c9d6e6; margin-bottom: 0; }
.contact-right { flex: 1; min-width: 280px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.contact-line:last-child { border-bottom: none; }
.contact-line a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; }
.contact-line .ico { color: var(--gold); width: 22px; text-align: center; }

/* ── Formulaire de contact ── */
.cform { display: grid; gap: 15px; }
.cform label { font-size: .8rem; color: #c9d6e6; display: block; margin-bottom: 5px; font-weight: 600; }
.cform input, .cform select, .cform textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: #fff; font-family: inherit; font-size: .93rem;
}
.cform input::placeholder, .cform textarea::placeholder { color: #7e93ad; }
.cform select option { color: var(--ink); }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: 2px solid var(--gold); border-color: transparent; background: rgba(255,255,255,.12);
}
.cform textarea { resize: vertical; min-height: 110px; }
.cform .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: #8fa3bd; font-weight: 400; }
.cform .consent input { width: auto; margin-top: 3px; accent-color: var(--gold); }
.cform .consent a { color: var(--gold-light); }
.cform button { border: none; cursor: pointer; font-family: inherit; }
.hidden-field { display: none; }

footer { background: #0A1A30; color: #7e93ad; font-size: .84rem; padding: 34px 0; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer .li-link { display: inline-block; vertical-align: -4px; margin-left: 10px; color: var(--gold); }
footer .li-link:hover { color: var(--gold-light); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ≤ 768px — menu burger + corrections de débordement.
   Aucune de ces règles ne s'applique au-dessus de 768px (desktop intact).
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* le backdrop-filter du header créerait un « containing block » qui
     casserait le position:fixed du panneau de navigation */
  header { backdrop-filter: none; }

  .container { padding: 0 22px; }
  .nav-toggle { display: flex; }

  /* ── Panneau de navigation coulissant ── */
  nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
    width: min(320px, 86vw);
    background: var(--navy);
    display: block; overflow-y: auto;
    padding: 88px 26px 40px;
    box-shadow: -18px 0 40px rgba(10,26,48,.45);
    transform: translateX(105%);
    transition: transform .28s ease;
  }
  body.nav-open nav { transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  nav a { margin-left: 0; }
  nav > a, .nav-item { display: block; }
  nav > a, .nav-item > a {
    display: block; font-size: 1.02rem; color: #fff;
    padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .nav-item > a .caret { display: none; }
  .nav-item::after { display: none; }

  /* dropdowns dépliés en liste dans le panneau */
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: 0; box-shadow: none; border-radius: 0;
    min-width: 0; padding: 2px 0 10px;
  }
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { transform: none; }
  .dropdown::before { display: none; }
  .dropdown a { padding: 8px 0 8px 14px; color: #c9d6e6; font-size: .9rem; border-radius: 0; }
  .dropdown a:hover { background: transparent; color: #fff; }
  .dropdown a small { color: #8fa3bd; }

  /* sélecteur de langue visible dans le panneau (plus jamais masqué) */
  .lang { display: block; margin: 22px 0 0; font-size: .92rem; }
  .lang a { color: #c9d6e6; }

  /* burger → croix quand le panneau est ouvert */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Mise en page mobile ── */
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  h2 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
  .feat-text h3 { font-size: 1.35rem; }
  p, .lede { text-align: left; }

  /* Empilement explicite des blocs multi-colonnes : carte phare,
     À propos (texte + encart « Pourquoi Essalys ? »), Contact.
     (min-width:0 seul laissait les colonnes se comprimer côte à côte.) */
  .feat-inner, .about-flex, .contact-wrap { flex-direction: column; }
  .feat-text, .feat-pricing, .about-text, .about-side, .contact-left, .contact-right {
    min-width: 0; width: 100%; flex: none;
  }

  /* boutons : texte toujours contenu */
  .btn { max-width: 100%; white-space: normal; text-align: center; }

  /* padding latéral uniforme */
  .card-featured { padding: 28px 22px; }
  .feat-inner { gap: 28px; }
  .cta-box { padding: 32px 22px; text-align: left; }
  .cta-box p { margin: 0 0 24px; }
  .contact-wrap { padding: 40px 22px; gap: 32px; }
  .stat { padding-right: 24px; margin-right: 24px; }
}
