/* communication-mairie.com, by Magineo. V1.
   Plus aéré et plus coloré que communication-industrie.com : base ivoire lumineuse,
   bleu rivière, vert vigne, ocre pierre, or en signature. Grille volontairement cassée.
   Apparitions douces et léger parallaxe, sans librairie. Lisible sans JavaScript. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #fbf7f0;
  --ivory: #f3ece0;
  --sand: #e9dfcf;
  --ink: #1d2a35;
  --ink-soft: rgba(29, 42, 53, 0.74);
  --hair-ink: rgba(29, 42, 53, 0.14);
  --slate: #1f3442;
  --river: #1f78a8;
  --vine: #6fa12b;
  --ochre: #db7f22;
  --sun: #f4bd22;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.86);

  --font: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --space: clamp(96px, 13vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 1.0625rem; line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 60; }
.skip:focus { top: 12px; }

/* ---------- Couleurs d'accent ---------- */
.c-river { --c: var(--river); }
.c-vine { --c: var(--vine); }
.c-ochre { --c: var(--ochre); }
.c-sun { --c: var(--sun); }

/* ---------- Titres ---------- */
.h, .display { font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1.04; }
.display { font-size: clamp(2.6rem, 6vw, 6.2rem); line-height: 1; }
.h b, .display b { font-weight: 600; color: var(--river); }
.on-dark .h b, .on-dark .display b { color: var(--sun); }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.25rem); line-height: 1.7; color: var(--ink-soft); max-width: 34em; }
.on-dark .lead { color: var(--soft); }
.tag { display: inline-flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ochre); }
.tag::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .tag { color: var(--sun); }

/* ---------- Boutons et liens ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; font-weight: 400; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffcd45; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--river); }
.btn-line { border-color: var(--hair-ink); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); color: var(--white); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 400; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.arrow::after { content: "→"; transition: transform .3s var(--ease); }
.arrow:hover::after { transform: translateX(6px); }
.more { margin-top: 36px; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--white); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-header.solid { background: rgba(251, 247, 240, 0.94); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--hair-ink); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .picto { width: 22px; aspect-ratio: 93 / 153; background: var(--sun); -webkit-mask: url("../img/logo-icone.png") center / contain no-repeat; mask: url("../img/logo-icone.png") center / contain no-repeat; flex: none; }
.brand .name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name span:first-child { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand .name span:last-child { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .75; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav a, .header-cta { white-space: nowrap; }
.site-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 400; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--sun); }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; padding: 8px 0; }
.menu-toggle .bars, .menu-toggle .bars::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.menu-toggle .bars::before { content: ""; position: absolute; top: 7px; }
.menu-mobile { position: fixed; inset: 0; z-index: 35; background: var(--paper); padding-top: calc(var(--header-h) + 24px); overflow-y: auto; }
.menu-mobile ul { display: grid; gap: 6px; }
.menu-mobile a { text-decoration: none; font-size: 1.6rem; font-weight: 300; }
.menu-mobile .menu-contact { margin-top: 36px; display: grid; gap: 6px; color: var(--ink-soft); }
.menu-mobile .menu-contact a { font-size: 1rem; }
.menu-open .site-header { background: var(--paper); color: var(--ink); }
@media (max-width: 1320px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- Médias plein cadre ---------- */
.hero-media, .change-media, .project-media, .contact-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media picture, .change-media picture, .project-media picture, .contact-media picture { position: absolute; inset: -6% 0; }
.hero-media img, .change-media img, .project-media img, .contact-media img { width: 100%; height: 100%; object-fit: cover; }
[data-parallax] picture { will-change: transform; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero .slide { opacity: 0; transition: opacity 2.2s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { transform: scale(1.06); transition: transform 9s linear; }
.hero .slide.on img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 32, 42, 0.8) 0%, rgba(20, 32, 42, 0.5) 45%, rgba(20, 32, 42, 0) 75%), linear-gradient(0deg, rgba(20, 32, 42, 0.5), rgba(20, 32, 42, 0) 45%); }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(64px, 11vh, 130px); }
.hero .display { max-width: 12.5em; margin: 22px 0 28px; }
.hero .display b { color: var(--sun); display: block; }
.hero .lead { color: var(--soft); margin-bottom: 36px; }
.hero .tag { color: var(--sun); }

