/* =====================================================================
   Facil' — feuille de style du site public
   Les 4 couleurs de la charte (--cyan, --brown, --black, --white) sont
   définies dans /theme.php et modifiables depuis l'admin.
   ===================================================================== */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

:root {
  /* valeurs de secours si theme.php ne répond pas */
  --cyan: #1f9294; --brown: #7a4214; --black: #000000; --white: #ffffff;

  --cyan-deep: color-mix(in srgb, var(--cyan) 70%, var(--black));
  --cyan-tint: color-mix(in srgb, var(--cyan) 9%, var(--white));
  --cyan-soft: color-mix(in srgb, var(--cyan) 20%, var(--white));
  --brown-tint: color-mix(in srgb, var(--brown) 7%, var(--white));
  --ink: var(--black);
  --muted: color-mix(in srgb, var(--black) 70%, var(--white));
  --line: color-mix(in srgb, var(--black) 14%, var(--white));
  --field-border: color-mix(in srgb, var(--black) 50%, var(--white));
  --error: #b42318;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.35rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 800; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: var(--space); }
.section-title { color: var(--cyan-deep); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--cyan-deep); color: var(--white); padding: 0.6rem 1rem; border-radius: 0.4rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 2px solid var(--cyan-deep); border-radius: 0.6rem;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cyan-deep); color: var(--white); }
.btn-primary:hover { background: var(--brown); border-color: var(--brown); }
.btn-ghost { background: transparent; color: var(--cyan-deep); }
.btn-ghost:hover { background: var(--cyan-tint); }
.text-link { font-weight: 700; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.6rem; }
.brand img { height: 5.25rem; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.main-nav a {
  display: block; padding: 0.55rem 0.8rem; color: var(--ink); text-decoration: none;
  font-weight: 650; font-size: 1rem; border-radius: 0.4rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--cyan-tint); }
.main-nav a[aria-current="page"] { color: var(--cyan-deep); box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.main-nav .nav-contact { border: 2px solid var(--cyan-deep); color: var(--cyan-deep); margin-left: 0.5rem; }
.main-nav .nav-contact[aria-current="page"] { background: var(--cyan-deep); color: var(--white); box-shadow: none; border-radius: 0.4rem; }

@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0.25rem; padding-bottom: 0; }
  .brand { align-self: center; }
  .brand img { height: 4rem; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; padding-bottom: 0.6rem; gap: 0.15rem 0.1rem; }
  .main-nav a { font-size: 0.95rem; padding: 0.45rem 0.6rem; }
  .main-nav .nav-contact { margin-left: 0.25rem; }
}

