/* Maëlle Guillot — feuille de style unique du site.
   Les variables reprennent design-system/tokens.json. Tailles de texte en rem (zoom et agrandissement du texte à 200 %). */

/* Polices auto-hébergées (aucune requête vers Google : conforme RGPD).
   Bricolage Grotesque : titres et marque. Figtree : tout le reste du texte. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

:root {
  --nuit: #1C1240;
  --nuit-deep: #0F0A26;
  --nuit-raised: #2A2152;
  --peche: #FFF4EC;
  --surface: #FFFDFA;
  --blanc: #FFFFFF;
  --lilas: #CDBBFF;
  --lilas-pale: #E4DBFF;
  --soleil: #FFD23F;
  --soleil-doux: #FFE9A3;
  --tomate: #FF5A36;
  --corail-doux: #FFD0C4;
  --ciel: #D7EEFF;
  --encre-douce: #4B4372;
  --font-sans: "Figtree", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --lift-sm: 4px 4px 0 var(--nuit);
  --lift-md: 8px 8px 0 var(--nuit);
  --lift-on-dark: 4px 4px 0 var(--soleil);
  --stroke: 2px;
  --focus: 3px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 96px);
  --bar-h: 80px;              /* hauteur de la barre de navigation fixe */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--peche);
  color: var(--nuit);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
main { display: block; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; text-wrap: balance; }
/* Éléments de marque et chiffres mis en avant : même police que les titres */
.brand, .stat__num, .pbadge, .step-num { font-family: var(--font-display); }
[id] { scroll-margin-top: 24px; }
/* Barre fixe : les ancres et le focus clavier ne passent jamais dessous (WCAG 2.4.11) */
html { scroll-padding-top: var(--bar-h); }

a { color: var(--nuit); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }

/* Focus visible : 3 px, nuit sur clair, soleil sur nuit, décalé de 4 px */
:focus-visible { outline: var(--focus) solid var(--nuit); outline-offset: 4px; }
:where(a, button, summary, [tabindex]):focus-visible { border-radius: var(--radius-md); }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }

.on-dark { background: var(--nuit); color: var(--peche); }
.on-dark :focus-visible { outline-color: var(--soleil); }
.on-dark a:not(.btn) { color: var(--peche); }
.on-dark a:not(.btn):hover { color: var(--soleil); }

.sr-only, .sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 200;
  padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--nuit); color: var(--peche); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; gap: 48px; }
.h-section { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.eyebrow { font-size: .875rem; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; }
.measure { max-width: 760px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }
.pb-section { padding-bottom: var(--section-y); }
.stack--tight { gap: 24px; }

/* ---------- En-tête ---------- */
/* Barre de navigation fixe en haut de l'écran (pleine largeur, fond pêche) */
.site-bar { position: sticky; top: 0; z-index: 100; background: var(--peche); transition: box-shadow .2s ease; }
.site-bar.is-stuck { box-shadow: 0 var(--stroke) 0 var(--nuit); }
/* Menu burger ouvert plus haut que l'écran (téléphone à l'horizontale) : il défile */
.site-bar:has(.is-open) { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 4px 24px; min-height: 80px; padding-block: 16px;
}
.brand {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none;
}
.nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; column-gap: clamp(16px, 3vw, 32px); row-gap: 8px;
  font-weight: 600;
}
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 4px; }
.nav a[aria-current="page"] { text-decoration-thickness: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 24px; border-radius: var(--radius-pill);
  border: var(--stroke) solid var(--nuit);
  font: 600 1.125rem/1.3 var(--font-sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s var(--ease-pop), box-shadow .25s ease-out;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--lift-sm); }
.btn:active { transform: none; box-shadow: none; }
.btn--primary { background: var(--nuit); color: var(--peche); }
.btn--secondary { background: transparent; color: var(--nuit); }
.on-dark .btn { border-color: var(--soleil); }
.on-dark .btn:hover, .on-dark .btn:focus-visible { box-shadow: var(--lift-on-dark); }
.btn--accent { background: var(--soleil); color: var(--nuit); }
.btn--outline-dark { background: transparent; color: var(--peche); }
.arr { display: inline-block; transition: transform .25s var(--ease-pop); }
.btn:hover .arr, .btn:focus-visible .arr, .card:hover .arr, .card:focus-visible .arr { transform: translateX(4px); }

