/* Polices auto-hébergées (sous-ensemble latin des fontes variables, licence OFL). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   ASCAS Services — Édition éditoriale, fidèle à la charte
   (structure inspirée Sundown, habillage 100% ASCAS)
   Base claire · formes pétales · marine en contraste
   ========================================================= */
:root {
  /* Palette principale (charte) */
  --navy: #001321;
  --blue-light: #d6e7f5;
  --yellow: #f4cf5a;
  --yellow-dark: #e6bd3e;
  --off-white: #f6f1e8;
  --white: #ffffff;

  /* Sémantique — thème clair */
  --bg: var(--off-white);
  --surface: var(--white);
  --fg: var(--navy);
  --fg-muted: #51626d;
  --line: #e7ddcb;
  --line-soft: #efe7d8;

  /* Sur fond marine */
  --on-navy: #f3f0e9;
  --on-navy-muted: #9fb3c4;
  --line-navy: rgba(214, 231, 245, 0.18);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600; /* Montserrat SemiBold, comme la charte */
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}

::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 30px; }

.display { font-family: var(--font-head); font-weight: 600; line-height: 1.0; letter-spacing: -0.02em; }

/* Sur-titre (small caps espacé, comme "ÉLÉMENTS GRAPHIQUES") */
.tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tag::before { content: ""; width: 22px; height: 2px; background: var(--yellow); }
.tag--light { color: var(--on-navy-muted); }

/* =========================================================
   Formes pétales (élément graphique de la charte)
   ========================================================= */
.petal {
  position: absolute;
  border-radius: 0 50% 50% 50%;
  z-index: 0;
  pointer-events: none;
}
.petal--blue { background: var(--blue-light); }
.petal--yellow { background: var(--yellow); }
.petal--navy { background: var(--navy); }
.petal--ring { background: transparent; border: 2px solid var(--blue-light); border-radius: 50%; }

