/* =========================================================================
   STUDIO — feuille de style unique (thème clair)
   Palette, rythme et animations centralisés dans :root.
   Les sections sombres utilisent la classe .on-dark, qui redéfinit localement
   les mêmes variables : aucun code dupliqué.
   ========================================================================= */

:root {
  /* --- Fonds ------------------------------------------------------------ */
  --paper:      #FFFFFF;
  --paper-2:    #F6F2EC;   /* sections alternées, blanc chaud */
  --paper-3:    #FBF9F6;
  --card:       #FFFFFF;
  --ink-dark:   #101720;   /* fonds sombres (pied de page, bandeaux) */
  --ink-dark-2: #18202B;

  /* --- Texte ------------------------------------------------------------ */
  --text:       #131A22;
  --muted:      #56626F;
  --muted-2:    #8593A2;

  /* --- Traits ----------------------------------------------------------- */
  --line:       rgba(16, 23, 32, .10);
  --line-2:     rgba(16, 23, 32, .17);

  /* --- Accent ----------------------------------------------------------- */
  --accent:      #B4650C;                    /* texte et icônes sur fond clair */
  --accent-2:    #8F4F07;                    /* emphase */
  --accent-fill: #E8A04D;                    /* aplats, boutons */
  --accent-soft: #FDF3E5;                    /* fond teinté */
  --accent-dim:  rgba(232, 160, 77, .18);
  --on-accent:   #1A1206;                    /* texte posé sur l'accent */

  --live:      #0E8F63;
  --live-dim:  rgba(14, 143, 99, .12);

  /* --- Rythme ----------------------------------------------------------- */
  --wrap:   1180px;
  --gap:    clamp(28px, 4vw, 52px);
  --sec-y:  clamp(72px, 9vw, 124px);
  --r:      14px;
  --r-lg:   22px;

  --shadow:    0 16px 40px rgba(16, 23, 32, .09);
  --shadow-lg: 0 34px 80px rgba(16, 23, 32, .17);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Inversion locale pour les blocs sombres ---------------------------------- */
.on-dark {
  --paper:      var(--ink-dark);
  --paper-2:    var(--ink-dark-2);
  --card:       #1C2531;
  --text:       #EEF2F7;
  --muted:      #A3B0BF;
  --muted-2:    #7B889A;
  --line:       rgba(255, 255, 255, .11);
  --line-2:     rgba(255, 255, 255, .19);
  --accent:     #F0B265;
  --accent-2:   #F8D3A0;
  --accent-soft: rgba(232, 160, 77, .14);
  color: var(--text);
}

/* ------------------------------- Base ---------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; line-height: 1.13; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.45rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.18rem; letter-spacing: -.012em; }
p  { margin: 0 0 1em; }

em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: var(--accent-2);
}
.on-dark em { color: var(--accent-2); }

strong { font-weight: 650; color: var(--text); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 800px); }

.section { padding-block: var(--sec-y); }
.section-alt { background: var(--paper-2); }

/* ------------------------------ Boutons -------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent; border-radius: 11px;
  font-size: .935rem; font-weight: 600; letter-spacing: -.008em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--accent-fill); color: var(--on-accent);
  box-shadow: 0 10px 26px rgba(232, 160, 77, .34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(232, 160, 77, .42); }

/* Reflet qui balaie le bouton au survol */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
}
.btn-primary:hover::after { animation: shine .75s var(--ease); }
@keyframes shine { to { left: 150%; } }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ------------------------------- Header -------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
header.site.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(16, 23, 32, .07);
}
.nav { display: flex; align-items: center; gap: 26px; height: 74px; transition: height .25s var(--ease); }
header.site.is-scrolled .nav { height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 31px; height: 31px; transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 1.06rem; font-weight: 700; letter-spacing: -.025em; }
.brand-txt small { font-size: .685rem; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; }

.menu { display: flex; gap: 26px; }
.menu a {
  position: relative; font-size: .93rem; font-weight: 500; color: var(--muted);
  transition: color .18s var(--ease);
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.6px;
  background: var(--accent-fill); border-radius: 2px;
  transition: right .28s var(--ease);
}
.menu a:hover { color: var(--text); }
.menu a:hover::after { right: 0; }
.menu a.is-current { color: var(--text); font-weight: 600; }
.menu a.is-current::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 42px; height: 36px;
  background: none; border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 1.7px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mnav {
  display: none; flex-direction: column;
  position: sticky; top: 74px; z-index: 55;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px; box-shadow: var(--shadow);
}
.mnav.open { display: flex; animation: dropIn .3s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } }
.mnav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mnav a:last-child { border: 0; color: var(--accent); font-weight: 650; }

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(58% 60% at 8% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(48% 52% at 96% 6%, rgba(14, 143, 99, .07), transparent 66%),
    var(--paper);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--gap); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .735rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(14, 143, 99, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(14, 143, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 143, 99, 0); }
}