/* ---------- Accueil : hero ---------- */
.hero { position: relative; overflow-x: clip; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { margin-bottom: 1.5rem; }
.hero-name {
  display: block; color: var(--cyan);
  font-size: clamp(4.25rem, 2rem + 9vw, 9rem); line-height: 0.9; letter-spacing: -0.03em;
}
.hero-tagline {
  display: block; margin-top: 0.9rem;
  font: 650 var(--step-2)/1.25 var(--sans); color: var(--brown); letter-spacing: 0;
}
.hero-intro { font-size: var(--step-1); max-width: 33em; }
.hero-intro p:first-child { font-size: var(--step-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.hero-photo {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 20%;
  border-radius: 999px 999px 1.5rem 1.5rem;
  background: var(--cyan-tint);
}
.hero-butterflies { position: absolute; width: 42%; top: -6%; right: -14%; pointer-events: none; }

.vine { display: block; width: 100%; height: auto; overflow: visible; }
.vine-stem { fill: none; stroke: var(--brown); stroke-width: 3; stroke-linecap: round; }
.vine .leaf path:first-child { fill: var(--white); stroke: var(--brown); stroke-width: 1.4; stroke-linejoin: round; }
.vine .rib { fill: none; stroke: var(--brown); stroke-width: 0.9; stroke-linecap: round; }
.vine-hero { margin-top: clamp(1rem, 3vw, 2.5rem); max-height: 9rem; }
.vine-divider { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }

@media (prefers-reduced-motion: no-preference) {
  .vine-hero .vine-stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 1.8s 0.2s cubic-bezier(.45,.05,.3,1) forwards; }
  .vine-hero .leaf { opacity: 0; animation: leaf-in 0.6s ease-out forwards; }
  .vine-hero .leaf-0 { animation-delay: 0.45s; } .vine-hero .leaf-1 { animation-delay: 0.6s; }
  .vine-hero .leaf-2 { animation-delay: 0.75s; } .vine-hero .leaf-3 { animation-delay: 0.95s; }
  .vine-hero .leaf-4 { animation-delay: 1.1s; }  .vine-hero .leaf-5 { animation-delay: 1.25s; }
  .vine-hero .leaf-6 { animation-delay: 1.45s; } .vine-hero .leaf-7 { animation-delay: 1.6s; }
  .vine-hero .leaf-8 { animation-delay: 1.75s; }
  .hero-butterflies { animation: flutter-in 1.2s 1.6s ease-out both; }
}
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes leaf-in { to { opacity: 1; } }
@keyframes flutter-in { from { opacity: 0; transform: translate(-18%, 12%) rotate(-6deg); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(78%, 20rem); order: -1; }
  .hero-butterflies { right: -18%; }
}

/* ---------- Accueil : promesses ---------- */
.promises { padding-top: calc(var(--space) * 0.6); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.promise { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: start; }
.promise img { width: 5.5rem; height: 5.5rem; object-fit: contain; }
.promise p { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; margin: 0; }

/* ---------- Accueil : pour qui (alvéoles) ---------- */
.audience { background: var(--cyan-tint); }
.audience-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.audience-text { max-width: 34em; }
.honeycomb {
  --hex: 10.5rem; --gap: 0.45rem;
  list-style: none; margin: 0; padding: 0 0 calc(var(--hex) * 0.433 + var(--gap)) 0;
  display: flex; flex-wrap: wrap; max-width: calc(var(--hex) * 3.25 + var(--gap) * 3 + 1px);
}
.honeycomb li {
  width: var(--hex); height: calc(var(--hex) * 0.866);
  margin-right: calc(var(--hex) * -0.25 + var(--gap));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--white); display: grid; place-items: center; text-align: center;
  padding: 0 1.9rem; font-weight: 750; font-size: 0.98rem; line-height: 1.25; color: var(--cyan-deep);
}
.honeycomb li:nth-child(even) { transform: translateY(calc(50% + var(--gap) / 2)); background: var(--cyan-soft); color: var(--ink); }
@media (max-width: 900px) {
  .audience-grid { grid-template-columns: 1fr; }
  .honeycomb { justify-self: center; }
}
@media (max-width: 560px) {
  .honeycomb { --hex: min(9.6rem, 46vw); max-width: calc(var(--hex) * 1.75 + var(--gap) + 1px); }
}

/* ---------- Accueil : aperçu offres & témoignages ---------- */
.home-offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.home-offer { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: start; }
.home-offer img { width: 7rem; height: 7rem; object-fit: contain; }
.home-offer h3 { color: var(--cyan-deep); margin-bottom: 0.4em; }
.home-testimonials { background: var(--brown-tint); }
@media (max-width: 560px) { .home-offer { grid-template-columns: 1fr; gap: 0.75rem; } .home-offer img { width: 5.5rem; height: 5.5rem; } }

/* ---------- Carrousel de témoignages ---------- */
.carousel { position: relative; margin-bottom: 2rem; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 38rem);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1.25rem; overscroll-behavior-x: contain;
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.testimonial {
  scroll-snap-align: start; margin: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.home-testimonials .testimonial { border-color: transparent; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: 0.6; color: var(--cyan); margin-bottom: 0.25rem; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: 1rem; }
.t-author { font-weight: 800; }
.t-org { color: var(--muted); }
.carousel-controls { display: flex; gap: 0.5rem; justify-content: flex-end; }
.carousel-btn {
  min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border-radius: 999px;
  border: 2px solid var(--cyan-deep); background: var(--white); color: var(--cyan-deep);
  font: 700 1.1rem/1 var(--sans); cursor: pointer;
}
.carousel-btn:hover { background: var(--cyan-tint); }
.carousel-pause { font-size: 0.9rem; }

/* ---------- En-tête de page ---------- */
.page-head { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.page-head h1 { color: var(--ink); }
.page-head + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Offres ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); }
.offer + .offer { border-top: 1px solid var(--line); }
.offer-alt .offer-media { order: 2; }
.offer-media { aspect-ratio: 1; display: grid; place-items: center; background: var(--cyan-tint); border-radius: 50%; max-width: 22rem; width: 100%; justify-self: center; }
.offer:nth-of-type(odd) .offer-media { border-radius: 0; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.offer-media img { width: 62%; height: auto; }
.offer-body h2 { color: var(--cyan-deep); }
.offer-body p { font-size: var(--step-1); }
.note { margin-top: 2rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--brown); background: var(--brown-tint); border-radius: 0 0.75rem 0.75rem 0; max-width: 46rem; }
.note p:last-child { margin: 0; }
@media (max-width: 760px) {
  .offer { grid-template-columns: 1fr; }
  .offer-alt .offer-media { order: 0; }
  .offer-media { max-width: 14rem; }
}

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-figure { margin: 0; position: sticky; top: 2rem; }
.about-figure img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 999px 999px 1.5rem 1.5rem; }
.about-text { max-width: 36em; }
.about-text p { font-size: var(--step-1); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; width: min(75%, 20rem); justify-self: center; }
}
.know-how { padding-top: calc(var(--space) * 0.5); }
.know-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(2.5rem, 6vw, 5rem); }
.know-col > img { width: 6.5rem; height: 6.5rem; object-fit: contain; margin-bottom: 1rem; }
.know-col h2 { color: var(--cyan-deep); font-size: var(--step-2); }
.hex-list, .leaf-list { list-style: none; margin: 0; padding: 0; }
.hex-list li, .leaf-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; }
.hex-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1rem; height: 0.87rem;
  background: var(--cyan); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.leaf-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.85rem; height: 0.85rem;
  border: 2px solid var(--brown); border-radius: 0 75% 0 75%; background: var(--white);
}