/* =========================================================
   Boutons & liens
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 16px 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #0a2236; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { position: relative; display: flex; align-items: center; height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }

/* liens dans le flux, centrés dans l'espace restant entre le logo et le bloc de droite */
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__links a {
  position: relative;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted); transition: color var(--ease);
}
.nav__links a:hover { color: var(--navy); }
/* petit trait jaune au survol */
.nav__links a:not(.nav__links-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.nav__links a:not(.nav__links-cta):hover::after { transform: scaleX(1); }
.nav__links-cta { display: none; }

.nav__cta {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: 12px 22px; border-radius: 999px; transition: background var(--ease);
}
.nav__cta:hover { background: #0a2236; }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  border: none; border-radius: 12px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__overlay { display: none; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; order: 2; margin-right: -6px; }
  .brand { margin-right: auto; }
  .nav__right { display: none; }

  /* Menu plein écran (sous la barre), fond marine */
  .nav__links {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 120;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--navy);
    padding: 22px 30px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a {
    color: var(--on-navy); font-size: 19px; letter-spacing: 0.04em;
    padding: 20px 2px; border-bottom: 1px solid var(--line-navy);
  }
  .nav__links a:hover { color: var(--yellow); }
  .nav__links a::after { display: none; }
  .nav__links-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 26px; border-bottom: none !important;
    background: var(--yellow); color: var(--navy) !important;
    padding: 16px 24px; border-radius: 999px; text-transform: uppercase; font-size: 14px;
  }

  .nav__overlay { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: 70px 86px; }
.hero .petal--yellow { width: 360px; height: 360px; top: -120px; left: -90px; transform: rotate(20deg); opacity: 0.9; }
.hero .petal--blue { width: 240px; height: 240px; top: 60px; left: 180px; transform: rotate(-30deg); opacity: 0.8; }
.hero__inner { position: relative; z-index: 2; }
.hero__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.hero__intro { padding-top: 12px; }
.hero__intro p { color: var(--fg-muted); margin-top: 20px; max-width: 34ch; font-size: 1.04rem; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__title { font-size: clamp(2.5rem, 7.5vw, 6.2rem); color: var(--navy); }
.hero__title .accent { color: var(--fg-muted); font-weight: 500; }
.hero__title .y { color: var(--yellow-dark); }

.hero__media { margin-top: 52px; position: relative; z-index: 2; }
.hero__media img { width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover; border-radius: 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--navy); font-weight: 500; }
.hero__meta svg { width: 18px; height: 18px; color: var(--yellow-dark); flex: none; }

@media (max-width: 880px) {
  .hero__top { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { margin-top: 36px; }
}

/* =========================================================
   Marquee (bandeau marine — Contraste & impact)
   ========================================================= */
.marquee {
  background: var(--navy);
  padding-block: 22px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 0; animation: scroll 100s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--on-navy); letter-spacing: 0.01em;
  margin: 0 15px; /* espacement intégré (pas de gap) pour une boucle pile alignée */
  white-space: nowrap;
}
.marquee__track .dot { color: var(--yellow); }
/* -50% = largeur exacte d'une copie (les 2 copies sont identiques) → boucle sans couture */
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Statement
   ========================================================= */
.statement { padding-block: 96px; position: relative; overflow: hidden; background: var(--surface); }
.statement .petal--blue { width: 280px; height: 280px; left: -110px; bottom: -120px; transform: rotate(160deg); opacity: 0.7; }
.statement .inner { position: relative; z-index: 1; }
.statement .tag { margin-bottom: 30px; display: inline-flex; }
.statement h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.5rem); line-height: 1.16; letter-spacing: -0.02em; max-width: 100%;
}
.statement h2 em { color: var(--yellow-dark); font-style: normal; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: 90px; position: relative; overflow: hidden; }
.section--surface { background: var(--surface); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section__head p { color: var(--fg-muted); max-width: 36ch; margin-top: 14px; }
.section__inner { position: relative; z-index: 1; }

/* Services — liste éditoriale */
.list { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.list__row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left var(--ease);
}
.list__row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(214,231,245,0.6), transparent); transition: width var(--ease); z-index: -1;
}
.list__row:hover { padding-left: 24px; }
.list__row:hover::before { width: 100%; }
.list__num { font-family: var(--font-head); font-weight: 600; color: var(--fg-muted); font-size: 15px; }
.list__body h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; }
.list__body p { color: var(--fg-muted); margin-top: 6px; font-size: 15.5px; max-width: 62ch; }
.list__icon { color: var(--navy); transition: color var(--ease), transform var(--ease); }
.list__icon svg { width: 30px; height: 30px; }
.list__row:hover .list__icon { color: var(--yellow-dark); transform: translateX(4px); }
@media (max-width: 620px) {
  .list__row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 4px; }
  .list__icon { display: none; }
}

/* Pour qui — cartes audiences */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.audience__item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--off-white);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.audience__item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,19,33,0.08); border-color: var(--blue-light); }
.audience__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  background: var(--blue-light); color: var(--navy);
  display: grid; place-items: center;
}
.audience__icon svg { width: 26px; height: 26px; }
.audience__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; margin-bottom: 5px; }
.audience__item p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--blue-light); box-shadow: 0 10px 30px rgba(0,19,33,0.06); }
.gallery img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: saturate(0.68) contrast(1.03) brightness(0.99); /* harmonisation charte */
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}
/* voile marine subtil (uniformise les teintes, lisibilité de la légende) */
.gallery figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,19,33,0.10) 0%, rgba(0,19,33,0) 32%, rgba(0,19,33,0.42) 100%);
  transition: opacity 0.5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1) contrast(1) brightness(1); }