/* ---------- Bandeau défilant ---------- */
.ribbon { overflow: hidden; background: var(--slate); padding: 22px 0; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon span { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: var(--c); padding: 0 28px; white-space: nowrap; }
.ribbon span::after { content: "·"; color: rgba(255, 255, 255, 0.3); margin-left: 56px; font-weight: 300; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Besoins des habitants : grille décalée ---------- */
.s-needs { padding: var(--space) 0 calc(var(--space) * .8); }
.needs-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.needs-head .h { max-width: 9.5em; }
.needs-photo { margin-top: 56px; margin-left: calc(var(--gutter) * -1); width: 92%; aspect-ratio: 4 / 3; overflow: hidden; }
.needs-photo img, .practice-photo img, .auto-photo img { scale: 1.12; will-change: translate; }
.needs-photo img { width: 100%; height: 100%; object-fit: cover; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; padding-top: 140px; }
.needs li { border-top: 3px solid var(--c); padding-top: 22px; transition: border-width .3s var(--ease); }
.needs li:hover h3 { color: var(--c); }
.needs li:nth-child(even) { transform: translateY(80px); }
.needs h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; }
.needs p { color: var(--ink-soft); }
.s-needs .more { grid-column: 2; margin-top: -40px; }

/* ---------- Phrase centrale ---------- */
.s-quote { padding: 0 0 var(--space); }
.quote { max-width: 18em; margin-inline: auto; text-align: center; font-size: clamp(1.9rem, 3.8vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.quote b { font-weight: 600; color: var(--ochre); }

/* ---------- Regard gratuit : aplat ocre ---------- */
.s-offer { background: var(--ochre); color: var(--white); padding: clamp(80px, 10vw, 150px) 0; }
.offer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.s-offer .h { margin-bottom: 26px; }
.s-offer .h b { color: var(--ink); }
.s-offer p { max-width: 30em; color: rgba(255, 255, 255, 0.92); margin-bottom: 34px; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); }
.checks { counter-reset: c; padding: 0; list-style: none; }
.checks li { counter-increment: c; display: flex; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 400; }
.checks li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.checks li::before { content: counter(c, decimal-leading-zero); font-size: 0.85rem; font-weight: 600; color: var(--ink); min-width: 2em; }

/* ---------- Internet change : visuel + carte qui déborde ---------- */
.s-change { position: relative; min-height: 92vh; display: flex; align-items: flex-end; margin-bottom: 140px; }
.change-card { position: relative; background: var(--slate); color: var(--white); max-width: 640px; margin-left: auto; padding: clamp(36px, 5vw, 64px); transform: translateY(140px); box-shadow: 0 30px 60px -30px rgba(20, 32, 42, 0.5); }
.change-card .tag { color: var(--sun); margin-bottom: 18px; }
.change-card .h { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-bottom: 22px; }
.change-card .h b { color: var(--sun); }
.change-card p { color: var(--soft); }

/* ---------- Bonnes pratiques ---------- */
.s-practice { position: relative; padding: var(--space) 0 calc(var(--space) * .6); }
.practice-photo { position: absolute; left: 0; top: var(--space); width: 46vw; aspect-ratio: 4 / 5; overflow: hidden; }
.practice-photo img { width: 100%; height: 100%; object-fit: cover; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(46vw * 1.25); align-items: center; }
.practice-text { grid-column: 2; padding-left: clamp(0px, 3vw, 60px); }
.practice-text .h { margin-bottom: 28px; }
.words { display: flex; flex-wrap: wrap; gap: 6px 34px; margin-top: 90px; font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.words li { color: var(--c); transition: transform .4s var(--ease); }
.words li:hover { transform: translateY(-4px); }
.js .words.rise li { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .words.rise.in li { opacity: 1; transform: none; }
.js .words.rise.in li:nth-child(2) { transition-delay: .08s; } .js .words.rise.in li:nth-child(3) { transition-delay: .16s; } .js .words.rise.in li:nth-child(4) { transition-delay: .24s; } .js .words.rise.in li:nth-child(5) { transition-delay: .32s; } .js .words.rise.in li:nth-child(6) { transition-delay: .4s; }
.words li:not(:last-child)::after { content: "·"; color: var(--hair-ink); margin-left: 34px; font-weight: 300; }

/* ---------- Autonomie : aplat sable, photo décalée ---------- */
.s-auto { background: var(--ivory); padding: var(--space) 0; }
.auto-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.auto-photo { aspect-ratio: 16 / 10; overflow: hidden; transform: translateY(-40px); box-shadow: 24px 24px 0 var(--sun); }
.auto-photo img { width: 100%; height: 100%; object-fit: cover; }
.auto-text .h { font-size: clamp(2rem, 3.6vw, 3.6rem); margin-bottom: 24px; }
.auto-text .h b { color: var(--vine); }
.auto-text p { color: var(--ink-soft); max-width: 30em; }

/* ---------- Votre projet ---------- */
.s-project { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); }
.project-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(20, 32, 42, 0.8) 0%, rgba(20, 32, 42, 0.45) 48%, rgba(20, 32, 42, 0.05) 80%); }
.project-inner { position: relative; display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.project-inner > * { width: min(100%, 560px); }
.project-inner .h { margin-bottom: 26px; }
.project-inner .h b { color: var(--sun); display: block; }
.project-inner .lead { color: var(--soft); }

/* ---------- Studio ---------- */
.s-studio { padding: var(--space) 0 calc(var(--space) * .7); }
.studio-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.studio-text .tag { margin-bottom: 20px; }
.s-studio { padding-top: var(--space); }
.studio-text .h { margin-bottom: 28px; max-width: 11em; }
.studio-text .lead { margin-bottom: 36px; }
.figures { display: grid; gap: 34px; }
.figures li { display: flex; align-items: baseline; gap: 22px; border-bottom: 1px solid var(--hair-ink); padding-bottom: 20px; }
.figures li:nth-child(2) { margin-left: 12%; }
.figures li:nth-child(3) { margin-left: 24%; }
.figures b { font-size: clamp(3.2rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--c); min-width: 1.6em; }
.figures span { color: var(--ink-soft); }

/* ---------- Références ---------- */
.refs { padding: 30px 0 var(--space); }
.refs-title { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 34px; margin-top: 40px; }
.logos li { width: 104px; display: grid; place-items: center; }
.logos img { max-height: 84px; width: auto; filter: grayscale(1) brightness(0.35); opacity: .7; transition: opacity .3s var(--ease); }
.logos li:hover img { opacity: 1; }

/* ---------- Contact final ---------- */
.s-contact { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--white); }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 32, 42, 0.7) 0%, rgba(20, 32, 42, 0.3) 55%, rgba(20, 32, 42, 0.1) 100%); }
.contact-inner { position: relative; }
.contact-inner .display { margin-bottom: 26px; }
.contact-inner .display b { color: var(--sun); }
.contact-inner .lead { color: var(--soft); margin-bottom: 36px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--slate); color: var(--soft); padding: 90px 0 40px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.foot-name { font-size: 1.5rem; font-weight: 600; color: var(--white); margin-bottom: 12px; letter-spacing: -0.02em; }
.foot-brand p { max-width: 26em; }
.foot-by { margin-top: 14px; }
.foot-by a { color: var(--sun); }
.foot-h { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; opacity: .8; }
.foot-legal a + a { margin-left: 22px; }