/* ---------- Bandeau contact ---------- */
.cta-band { background: var(--cyan-tint); padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-inner { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); flex-wrap: wrap; }
.cta-logo { width: clamp(9rem, 14vw, 12rem); height: auto; }
.cta-text { font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; margin: 0; flex: 1 1 16rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brown); color: var(--white); padding-top: 3rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.footer-name span { display: block; font: 600 1rem/1.4 var(--sans); }
.footer-about p:not(.footer-name) { max-width: 30em; opacity: 0.92; }
.footer-h { font: 800 1rem/1.4 var(--sans); margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.45rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; border-top: 1px solid color-mix(in srgb, var(--white) 30%, transparent); margin-top: 2.5rem; padding-block: 1.25rem; font-size: 0.92rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Formulaires ---------- */
.form-section { background: var(--brown-tint); }
.form { margin-top: 1.5rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 750; font-size: 1rem; }
.field-hint, .form-help { font-size: 0.92rem; color: var(--muted); }
.req { color: var(--error); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-border); border-radius: 0.5rem; padding: 0.75rem 0.9rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan-deep); }
.field.check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.field.check input { width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; accent-color: var(--cyan-deep); flex: none; }
.field.check label { font-weight: 400; }
.alert { border-radius: 0.75rem; padding: 1.1rem 1.4rem; margin: 1.25rem 0; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-success { background: var(--cyan-tint); border-left: 4px solid var(--cyan-deep); font-size: var(--step-1); }
.alert-error { background: #fdf0ee; border-left: 4px solid var(--error); color: #5c130c; }
.alert-error p { font-weight: 750; margin-bottom: 0.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-details dl { margin: 0; display: grid; gap: 1.5rem; }
.contact-details dt { font-weight: 800; color: var(--brown); font-size: 1rem; }
.contact-details dd { margin: 0.15rem 0 0; font-size: var(--step-1); overflow-wrap: anywhere; }
.contact-art { width: 8rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-art { display: none; } }

/* ---------- Témoignages vides / mentions ---------- */
.empty-state { display: flex; gap: 1.5rem; align-items: center; max-width: 44rem; padding: 1.75rem; background: var(--cyan-tint); border-radius: 1.25rem; }
.empty-state img { width: 6rem; flex: none; }
.empty-state p { margin: 0; }
@media (max-width: 560px) { .empty-state { flex-direction: column; align-items: flex-start; } }
.prose h2 { font-size: var(--step-2); color: var(--cyan-deep); margin-top: 1.75em; }
.prose h2:first-child { margin-top: 0; }

@media print {
  .site-header nav, .cta-band, .vine, .carousel-controls { display: none; }
  .site-footer { background: none; color: #000; }
}

/* =====================================================================
   Accessibilité : panneau de réglages + effets des réglages
   ===================================================================== */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700 1000; font-style: normal; font-display: swap;
}

.a11y { position: fixed; left: 1rem; bottom: 1rem; z-index: 50; }
.a11y-toggle {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 2px solid var(--white);
  background: var(--cyan-deep); color: var(--white); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 10px color-mix(in srgb, var(--black) 25%, transparent);
}
.a11y-toggle svg { fill: currentColor; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--brown); }
.a11y-toggle:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.a11y-panel {
  position: absolute; left: 0; bottom: calc(100% + 0.75rem);
  width: min(23rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto;
  background: var(--white); color: var(--black); border: 2px solid var(--cyan-deep); border-radius: 1rem;
  padding: 1.1rem 1.25rem 1rem; box-shadow: 0 10px 30px color-mix(in srgb, var(--black) 22%, transparent);
  font-family: var(--sans); font-size: 1rem; line-height: 1.45; letter-spacing: normal; word-spacing: normal;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.a11y-head h2 { font-size: 1.4rem; margin: 0; color: var(--cyan-deep); }
.a11y-close { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--black); }
.a11y-close:hover { background: var(--cyan-tint); }
.a11y-size { border: 0; padding: 0; margin: 0 0 1rem; }
.a11y-size legend { font-weight: 800; margin-bottom: 0.4rem; padding: 0; }
.a11y-seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--cyan-deep); border-radius: 0.6rem; overflow: hidden; }
.a11y-seg label { position: relative; cursor: pointer; }
.a11y-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a11y-seg span[aria-hidden] { display: block; text-align: center; padding: 0.5rem 0.2rem; font-weight: 800; color: var(--cyan-deep); }
.a11y-seg label + label span[aria-hidden] { border-left: 1px solid var(--cyan-deep); }
.a11y-seg input:checked + span { background: var(--cyan-deep); color: var(--white); }
.a11y-seg input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: -3px; }
.a11y-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.a11y-switch { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-weight: 700; }
.a11y-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-switch-ui {
  flex: none; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--field-border);
  position: relative; transition: background-color .15s;
}
.a11y-switch-ui::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--white); transition: transform .15s;
}
.a11y-switch input:checked + .a11y-switch-ui { background: var(--cyan-deep); }
.a11y-switch input:checked + .a11y-switch-ui::after { transform: translateX(1.15rem); }
.a11y-switch input:focus-visible + .a11y-switch-ui { outline: 3px solid var(--brown); outline-offset: 2px; }
.a11y-hint { margin: 0.15rem 0 0 3.5rem; font-size: 0.88rem; color: var(--muted); }
.a11y-speech { margin-bottom: 0.9rem; }
.a11y-read { width: 100%; }
.a11y-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: 0; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.75rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--cyan-deep); text-decoration: underline; cursor: pointer; }
.a11y-reading { outline: 3px solid var(--brown); outline-offset: 4px; background: color-mix(in srgb, var(--brown) 8%, var(--white)); border-radius: 4px; }
@media print { .a11y { display: none; } }