.gallery figure:hover::after { opacity: 0.55; }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--navy);
  background: rgba(246,241,232,0.94); backdrop-filter: blur(4px);
  padding: 8px 14px; border-radius: 999px;
}
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* Engagements */
.engage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.engage__item { padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform var(--ease), box-shadow var(--ease); }
.engage__item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,19,33,0.08); }
.engage__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-light); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.engage__icon svg { width: 26px; height: 26px; }
.engage__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; }
.engage__item p { color: var(--fg-muted); font-size: 15px; }
@media (max-width: 860px) { .engage { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .engage { grid-template-columns: 1fr; } }

/* =========================================================
   Grande citation (panneau marine — Contraste & impact)
   ========================================================= */
.bigquote { background: var(--navy); color: var(--on-navy); padding-block: 100px; text-align: center; position: relative; overflow: hidden; }
.bigquote .petal--yellow { width: 220px; height: 220px; top: -70px; left: -60px; transform: rotate(40deg); opacity: 0.95; }
.bigquote .petal--blue { width: 200px; height: 200px; bottom: -70px; right: -50px; transform: rotate(210deg); opacity: 0.5; }
.bigquote .inner { position: relative; z-index: 1; }
.bigquote blockquote {
  margin: 0 auto; max-width: 14em; text-align: center;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.2; letter-spacing: -0.02em;
}
.bigquote p { font: inherit; }
.bigquote .y { color: var(--yellow); }
.bigquote footer {
  margin-top: 22px; color: var(--on-navy-muted);
  font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5; letter-spacing: normal;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
.contact > * { min-width: 0; }
.contact__details a { word-break: break-word; }
.section--contact .petal--blue { width: 300px; height: 300px; right: -130px; top: -120px; transform: rotate(120deg); opacity: 0.6; }
.contact__intro h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.contact__intro p { color: var(--fg-muted); margin-top: 16px; max-width: 38ch; }
.contact__details { margin-top: 30px; display: grid; gap: 14px; }
.contact__details a, .contact__details span { display: inline-flex; align-items: center; gap: 13px; font-weight: 500; color: var(--navy); }
.contact__details a:hover { color: var(--yellow-dark); }
.contact__details svg { width: 20px; height: 20px; color: var(--yellow-dark); flex: none; }

.form { width: 100%; max-width: 620px; justify-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 16px 44px rgba(0,19,33,0.08); }
.form__row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg-muted); }
.field label .req { color: var(--yellow-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
  font-family: var(--font-body); font-size: 16px; color: var(--navy);
  background: var(--off-white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 15px; min-height: 52px; transition: border-color var(--ease), background var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c7372f; background: #fff7f6; }
.form__note { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }
.form__feedback {
  position: relative;
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  display: none;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid transparent;
}
.form__feedback.is-success {
  display: flex;
  background: linear-gradient(90deg, rgba(214, 231, 245, 0.72), rgba(255, 255, 255, 0.96));
  color: var(--navy);
  border-color: var(--blue-light);
  box-shadow: inset 4px 0 0 var(--yellow);
}
.form__feedback.is-error {
  display: flex;
  background: #fff9f7;
  color: var(--navy);
  border-color: #edc7c1;
  box-shadow: inset 4px 0 0 #c7372f;
}
.form__feedback-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
}
.form__feedback.is-success .form__feedback-icon {
  background: var(--yellow);
  color: var(--navy);
}
.form__feedback.is-success .form__feedback-icon::before { content: "✓"; }
.form__feedback.is-error .form__feedback-icon {
  background: #c7372f;
  color: var(--white);
}
.form__feedback.is-error .form__feedback-icon::before { content: "!"; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } .form { padding: 26px; } }

/* =========================================================
   Footer (panneau marine + wordmark)
   ========================================================= */
.site-footer { background: var(--navy); color: var(--on-navy); padding-top: 76px; position: relative; overflow: hidden; }
.site-footer .petal--blue { width: 260px; height: 260px; right: -120px; top: 40px; transform: rotate(140deg); opacity: 0.18; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--line-navy); }
.footer__grid p { color: var(--on-navy-muted); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer__grid img { height: 28px; filter: brightness(0) invert(1); }
.footer__grid h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 16px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__grid ul a { color: var(--on-navy); }
.footer__grid ul a:hover { color: var(--yellow); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.wordmark {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.8;
  font-size: clamp(4rem, 23vw, 20rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(214, 231, 245, 0.45);
  margin-top: 36px; user-select: none;
}
.footer__legal { position: relative; z-index: 1; padding-block: 26px 40px; text-align: center; font-size: 13px; color: var(--on-navy-muted); }

/* =========================================================
   Page 404
   ========================================================= */
.page-404 { min-height: 100vh; }
.error-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-block: 82px;
}
.error-hero .petal--yellow {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -100px;
  transform: rotate(18deg);
  opacity: 0.88;
}
.error-hero .petal--blue {
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: 70px;
  transform: rotate(140deg);
  opacity: 0.72;
}
.error-hero .petal--ring {
  width: 430px;
  height: 430px;
  right: 12%;
  top: 8%;
  opacity: 0.65;
}
.error-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 58px;
  align-items: center;
}
.error-hero__content p {
  color: var(--fg-muted);
  margin-top: 22px;
  max-width: 42ch;
  font-size: 1.06rem;
}
.error-hero__title {
  margin-top: 26px;
  max-width: 10ch;
  font-size: clamp(2.8rem, 8vw, 7.1rem);
  color: var(--navy);
}
.error-hero__title .y { color: var(--yellow-dark); }
.error-hero__panel {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.error-hero__number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(7.2rem, 17vw, 15rem);
  line-height: 0.82;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 19, 33, 0.18);
  text-shadow: 18px 18px 0 rgba(244, 207, 90, 0.28);
}
.error-hero__card {
  position: absolute;
  right: 8%;
  bottom: 18%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(0, 19, 33, 0.12);
}
.error-hero__card img { width: 42px; height: 42px; object-fit: contain; }
.error-hero__card span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

