/*
Theme Name: LAÏKA
Theme URI: https://laika.be
Author: Hugo CHRISTIAENS LANGLET — LAÏKA, cabinet en droit des affaires
Author URI: https://laika.be
Description: Thème WordPress sur mesure du site vitrine de LAÏKA (Bruxelles). Léger, trilingue FR/EN/NL via Polylang, blocs Gutenberg natifs, sans constructeur de pages ni framework CSS. Privacy by design.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: Tous droits réservés — Laika MGMT SRL
License URI: https://laika.be/mentions-legales/
Text Domain: laika
Domain Path: /languages
Tags: one-column, custom-menu, custom-logo, featured-images, editor-style, translation-ready
*/

/* =============================================================================
   0. SOMMAIRE
   -----------------------------------------------------------------------------
   1. Design tokens            (couleurs 02_Charte_Graphique, typo, espaces, grille)
   2. Fontes auto-hébergées    (@font-face — WOFF2 dans assets/fonts/)
   3. Reset minimal & base     (box-sizing, body, focus, liens, images)
   4. Échelle typographique    (h1-h3, corps, texte d'appoint, citations)
   5. Layout                   (conteneur, colonne de lecture, alignfull, sections)
   6. Composants               (boutons, skip-link, wordmark, header sticky, nav,
                                sélecteur de langue, hero, bande CTA, cartes
                                domaine, contact, footer)
   7. Blocs Gutenberg          (mapping des blocs natifs sur les tokens)
   8. Animations               (reveal au scroll, micro-interactions,
                                prefers-reduced-motion)
   9. Utilitaires              (visually-hidden, etc.)
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */
:root {
  /* --- Couleurs (source unique : 02_Charte_Graphique.md — ne pas dériver) --- */
  --creme: #FFFDEA;
  --vert-foret: #3F6555;
  --encre: #283F35;
  --orange: #FFA500;   /* accent rare : un seul micro-élément d'interface au maximum, jamais en surface */
  --bleu-ciel: #AEE5FF;
  --blanc: #FFFFFF;

  /* --- Rôles sémantiques (c'est ici qu'on câble, jamais les hex bruts ci-dessus) --- */
  --color-bg: var(--creme);
  --color-bg-alt: var(--blanc);
  --color-bg-inverse: var(--vert-foret);
  --color-text: var(--encre);
  --color-text-inverse: var(--blanc);   /* décision Hugo (17/09) : blanc, pas crème, sur tout fond sombre — lisibilité d'abord */
  --color-primary: var(--vert-foret);
  --color-primary-hover: var(--encre);
  --color-accent-soft: var(--bleu-ciel);
  --color-border: rgba(40, 63, 53, 0.14);          /* encre à 14 % — filets discrets */
  --color-border-inverse: rgba(255, 255, 255, 0.22);
  --color-focus: var(--vert-foret);
  --color-focus-inverse: var(--blanc);

  /* --- Typographie --- */
  /* Montserrat Alternates et Fraunces sont sous licence OFL : auto-hébergées dans assets/fonts/
     (aucun appel à Google Fonts — RGPD). Fraunces remplace Cooper BT (décision Hugo, 17/09). */
  --font-titres: "Montserrat Alternates", "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-corps: "Montserrat Alternates", "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-citation: "Fraunces", Georgia, "Times New Roman", serif;

  --weight-regular: 400;   /* Montserrat Regular Alternate → corps de texte */
  --weight-semibold: 600;  /* Montserrat SemiBold Alternate → logo, titres */
  --weight-citation: 400;  /* Fraunces Regular → tagline, citations, sous-titres secondaires */

  /* Échelle web (02_Charte_Graphique) : H1 40 / H2 28 / H3 20 / Body 16 / Appoint 12.
     Les valeurs cibles sont atteintes à partir de ~1024px ; en dessous, clamp() réduit
     H1/H2 sans jamais descendre sous un seuil lisible (30px / 24px sur mobile). */
  --text-h1: clamp(1.875rem, 1.45rem + 1.5vw, 2.5rem);     /* 30px → 40px */
  --text-h2: clamp(1.5rem, 1.3rem + 0.7vw, 1.75rem);       /* 24px → 28px */
  --text-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);    /* 18px → 20px */
  --text-body: 1rem;                                        /* 16px */
  --text-small: 0.75rem;                                    /* 12px */
  /* Pas de niveau intermédiaire : l'accroche sous un titre est en corps (16px), la tagline
     et les citations au niveau H3 (20px) — la hiérarchie web reste à 5 niveaux exactement. */

  --leading-tight: 1.15;
  --leading-heading: 1.25;
  --leading-body: 1.6;
  --leading-small: 1.5;

  /* Règle de charte : jamais de crénage additionnel sur Montserrat, jamais de majuscules. */
  --tracking: normal;

  /* --- Espaces (échelle 4 pt, fluide aux grands paliers) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 3vw, 5rem);
  --space-9: clamp(4rem, 3rem + 5vw, 8rem);
  --section-y: var(--space-9);              /* rythme vertical entre sections : le seul "séparateur" */
  --flow: 1em;                              /* espacement vertical par défaut entre éléments de texte */

  /* --- Grille & marges de page ---
     Décision : pas de grille 12 colonnes (inutile pour 5 pages). Un conteneur centré,
     une colonne de lecture pour le texte, une largeur "wide" pour les compositions,
     des gouttières fluides. Les compositions internes utilisent Grid/Flex localement. */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --content-max: 72rem;                     /* 1152px — conteneur / alignwide */
  --reading-max: 42rem;                     /* 672px ≈ 65-70 caractères en Montserrat 16px */

  /* --- Formes ---
     Décision : angles quasi droits (2px) — cohérents avec le motif carré de la charte
     et l'esthétique "boutique, épurée, intemporelle" ; aucune ombre portée nulle part. */
  --radius-s: 2px;
  --radius-m: 4px;
  --border-w: 1.5px;

  /* --- Mouvement --- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --duration-fast: 160ms;
  --duration: 240ms;
  --duration-reveal: 640ms;
  --reveal-distance: 18px;

  /* --- Header --- */
  --header-h: 4.5rem;

  color-scheme: light;
}