/* ---------- Apparitions ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }
.js .needs li.rise:nth-child(even) { transform: translateY(106px); }
.js .needs li.rise.in:nth-child(even) { transform: translateY(80px); }
.js .change-card.rise { transform: translateY(180px); }
.js .change-card.rise.in { transform: translateY(140px); }
.js .auto-photo.rise { transform: translateY(-14px); }
.js .auto-photo.rise.in { transform: translateY(-40px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .hero .slide, .hero .slide img { transition: none; }
  .ribbon-track { animation: none; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
  .needs-grid, .auto-grid, .studio-grid, .practice-grid, .offer-grid { grid-template-columns: 1fr; }
  .needs { padding-top: 0; }
  .s-needs .more { grid-column: 1; margin-top: 40px; }
  .practice-photo { position: relative; top: 0; width: 88vw; }
  .practice-grid { min-height: 0; }
  .practice-text { grid-column: 1; padding: 60px 0 0; }
  .figures li:nth-child(n) { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .needs { grid-template-columns: 1fr; gap: 40px; }
  .needs li:nth-child(even), .js .needs li.rise.in:nth-child(even) { transform: none; }
  .js .needs li.rise:nth-child(even) { transform: translateY(26px); }
  .s-change { min-height: 70vh; margin-bottom: 0; flex-direction: column; justify-content: flex-end; }
  .change-card, .js .change-card.rise.in { transform: translateY(60px); margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); }
  .js .change-card.rise { transform: translateY(90px); }
  .s-practice { padding-top: calc(var(--space) + 60px); }
  .auto-photo { box-shadow: 12px 12px 0 var(--sun); }
  .words { gap: 0 20px; }
  .words li:not(:last-child)::after { margin-left: 20px; }
  .logos { gap: 20px 28px; }
  .logos li { width: 84px; }
}
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(0deg, rgba(20, 32, 42, 0.85) 0%, rgba(20, 32, 42, 0.55) 55%, rgba(20, 32, 42, 0.35) 100%); }
}

/* ---------- Indicateur de défilement ---------- */
.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 16px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }
@media (max-width: 760px) { .scroll-hint { bottom: 18px; width: 26px; height: 42px; } .hero-inner { padding-bottom: 96px; } }