/* ---------- Accueil : premier écran ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 48px var(--section-y); }
.hero__text { flex: 7 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__intro { display: flex; flex-direction: column; gap: 24px; }
.hero__title { display: flex; flex-direction: column; gap: 16px; }
.hero__name { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.hero__tag {
  align-self: flex-start; padding: 4px 16px; border-radius: var(--radius-md); background: var(--soleil);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.3; letter-spacing: -.02em; transform: rotate(-1deg);
}
.hero__lead { max-width: 600px; color: var(--encre-douce); }
.hero__visual { flex: 5 1 300px; display: flex; justify-content: center; }
.portrait { position: relative; width: 100%; max-width: 400px; }
.portrait::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: var(--lilas); transform: translate(16px, 16px) rotate(3deg);
}
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-xl); border: var(--stroke) solid var(--nuit); background: var(--surface);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__shape {
  position: absolute; left: -16px; bottom: 32px; width: 72px; height: 72px;
  border-radius: 20px; background: var(--tomate); transform: rotate(-12deg);
}

/* Références */
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 16px;
}
.logos li {
  min-height: 80px; padding: 8px 16px; border-radius: var(--radius-md); background: var(--surface);
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600;
}
.logos img { width: auto; height: 36px; max-width: 100%; object-fit: contain; }

/* Le constat */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > h2 { flex: 1 1 280px; }
.split__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.text-lg { display: flex; flex-direction: column; gap: 16px; font-size: 1.25rem; }
.hl { color: var(--soleil); }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--nuit-raised); }
.callout p { font-size: 1.375rem; font-weight: 800; color: var(--lilas); }

/* ---------- Cartes projet ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.arrows { display: flex; gap: 12px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; border: var(--stroke) solid var(--nuit);
  background: var(--surface); color: var(--nuit); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .25s var(--ease-pop), box-shadow .25s ease-out;
}
.arrow:hover, .arrow:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--lift-sm); background: var(--soleil); }
.scroller {
  list-style: none; margin: -8px -16px -24px -8px; padding: 8px 16px 24px 8px;
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 8px;
  scrollbar-color: var(--nuit) var(--lilas-pale);
}
.scroller > li { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }
.project-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 32px 24px;
}

.card {
  display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 24px;
  border-radius: var(--radius-lg); border: var(--stroke) solid var(--nuit); background: var(--surface);
  color: var(--nuit); text-decoration: none;
  transition: transform .3s var(--ease-pop), box-shadow .3s ease-out;
}
.card:hover, .card:focus-visible { transform: translate(-4px, -4px); box-shadow: var(--lift-md); }
.card__title { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.01em; }
.card__desc { color: var(--encre-douce); }
.scroller .card__desc { display: none; } /* masquée sur l'accueil, à la demande de Maëlle */

.viz { height: 248px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viz--corail { background: var(--corail-doux); }
.viz--lilas { background: var(--lilas); }
.viz--soleil { background: var(--soleil-doux); }
.viz--ciel { background: var(--ciel); }
.mphone {
  flex-shrink: 0; width: 124px; height: 232px; padding: 6px; border-radius: 24px; background: var(--nuit);
  box-shadow: 6px 6px 0 rgba(28, 18, 64, .25); transition: transform .4s var(--ease-pop);
}
.mscreen { flex-shrink: 0; position: relative; width: 112px; height: 220px; border-radius: 18px; overflow: hidden; background: var(--surface); }
.track { display: flex; width: 224px; height: 100%; }
.page { width: 112px; height: 100%; padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.page--img { padding: 0; }
.page--img img { width: 112px; height: 220px; object-fit: cover; object-position: top; }
.sk { border-radius: 6px; background: var(--lilas-pale); }
.tap {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: rgba(255, 90, 54, .55); border: 2px solid var(--tomate); opacity: 0;
}
.card:hover .mphone, .card:focus-visible .mphone { transform: translateY(-6px) rotate(-2deg); }
.card:hover .track, .card:focus-visible .track { animation: navSlide 4.5s ease-in-out infinite; }
.card:hover .tap, .card:focus-visible .tap { animation: tap 4.5s ease-in-out infinite; }
@keyframes navSlide { 0%, 28% { transform: translateX(0); } 40%, 80% { transform: translateX(-112px); } 92%, 100% { transform: translateX(0); } }
@keyframes tap { 0%, 12% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1); } 30%, 100% { opacity: 0; transform: scale(1.4); } }

/* Tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 2px 10px; border: 2px solid transparent; border-radius: var(--radius-pill); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.tags .dom { background: var(--lilas); }
.tags .dom--saas { background: var(--soleil); }
.tags .goal { background: var(--surface); border-color: var(--nuit); }

/* ---------- Offres ---------- */
.offers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px;
}
.offer { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 32px); border-radius: var(--radius-lg); background: var(--nuit-raised); }
.offer h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.offer p, .offer ul { color: var(--lilas-pale); }
.offer strong { color: var(--peche); }
.offer ul { flex: 1; margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.offer .btn { align-self: flex-start; }
.offer--main { background: var(--soleil); color: var(--nuit); }
.offer--main p, .offer--main ul, .offer--main strong { color: var(--nuit); }
.offer--main .btn { border-color: var(--nuit); }
.offer--main .btn:hover, .offer--main .btn:focus-visible { box-shadow: var(--lift-sm); }
.offer--main :focus-visible { outline-color: var(--nuit); } /* le contour soleil serait invisible sur fond soleil */

/* ---------- Approche ---------- */
.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px;
}
.principle { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: var(--stroke) solid var(--nuit); }
.principle h3 { font-size: 1.375rem; line-height: 1.3; }
.pbadge {
  width: 48px; height: 48px; border: var(--stroke) solid var(--nuit); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.375rem; font-weight: 800;
}
.bg-soleil { background: var(--soleil); }
.bg-tomate { background: var(--tomate); }
.bg-lilas { background: var(--lilas); }

/* ---------- Contact ---------- */
.contact { padding-bottom: var(--section-y); }
.more + .contact { padding-top: var(--section-y); }  /* espace avant le contact sur les études de cas */
.contact__panel {
  display: flex; flex-direction: column; gap: 48px; padding: clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl); background: var(--surface); border: var(--stroke) solid var(--nuit);
}
.contact__intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.contact__intro p { font-size: 1.25rem; }
.contact__row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.steps { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.steps h3 { font-size: 1.375rem; line-height: 1.3; }
.steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.booking {
  flex: 2 1 520px; min-width: 0; min-height: 320px; padding: 24px;
  border-radius: var(--radius-lg); border: 2px dashed var(--encre-douce);
  display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; text-align: center; color: var(--encre-douce);
}
.booking p { font-size: 1rem; max-width: 46ch; }
.booking[data-state="loaded"] { display: block; padding: 0; border: var(--stroke) solid var(--nuit); overflow: hidden; }
.booking [hidden] { display: none; }
.booking__cal { width: 100%; min-height: 560px; }

.form { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--lilas); }
.form h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: var(--stroke) solid var(--nuit); background: var(--surface); color: var(--nuit);
  font: 400 1.125rem/1.5 var(--font-sans);
}
.field textarea { min-height: 144px; resize: vertical; }
.field [aria-invalid="true"] { border-width: 3px; }
.field__error { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.field__error[hidden] { display: none; }
.field__error svg { flex-shrink: 0; margin-top: 4px; }
.form__note { font-size: .875rem; line-height: 1.5; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: var(--stroke) solid var(--nuit); font-weight: 600; }
.form-status:empty { padding: 0; border: 0; }  /* vide mais présent : les lecteurs d'écran annoncent le message */
.form-status--error { display: flex; gap: 8px; align-items: flex-start; border-width: 3px; }
.form-status--error svg { flex-shrink: 0; margin-top: 4px; }
.form-status a { font-weight: 700; }
.hp { display: none !important; }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer .brand { font-size: 1.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { font-size: .875rem; }

/* ---------- Pages simples (à propos, mentions, projets à venir) ---------- */
.page-hero { padding-block: 48px clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.page-title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); line-height: 1.1; letter-spacing: -.035em; }
.page-title--md { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal { max-width: 760px; padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 40px; }
.legal h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.notice { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 2px dashed var(--encre-douce); }

/* ---------- Étude de cas ---------- */
.cs-hero { overflow: hidden; }
.cs-hero__eyebrow { color: var(--lilas); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: var(--stroke) solid var(--nuit); background: var(--peche); color: var(--nuit);
  font: 600 .875rem/1.3 var(--font-sans); cursor: pointer;
}
.toggle:hover { background: var(--soleil); }

.cs-layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
.cs-aside { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 24px; }
.cs-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 80px); }
/* Ordinateur : la colonne de gauche (fiche projet + sommaire) reste visible au défilement.
   Si elle est plus haute que l'écran, elle défile seule pour que rien ne soit inaccessible. */