@media (max-width: 900px) {
  .error-hero {
    min-height: auto;
    padding-block: 64px 76px;
  }
  .error-hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .error-hero__title { max-width: 11ch; }
  .error-hero__panel {
    min-height: 240px;
    place-items: start;
  }
  .error-hero__card {
    right: auto;
    left: 32px;
    bottom: 12px;
  }
}

@media (max-width: 520px) {
  .error-hero { padding-block: 48px 58px; }
  .error-hero__title { font-size: clamp(2.35rem, 16vw, 4.1rem); }
  .error-hero__content p { font-size: 1rem; }
  .error-hero__panel { min-height: 200px; }
  .error-hero__card {
    left: 0;
    bottom: 0;
    max-width: 100%;
  }
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* =========================================================
   Pages intérieures (site multi-pages, septembre 2026)
   Mêmes jetons, mêmes formes : rien de nouveau dans la charte.
   ========================================================= */

/* Lien d'évitement : visible au clavier seulement */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; font-family: var(--font-head); font-size: 14px; }
.skip-link:focus { left: 16px; }

/* Header : téléphone + menu déroulant Services */
.nav__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.nav__tel svg { width: 17px; height: 17px; color: var(--yellow-dark); }
@media (max-width: 1180px) { .nav__tel span { display: none; } }
@media (min-width: 881px) { .nav__links { flex: 1 1 auto; justify-content: center; min-width: 0; margin: 0 28px; gap: 26px; } }
.nav__item { position: relative; }
.nav__item > a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.nav__item:hover > a::after, .nav__item:focus-within > a::after { transform: scaleX(1); }
.nav__item > a { position: relative; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); transition: color var(--ease); }
.nav__item:hover > a, .nav__item:focus-within > a { color: var(--navy); }
.nav__sub {
  position: absolute; left: -18px; top: calc(100% + 14px); min-width: 320px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(0,19,33,0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--navy); }
.nav__sub a:hover { background: var(--blue-light); }
.nav__sub a::after { display: none; }
.nav__sub-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-light); color: var(--navy); display: grid; place-items: center; flex: none; }
.nav__sub-icon svg { width: 17px; height: 17px; }
.nav__sub-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.nav__sub-all a { color: var(--fg-muted); font-weight: 600; }
.nav__sub-all svg { width: 15px; height: 15px; }
@media (max-width: 880px) {
  .nav__item { display: contents; }
  .nav__item > a { color: var(--on-navy); font-size: 19px; letter-spacing: 0.04em; padding: 20px 2px; border-bottom: 1px solid var(--line-navy); }
  .nav__item > a::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; box-shadow: none; padding: 0 0 10px; min-width: 0; }
  .nav__sub ul { gap: 0; }
  .nav__sub a { color: var(--on-navy-muted); font-size: 15px; padding: 10px 0 10px 12px; border-bottom: none; }
  .nav__sub a:hover { background: transparent; color: var(--yellow); }
  .nav__sub-icon { background: rgba(214,231,245,0.14); color: var(--on-navy); width: 26px; height: 26px; }
  .nav__sub-all { border-top: none; }
}