/* ---------- Hero des pages internes ---------- */
.hero-page { min-height: 86svh; }
.hero-page .display { font-size: clamp(2.4rem, 5.4vw, 5.4rem); max-width: 13em; }

/* ---------- Blocs des pages internes ---------- */
.b-cards { padding: var(--space) 0 calc(var(--space) * .7); }
.b-cards .h { max-width: 12em; margin-bottom: 70px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cards li { border-top: 3px solid var(--c); padding-top: 24px; }
.cards li:nth-child(2) { margin-top: 70px; }
.cards li:nth-child(3) { margin-top: 140px; }
.cards h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px; }
.cards li:hover h3 { color: var(--c); }
.cards p { color: var(--ink-soft); }

.b-split { padding: calc(var(--space) * .7) 0; }
.split-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.side-right .split-photo { order: 2; }
.split-photo { aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 24px 24px 0 var(--c); }
.side-right .split-photo { box-shadow: -24px 24px 0 var(--c); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
.split-text .h { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-bottom: 26px; }
.split-text p { color: var(--ink-soft); max-width: 32em; }
.split-text p + p { margin-top: 16px; }

.b-quote { padding: calc(var(--space) * .8) 0; }

.b-retenir { background: var(--ivory); padding: calc(var(--space) * .8) 0; }
.retenir-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.b-retenir .h b { color: var(--c); }
.retenir li { position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--hair-ink); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 400; }
.retenir li:first-child { border-top: 1px solid var(--hair-ink); }
.retenir li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--c); -webkit-mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); }

.b-full { position: relative; min-height: 90vh; display: flex; align-items: center; color: var(--white); }
.full-media { position: absolute; inset: 0; overflow: hidden; }
.full-media picture { position: absolute; inset: -6% 0; }
.full-media img { width: 100%; height: 100%; object-fit: cover; }
.full-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 32, 42, 0.86) 0%, rgba(20, 32, 42, 0.6) 50%, rgba(20, 32, 42, 0.1) 85%); }
.align-right .full-shade { background: linear-gradient(270deg, rgba(20, 32, 42, 0.86) 0%, rgba(20, 32, 42, 0.6) 50%, rgba(20, 32, 42, 0.1) 85%); }
.full-inner { position: relative; display: flex; }
.align-right .full-inner { justify-content: flex-end; }
.full-inner > div { max-width: 600px; }
.b-full .h { margin-bottom: 24px; }
.b-full .h b { color: var(--sun); display: block; }
.b-full .lead { color: var(--soft); }
.b-full .lead + .lead { margin-top: 14px; }

.b-aplat { padding: clamp(80px, 10vw, 150px) 0; color: var(--white); }
.bg-slate { background: var(--slate); }
.bg-river { background: var(--river); }
.bg-ochre { background: var(--ochre); }
.bg-vine { background: var(--vine); }
.aplat-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.b-aplat .h b { color: var(--sun); }
.bg-river .h b, .bg-ochre .h b { color: var(--ink); }
.aplat-body { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: rgba(255, 255, 255, 0.92); }
.aplat-body p + p { margin-top: 18px; }
.aplat-list li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.aplat-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.aplat-list b { display: block; font-weight: 600; color: var(--sun); margin-bottom: 4px; }
.signs { counter-reset: s; }
.signs li { counter-increment: s; display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); font-size: clamp(1.05rem, 1.45vw, 1.25rem); }
.signs li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.signs li::before { content: "✓"; color: var(--sun); font-weight: 600; }

