/* stackfetch : feuille de style unique. Aucun style inline dans le HTML. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/GeistVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMonoVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --carbon: #242423;
  --carbon-soft: #333533;
  --sun: #F5CB5C;
  --sun-hover: #EFC14E;
  --sun-dark: #B8912F;
  --linen: #E8EDDF;
  --sage: #CFDBD5;
  --ink: #242423;
  --muted: #33353b;
  --muted-2: rgba(51, 53, 51, 0.6);
  --line: rgba(51, 53, 51, 0.16);
  --line-strong: rgba(51, 53, 51, 0.28);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sun); color: var(--carbon); }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-rdv { width: min(100% - 3rem, 1080px); }

a { color: var(--carbon); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -0.025em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.8vw, 3.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 600; letter-spacing: -0.02em; }

.mark {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 5px;
  text-underline-offset: 7px;
}

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 1rem;
}
.kicker-dot { width: 8px; height: 8px; background: var(--sun); border-radius: 2px; flex: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--carbon); color: var(--sun);
  padding: .7rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 2px; border-radius: 4px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; border-radius: 11px; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  cursor: pointer; transition: background .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--sun); color: var(--carbon); box-shadow: 0 6px 18px rgba(36, 36, 35, .08); }
.btn-primary:hover { background: var(--sun-hover); color: var(--carbon); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--carbon); background: transparent; }
.btn-ghost:hover { border-color: var(--sun); background: rgba(245, 203, 92, .18); }
.btn-outline { border-color: var(--line-strong); color: var(--carbon); background: transparent; padding: .8rem 1.5rem; }
.btn-outline:hover { background: var(--sun); border-color: var(--sun); }
.btn-block { width: 100%; }

/* En-tête / navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 237, 223, .82);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid rgba(51, 53, 51, .09);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100% - 3rem, var(--wrap)); margin-inline: auto; padding: .85rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; }
.brand-mark { display: block; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-name { font-family: var(--mono); font-weight: 600; font-size: 1.2rem; color: var(--carbon); letter-spacing: -.02em; }
.brand-accent { color: var(--sun); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav-links a { color: var(--carbon); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover:not(.nav-cta) { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta { background: var(--sun); color: var(--carbon); padding: .6rem 1.15rem; border-radius: 9px; font-weight: 600; }
.nav-cta:hover { background: var(--sun-hover); }
.nav-back { color: var(--carbon); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-back:hover { color: var(--sun-dark); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--carbon); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { border-top: 1px solid rgba(51, 53, 51, .09); padding: .6rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a { color: var(--carbon); text-decoration: none; font-size: 1rem; font-weight: 500; padding: .8rem .4rem; border-radius: 9px; }
.nav-mobile a:hover { background: rgba(207, 219, 213, .4); }
.nav-mobile .nav-cta { background: var(--sun); text-align: center; margin-top: .6rem; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--carbon-soft); max-width: 56ch; margin: 1.6rem 0 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 1rem; }
.hero-note { font-family: var(--mono); font-size: .82rem; color: var(--muted-2); margin: 0; }
.hero-art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-art img { width: min(100%, 520px); height: auto; }

/* Marquee technologies */
.trust { background: var(--sage); padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.trust-label { text-align: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--carbon-soft); margin: 0 0 clamp(1.6rem, 4vw, 2.5rem); padding: 0 1.5rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(2.75rem, 5.5vw, 4.8rem); padding-right: clamp(2.75rem, 5.5vw, 4.8rem); margin: 0; list-style: none; flex: none; }
.tech { display: flex; align-items: center; gap: .7rem; white-space: nowrap; color: var(--carbon-soft); }
.tech img { height: 26px; width: auto; opacity: .78; }
.tech span { font-size: 1.55rem; font-weight: 650; letter-spacing: -.01em; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Services */
.services { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.services-head { margin-bottom: clamp(3.5rem, 7vw, 5.75rem); max-width: 640px; }
.services-head h2 { margin: 0; }
.service-row {
  display: grid; gap: clamp(2.25rem, 5vw, 5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}
.service-row + .service-row { margin-top: clamp(4.5rem, 9vw, 7.25rem); }
.service-copy h3 { margin: .9rem 0 1rem; }
.service-copy > p { font-size: 1.03rem; line-height: 1.7; color: var(--carbon-soft); max-width: 58ch; margin: 0 0 1.75rem; text-wrap: pretty; }
.service-note { font-size: .82rem; color: var(--muted-2); margin: .7rem 0 0; }
.service-art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.service-art img { width: min(100%, 440px); height: auto; }

/* Section « pourquoi nous » */
.why { background: var(--carbon); color: var(--linen); padding: clamp(5rem, 10vw, 8.5rem) 0; }
.why-title { color: var(--linen); max-width: 780px; margin: 0 0 clamp(3rem, 6vw, 4.5rem); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.why-title .mark { text-decoration-thickness: 4px; text-underline-offset: 8px; }
.why-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-card { background: rgba(232, 237, 223, .05); border: 1px solid rgba(232, 237, 223, .13); border-radius: 18px; padding: 1.9rem 1.65rem; transition: border-color .3s ease; }
.why-card:hover { border-color: rgba(232, 237, 223, .32); }
.why-bar { display: block; width: 26px; height: 3px; background: var(--sun); border-radius: 2px; margin-bottom: 1.4rem; }
.why-card h3 { font-size: 1.15rem; color: var(--linen); margin: 0 0 .75rem; letter-spacing: -.01em; }
.why-card p { margin: 0; font-size: .95rem; line-height: 1.65; color: rgba(232, 237, 223, .68); text-wrap: pretty; }

/* Section rendez-vous */
.rdv { background: var(--carbon); color: var(--linen); padding: clamp(4.5rem, 9vw, 8rem) 0; border-top: 1px solid rgba(232, 237, 223, .1); }
.rdv-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.rdv-head h2 { color: var(--linen); margin: 0; }
.rdv-head p { margin: 1.1rem auto 0; font-size: 1.03rem; line-height: 1.7; color: rgba(232, 237, 223, .72); max-width: 62ch; text-wrap: pretty; }
.rdv-head strong { color: var(--linen); }
.rdv-form { background: var(--linen); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); }
.rdv-grid { display: grid; gap: clamp(1.75rem, 4.5vw, 3.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rdv-col { display: flex; flex-direction: column; gap: 1rem; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: rgba(207, 219, 213, .18); }
fieldset.field > legend { font-weight: 600; padding: 0 .4rem; font-size: .95rem; }
label { font-weight: 540; font-size: .95rem; }
.optional { color: var(--muted-2); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: rgba(207, 219, 213, .3);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .75rem .9rem; width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(51, 53, 51, .5); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun); }
textarea { resize: vertical; }
.field-hint { margin: .5rem 0 0; font-size: .85rem; color: var(--muted-2); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400; font-size: .92rem; }
.consent input { margin-top: .25rem; }

.rdv-status { min-height: 1.4rem; margin: 0; font-weight: 560; }
.rdv-status.ok { color: #1f6b2e; }
.rdv-status.err { color: #a12626; }
.pow-note { font-size: .8rem; color: var(--muted-2); margin: 0; }

/* Calendrier */
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.cal-title { font-weight: 650; text-transform: capitalize; }
.cal-nav { font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; background: transparent; border: 1px solid var(--line-strong); border-radius: 9px; width: 2.2rem; height: 2.2rem; color: var(--carbon); transition: background .2s ease, border-color .2s ease; }
.cal-nav:hover { background: var(--sun); border-color: var(--sun); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-dow { min-width: 0; text-align: center; font-size: .68rem; color: var(--muted-2); padding: .2rem 0; font-family: var(--mono); letter-spacing: .04em; overflow: hidden; }
.cal-day { min-width: 0; font: inherit; aspect-ratio: 1; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.cal-day:hover:not([disabled]) { border-color: var(--sun); background: rgba(245, 203, 92, .18); }
.cal-day[disabled] { color: rgba(51, 53, 51, .32); border-color: transparent; cursor: not-allowed; }
.cal-day.selected { background: var(--sun); color: var(--carbon); border-color: var(--sun); font-weight: 650; }
.cal-empty { min-width: 0; aspect-ratio: 1; }

/* Créneaux */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { min-width: 0; font: inherit; cursor: pointer; text-align: center; padding: .6rem .5rem; background: rgba(207, 219, 213, .35); border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); transition: background .2s ease, border-color .2s ease; }
.slot:hover { border-color: var(--sun); }
.slot[aria-checked="true"] { background: var(--sun); color: var(--carbon); border-color: var(--sun); font-weight: 650; }

/* FAQ */
.faq { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.faq-grid { display: flex; flex-wrap: wrap; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: flex-start; }
.faq-head { flex: 1 1 240px; min-width: 0; }
.faq-head h2 { margin: 0; }
.faq-list { flex: 2 1 480px; min-width: 0; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; padding: 1.35rem .1rem; font-size: 1.03rem; font-weight: 600; letter-spacing: -.01em; list-style: none; text-wrap: balance; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--carbon-soft); transition: transform .3s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 2.6rem 1.6rem .1rem; font-size: .97rem; line-height: 1.72; color: var(--carbon-soft); text-wrap: pretty; }

/* Pied de page */
.site-footer { background: var(--carbon); color: var(--linen); padding: clamp(3.5rem, 7vw, 5.25rem) 0 2.25rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.75rem clamp(2.5rem, 6vw, 5.5rem); }
.footer-brand { flex: 1 1 260px; }
.footer-brand .brand-name { color: var(--linen); }
.footer-tagline { margin: .9rem 0 0; font-size: .9rem; color: rgba(232, 237, 223, .55); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.75rem clamp(3rem, 6vw, 5.5rem); }
.footer-cols ul { display: flex; flex-direction: column; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: rgba(232, 237, 223, .72); text-decoration: none; font-size: .88rem; transition: color .25s ease; }
.footer-cols a:hover { color: var(--sun); }
.footer-bottom { margin-top: clamp(2.75rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(232, 237, 223, .12); }
.footer-bottom span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: rgba(232, 237, 223, .45); }

/* Pages de contenu (légal) */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--sun-dark); }
.doc .todo { background: #fff6da; border: 1px solid var(--sun); border-radius: 8px; padding: .2rem .5rem; font-family: var(--mono); font-size: .85rem; }

/* Révélations au scroll, neutralisées si prefers-reduced-motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-group[aria-hidden="true"] { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .service-row-alt .service-art { order: 2; }
}
@media (min-width: 861px) {
  .nav-mobile { display: none; }
}
