/* =========================================================================
   Boris Alataille — arboriste / paysagiste
   Feuille de style du site public statique. Mode clair uniquement.
   ========================================================================= */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables (palette HSL) ---------- */
:root {
  --background: 45 25% 98%;
  --foreground: 25 15% 15%;
  --card: 0 0% 100%;
  --card-foreground: 25 15% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 25 15% 15%;
  --primary: 130 40% 25%;
  --primary-foreground: 0 0% 98%;
  --primary-hover: 130 40% 20%;
  --secondary: 25 35% 45%;
  --secondary-foreground: 0 0% 98%;
  --secondary-hover: 25 35% 40%;
  --muted: 45 20% 92%;
  --muted-foreground: 25 10% 45%;
  --accent: 110 25% 70%;
  --accent-foreground: 25 15% 15%;
  --accent-hover: 110 25% 65%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 45 15% 85%;
  --input: 45 15% 85%;
  --ring: 130 40% 25%;
  --radius: 0.75rem;

  --gradient-nature: linear-gradient(135deg, hsl(130 40% 25%), hsl(110 35% 35%));
  --gradient-earth: linear-gradient(135deg, hsl(25 35% 45%), hsl(35 40% 50%));
  --gradient-hero: linear-gradient(135deg, hsl(130 40% 25% / 0.95), hsl(25 35% 45% / 0.95));
  --shadow-nature: 0 10px 30px -10px hsl(130 40% 25% / 0.15);
  --shadow-earth: 0 8px 25px -8px hsl(25 35% 45% / 0.2);
  --shadow-soft: 0 4px 20px -4px hsl(0 0% 0% / 0.1);

  /* ---- Variables consommées par le widget accessibilité (skill a11y-widget) ---- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --ink: hsl(25 15% 15%);            /* texte principal (= --foreground) */
  --line: hsl(45 15% 85%);           /* filet / bordure (= --border) */
  --a11y-btn-bg: hsl(130 40% 25%);   /* bouton accessibilité = vert forêt (primary) */
  --a11y-btn-bg-hover: hsl(130 40% 20%);
  --a11y-scrolltop-bg: hsl(25 35% 45%); /* flèche remonter = brun terre (secondary) */
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.ico { width: 1.15rem; height: 1.15rem; flex: none; }

.skip-link {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 200;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.6rem 1rem; border-radius: var(--radius);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.85rem 1.6rem; border: 1px solid transparent;
  border-radius: var(--radius); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid hsl(var(--ring) / 0.5); outline-offset: 2px; }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

.btn-nature { background: var(--gradient-nature); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-nature); }
.btn-nature:hover { box-shadow: 0 14px 34px -10px hsl(130 40% 25% / 0.3); }

.btn-hero {
  background: hsl(var(--card)); color: hsl(var(--primary));
  box-shadow: var(--shadow-soft); font-size: 1.05rem; padding: 1rem 1.9rem;
}
.btn-hero:hover { background: hsl(var(--background)); }