/* =============================================================================
   2. FONTES AUTO-HÉBERGÉES
   -----------------------------------------------------------------------------
   Déposer les fichiers dans assets/fonts/ (voir assets/fonts/README.md).
   Tant qu'un fichier est absent, le navigateur retombe silencieusement sur le
   fallback de la pile — le site reste lisible et cohérent.
   ============================================================================= */
@font-face {
  font-family: "Montserrat Alternates";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-alternates-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Alternates";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-alternates-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-400.woff2") format("woff2");
}

/* =============================================================================
   3. RESET MINIMAL & BASE
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-corps);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;               /* nécessaire pour .alignfull (calc(50% - 50vw)) */
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Navigation clavier : anneau visible sur TOUT élément interactif, seulement au clavier. */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
.laika-footer :focus-visible,
.laika-cta-band :focus-visible,
.laika-button:focus-visible {
  outline-color: var(--color-focus-inverse);
}
.laika-button--secondary:focus-visible {
  outline-color: var(--color-focus);
}

/* Liens : soulignés (accessibilité), déplacement fin à l'hover, jamais de couleur seule.
   NB : core imprime `:root :where(a:not(.wp-element-button))` depuis theme.json (0,1,0) ;
   style.css est chargé après (priorité 20) et les boutons portent .wp-element-button. */
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(63, 101, 85, 0.45);
  transition: color var(--duration-fast) var(--ease),
              text-decoration-color var(--duration-fast) var(--ease);
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: currentColor;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--encre);
}

/* =============================================================================
   4. ÉCHELLE TYPOGRAPHIQUE
   ============================================================================= */
h1, .laika-h1,
h2, .laika-h2,
h3, .laika-h3 {
  font-family: var(--font-titres);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking);
  text-transform: none;           /* règle de charte : jamais de majuscules */
  color: var(--color-text);
  text-wrap: balance;
}

h1, .laika-h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
}
h2, .laika-h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}
h3, .laika-h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}
/* h4-h6 : hors échelle de charte — alignés sur le corps, en semibold, pour ne pas créer de niveau non prévu. */
h4, h5, h6 {
  font-family: var(--font-titres);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  line-height: var(--leading-heading);
}

p, li, dd, dt, address {
  font-size: var(--text-body);
}

.laika-lead {
  font-size: var(--text-body);      /* accroche = corps (16px), pas de 6e niveau */
  line-height: var(--leading-body);
  max-width: var(--reading-max);
}