@media (min-width: 980px) {
  .cs-aside { position: sticky; top: calc(var(--bar-h) + 24px); max-height: calc(100vh - var(--bar-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px; margin: -4px; }
}
.facts { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--nuit); color: var(--peche); }
.facts dt { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dt, var(--lilas)); }
.facts dd { margin-top: 4px; }

.toc { border-radius: var(--radius-lg); background: var(--surface); border: var(--stroke) solid var(--nuit); padding: 8px; }
.toc summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none;
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce);
}
.toc summary::-webkit-details-marker { display: none; }
.toc .chev { transition: transform .2s ease; }
.toc details[open] .chev { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.toc a:hover, .toc a:focus-visible { background: var(--nuit); color: var(--peche); }
.toc a:hover .num, .toc a:focus-visible .num { color: var(--lilas); }
.toc .num { font-size: .875rem; color: var(--encre-douce); width: 24px; flex-shrink: 0; }

.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }

/* Care.com, audit annoté : le trait part du point et va jusqu'au-delà de la capture, pour que le texte ne la recouvre pas */
@container (min-width: 680px) {
  .audit .note.right .line { min-width: calc(var(--w) * (100 - var(--x)) / 100 + 16px); }
  .audit .note.left .line { min-width: calc(var(--w) * var(--x) / 100 + 16px); }
  .audit .note .txt { flex: 0 1 200px; }
  /* texte au-dessus du trait (translate, et non transform, pour ne pas gêner l'animation d'apparition) */
  .audit .note.note--up { align-items: flex-end; translate: 0 calc(-100% + 24px); }
  .audit .note.note--up .line { margin-top: 0; margin-bottom: 11px; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 979px) {
  .cs-aside { max-width: none; flex-basis: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .wide { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .facts { grid-template-columns: 1fr; }
  .site-header { padding-block: 12px; }
  .nav { font-size: 1rem; }
}

/* ---------- Préférences utilisateur ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .tags li, .offer, .callout, .stat, .logos li, .viz, .pbadge, .step-num, .hero__tag { border: 1px solid CanvasText; }
  .btn, .arrow, .card { forced-color-adjust: auto; }
}
@media print {
  .site-bar, .cs-aside { position: static !important; box-shadow: none !important; }
  .site-header nav, .menu-toggle, .skip, .arrows, .toggle, .booking, .form, .cs-hero__visual { display: none !important; }
  .on-dark { background: none; color: #000; }
  body { background: #fff; }
}

/* ---------- Ajouts : version anglaise et sélecteur de langue ---------- */
.pt-0 { padding-top: 0; }
.site-header .brand { margin-right: auto; }
/* Menu burger : tablette et mobile (moins de 1024 px) */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: var(--stroke) solid var(--nuit); border-radius: var(--radius-pill);
  background: transparent; color: var(--nuit); font: 600 1rem/1 var(--font-sans); cursor: pointer;
}
.menu-toggle:hover { background: var(--lilas); }
.menu-toggle[aria-expanded="true"] { background: var(--nuit); color: var(--peche); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
@media (max-width: 1023px) {
  .main-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 8px 16px; border-top: var(--stroke) solid var(--nuit); }
  .site-header.is-open .main-menu { display: flex; }
  .main-nav { width: 100%; }
  .main-nav .nav { flex-direction: column; gap: 0; }
  .main-nav .nav a { display: flex; min-height: 56px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-menu { display: flex; align-items: center; gap: 24px; }
}
.lang {
  display: inline-flex; gap: 4px; padding: 2px; border: var(--stroke) solid var(--nuit); border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 800;
}
.lang a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); text-decoration: none;
}
.lang a:hover { background: var(--lilas); }
.lang a[aria-current="true"] { background: var(--nuit); color: var(--peche); }
@media (forced-colors: active) { .lang a[aria-current="true"] { border: 2px solid CanvasText; } }


/* ---------- Études de cas : bloc « More case studies » ---------- */
.stack--xs { gap: 8px; }
.more-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px;
}
.on-dark a.more-card {
  display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 24px;
  border-radius: var(--radius-lg); background: var(--peche); color: var(--nuit); text-decoration: none;
  transition: transform .25s var(--ease-pop), box-shadow .25s ease-out;
}
.on-dark a.more-card:hover, .on-dark a.more-card:focus-visible { color: var(--nuit); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--soleil); }
.more-card__bar { height: 8px; border-radius: var(--radius-pill); }
.more-card .tags li { background: var(--lilas-pale); }
.more-card__title { font-size: 1.375rem; line-height: 1.25; }
.more-card__go { margin-top: auto; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.viz--art { padding: 16px; }
.viz--art img { width: auto; height: 100%; object-fit: contain; transition: transform .4s var(--ease-pop); }
.card:hover .viz--art img, .card:focus-visible .viz--art img { transform: translateY(-6px) rotate(-2deg); }

/* ---------- Cartes projets : un écran fixe par carte (export du 4 nov.) ---------- */
.mscreen > img.one { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-grid .card .desc { display: block; }
.tags li { border-width: 0; }
.tags .goal { box-shadow: inset 0 0 0 2px var(--nuit); }
.toggle svg { flex-shrink: 0; }

/* Pied de page : bouton « Cookie settings » (Cookiebot), même apparence que les liens */
.footer-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--peche); font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer;
}
.footer-btn:hover { color: var(--soleil); text-decoration-thickness: 3px; }
.footer-btn[hidden] { display: none; }