.btn-outline {
  background: transparent; color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.btn-outline:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.btn-outline-light {
  background: hsl(0 0% 100% / 0.12); color: #fff;
  border-color: hsl(0 0% 100% / 0.7); backdrop-filter: blur(4px);
  font-size: 1.05rem; padding: 1rem 1.9rem;
}
.btn-outline-light:hover { background: #fff; color: hsl(var(--primary)); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem;
  border-radius: 999px; line-height: 1;
}
.badge-nature { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.badge-earth { background: hsl(var(--secondary) / 0.14); color: hsl(var(--secondary)); }
.badge-soft { background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }

/* ---------- Utilitaires couleur/gradient ---------- */
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.grad-nature { background: var(--gradient-nature); color: #fff; }
.grad-earth { background: var(--gradient-earth); color: #fff; }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  transition: background-color 0.25s, box-shadow 0.25s, padding 0.25s;
}
.site-header.scrolled { background: hsl(var(--background) / 0.98); box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-header.scrolled .header-inner { min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 48px; width: auto; transition: height 0.25s; }
.site-header.scrolled .brand-logo { height: 42px; }

.nav-desktop { display: none; gap: 1.6rem; }
.nav-desktop a { font-weight: 500; color: hsl(var(--foreground)); position: relative; padding: 0.25rem 0; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: hsl(var(--primary)); transition: width 0.2s;
}
.nav-desktop a:hover { color: hsl(var(--primary)); }
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: none; align-items: center; gap: 0.75rem; }
.phone-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: hsl(var(--primary)); }
.phone-link:hover { color: hsl(var(--primary-hover)); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid hsl(var(--border));
  border-radius: var(--radius); background: hsl(var(--card));
}
.nav-toggle .ico { width: 1.4rem; height: 1.4rem; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.mobile-menu {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem 1.25rem 1.5rem;
  background: hsl(var(--background) / 0.99);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-soft);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 0.7rem 0.4rem; font-weight: 500; border-radius: var(--radius); }
.mobile-menu a:hover { background: hsl(var(--muted)); color: hsl(var(--primary)); }
.mobile-menu .btn { margin-top: 0.35rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Sections génériques ---------- */
.section { padding-block: 4.5rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); color: hsl(var(--primary)); }
.section-lead { margin-top: 1rem; font-size: 1.1rem; color: hsl(var(--muted-foreground)); }

.services { background: hsl(var(--muted) / 0.3); }
.about { background: hsl(var(--muted) / 0.3); }
.testimonials { background: hsl(var(--muted) / 0.3); }
.work { background: hsl(var(--secondary) / 0.05); }
.gallery, .contact { background: hsl(var(--background)); }

/* ---------- Reveal au scroll ---------- */
/* Visible par défaut (sans JS = aucun contenu caché). Le masquage n'est actif
   que si JS est présent (html.js), et un failsafe JS révèle tout après 2,5 s. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: 7rem 4rem; overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: var(--gradient-hero); }
.hero-content { text-align: center; max-width: 900px; }
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; text-shadow: 0 2px 12px hsl(0 0% 0% / 0.25); }
.hero-subtitle { margin: 1.25rem auto 0; max-width: 680px; font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: hsl(0 0% 100% / 0.92); }

.hero-badges { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2.5rem auto; max-width: 720px; }
@media (min-width: 640px) { .hero-badges { grid-template-columns: repeat(3, 1fr); } }
.hero-badge {
  background: hsl(0 0% 100% / 0.12); border: 1px solid hsl(0 0% 100% / 0.2);
  border-radius: var(--radius); padding: 1.25rem 1rem; backdrop-filter: blur(6px);
}
.hero-badge-ico { display: inline-flex; padding: 0.65rem; border-radius: 999px; background: hsl(0 0% 100% / 0.16); margin-bottom: 0.6rem; }
.hero-badge-ico svg { width: 1.5rem; height: 1.5rem; stroke: #fff; }
.hero-badge-title { font-weight: 700; font-size: 1.15rem; }
.hero-badge-text { font-size: 0.9rem; color: hsl(0 0% 100% / 0.85); margin-top: 0.15rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  color: #fff; opacity: 0.9; animation: bob 2s ease-in-out infinite;
}
.hero-scroll svg { width: 1.75rem; height: 1.75rem; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 2rem; }
.service-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius); }
.service-icon svg { width: 1.6rem; height: 1.6rem; }
.service-title { font-size: 1.5rem; }
.service-text { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.service-items { display: grid; gap: 0.9rem; }
.service-items li { display: flex; gap: 0.85rem; align-items: flex-start; }
.si-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); flex: none; }
.si-ico-earth { background: hsl(var(--secondary) / 0.12); color: hsl(var(--secondary)); }
.si-ico svg { width: 1.2rem; height: 1.2rem; }
.si-title { font-weight: 600; }
.si-text { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }
.service-accent { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); }
.accent-nature { background: hsl(var(--primary) / 0.08); border: 1px solid hsl(var(--primary) / 0.15); }
.accent-earth { background: hsl(var(--secondary) / 0.08); border: 1px solid hsl(var(--secondary) / 0.15); }
.sa-title { font-weight: 700; color: hsl(var(--primary)); }
.accent-earth .sa-title { color: hsl(var(--secondary)); }
.sa-text { font-size: 0.92rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.clientele { margin-top: 3rem; text-align: center; }
.clientele-title { font-size: 1.75rem; color: hsl(var(--primary)); margin-bottom: 1.75rem; }
.clientele-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .clientele-grid { grid-template-columns: repeat(4, 1fr); } }
.clientele-ico { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--gradient-nature); color: #fff; margin-bottom: 0.6rem; }
.clientele-ico svg { width: 1.6rem; height: 1.6rem; }
.clientele-item p { font-weight: 600; }
.clientele-cta { margin-top: 2.25rem; }

/* ---------- Galerie ---------- */
.gallery-viewer { max-width: 960px; margin: 0 auto; }
.gallery-stage { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.gallery-slide { flex: 1 1 auto; min-width: 0; }
.gallery-slide[hidden] { display: none; }
.compare {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-nature); user-select: none; touch-action: pan-y;
  background: hsl(var(--muted));
}
.compare-before, .compare-after { position: absolute; inset: 0; }
.compare-before img, .compare-after img { width: 100%; height: 100%; object-fit: cover; }
.compare-after { width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.compare-after img { width: 100vw; max-width: none; }
@supports (width: 1px) {
  .compare-after img { width: calc(var(--stage-w, 960px)); }
}
.compare-label {
  position: absolute; top: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem; border-radius: 999px; color: #fff; text-transform: uppercase;
}
.compare-label-before { right: 0.75rem; background: hsl(var(--secondary) / 0.9); }
.compare-label-after { left: 0.75rem; background: hsl(var(--primary) / 0.9); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: #fff; cursor: ew-resize; z-index: 3;
}
.compare-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-soft); display: grid; place-items: center;
}
.compare-grip::before { content: "\2194"; font-size: 1.1rem; color: hsl(var(--primary)); font-weight: 700; }
.compare-handle:focus-visible { outline: 3px solid hsl(var(--ring) / 0.6); }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; background: hsl(var(--card) / 0.95);
  border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-soft);
  display: grid; place-items: center; color: hsl(var(--primary));
}
.gallery-nav:hover { background: hsl(var(--primary)); color: #fff; }
.gallery-nav svg { width: 1.4rem; height: 1.4rem; }
.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.gallery-caption { margin-top: 1.25rem; text-align: center; }
.gallery-caption h3 { font-size: 1.4rem; color: hsl(var(--primary)); margin: 0.6rem 0 0.4rem; }
.gallery-caption p { color: hsl(var(--muted-foreground)); }

.gallery-thumbs { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.gallery-thumb { width: 68px; height: 68px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; padding: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: hsl(var(--primary)); box-shadow: var(--shadow-nature); }

.gallery-foot { margin-top: 3rem; text-align: center; }
.gallery-foot p { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.gallery-foot-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.work-media { position: relative; aspect-ratio: 4 / 3; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-ico { position: absolute; top: 0.85rem; left: 0.85rem; display: inline-flex; padding: 0.55rem; border-radius: 999px; background: hsl(var(--card) / 0.92); color: hsl(var(--primary)); box-shadow: var(--shadow-soft); }
.work-ico svg { width: 1.3rem; height: 1.3rem; }
.work-body { padding: 1.4rem 1.5rem 1.75rem; }
.work-body h3 { font-size: 1.3rem; color: hsl(var(--primary)); margin-bottom: 0.5rem; }
.work-body p { color: hsl(var(--muted-foreground)); }

.work-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; text-align: center; }
@media (min-width: 768px) { .work-stats { grid-template-columns: repeat(4, 1fr); } }
.work-stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--gradient-nature); color: #fff; margin-bottom: 0.6rem; }
.work-stat-ico svg { width: 1.4rem; height: 1.4rem; }
.work-stat-num { font-family: "Playfair Display", serif; font-size: 2.25rem; font-weight: 700; color: hsl(var(--primary)); line-height: 1; }
.work-stat-label { color: hsl(var(--muted-foreground)); margin-top: 0.35rem; }

.work-cta { margin-top: 3rem; text-align: center; background: var(--gradient-nature); color: #fff; border-radius: var(--radius); padding: 2.5rem 1.5rem; box-shadow: var(--shadow-nature); }
.work-cta h3 { font-size: 1.8rem; color: #fff; }
.work-cta p { max-width: 640px; margin: 1rem auto 1.75rem; color: hsl(0 0% 100% / 0.9); }
.work-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.work-cta .btn-outline { color: #fff; border-color: hsl(0 0% 100% / 0.8); }
.work-cta .btn-outline:hover { background: #fff; color: hsl(var(--primary)); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-col { display: grid; gap: 1.75rem; }
.about-story { padding: 2rem; }
.about-story-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.about-ico { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--radius); }
.about-ico svg { width: 1.5rem; height: 1.5rem; }
.about-story h3 { font-size: 1.5rem; color: hsl(var(--primary)); }
.about-story p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.about-mission { margin-top: 0.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: hsl(var(--primary) / 0.08); border: 1px solid hsl(var(--primary) / 0.15); }
.am-title { font-weight: 700; color: hsl(var(--primary)); }
.am-text { color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.about-values { display: grid; gap: 1rem; }
.about-value { display: flex; gap: 1rem; align-items: flex-start; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-soft); }
.av-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: hsl(var(--accent) / 0.35); color: hsl(var(--primary)); flex: none; }
.av-ico svg { width: 1.3rem; height: 1.3rem; }
.av-title { font-weight: 700; }
.av-text { font-size: 0.92rem; color: hsl(var(--muted-foreground)); }

.about-qual, .about-expertise { padding: 2rem; }
.about-qual h3, .about-expertise h3 { font-size: 1.4rem; color: hsl(var(--primary)); margin-bottom: 1.25rem; }
.qual-item { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid hsl(var(--border)); }
.qual-item:first-of-type { border-top: 0; }
.qual-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); flex: none; }
.qual-ico svg { width: 1.3rem; height: 1.3rem; }
.qual-title { font-weight: 700; }
.qual-text { font-size: 0.92rem; color: hsl(var(--muted-foreground)); }
.expertise-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about-counter { text-align: center; padding: 2rem; border: 0; }
.counter-num { font-family: "Playfair Display", serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.counter-label { margin-top: 0.35rem; font-weight: 500; color: hsl(0 0% 100% / 0.9); }

/* ---------- Témoignages ---------- */
.testimonials-empty { max-width: 620px; margin: 0 auto; text-align: center; background: hsl(var(--card)); border: 1px dashed hsl(var(--border)); border-radius: var(--radius); padding: 3rem 1.5rem; box-shadow: var(--shadow-soft); }
.te-ico { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--primary)); margin-bottom: 1rem; }
.te-ico svg { width: 1.5rem; height: 1.5rem; }
.testimonials-empty p { color: hsl(var(--muted-foreground)); }

/* ---------- Témoignages : avis publiés (rendu serveur) ---------- */
.testimonials-avg { margin-top: 0.5rem; font-weight: 600; color: hsl(var(--primary)); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.75rem; position: relative; }
.tc-quote { color: hsl(var(--primary) / 0.18); }
.tc-quote svg { width: 2.25rem; height: 2.25rem; }
.tc-stars { display: inline-flex; gap: 0.15rem; }
.tc-star svg { width: 1.1rem; height: 1.1rem; }
.tc-star { color: hsl(var(--border)); }
.tc-star.is-on { color: #e6b800; }
.tc-text { color: hsl(var(--foreground)); line-height: 1.6; }
.tc-highlight { align-self: flex-start; }
.tc-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.tc-who { display: flex; flex-direction: column; }
.tc-name { font-weight: 700; color: hsl(var(--foreground)); }
.tc-meta { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 1fr; } }
.contact-main { padding: 2rem; }
.contact-main-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.contact-ico { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--radius); }
.contact-ico svg { width: 1.5rem; height: 1.5rem; }
.contact-main-head h3 { font-size: 1.5rem; color: hsl(var(--primary)); }
.contact-main-sub { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 560px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-subcard { background: hsl(var(--muted) / 0.5); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.cs-title { font-weight: 700; color: hsl(var(--primary)); margin-bottom: 0.6rem; }
.contact-subcard ul { display: grid; gap: 0.4rem; }
.contact-subcard li { position: relative; padding-left: 1.15rem; font-size: 0.94rem; color: hsl(var(--muted-foreground)); }
.contact-subcard li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--primary) / 0.6); }
.contact-highlight { background: hsl(var(--primary) / 0.08); border: 1px solid hsl(var(--primary) / 0.15); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.ch-title { font-weight: 700; color: hsl(var(--primary)); }
.ch-body { color: hsl(var(--muted-foreground)); margin-top: 0.35rem; }

.contact-side { display: grid; gap: 1.75rem; }
.contact-direct, .contact-why { padding: 2rem; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-info li { display: grid; }
.ci-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: hsl(var(--muted-foreground)); }
.ci-value { font-weight: 700; font-size: 1.1rem; color: hsl(var(--foreground)); }
a.ci-value { color: hsl(var(--primary)); }
.ci-note { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }
.contact-list { display: grid; gap: 0.65rem; }
.contact-list li { position: relative; padding-left: 1.5rem; color: hsl(var(--muted-foreground)); }
.contact-list li::before { content: "\2713"; position: absolute; left: 0; color: hsl(var(--primary)); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: hsl(var(--primary)); color: hsl(0 0% 100% / 0.85); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand .ico { width: 2rem; height: 2rem; color: #fff; }
.footer-name { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; color: #fff; }
.footer-role { font-size: 0.9rem; color: hsl(0 0% 100% / 0.7); }
.footer-desc { margin-bottom: 1.1rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; background: hsl(0 0% 100% / 0.12); color: #fff; }
.footer-badge .ico { width: 0.95rem; height: 0.95rem; }
.footer-heading { font-family: "Playfair Display", serif; font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.footer-links a, .footer-list li { display: block; padding: 0.3rem 0; color: hsl(0 0% 100% / 0.8); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .ico { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: hsl(var(--accent)); }
.footer-contact div { display: grid; }
.footer-strong { color: #fff; font-weight: 600; }
.footer-contact span:not(.footer-strong) { font-size: 0.85rem; color: hsl(0 0% 100% / 0.65); }
.footer-linkbtn { background: none; border: 0; padding: 0; text-align: left; }
.footer-linkbtn:hover { text-decoration: underline; }
a.footer-strong:hover { text-decoration: underline; }

.footer-trust { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem; background: hsl(0 0% 100% / 0.08); border-radius: var(--radius); }
@media (min-width: 640px) { .footer-trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-weight: 600; color: #fff; }
.trust-item .ico { width: 1.2rem; height: 1.2rem; color: hsl(var(--accent)); }

.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 100% / 0.15); }
.footer-copy { font-size: 0.9rem; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.9rem; color: hsl(0 0% 100% / 0.8); }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 1.25rem; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-overlay { position: fixed; inset: 0; background: hsl(25 15% 10% / 0.55); backdrop-filter: blur(2px); }
.modal-panel { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: auto; background: hsl(var(--card)); border-radius: var(--radius); box-shadow: 0 24px 60px -20px hsl(0 0% 0% / 0.4); padding: 2rem 1.75rem; }
.modal-close { position: absolute; top: 0.85rem; right: 1rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: hsl(var(--muted)); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.modal-close:hover { background: hsl(var(--border)); }
.modal-title { font-size: 1.6rem; color: hsl(var(--primary)); }
.modal-sub { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.req { color: hsl(var(--destructive)); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit;
  border: 1px solid hsl(var(--input)); border-radius: var(--radius);
  background: hsl(var(--background)); color: hsl(var(--foreground));
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.form-note { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.form-status { padding: 0.7rem 0.9rem; border-radius: var(--radius); font-size: 0.92rem; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.form-status.is-error { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }
/* Honeypot — hors écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages légales ---------- */
.legal { padding-block: 7.5rem 4rem; }
.legal-inner { max-width: 820px; }
.legal-title { font-size: clamp(2rem, 4vw, 2.75rem); color: hsl(var(--primary)); }
.legal-updated { color: hsl(var(--muted-foreground)); margin-top: 0.5rem; margin-bottom: 2rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.4rem; color: hsl(var(--primary)); margin-bottom: 0.75rem; }
.legal-section p { color: hsl(var(--foreground)); margin-bottom: 0.85rem; }
.legal-list { display: grid; gap: 0.5rem; margin: 0.5rem 0 0.85rem; }
.legal-list li { position: relative; padding-left: 1.35rem; color: hsl(var(--foreground)); }
.legal-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6rem; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: hsl(var(--primary) / 0.6); }
.legal a { color: hsl(var(--primary)); text-decoration: underline; }
mark.todo { background: hsl(48 96% 60% / 0.35); color: hsl(25 60% 25%); font-weight: 600; padding: 0.05rem 0.35rem; border-radius: 0.35rem; border: 1px dashed hsl(38 80% 45%); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding-block: 8rem 4rem; }
.notfound-inner { text-align: center; margin: 0 auto; }
.notfound-code { font-family: "Playfair Display", serif; font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: hsl(var(--primary) / 0.25); line-height: 1; }
.notfound-title { font-size: clamp(1.6rem, 4vw, 2.25rem); color: hsl(var(--primary)); margin-top: 0.5rem; }
.notfound-text { color: hsl(var(--muted-foreground)); margin: 1rem 0 2rem; }

/* ==========================================================================
   Widget accessibilité + « remonter en haut » (skill a11y-widget)
   Couleurs pilotées par --a11y-btn-bg (vert forêt) / --a11y-scrolltop-bg (brun terre),
   définis dans :root ci-dessus. Réutilise --font-sans / --font-display / --ink / --line.
   Options actives : agrandir, espacer, police dys, souligner liens, réduire animations,
   réinitialiser. Mode nuit + contraste renforcé restent DÉSACTIVÉS (recette par site).
   ========================================================================== */
.a11y-btn {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  width: 3rem; height: 3rem; border-radius: 9999px; border: 0;
  background: var(--a11y-btn-bg, var(--navy, #21386E)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
  cursor: pointer; transition: background-color .2s, filter .2s;
}
.a11y-btn:hover { background: var(--a11y-btn-bg-hover, var(--ink, #1B2A4E)); }
.a11y-btn:focus-visible, .scrolltop-btn:focus-visible { outline: 3px solid var(--a11y-scrolltop-bg, #b45309); outline-offset: 2px; }

.scrolltop-btn {
  position: fixed; bottom: 5rem; right: 1.25rem; z-index: 60;
  width: 3rem; height: 3rem; border-radius: 9999px; border: 0;
  background: var(--a11y-scrolltop-bg, #b45309); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
  cursor: pointer; transition: background-color .2s;
}
.scrolltop-btn.is-visible { display: inline-flex; }
.scrolltop-btn:hover { filter: brightness(.92); }

.a11y-panel {
  position: fixed; bottom: 5rem; right: 1.25rem; z-index: 61;
  width: 16rem; max-width: calc(100vw - 2.5rem);
  background: var(--a11y-panel-bg, #fff); color: var(--ink, #1B2A4E);
  border: 1px solid var(--line, var(--border, #E3E1D9));
  border-radius: 0.9rem; padding: 1rem 1.1rem;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.45);
  font-family: var(--font-sans, system-ui, sans-serif);
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; }
.a11y-panel label {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0;
  color: var(--ink, #1B2A4E); cursor: pointer; font-size: .95rem;
}
.a11y-panel input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--a11y-btn-bg, var(--navy, #21386E)); flex: 0 0 auto; }
.a11y-reset {
  width: 100%; margin-top: .8rem; padding: .55rem; border-radius: 9999px;
  border: 1px solid var(--line, var(--border, #E3E1D9)); background: transparent;
  color: var(--ink, #1B2A4E); font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: background-color .2s;
}
.a11y-reset:hover { background: rgba(0,0,0,.05); }

/* ---- Agrandir le texte ---- */
html.a11y-larger body { font-size: 20px; }
html.a11y-larger h1 { font-size: 1.1em; }

/* ---- Espacer le texte (confort de lecture dys/TDAH) ---- */
html.a11y-spacing body { line-height: 1.9; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: .55rem; }

/* ---- Souligner les liens ---- */
html.a11y-links a:not(.btn) { text-decoration: underline; text-underline-offset: .18em; }

/* ---- Réduire les animations (case du site — en plus du prefers-reduced-motion système) ---- */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
/* NB : le smooth-scroll JS (scrollToId / remonter en haut) vérifie aussi a11y-motion
   en JS et repasse behavior:'auto' — cf. main.js. */

/* ---- Police dyslexie (OpenDyslexic, auto-hébergée dans /fonts/) ---- */
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
html.a11y-dys body, html.a11y-dys input, html.a11y-dys textarea, html.a11y-dys button, html.a11y-dys select {
  font-family: "OpenDyslexic", var(--font-sans, system-ui, sans-serif) !important;
}
html.a11y-dys h1, html.a11y-dys h2, html.a11y-dys h3, html.a11y-dys h4 {
  font-family: "OpenDyslexic", var(--font-display, var(--font-sans, system-ui, sans-serif)) !important;
  letter-spacing: 0;
}
/* Si OpenDyslexic (large) fait déborder l'en-tête, neutraliser dessus : */
/* html.a11y-dys #site-header { font-family: var(--font-sans, system-ui, sans-serif) !important; } */