small, .laika-small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

/* Fraunces Regular : titre/sous-titre secondaire, citations, tagline. Jamais de bordure/contour. */
.laika-citation,
blockquote,
.laika-tagline {
  font-family: var(--font-citation);
  font-weight: var(--weight-citation);
  font-style: normal;
  border: 0;
  padding: 0;
}
blockquote {
  font-size: var(--text-h3);        /* citation = niveau H3 (20px) */
  line-height: var(--leading-heading);
  max-width: var(--reading-max);
}
blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-corps);
  font-size: var(--text-small);
  font-style: normal;
}

address {
  font-style: normal;
}

/* Rythme vertical du texte courant (« flow ») */
.laika-flow > * + * {
  margin-top: var(--flow);
}
.laika-flow > h2 {
  margin-top: 2em;
}
.laika-flow > h3 {
  margin-top: 1.5em;
}
.laika-flow > h2 + *,
.laika-flow > h3 + * {
  margin-top: 0.6em;
}

/* =============================================================================
   5. LAYOUT
   ============================================================================= */
.laika-container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.laika-main {
  display: block;                 /* main n'est pas block par défaut sous IE — sans objet, mais explicite */
  min-height: 60vh;
}

/* Sections : le rythme vertical remplace tout séparateur graphique (décision : pas de <hr>, pas de filets). */
.laika-section {
  padding-block: var(--section-y);
}
.laika-section--tight {
  padding-block: var(--space-8);
}
.laika-section--alt {
  background: var(--color-bg-alt);
}

/* Colonne de lecture : tout bloc de contenu Gutenberg est contraint à --reading-max,
   sauf s'il est explicitement wide/full. */
.laika-content > *:not(.alignwide):not(.alignfull) {
  max-width: var(--reading-max);
}
.laika-content > * + * {
  margin-top: var(--flow);
}
.laika-content > h2 {
  margin-top: 2.25em;
}
.laika-content > h3 {
  margin-top: 1.5em;
}
.laika-content > h2 + *,
.laika-content > h3 + * {
  margin-top: 0.6em;
}
.laika-content > .alignwide {
  max-width: var(--content-max);
  margin-block: var(--space-8);
}
.laika-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-block: var(--space-8);
}

/* Grille utilitaire 2/3 colonnes pour compositions internes (cartes domaines, contact). */
.laika-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .laika-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .laika-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .laika-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =============================================================================
   6. COMPOSANTS
   ============================================================================= */

/* --- 6.1 Boutons ---------------------------------------------------------------
   Décision : bouton plein vert-forêt / texte crème, bordure 1.5px de la même couleur,
   rayon 2px, aucune ombre. Hover : fond encre (plus foncé, pas plus vif) + micro-levée
   de 1px. Variante secondaire : contour seul. Les deux partagent hauteur et padding
   pour pouvoir cohabiter. */
.laika-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: var(--border-w) solid var(--color-primary);
  border-radius: var(--radius-s);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-titres);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.laika-button:hover,
.wp-block-button__link:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}
.laika-button:active,
.wp-block-button__link:active {
  transform: translateY(0);
}

.laika-button--secondary,
.is-style-laika-secondary .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
}
.laika-button--secondary:hover,
.is-style-laika-secondary .wp-block-button__link:hover {
  background: rgba(63, 101, 85, 0.08);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

/* Sur fond inverse (bande CTA, footer) : le plein devient crème, le texte vert-forêt. */
.laika-on-inverse .laika-button {
  background: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
  color: var(--color-primary);
}
.laika-on-inverse .laika-button:hover {
  background: var(--creme);
  border-color: var(--creme);
  color: var(--color-primary-hover);
}

/* Lien "flèche" — variante texte du CTA, pour les fins de section. */
.laika-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-titres);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.laika-link-arrow::after {
  content: "→";
  transition: transform var(--duration) var(--ease);
}
.laika-link-arrow:hover::after {
  transform: translateX(4px);
}

/* --- 6.2 Skip link (navigation clavier) ------------------------------------- */
.laika-skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-s);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease);
}
.laika-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-focus-inverse);
  outline-offset: 2px;
}