.lead { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 60ch; margin-top: 22px; }

/* Les trois bénéfices, sous l'accroche */
.hero-benefits {
  display: grid; gap: 13px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-benefits li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.hero-benefits svg {
  width: 21px; height: 21px; margin-top: 2px; color: var(--accent); flex: none;
}
.hero-benefits b { display: block; font-size: .96rem; font-weight: 650; }
.hero-benefits span { font-size: .89rem; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { font-size: .865rem; color: var(--muted-2); margin-top: 20px; }

/* Photo du hero + carte catalogue en surimpression */
.hero-media { position: relative; }
.hero-photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10.5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(232,160,77,.14), rgba(16,23,32,.34));
}

/* La carte chevauche seulement le bas de la photo : les deux restent lisibles */
.hero-panel {
  position: relative; z-index: 2;
  width: min(94%, 372px); margin: -52px 0 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
}
.dot-row { display: flex; gap: 5px; }
.dot-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.panel-title { font-size: .73rem; color: var(--muted-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.panel-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 2px 10px; padding: 10px 15px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.panel-list li:hover { background: var(--paper-3); }
.panel-list li:last-child { border-bottom: 0; }
.pl-name { grid-column: 1; grid-row: 1; font-weight: 600; font-size: .9rem; }
.pl-desc { grid-column: 1; grid-row: 2; font-size: .75rem; color: var(--muted-2); }
.panel-list .tag { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.pl-custom { background: var(--accent-soft); }
.pl-custom .pl-name { color: var(--accent-2); }

/* -------------------------------- Tags --------------------------------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tag-live  { background: var(--live-dim); color: var(--live); }
.tag-beta  { background: rgba(64, 106, 214, .12); color: #3A62C4; }
.tag-proto { background: rgba(16, 23, 32, .07); color: var(--muted); }
.tag-new   { background: var(--accent-dim); color: var(--accent-2); }

/* ------------------------------- Bandeau ------------------------------- */
.strip { background: var(--paper-2); border-block: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 34px; gap: 20px; }
.stat { text-align: center; }
.stat b {
  display: block; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 750;
  letter-spacing: -.035em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .82rem; color: var(--muted); }

/* ----------------------------- Titres section --------------------------- */
.sec-head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 58px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-lead { color: var(--muted); font-size: 1.05rem; max-width: 64ch; }

/* ------------------------------- Photos --------------------------------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow); background: var(--paper-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.photo:hover img { transform: scale(1.045); }
.photo-tall { aspect-ratio: 4 / 4.4; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo-square { aspect-ratio: 1 / 1; }

/* Légende posée en bas de l'image */
.photo-cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(8px);
  border-radius: 11px; padding: 12px 15px;
  font-size: .84rem; color: var(--text); box-shadow: var(--shadow);
}
.photo-cap b { display: block; font-size: .9rem; margin-bottom: 1px; }
.photo-cap span { color: var(--muted); }

/* Bloc texte + image */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.media-grid.reverse .media-visual { order: -1; }

/* -------------------------------- Outils -------------------------------- */
.grid-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tool:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tool-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.tool:hover .tool-icon { transform: rotate(-7deg) scale(1.08); background: var(--accent-dim); }
.tool-icon svg { width: 21px; height: 21px; }
.tool h3 { margin-bottom: 12px; }
.tool-problem {
  color: var(--muted); font-size: .92rem; font-style: italic;
  border-left: 2px solid var(--accent-fill); padding-left: 13px; margin-bottom: 13px;
}
.tool-answer { font-size: .93rem; color: var(--text); margin-bottom: 16px; }
.tool-sector {
  margin-top: auto; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 650;
}
.tool-cta { background: linear-gradient(165deg, var(--accent-soft), var(--paper)); border-color: var(--accent-dim); }
.tool-cta h3 { color: var(--accent-2); }
.tool-cta .btn { align-self: flex-start; margin-top: auto; }

/* ------------------------------- Niveaux -------------------------------- */
.grid-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.level {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.level:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.level-hl {
  border-color: var(--accent-dim);
  background: linear-gradient(178deg, var(--accent-soft), var(--card) 58%);
  box-shadow: var(--shadow);
}
.lvl-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent-fill); color: var(--on-accent);
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(232,160,77,.4);
}
.lvl-num {
  display: block; font-family: "Instrument Serif", serif; font-size: 2rem;
  color: var(--accent-fill); line-height: 1; margin-bottom: 10px;
}
.level h3 { font-size: 1.32rem; margin-bottom: 4px; }
.lvl-delay { color: var(--accent); font-size: .87rem; font-weight: 650; margin-bottom: 14px; }
.level > p:not(.lvl-delay) { color: var(--muted); font-size: .94rem; }

.check { display: grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.check li { position: relative; padding-left: 25px; font-size: .9rem; }
.check li::before {
  content: ""; position: absolute; left: 1px; top: .5em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.levels-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: .92rem; }

/* -------------------------------- Étapes -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); transition: border-color .3s var(--ease); }
.step:hover { border-top-color: var(--accent-fill); }
.step-n {
  position: absolute; top: -16px; left: 0;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--accent-fill); border-radius: 50%;
  color: var(--on-accent); font-size: .86rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(232, 160, 77, .35);
}
.step h3 { margin-bottom: 3px; }
.step-when {
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.step > p:not(.step-when) { color: var(--muted); font-size: .92rem; margin: 0; }

/* Variante verticale, à côté d'une photo */
.steps-stack { display: grid; grid-template-columns: 1fr; gap: 22px; }
.steps-stack .step { padding-top: 0; padding-left: 48px; border-top: 0; }
.steps-stack .step-n { top: 0; }

/* ------------------------------- Expertise ------------------------------ */
.grid-exp {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.exp { background: var(--card); padding: 30px 26px; transition: background .25s var(--ease); }
.exp:hover { background: var(--accent-soft); }
.exp h3 { margin-bottom: 10px; color: var(--accent-2); }
.exp p { color: var(--muted); font-size: .93rem; margin: 0; }

.stack { margin-top: 36px; text-align: center; }
.stack-label {
  display: block; font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.chips li {
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .84rem; font-weight: 500; background: var(--card);
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.stack-note { margin-top: 20px; color: var(--muted); font-size: .9rem; max-width: 58ch; margin-inline: auto; }

/* --------------------------------- FAQ ---------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 3px 22px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: var(--accent-dim); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { color: var(--muted); font-size: .94rem; margin: 0 0 18px; max-width: 68ch; }

/* ----------------------------- Bandeau d'appel --------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: var(--gap); align-items: center;
  background: var(--ink-dark); border-radius: var(--r-lg);
  padding: clamp(34px, 4.5vw, 60px); box-shadow: var(--shadow-lg);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink-dark) 30%, rgba(16, 23, 32, .58));
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0; }

/* ------------------------------- Contact -------------------------------- */
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 11px; font-size: .94rem; }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 15px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 650; color: var(--muted); }
.req { color: var(--accent); }
.field-help { font-size: .8rem; color: var(--muted-2); margin: 2px 0 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 11px;
  font-family: inherit; font-size: .94rem; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 4px var(--accent-dim);
}
.field.invalid input, .field.invalid textarea { border-color: #D2503A; }
.form-note { font-size: .8rem; color: var(--muted-2); margin: 2px 0 0; }
.form-note.ok { color: var(--live); }

.field select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 19px) center, calc(100% - 13px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}

/* -------------------------------- Footer -------------------------------- */
.site-foot { background: var(--ink-dark); padding-block: 52px; }
.foot-in { display: grid; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand b { display: block; font-size: 1rem; letter-spacing: -.025em; }
.foot-brand span { font-size: .84rem; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-nav a { font-size: .9rem; color: var(--muted); transition: color .18s var(--ease); }
.foot-nav a:hover { color: var(--accent); }
.foot-legal { font-size: .82rem; color: var(--muted-2); margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ========================= PAGE CONTACT (contact.html) =================== */

.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 58px) clamp(34px, 4vw, 52px);
  background:
    radial-gradient(56% 66% at 6% 0%, var(--accent-soft), transparent 62%),
    var(--paper);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.page-hero .lead { max-width: 64ch; }

.crumb { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--muted-2); margin-bottom: 22px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

.contact-page { padding-top: clamp(18px, 2.5vw, 34px); }
.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: start; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 42px); box-shadow: var(--shadow);
}
.form-title { font-size: 1.55rem; margin-bottom: 8px; }
.form-sub { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.contact-aside { display: grid; gap: 16px; }
.aside-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.aside-photo { padding: 0; overflow: hidden; border: 0; }
.aside-title {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}

.next-steps { display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.ns-n {
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--accent-fill); border-radius: 50%;
  color: var(--on-accent); font-size: .78rem; font-weight: 700;
}
.next-steps b { display: block; font-size: .94rem; margin-bottom: 3px; }
.next-steps p { color: var(--muted); font-size: .875rem; margin: 0; }

.nope { display: grid; gap: 10px; }
.nope li { position: relative; padding-left: 25px; font-size: .9rem; color: var(--muted); }
.nope li::before {
  content: "×"; position: absolute; left: 3px; top: -.04em;
  color: var(--muted-2); font-size: 1.1rem; line-height: 1.5;
}

/* ========================= PAGE À PROPOS (a-propos.html) ================== */

.origin-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--gap); align-items: start; }
.origin-copy h2 { margin-bottom: 20px; }
.origin-copy p { color: var(--muted); }

.origin-visual { display: grid; gap: 18px; position: sticky; top: 104px; }

.pullquote {
  margin: 0; padding: 30px 28px;
  background: linear-gradient(165deg, var(--accent-soft), var(--card) 62%);
  border: 1px solid var(--accent-dim); border-radius: var(--r-lg);
}
.pullquote blockquote {
  margin: 0 0 14px;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.68rem); line-height: 1.26; color: var(--accent-2);
}
.pullquote figcaption { font-size: .88rem; color: var(--muted); }

.grid-creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.creed {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.creed:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.creed-n {
  display: block; font-family: "Instrument Serif", serif; font-size: 1.8rem;
  color: var(--accent-fill); line-height: 1; margin-bottom: 12px;
}
.creed h3 { margin-bottom: 10px; }
.creed p { color: var(--muted); font-size: .93rem; margin: 0; }

.grid-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.comp {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px;
}
.comp-hl {
  border-color: var(--accent-dim);
  background: linear-gradient(178deg, var(--accent-soft), var(--card) 58%);
  box-shadow: var(--shadow);
}
.comp h3 { margin-bottom: 18px; font-size: 1.24rem; }
.comp-hl h3 { color: var(--accent-2); }
.comp dl { margin: 0; display: grid; gap: 14px; }
.comp dt {
  font-size: .68rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; margin-bottom: 3px;
}
.comp dd { margin: 0; font-size: .92rem; }

.team { display: grid; gap: 18px; }
.member {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 28px;
}
.member-photo {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow); border: 3px solid var(--card); outline: 1px solid var(--line);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: 3px; font-size: 1.26rem; }
.member-role {
  font-size: .77rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.member p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }

/* Galerie de photos */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ============================ BLOG / RESSOURCES ========================== */

.wrap-article { width: min(100% - 40px, 760px); margin-inline: auto; }

/* --- Index des dossiers -------------------------------------------------- */
.cluster {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 22px; background: var(--card);
}
.cluster-pillar { padding: 34px 32px; background: linear-gradient(160deg, var(--accent-soft), var(--card) 70%); }
.cluster-pillar h2 { font-size: 1.55rem; margin-bottom: 14px; }
.cluster-pillar h2 a:hover { color: var(--accent-2); }
.cluster-pillar p { color: var(--muted); font-size: .95rem; }
.cluster-pillar .btn { margin-top: 6px; }

.cluster-sats { border-left: 1px solid var(--line); display: grid; align-content: start; }
.cluster-sats li + li { border-top: 1px solid var(--line); }
.cluster-sats a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 26px; transition: background .18s var(--ease), padding-left .18s var(--ease);
}
.cluster-sats a:hover { background: var(--paper-2); padding-left: 31px; }
.cluster-sats b { font-weight: 550; font-size: .95rem; }
.cluster-sats span { font-size: .78rem; color: var(--muted-2); flex: none; }