/* Agenda : message si le bandeau Cookiebot ne peut pas s'ouvrir */
.booking__note { margin: 0; font-weight: 600; color: var(--nuit); }

/* Pages légales : intertitres */
.legal h3 { font-size: 1.375rem; line-height: 1.3; margin-top: 16px; }
.legal h4 { font-size: 1.125rem; line-height: 1.4; margin-top: 8px; }
.legal code { font-size: .95em; }

/* ---------- Bandeau Cookiebot (modèle « Swift ») aux couleurs du site ----------
   Cookiebot injecte ses styles après les nôtres : « body » devant chaque sélecteur les rend prioritaires.
   « Deny » et « Allow all » ont le même poids visuel (exigence RGPD/TDDDG : refuser aussi facilement qu'accepter). */
body #CybotCookiebotDialog {
  font-family: var(--font-sans) !important; color: var(--nuit) !important; background: var(--peche) !important;
  border: var(--stroke) solid var(--nuit) !important; border-radius: var(--radius-lg) !important;
  box-shadow: var(--lift-md) !important; letter-spacing: 0 !important;
}
body #CybotCookiebotDialog h2, body #CybotCookiebotDialogBodyContentTitle {
  font-family: var(--font-display) !important; font-weight: 800 !important; letter-spacing: -.02em !important; color: var(--nuit) !important;
}
body #CybotCookiebotDialog .CybotCookiebotScrollContainer,
body #CybotCookiebotDialog #CybotCookiebotDialogHeader,
body #CybotCookiebotDialog #CybotCookiebotDialogNav,
body #CybotCookiebotDialog #CybotCookiebotDialogBodyLevelButtonsSelectPane,
body #CybotCookiebotDialog .CybotCookiebotDialogBodyLevelButtonWrapper { border-color: var(--lilas-pale) !important; }
body #CybotCookiebotDialog .CybotCookiebotFader { background-image: linear-gradient(0deg, var(--peche), transparent) !important; }
body #CybotCookiebotDialog a { color: var(--nuit) !important; text-decoration: underline !important; text-underline-offset: 3px; }
/* Onglets Consent / Details / About */
body #CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink { color: var(--encre-douce) !important; text-decoration: none !important; border-bottom-color: var(--lilas-pale) !important; }
body #CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink:hover,
body #CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink.CybotCookiebotDialogActive { color: var(--nuit) !important; border-bottom: 3px solid var(--nuit) !important; }
/* Interrupteurs : éteint = encre douce, allumé = nuit, désactivé (Necessary) = lilas */
body #CybotCookiebotDialog .CybotCookiebotDialogBodyLevelButtonSlider { background-color: var(--encre-douce) !important; }
body #CybotCookiebotDialog input:checked + .CybotCookiebotDialogBodyLevelButtonSlider { background-color: var(--nuit) !important; }
body #CybotCookiebotDialog form input[type=checkbox][disabled]:checked + .CybotCookiebotDialogBodyLevelButtonSlider { background-color: var(--lilas) !important; }
body #CybotCookiebotDialog form input[type=checkbox][disabled]:checked + .CybotCookiebotDialogBodyLevelButtonSlider::before { background-color: var(--nuit) !important; }
body #CybotCookiebotDialog .CybotCookiebotDialogBodyLevelButtonSlider::before { background-color: var(--surface) !important; }
/* Boutons : pilule du site. Deny et Allow all pleins (même poids), Allow selection en contour */
body #CybotCookiebotDialog .CybotCookiebotDialogBodyButton {
  font-family: var(--font-sans) !important; font-weight: 700 !important; font-size: 1rem !important;
  min-height: 48px !important; padding: 12px 24px !important; border-radius: var(--radius-pill) !important;
  border: var(--stroke) solid var(--nuit) !important; background: var(--nuit) !important; color: var(--peche) !important;
  transition: transform .2s var(--ease-pop), box-shadow .2s ease !important;
}
body #CybotCookiebotDialog #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection,
body #CybotCookiebotDialog #CybotCookiebotDialogBodyLevelButtonCustomize { background: transparent !important; color: var(--nuit) !important; }
body #CybotCookiebotDialog .CybotCookiebotDialogBodyButton:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-sm) !important; }
/* Focus clavier : Cookiebot supprime les contours (outline: 0) — on les rétablit (WCAG 2.4.7) */
body #CybotCookiebotDialog :focus-visible { outline: var(--focus) solid var(--nuit) !important; outline-offset: 3px !important; }
body #CybotCookiebotDialog .CybotCookiebotDialogBodyLevelButtonSliderWrapper:focus-within .CybotCookiebotDialogBodyLevelButtonSlider { outline: var(--focus) solid var(--nuit) !important; outline-offset: 3px !important; }
body #CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink:focus-visible { outline-offset: -5px !important; }
@media (prefers-reduced-motion: reduce) { body #CybotCookiebotDialog .CybotCookiebotDialogBodyButton { transition: none !important; } }

/* Accueil, mobile : les deux boutons du hero empilés ont la même largeur (celle du plus large) */
@media (max-width: 599px) {
  .hero-ctas { display: grid !important; justify-content: start; }
}