/* --- 6.3 Wordmark ------------------------------------------------------------
   "laïka" en minuscules, Montserrat Alternates SemiBold, sans crénage. Si un logo
   (SVG) est défini dans Apparence > Personnaliser, il remplace le texte. */
.laika-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-titres);
  font-weight: var(--weight-semibold);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: var(--tracking);
  text-transform: none;
  text-decoration: none;
  color: var(--color-primary);
}
.laika-wordmark:hover {
  color: var(--color-primary-hover);
}
.laika-wordmark img,
.laika-wordmark svg {
  height: 2rem;
  width: auto;
}
.laika-footer .laika-wordmark {
  color: var(--color-text-inverse);
}
.laika-footer .laika-wordmark:hover {
  color: var(--creme);
}

/* --- 6.4 Header sticky minimaliste --------------------------------------------
   Sticky (pas fixed) pour ne pas voler d'espace au contenu. Fond crème translucide
   + flou, filet bas qui n'apparaît qu'une fois la page défilée (classe .is-scrolled
   posée par nav.js via une sentinelle Intersection Observer). */
.laika-header-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
}

.laika-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 234, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              background-color var(--duration) var(--ease);
}
.laika-header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.laika-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

/* --- 6.5 Navigation principale ---------------------------------------------- */
.laika-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.laika-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.laika-nav__list a {
  position: relative;
  display: inline-block;
  padding: var(--space-2) 0;
  white-space: nowrap;
  font-family: var(--font-titres);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  text-decoration: none;
}
/* Soulignement animé de gauche à droite — la seule micro-interaction de la nav. */
.laika-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.laika-nav__list a:hover::after,
.laika-nav__list a:focus-visible::after,
.laika-nav__list .current-menu-item > a::after,
.laika-nav__list .current_page_item > a::after,
.laika-nav__list [aria-current="page"]::after {
  transform: scaleX(1);
}
.laika-nav__list .current-menu-item > a,
.laika-nav__list .current_page_item > a,
.laika-nav__list [aria-current="page"] {
  font-weight: var(--weight-semibold);
}

.laika-nav__cta .laika-button {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

/* Bouton burger (mobile) — 44×44 px minimum (cible tactile WCAG 2.5.8). */
.laika-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-s);
}
.laika-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.laika-nav-toggle__bar + .laika-nav-toggle__bar {
  margin-top: 5px;
}
.laika-nav-toggle[aria-expanded="true"] .laika-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.laika-nav-toggle[aria-expanded="true"] .laika-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.laika-nav-toggle[aria-expanded="true"] .laika-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Paliers mobile ET tablette (< 1024px) : nav repliée sous le header, ouverte par le burger.
   Décision : à 820px (tablette portrait), 3 entrées + 3 langues + CTA ne tiennent pas sur
   une ligne sans replis disgracieux ; la nav horizontale n'apparaît qu'à partir de 64em. */
@media (max-width: 63.99em) {
  .laika-nav-toggle {
    display: inline-flex;
  }
  /* Volet plein écran sous le header : rien de la page ne transparaît (retour Hugo 17/09).
     Le header sticky est le bloc conteneur ; la hauteur couvre le reste du viewport
     (dvh = viewport réel sur mobile, barres d'adresse comprises). Le défilement de la
     page est bloqué par nav.js (classe .laika-nav-open sur <html>). */
  .laika-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
  }
  .laika-nav-open,
  .laika-nav-open body {
    overflow: hidden;
  }
  .laika-header.is-open .laika-nav {
    display: flex;
  }
  .laika-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .laika-nav__list a {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-h3);
  }
  .laika-nav__list a::after {
    display: none;
  }
  .laika-nav__cta .laika-button {
    width: 100%;
    min-height: 3rem;
  }
}