/* --- En-tête d'article --------------------------------------------------- */
.art { padding-block: clamp(30px, 4vw, 52px) clamp(60px, 7vw, 90px); }
.art-head { margin-bottom: 34px; }
.art-head h1 { font-size: clamp(1.95rem, 4vw, 2.85rem); margin-bottom: 20px; }
.art-chapo { font-size: 1.13rem; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.art-meta { display: flex; gap: 10px; font-size: .85rem; color: var(--muted-2); margin: 0; }
.art-pillar-note {
  margin: 18px 0 0; padding: 11px 16px; font-size: .88rem;
  background: var(--accent-soft); border-radius: 10px; color: var(--muted);
}
.art-pillar-note a { color: var(--accent); font-weight: 600; }
.art-pillar-note a:hover { text-decoration: underline; }

/* --- Sommaire ------------------------------------------------------------ */
.art-toc {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 26px; margin-bottom: 38px;
}
.art-toc b {
  display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 12px;
}
.art-toc ol { counter-reset: toc; display: grid; gap: 8px; }
.art-toc li { counter-increment: toc; position: relative; padding-left: 26px; font-size: .93rem; }
.art-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; color: var(--accent-fill); font-weight: 700; font-size: .8rem;
}
.art-toc a { color: var(--muted); }
.art-toc a:hover { color: var(--accent); }