/* --- Taille du texte (tout est en rem : la page entière s'agrandit) --- */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 145%; }
/* le panneau garde une taille stable pour rester utilisable */
html[class*="a11y-text-"] .a11y-panel { font-size: 16px; }

/* --- Police lisible --- */
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3,
html.a11y-font .promise p, html.a11y-font .testimonial blockquote, html.a11y-font .cta-text,
html.a11y-font .footer-name, html.a11y-font .hero-name, html.a11y-font .btn, html.a11y-font input, html.a11y-font textarea {
  font-family: "Atkinson Hyperlegible", Verdana, sans-serif;
}
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .hero-name { font-weight: 700; letter-spacing: 0; }

/* --- Espacement du texte (critère WCAG 1.4.12) --- */
html.a11y-spacing main, html.a11y-spacing .cta-band, html.a11y-spacing .site-footer {
  letter-spacing: 0.12em; word-spacing: 0.16em;
}
html.a11y-spacing main p, html.a11y-spacing main li, html.a11y-spacing main dd, html.a11y-spacing .site-footer p { line-height: 2; }
html.a11y-spacing main p { margin-bottom: 2em; }


/* --- Contraste renforcé --- */
html.a11y-contrast {
  --cyan-deep: color-mix(in srgb, var(--cyan) 42%, var(--black));
  --cyan-tint: var(--white); --cyan-soft: var(--white); --brown-tint: var(--white);
  --muted: var(--black); --line: var(--black); --field-border: var(--black);
}
html.a11y-contrast .hero-name, html.a11y-contrast .section-title, html.a11y-contrast .testimonial blockquote::before { color: var(--cyan-deep); }
html.a11y-contrast .hero-tagline { color: color-mix(in srgb, var(--brown) 75%, var(--black)); }
html.a11y-contrast .audience, html.a11y-contrast .home-testimonials, html.a11y-contrast .form-section, html.a11y-contrast .cta-band { border-block: 2px solid var(--black); }
html.a11y-contrast .honeycomb li, html.a11y-contrast .honeycomb li:nth-child(even) { background: var(--cyan-deep); color: var(--white); }
html.a11y-contrast .testimonial, html.a11y-contrast .home-testimonials .testimonial, html.a11y-contrast .empty-state, html.a11y-contrast .note { border: 2px solid var(--black); }
html.a11y-contrast .offer-media { background: var(--white); outline: 2px solid var(--black); }
html.a11y-contrast .site-footer { background: color-mix(in srgb, var(--brown) 60%, var(--black)); }
html.a11y-contrast .field input, html.a11y-contrast .field textarea { border-width: 2px; }