.b-steps { padding: var(--space) 0; }
.steps-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.steps-grid .h { position: sticky; top: calc(var(--header-h) + 40px); }
.steps { counter-reset: st; padding: 0; list-style: none; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--hair-ink); }
.steps li:first-child { border-top: 1px solid var(--hair-ink); }
.steps li::before { content: counter(st); grid-row: span 2; font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--river); }
.steps li:nth-child(2)::before { color: var(--vine); }
.steps li:nth-child(3)::before { color: var(--ochre); }
.steps li:nth-child(4)::before { color: var(--sun); }
.steps h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

.b-duo { padding: calc(var(--space) * .8) 0; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.duo-item:nth-child(2) { margin-top: 110px; }
.duo-h { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--c); margin-bottom: 22px; }
.duo-item p { color: var(--ink-soft); max-width: 32em; }

.b-words { padding: calc(var(--space) * .7) 0 0; }
.b-words .words { margin-top: 0; }

/* ---------- Page contact ---------- */
.b-quiz { padding: var(--space) 0; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.quiz-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.quiz-intro .h { margin-bottom: 22px; }
.quiz-intro p { color: var(--ink-soft); max-width: 26em; }
.quiz-box { display: grid; gap: 28px; }
.quiz { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; border-top: 1px solid var(--hair-ink); }
.quiz li { counter-increment: q; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--hair-ink); font-size: 1.08rem; line-height: 1.55; font-weight: 400; }
.quiz li::before { content: counter(q); color: var(--ochre); font-weight: 600; font-size: 1.3rem; }
.quiz li .yn { grid-column: 2; display: flex; gap: 8px; margin-top: 10px; }
.yn button { font: 400 0.9rem/1 var(--font); padding: 11px 22px; border-radius: 999px; border: 1px solid var(--hair-ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.yn button:hover { border-color: var(--river); color: var(--river); }
.yn button[aria-pressed="true"] { background: var(--river); border-color: var(--river); color: var(--white); }
.quiz-result { background: var(--slate); color: var(--white); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.quiz-result .progress { color: var(--soft); }
.quiz-result .head { font-size: 1.15rem; line-height: 1.5; }
.quiz-result .head b { color: var(--sun); font-weight: 600; }
.quiz-result .sub { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); }
.quiz-result ul { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 10px; color: var(--soft); }
.quiz-result li::marker { color: var(--sun); }
.quiz-result a:not(.btn) { color: var(--sun); }
.quiz-result .note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.b-direct { padding: var(--space) 0; }
.direct-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.direct-grid .h { margin-bottom: 24px; }
.direct li { display: grid; gap: 2px; padding: 22px 0; border-bottom: 1px solid var(--hair-ink); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 400; }
.direct li:first-child { border-top: 1px solid var(--hair-ink); }
.direct span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--river); }

@media (max-width: 960px) {
  .cards, .duo-grid, .split-grid, .retenir-grid, .aplat-grid, .steps-grid, .quiz-grid, .direct-grid { grid-template-columns: 1fr; }
  .cards li:nth-child(n), .duo-item:nth-child(2) { margin-top: 0; }
  .side-right .split-photo { order: 0; }
  .steps-grid .h, .quiz-intro { position: static; }
}
@media (max-width: 640px) {
  .split-photo, .side-right .split-photo { box-shadow: 12px 12px 0 var(--c); }
  .b-full { min-height: 80vh; }
  .full-shade, .align-right .full-shade { background: rgba(20, 32, 42, 0.62); }
}

/* ---------- Exemple de démarche ---------- */
.b-case { background: var(--ivory); padding: var(--space) 0; }
.b-case .h { max-width: 13em; margin-bottom: 64px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.case-col { background: var(--paper); border-top: 4px solid var(--c); padding: 32px 30px 36px; }
.case-col:nth-child(2) { margin-top: 50px; }
.case-col:nth-child(3) { margin-top: 100px; }
.case-col h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--c); margin-bottom: 12px; }
.case-col p { color: var(--ink-soft); }
.case-note { margin-top: 56px; font-size: 0.92rem; color: var(--ink-soft); font-style: italic; max-width: 46em; }
.b-direct + .b-quiz { padding-top: calc(var(--space) * .6); }
.b-direct { padding-bottom: calc(var(--space) * .6); }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } .case-col:nth-child(n) { margin-top: 0; } }