/* En-tête de page intérieure */
.page-hero { position: relative; overflow: hidden; padding-block: 44px 56px; }
.page-hero .petal--yellow { width: 300px; height: 300px; top: -140px; right: -80px; transform: rotate(20deg); opacity: 0.9; }
.page-hero .petal--blue { width: 220px; height: 220px; top: 40px; right: 150px; transform: rotate(-30deg); opacity: 0.7; }
.page-hero__inner { position: relative; z-index: 1; max-width: 900px; }
@media (max-width: 640px) { .page-hero .petal { opacity: 0.4; } }
.page-hero .tag { margin-top: 26px; }
.page-hero__title { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.9rem); color: var(--navy); text-wrap: balance; }
.page-hero__lead { color: var(--fg-muted); margin-top: 18px; font-size: 1.08rem; max-width: 62ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-hero--centre { text-align: center; padding-block: 70px 90px; }
.page-hero--centre .page-hero__inner { margin-inline: auto; }
.page-hero--centre .page-hero__lead { margin-inline: auto; }
.page-hero--centre .page-hero__actions { justify-content: center; }
.page-hero--centre .tag { justify-content: center; }
.page-hero--centre .tag::before { display: none; }

.callout {
  margin-top: 22px; padding: 20px 24px; max-width: 70ch;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 14px;
  font-size: 1.02rem; line-height: 1.6; color: var(--navy);
}
.meta-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--fg-muted); }
.meta-line svg { width: 15px; height: 15px; color: var(--yellow-dark); }

/* Fil d'Ariane */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--fg-muted); }
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

/* Mise en page contenu + encart */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-block: 24px 80px; }
.layout--lecture { grid-template-columns: minmax(0, 760px); }
.layout__main { min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 40px; } }

.aside { position: sticky; top: 100px; }
.aside__card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 16px 44px rgba(0,19,33,0.08); display: grid; gap: 12px; }
.aside__title { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-top: 8px; }
.aside__text { color: var(--fg-muted); font-size: 15px; margin-bottom: 6px; }
@media (max-width: 960px) { .aside { position: static; } }

/* Prose */
.prose { font-size: 17px; line-height: 1.7; }
.prose p { margin-top: 16px; max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 44px; line-height: 1.2; }
.prose h3 { font-size: 1.15rem; margin-top: 20px; }
.prose ul:not([class]) { margin-top: 14px; padding-left: 22px; max-width: 70ch; }
.prose a:not(.btn):not(.card):not(.link-arrow) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.prose .btn { margin-top: 18px; }
.prose__figure { margin: 36px 0 0; }
.prose__figure img, .prose__cover { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 18px; }
.prose__cover { margin-bottom: 8px; }
.prose--note { margin-top: 28px; color: var(--fg-muted); }
.prose--legal section + section { margin-top: 8px; }
.a-completer { background: #fff3c4; color: #7a5a00; padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }
.section__lead { color: var(--fg-muted); max-width: 40ch; margin-top: 14px; }

.faq { margin-top: 8px; }
.faq h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.tarif { margin-top: 44px; padding: 28px; background: var(--blue-light); border-radius: 18px; }
.tarif h2 { margin-top: 0; }
.tarif p { max-width: 60ch; }

/* Listes */
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--yellow-dark); margin-top: 3px; }
.checklist--compact { gap: 8px; font-size: 14.5px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.checklist--compact svg { width: 17px; height: 17px; margin-top: 2px; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: etape; display: grid; gap: 14px; }
.steps li { position: relative; padding: 18px 20px 18px 66px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { counter-increment: etape; content: counter(etape); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.steps span { display: block; color: var(--fg-muted); font-size: 15px; margin-top: 4px; }
.steps--grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--grid { grid-template-columns: 1fr; } }

.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy); transition: border-color var(--ease), background var(--ease); }
.chips a:hover { border-color: var(--navy); background: var(--blue-light); }