/* --- 6.6 Sélecteur de langue (Polylang) ------------------------------------- */
.laika-lang {
  font-family: var(--font-titres);
  font-size: 0.9375rem;
}
.laika-lang__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.laika-lang__item + .laika-lang__item::before {
  content: "·";
  margin-right: var(--space-2);
  color: rgba(40, 63, 53, 0.4);
}
.laika-lang a {
  display: inline-block;
  padding: var(--space-1) var(--space-1);
  color: var(--color-text);
  text-decoration: none;
  text-transform: lowercase;      /* "fr · en · nl" : cohérent avec la casse basse de l'identité */
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.laika-lang a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-border);
}
.laika-lang a[aria-current="true"] {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* --- 6.7 Hero de page --------------------------------------------------------- */
.laika-hero {
  padding-block: var(--space-9) var(--space-7);
}
/* La section qui suit un hero ne rajoute pas son propre espace supérieur (pas de double respiration). */
.laika-hero + .laika-section {
  padding-top: var(--space-5);
}
.laika-hero__inner {
  max-width: 52rem;               /* un peu plus large que la colonne de lecture pour les H1 */
}
.laika-hero__eyebrow {
  margin-bottom: var(--space-4);
  font-family: var(--font-titres);
  font-size: var(--text-small);
  color: var(--color-primary);
}
.laika-hero__title {
  margin: 0;
}
.laika-hero__lead {
  margin-top: var(--space-5);
}
.laika-hero--accueil {
  padding-block: var(--space-9);
  min-height: calc(70vh - var(--header-h));
  display: flex;
  align-items: center;
}
.laika-hero--accueil .laika-tagline {
  margin-bottom: var(--space-5);
  font-size: var(--text-h3);        /* tagline = niveau H3 (20px) */
  color: var(--color-primary);
}
.laika-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* --- 6.8 Bande CTA (lien vers Contact — jamais de widget ici) ---------------- */
.laika-cta-band {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding-block: var(--space-6);     /* 2rem — réduit (retour Hugo : bande trop haute) */
}
.laika-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.laika-cta-band__text {
  max-width: var(--reading-max);
  font-family: var(--font-citation);
  font-weight: var(--weight-citation);
  font-size: var(--text-h3);
  color: var(--color-text-inverse);
}
.laika-cta-band h2 {
  color: var(--color-text-inverse);
}
.laika-cta-band a:not(.laika-button) {
  color: var(--color-text-inverse);
}

/* --- 6.9 Carte "domaine d'intervention" (style de bloc core/group) ----------- */
.is-style-laika-domaine,
.laika-domaine-card {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.is-style-laika-domaine:hover,
.laika-domaine-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.is-style-laika-domaine > * + *,
.laika-domaine-card > * + * {
  margin-top: var(--space-3);
}
.is-style-laika-domaine h3,
.laika-domaine-card h3 {
  color: var(--color-primary);
}

/* --- 6.10 Encart (fond bleu-ciel, accent secondaire) ------------------------- */
.is-style-laika-encart {
  padding: var(--space-6);
  background: var(--color-accent-soft);
  border-radius: var(--radius-m);
  color: var(--encre);
}

/* --- 6.10bis Page À propos : portrait (image à la une) + contenu ------------- */
.laika-a-propos--portrait {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 48em) {
  .laika-a-propos--portrait {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
  }
  .laika-a-propos__portrait {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}
.laika-a-propos__portrait img {
  width: 100%;
  border-radius: var(--radius-m);
}

/* --- 6.11 Page Contact -------------------------------------------------------- */
.laika-contact__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 64em) {
  .laika-contact__grid {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  }
}
.laika-contact__main > * + * {
  margin-top: var(--space-8);
}
.laika-contact__aside > * + * {
  margin-top: var(--space-6);
}
.laika-slot {
  min-height: 0;
}
.laika-slot:empty {
  display: none;
}
.laika-slot--rdv,
.laika-slot--formulaire {
  scroll-margin-top: var(--space-4);   /* s'ajoute au scroll-padding-top global (header + espace) */
}

.laika-address {
  line-height: var(--leading-body);
}
.laika-address a {
  color: inherit;
}
.laika-address__label {
  display: block;
  font-size: var(--text-small);
  opacity: 0.8;
}

/* --- 6.11bis Prise de rendez-vous (Vyte + acompte Stripe) ---------------------
   Formules en cartes (même dessin que les cartes domaine), porte de consentement
   sur fond blanc, widget inline. L'iframe n'existe dans le DOM qu'après le clic. */
.laika-rdv > * + * {
  margin-top: var(--space-6);
}
.laika-rdv__offres {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .laika-rdv__offres {
    grid-template-columns: 1fr 1fr;
  }
}
.laika-rdv__offre {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-m);
}
.laika-rdv__offre > * + * {
  margin-top: var(--space-3);
}
.laika-rdv__offre-title {
  color: var(--color-primary);
}
.laika-rdv__prix {
  font-weight: var(--weight-semibold);
}
.laika-rdv__detail {
  font-size: 0.9375rem;
  line-height: var(--leading-body);
}

.laika-rdv__gate {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-m);
}
.laika-rdv__gate > * + * {
  margin-top: var(--space-5);
}
.laika-rdv__choice {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.laika-rdv__legend {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  padding: 0;
}
.laika-choice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  line-height: var(--leading-body);
}
.laika-choice + .laika-choice {
  margin-top: var(--space-3);
}
.laika-choice input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  accent-color: var(--color-primary);
}
.laika-rdv__consent {
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-soft);
  border-radius: var(--radius-m);
  color: var(--encre);
}
.laika-rdv__consent > * + * {
  margin-top: var(--space-3);
}
.laika-rdv__error {
  font-weight: var(--weight-semibold);
}
.laika-rdv__tiers,
.laika-rdv__widget-alt,
.laika-rdv__fallback {
  font-size: 0.9375rem;
  line-height: var(--leading-body);
}
.laika-rdv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.laika-rdv__widget > * + * {
  margin-top: var(--space-3);
}
.laika-rdv__iframe {
  display: block;
  width: 100%;
  height: 62.5rem;   /* 1000 px : hauteur recommandée par le code d'intégration Vyte (calendrier + formulaire + paiement sans double barre de défilement) */
  min-height: 34rem;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg-alt);
}
.laika-link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.laika-link-button:hover {
  color: var(--color-primary-hover);
}
[hidden] {
  display: none !important;
}