/* ---------- Les actus : carrousel de l'accueil ---------- */
.s-actus { padding: var(--space) 0 calc(var(--space) * .8); overflow: hidden; }
.actus-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.actus-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.arrows { display: flex; gap: 10px; }
.arrow-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hair-ink); background: transparent; color: var(--ink); font: 400 1.2rem/1 var(--font); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s; }
.arrow-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.arrow-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); border-color: var(--hair-ink); }
.actus-track { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; gap: clamp(24px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 0 var(--edge) 70px; scrollbar-width: none; }
.actus-track::-webkit-scrollbar { display: none; }
.actus-track:focus-visible { outline-offset: -2px; }
.actus-track .actu-card { flex: 0 0 min(560px, 78vw); scroll-snap-align: start; }
.actus-track .actu-card:nth-child(even) { margin-top: 60px; }

.actu-card a { display: block; text-decoration: none; }
.actu-photo { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 22px; border-bottom: 4px solid var(--c); }
.actu-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.actu-card a:hover .actu-photo img { transform: scale(1.05); }
.actu-date { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card-flag { font-size: 0.75rem; font-weight: 600; color: var(--ochre); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.actu-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; text-wrap: balance; }
.actu-card a:hover h3 { color: var(--c); }
.actu-lead { color: var(--ink-soft); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Page des actus ---------- */
.actus-intro { padding: calc(var(--header-h) + clamp(60px, 9vw, 130px)) 0 clamp(60px, 8vw, 110px); background: var(--slate); color: var(--white); margin-bottom: 70px; }
.actus-intro .display b { color: var(--sun); }
.actus-intro .lead { color: var(--soft); }
.actus-intro .display { margin-bottom: 26px; }
.actus-list { padding: 20px 0 var(--space); }
.actus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 56px 40px; align-items: start; }
.actus-grid .actu-card:nth-child(3n+2) { margin-top: 60px; }
.site-header.on-light:not(.solid) { color: var(--ink); }

/* ---------- Article ---------- */
.hero-article { min-height: 72svh; }
.hero-article .display { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.crumbs { font-size: 0.9rem; color: var(--soft); margin-bottom: 18px; }
.crumbs a { color: var(--sun); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-wrap { max-width: 820px; padding-block: clamp(60px, 8vw, 110px); }
.fiction-note { background: var(--ivory); border-left: 4px solid var(--ochre); padding: 16px 22px; font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 40px; font-style: italic; }
.article-lead { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.6; font-weight: 400; margin-bottom: 50px; text-wrap: pretty; }
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 54px 0 18px; color: var(--river); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--ink-soft); margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 4px; }
.article-body ol { counter-reset: n; }
.article-body li { position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--hair-ink); color: var(--ink-soft); }
.article-body li b { color: var(--ink); font-weight: 600; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--vine); }
.article-body ol li { counter-increment: n; }
.article-body ol li::before { content: counter(n); position: absolute; left: 0; top: 10px; font-weight: 600; font-size: 1.15rem; color: var(--ochre); }
.article-body h2 + ol li:first-child, .article-body h2 + ul li:first-child { border-top: 1px solid var(--hair-ink); }
.box { background: var(--slate); color: var(--white); padding: clamp(26px, 3.5vw, 40px); margin: 40px 0; }
.box .box-h { font-weight: 600; color: var(--sun); font-size: 1.15rem; margin-bottom: 10px; }
.box p { color: var(--soft); margin: 0; }
.article-sign { margin-top: 50px; font-weight: 600; }
.actus-more { padding: calc(var(--space) * .6) 0 var(--space); background: var(--ivory); }
.actus-more .h { margin-bottom: 56px; }
.actus-more .actus-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.actus-more .actu-card:nth-child(2) { margin-top: 60px; }
@media (max-width: 960px) { .actus-grid .actu-card:nth-child(n), .actus-more .actu-card:nth-child(2), .actus-track .actu-card:nth-child(even) { margin-top: 0; } }