/* Cartes */
.cards { display: grid; gap: 18px; margin-top: 18px; }
.cards--1 { grid-template-columns: 1fr; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards--2, .cards--3 { grid-template-columns: 1fr; } }
.card { display: flex; align-items: flex-start; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,19,33,0.08); border-color: var(--blue-light); }
.card__icon { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-light); color: var(--navy); display: grid; place-items: center; }
.card__icon svg { width: 26px; height: 26px; }
.card__body { display: block; min-width: 0; flex: 1; }
.card__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.25; margin: 0; }
.card__text { display: block; color: var(--fg-muted); font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.card__arrow { flex: none; color: var(--fg-muted); transition: transform var(--ease), color var(--ease); }
.card__arrow svg { width: 20px; height: 20px; }
.card:hover .card__arrow { transform: translateX(4px); color: var(--yellow-dark); }
.card--realisation { flex-direction: column; padding: 0; overflow: hidden; }
.card--realisation img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card--realisation .card__body { padding: 18px 20px 22px; }
.prose .cards { margin-top: 18px; }
.zones-groupe + .zones-groupe { margin-top: 44px; }
.zones-groupe h2 { font-size: 1.35rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
@media (max-width: 720px) { .section__head { flex-direction: column; align-items: flex-start; } }

/* Bandeau d'appel */
.cta-band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; padding-block: 70px; }
.cta-band .petal--yellow { width: 220px; height: 220px; top: -90px; left: -70px; transform: rotate(40deg); opacity: 0.95; }
.cta-band .petal--blue { width: 220px; height: 220px; bottom: -90px; right: -60px; transform: rotate(210deg); opacity: 0.45; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--white); text-wrap: balance; }
.cta-band p { color: var(--on-navy-muted); margin-top: 14px; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.btn--ghost { background: rgba(214,231,245,0.12); color: var(--on-navy); border-color: rgba(214,231,245,0.25); }
.btn--ghost:hover { background: rgba(214,231,245,0.2); }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* Formulaire : deux colonnes sur grand écran */
.form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.form__row > .field { min-width: 0; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.form__note a { text-decoration: underline; }
.contact--page { padding-block: 24px 80px; }
.contact--page .contact__details { margin-top: 0; }
.contact--page .contact__intro > * + * { margin-top: 26px; }
.contact--page .steps { margin-top: 0; }

/* Accueil : audiences cliquables, méta du héro, témoignages */
a.audience__item { color: inherit; }
.hero__meta { margin-top: 30px; }
.footer__grid--4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer__grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid--4 { grid-template-columns: 1fr; } }
.footer__titre { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-muted); margin: 0 0 16px; max-width: none; }
.footer__nap { list-style: none; margin: 18px 0 0 !important; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer__nap a, .footer__nap span { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); }
.footer__nap a:hover { color: var(--yellow); }
.footer__nap svg { width: 16px; height: 16px; color: var(--yellow); flex: none; }
.footer__grid img { width: auto; }
.temoignages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.temoignage { margin: 0; padding: 26px; background: var(--off-white); border: 1px solid var(--line); border-radius: 18px; }
.temoignage p { font-size: 1.02rem; line-height: 1.6; }
.temoignage footer { margin-top: 16px; font-size: 14px; color: var(--fg-muted); }
.temoignage footer span { color: var(--yellow-dark); }
@media (max-width: 860px) { .temoignages { grid-template-columns: 1fr; } }
.chips--static li span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--blue-light); font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy); }

/* Cibles tactiles : liens texte du pied de page et du fil d'Ariane portés à 24 px de haut minimum. */
.footer__grid ul a, .crumbs a { display: inline-block; padding: 4px 0; }
.crumbs ol { align-items: center; }

/* Paragraphe d'introduction des hubs, au-dessus des cartes. */
.section--intro { padding-bottom: 0; }
.prose--intro { max-width: 70ch; }