/* --- 6.11ter Formulaire de contact -------------------------------------------
   Champs sur fond blanc, bordure 1,5 px, rayon 2 px, focus = anneau vert-forêt.
   Aucune icône, aucune ombre, aucun placeholder (les libellés suffisent). */
.laika-form-wrap > * + * {
  margin-top: var(--space-5);
}
.laika-form > * + * {
  margin-top: var(--space-5);
}
.laika-form__row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .laika-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.laika-field > * + * {
  margin-top: var(--space-2);
}
.laika-field__label {
  display: block;
  font-weight: var(--weight-semibold);
}
.laika-field__req {
  color: var(--color-primary);
}
.laika-field__hint {
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  line-height: var(--leading-small);
  opacity: 0.85;
}
.laika-field__count {
  text-align: right;
}
.laika-field__input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--color-bg-alt);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-s);
  color: var(--color-text);
  line-height: var(--leading-body);
  transition: border-color var(--duration-fast) var(--ease);
}
.laika-field__input:hover {
  border-color: rgba(40, 63, 53, 0.35);
}
.laika-field__input:focus-visible {
  border-color: var(--color-primary);
  outline-offset: 2px;
}
.laika-field__textarea {
  resize: vertical;
  min-height: 10rem;
}
/* Mention de confidentialité : encart bleu-ciel collé au champ message. */
.laika-field__notice {
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-soft);
  border-radius: var(--radius-m);
  color: var(--encre);
  font-size: 0.9375rem;
  line-height: var(--leading-body);
  margin-bottom: var(--space-4);
}
/* Pot de miel : hors écran, jamais display:none (certains robots l'ignorent). */
.laika-form__hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.laika-form__actions > * + * {
  margin-top: var(--space-4);
}
.laika-form__legal,
.laika-form__alt {
  font-size: 0.9375rem;
  line-height: var(--leading-body);
}
.laika-button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* Notices d'état (après redirection) */
.laika-notice {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
}
.laika-notice--ok {
  border-left-color: var(--color-primary);
  background: var(--color-accent-soft);
}
.laika-notice--error {
  border-left-color: var(--encre);
}

/* --- 6.11quater Page Mentions légales / CGV -----------------------------------
   Sommaire collant à gauche sur desktop, colonne de lecture à droite ; hiérarchie
   H2 (section) / H3 (document) / H4 (article) ; ancres décalées sous le header. */