/* --- Liens soulignés --- */
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 0.2em; }
html.a11y-links .btn { text-decoration-thickness: 1px !important; }

/* --- Sans animation --- */
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-calm .vine-hero .vine-stem { stroke-dashoffset: 0 !important; }
html.a11y-calm .vine-hero .leaf, html.a11y-calm .hero-butterflies { opacity: 1 !important; transform: none !important; }

/* Grands textes / espacement : la mise en page s'adapte au lieu de déborder */
@media (max-width: 560px) {
  .promise { grid-template-columns: 1fr; gap: 0.75rem; }
  .promise img { width: 4rem; height: 4rem; }
}
html[class*="a11y-text-"] main, html.a11y-spacing main,
html[class*="a11y-text-"] .site-footer, html.a11y-spacing .site-footer { overflow-wrap: anywhere; hyphens: auto; }
html[class*="a11y-text-"] .hero-name, html.a11y-spacing .hero-name { font-size: min(clamp(4.25rem, 2rem + 9vw, 9rem), 15vw); }
html[class*="a11y-text-"] .footer-grid, html.a11y-spacing .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-grid > * { min-width: 0; }
html[class*="a11y-text-"] .audience-grid, html.a11y-spacing .audience-grid { grid-template-columns: 1fr; }
/* les alvéoles deviennent de simples étiquettes : aucun mot coupé */
html[class*="a11y-text-"] .honeycomb, html.a11y-spacing .honeycomb { max-width: none; padding: 0; gap: 0.6rem; justify-self: start; }
html[class*="a11y-text-"] .honeycomb li, html.a11y-spacing .honeycomb li,
html[class*="a11y-text-"] .honeycomb li:nth-child(even), html.a11y-spacing .honeycomb li:nth-child(even) {
  width: auto; height: auto; margin: 0; transform: none; clip-path: none;
  padding: 0.6rem 1.1rem; border-radius: 0.6rem; border: 2px solid var(--cyan-deep); overflow-wrap: normal; hyphens: manual;
}