/* --- Corps de l'article -------------------------------------------------- */
.art-body { font-size: 1.055rem; line-height: 1.72; }
.art-body h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin: 52px 0 16px; scroll-margin-top: 100px;
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 1.16rem; margin: 32px 0 10px; }
.art-body p { margin: 0 0 1.15em; }
.art-body ul { display: grid; gap: 11px; margin: 0 0 1.4em; }
.art-body li { position: relative; padding-left: 26px; }
.art-body li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill);
}
.art-body a { color: var(--accent); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-body a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
.art-body em { font-size: 1.02em; }
.art-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 6px;
}

/* --- FAQ, appel à l'action, articles liés -------------------------------- */
.art-faq { margin-top: 56px; }
.art-faq h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-bottom: 20px; }

.art-cta {
  margin-top: 52px; padding: 32px 30px;
  background: linear-gradient(160deg, var(--accent-soft), var(--card) 70%);
  border: 1px solid var(--accent-dim); border-radius: var(--r-lg);
}
.art-cta h2 { font-size: 1.4rem; margin-bottom: 12px; }
.art-cta p { color: var(--muted); font-size: .96rem; max-width: 58ch; }

.art-related { margin-top: 52px; }
.art-related h2 { font-size: 1.4rem; margin-bottom: 10px; }
.art-related-intro { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.art-related-intro a { color: var(--accent); font-weight: 600; }
.art-related-intro a:hover { text-decoration: underline; }
.rel-list { display: grid; gap: 10px; }
.rel-list a {
  display: block; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.rel-list a:hover { border-color: var(--accent-dim); transform: translateX(4px); }
.rel-list b { display: block; font-size: .98rem; margin-bottom: 3px; }
.rel-list span { font-size: .87rem; color: var(--muted); }

@media (max-width: 820px) {
  .cluster { grid-template-columns: 1fr; }
  .cluster-sats { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------ Animations ------------------------------ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Variantes directionnelles */
.reveal-left  { transform: translateX(-26px); }
.reveal-right { transform: translateX(26px); }
.reveal-zoom  { transform: scale(.955); }

/* Apparition du hero au chargement */
.hero-copy > * { animation: riseIn .85s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }
.hero-copy > *:nth-child(6) { animation-delay: .50s; }
.hero-media { animation: riseIn 1s var(--ease) .2s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-media { animation: none; }
  .pulse { animation: none; }
  .btn-primary:hover::after { animation: none; }
  .photo img, .hero-photo img { transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1040px) {
  .grid-levels, .grid-exp, .grid-creed, .grid-compare { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
}

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Le menu compte six entrées : il lui faut plus de 1080 px pour tenir sur une
   ligne à côté de la marque et du bouton. En dessous, on passe au burger. */
@media (max-width: 1080px) {
  .menu, .desk { display: none; }
  .burger { display: flex; }
}

@media (max-width: 900px) {
  .hero-grid, .media-grid, .origin-grid { grid-template-columns: 1fr; }
  .media-grid.reverse .media-visual { order: 0; }
  .hero-media { margin-bottom: 34px; }
  .hero-panel { width: 100%; margin: -40px auto 0; }
  .origin-visual { position: static; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .grid-levels, .grid-exp, .steps, .grid-creed, .grid-compare { grid-template-columns: 1fr; }
  .grid-exp { border-radius: var(--r); }
  .steps { gap: 34px; }
  .member { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
}