.laika-legal__layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 64em) {
  .laika-legal__layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--space-8);
  }
  .laika-legal__toc {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    max-height: calc(100dvh - var(--header-h) - var(--space-6));
    overflow: auto;
  }
}
.laika-legal__toc {
  font-size: 0.9375rem;
  line-height: var(--leading-body);
}
.laika-legal__toc-title {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  opacity: 0.85;
}
.laika-legal__toc-list > li + li {
  margin-top: var(--space-2);
}
.laika-legal__toc-sub {
  margin: var(--space-1) 0 0 var(--space-4);
}
.laika-legal__toc-sub > li + li {
  margin-top: var(--space-1);
}
.laika-legal__toc-sub a {
  font-size: 0.875rem;
}
.laika-legal__toc a {
  text-decoration: none;
}
.laika-legal__toc a:hover {
  text-decoration: underline;
}
.laika-legal.laika-content {
  max-width: var(--reading-max);
}
.laika-legal h2 {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);   /* filets tolérés ici : lecture juridique, 4 documents bout à bout */
}
.laika-legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.laika-legal h3 {
  margin-top: var(--space-7);
}
.laika-legal h4 {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
  margin-top: var(--space-6);
}
.laika-legal p,
.laika-legal li {
  font-size: 0.9375rem;
  line-height: var(--leading-body);
}
.laika-legal ul,
.laika-legal ol {
  padding-left: 1.25rem;
}
.laika-legal ul {
  list-style: disc;
}
.laika-legal ol {
  list-style: decimal;
}
.laika-legal li + li {
  margin-top: var(--space-2);
}
.laika-legal .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.laika-legal .wp-block-table th,
.laika-legal .wp-block-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.laika-legal .wp-block-table th {
  font-weight: var(--weight-semibold);
}
.laika-legal .is-style-laika-encart p {
  margin: 0;
}
/* Sous 48em, les tableaux (traitements, cookies) deviennent des fiches empilées :
   une ligne = une fiche, chaque cellule précédée de l'intitulé de sa colonne
   (libellés par langue, puisque core/table ne porte pas d'attribut data-label). */
@media (max-width: 47.999em) {
  .laika-legal .wp-block-table thead {
    display: none;
  }
  .laika-legal .wp-block-table table,
  .laika-legal .wp-block-table tbody,
  .laika-legal .wp-block-table tr,
  .laika-legal .wp-block-table td {
    display: block;
    width: 100%;
  }
  .laika-legal .wp-block-table tr {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
  }
  .laika-legal .wp-block-table td {
    padding: var(--space-1) 0;
    border: 0;
  }
  .laika-legal .wp-block-table td:first-child {
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
  }
  .laika-legal .wp-block-table td + td::before {
    display: block;
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    opacity: 0.8;
  }
  .laika-table--traitements td:nth-child(2)::before { content: "Données"; }
  .laika-table--traitements td:nth-child(3)::before { content: "Finalité et base juridique"; }
  .laika-table--traitements td:nth-child(4)::before { content: "Durée de conservation"; }
  .laika-table--cookies td:nth-child(2)::before { content: "Nature"; }
  .laika-table--cookies td:nth-child(3)::before { content: "Finalité"; }
  .laika-table--cookies td:nth-child(4)::before { content: "Durée"; }
  html[lang^="en"] .laika-table--traitements td:nth-child(2)::before { content: "Data"; }
  html[lang^="en"] .laika-table--traitements td:nth-child(3)::before { content: "Purpose and legal basis"; }
  html[lang^="en"] .laika-table--traitements td:nth-child(4)::before { content: "Retention period"; }
  html[lang^="en"] .laika-table--cookies td:nth-child(2)::before { content: "Nature"; }
  html[lang^="en"] .laika-table--cookies td:nth-child(3)::before { content: "Purpose"; }
  html[lang^="en"] .laika-table--cookies td:nth-child(4)::before { content: "Duration"; }
  html[lang^="nl"] .laika-table--traitements td:nth-child(2)::before { content: "Gegevens"; }
  html[lang^="nl"] .laika-table--traitements td:nth-child(3)::before { content: "Doel en rechtsgrond"; }
  html[lang^="nl"] .laika-table--traitements td:nth-child(4)::before { content: "Bewaartermijn"; }
  html[lang^="nl"] .laika-table--cookies td:nth-child(2)::before { content: "Aard"; }
  html[lang^="nl"] .laika-table--cookies td:nth-child(3)::before { content: "Doel"; }
  html[lang^="nl"] .laika-table--cookies td:nth-child(4)::before { content: "Duur"; }
}
.laika-legal__meta {
  font-size: var(--text-small);
  opacity: 0.85;
}
.laika-legal__retour {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-small);
}

/* --- 6.12 Footer -------------------------------------------------------------- */
.laika-footer {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding-block: var(--space-7) var(--space-6);
  font-size: 0.9375rem;
}
.laika-footer a {
  color: var(--color-text-inverse);
  text-decoration-color: rgba(255, 253, 234, 0.4);
}
.laika-footer a:hover {
  color: var(--creme);
  text-decoration-color: currentColor;
}

.laika-footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .laika-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.laika-footer__col > * + * {
  margin-top: var(--space-4);
}
.laika-footer__heading {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text-inverse);
  opacity: 0.85;
}
.laika-footer__descriptif {
  max-width: 28rem;
}
.laika-footer .laika-tagline {
  font-size: var(--text-h3);
  opacity: 0.9;
}

.laika-footer__menu li + li {
  margin-top: var(--space-2);
}
.laika-footer__menu a {
  text-decoration: none;
}
.laika-footer__menu a:hover {
  text-decoration: underline;
}

.laika-footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-inverse);   /* le seul filet du site : sépare les mentions légales */
  font-size: var(--text-small);
  line-height: var(--leading-small);
  opacity: 0.9;
}
.laika-footer__legal p + p {
  margin-top: var(--space-2);
}

/* =============================================================================
   7. BLOCS GUTENBERG NATIFS — mapping sur les tokens
   ============================================================================= */
.wp-block-buttons {
  gap: var(--space-4);
}
.wp-block-button__link {
  border-radius: var(--radius-s) !important;   /* neutralise le radius par défaut de core */
}

.wp-block-quote {
  border: 0;
  padding: 0;
  margin-block: var(--space-6);
}
.wp-block-quote p {
  font-size: var(--text-h3);
}

.wp-block-separator {
  /* Décision : pas de séparateurs graphiques ; si un bloc Séparateur est inséré malgré tout,
     il devient un espace vertical pur (invisible). */
  border: 0;
  height: var(--space-7);
  background: none;
  margin: 0;
}

.wp-block-image img {
  border-radius: var(--radius-m);
}
.wp-block-image figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-text);
  opacity: 0.8;
}

.wp-block-columns {
  gap: var(--space-6);
}

.wp-block-group.has-background {
  padding: var(--space-6);
  border-radius: var(--radius-m);
}

/* Classes de couleurs générées par theme.json (has-{slug}-color / -background-color) —
   core les génère ; on s'assure seulement que le texte reste lisible sur fond inverse. */
.has-vert-foret-background-color,
.has-encre-background-color {
  color: var(--blanc);
}
.has-vert-foret-background-color a,
.has-encre-background-color a,
.has-vert-foret-background-color h2,
.has-vert-foret-background-color h3,
.has-encre-background-color h2,
.has-encre-background-color h3 {
  color: var(--blanc);
}

/* =============================================================================
   8. ANIMATIONS
   -----------------------------------------------------------------------------
   Mécanisme "reveal" : tout élément [data-reveal] démarre transparent et décalé
   de --reveal-distance vers le bas ; reveal.js ajoute .is-visible à l'entrée dans
   le viewport. Sans JS (pas de classe .js sur <html>) ou avec
   prefers-reduced-motion, tout est visible immédiatement.
   ============================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--duration-reveal) var(--ease),
              transform var(--duration-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Décalage en cascade pour des éléments frères (cartes, colonnes). */
[data-reveal-delay="1"] { --reveal-delay: 90ms; }
[data-reveal-delay="2"] { --reveal-delay: 180ms; }
[data-reveal-delay="3"] { --reveal-delay: 270ms; }
[data-reveal-delay="4"] { --reveal-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .laika-button:hover,
  .wp-block-button__link:hover,
  .is-style-laika-domaine:hover,
  .laika-domaine-card:hover {
    transform: none;
  }
}

/* =============================================================================
   9. UTILITAIRES
   ============================================================================= */
.screen-reader-text,
.laika-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.laika-text-inverse {
  color: var(--color-text-inverse);
}

/* Impression : sobre, sans header sticky ni animations. */
@media print {
  .laika-header,
  .laika-skip-link,
  .laika-cta-band,
  .laika-nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
