/* ==========================================================================
   BASE — hugocousty.fr
   --------------------------------------------------------------------------
   Reset, typographie, mise en page et composants partagés par toutes les
   pages. Aucune valeur visuelle en dur : tout passe par tokens.css.
   Les règles suivent le readme du design system (Claude Design).

   Sommaire
   1. Reset
   2. Éléments de base
   3. Accessibilité
   4. Mise en page (container, section, section-head)
   5. Composants : bouton, surtitre, tag, placeholder, formulaire
   6. En-tête (pilule de verre) et navigation
   7. Barre CTA mobile (bas d'écran)
   8. Footer
   ========================================================================== */


/* 1. Reset
   ========================================================================== */

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

* {
  margin: 0;
}

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

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

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


/* 2. Éléments de base
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Pas de place réservée sous le footer pour la barre CTA mobile :
     elle se masque d'elle-même sur la section Contact et le footer. */
}

/* Un bloc en thème inverse reprend les couleurs de texte du thème */
[data-theme="inverse"] {
  color: var(--text-primary);
}

/* L'en-tête flotte : les ancres ne doivent pas passer dessous */
[id] {
  scroll-margin-top: calc(var(--header-offset) + var(--space-3));
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display-2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

/* Titres en graisse moyenne (500) : présents sans être lourds */
h2 {
  font-size: var(--text-title);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--text-accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition-control);
}

a:hover {
  color: var(--text-primary);
  text-decoration-thickness: 2px;
}

strong {
  font-weight: var(--weight-semibold);
}

::selection {
  background: var(--grey-200);
  color: var(--ink-900);
}


/* 3. Accessibilité
   ========================================================================== */

/* Focus clavier : contour encre (blanc sur fond sombre), présent partout, jamais supprimé */
:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Masqué visuellement, lu par les lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement "Aller au contenu" */
.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: var(--z-skip-link);
  padding: var(--space-15) var(--space-2);
  background: var(--action-bg);
  color: var(--action-fg);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}


/* 4. Mise en page
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-prose) + 2 * var(--gutter));
}

/* Le contenu démarre sous la barre d'en-tête, sauf le hero qui passe dessous */
main {
  padding-top: var(--header-height-top);
}

main:has(> .hero:first-child) {
  padding-top: 0;
}

.section {
  padding-block: var(--section-y);
}

/* Section à fond : bande gris clair pleine largeur, sans arrondi */
.section--sunken {
  background: var(--surface-sunken);
}

/* En-tête de section : surtitre numéroté + titre + chapô */
.section-head {
  display: grid;
  gap: var(--space-4); /* mobile : le titre respire au-dessus du chapô */
  margin-bottom: var(--space-6);
}

.section-head > h2 {
  max-width: 18em;
}

.section-head__intro {
  max-width: var(--measure-lead);
  font-size: var(--text-lead);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Deux colonnes (inspiré de TwelveLabs) : titre à gauche, filet vertical,
   chapô à droite, le tout encadré de filets fins. Mobile : chapô souligné
   d'un filet à gauche. */
.section-head__intro {
  padding-left: var(--space-2);
  border-left: var(--border-width-hairline) solid var(--border-mid);
}

.section-head--center .section-head__intro {
  padding-left: 0;
  border-left: 0;
}

@media (min-width: 64em) {
  .section-head:not(.section-head--center):has(.section-head__intro) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-inline: var(--border-width-hairline) solid var(--border-mid);
  }

  .section-head:not(.section-head--center):has(.section-head__intro) > h2 {
    padding-inline: var(--space-5);
  }

  .section-head:not(.section-head--center) .section-head__intro {
    max-width: none;
    padding: var(--space-1) var(--space-5) 0;
  }

  .section-head:not(.section-head--center) .section-head__intro > * {
    max-width: var(--measure-lead);
  }
}

/* Variante centrée (section Contact) */
.section-head--center {
  justify-items: center;
  text-align: center;
}

.section-head--center .section-head__intro {
  margin-inline: auto;
}


/* 5. Composants
   ========================================================================== */

/* --- Bouton ----------------------------------------------------------------
   primary   : aplat plein (encre, ou blanc sur fond sombre), s'éclaircit
               légèrement au survol, flèche ↗ intégrée
   secondary : contour fin, fond transparent, flèche ↗ sur les liens
   Dans un bloc data-theme="inverse", les couleurs s'inversent seules.       */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--button-height);
  padding: 18px var(--space-3);
  border: var(--border-width-hairline) solid var(--border-strong);
  border-radius: var(--button-radius); /* même arrondi pour tous les boutons */
  background: transparent;
  color: var(--text-primary);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-control), transform var(--duration-instant) var(--ease-out);
}

.btn:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--action-bg);
  border-color: var(--action-bg);
  color: var(--action-fg);
}

.btn--primary:hover {
  background: var(--action-bg-hover);
  border-color: var(--action-bg-hover);
  color: var(--action-fg);
}

.btn--primary:active {
  background: var(--action-bg-active);
  border-color: var(--action-bg-active);
}

/* Flèche ↗ (Lucide arrow-up-right), dessinée en masque pour prendre la
   couleur du texte. Glisse de 2 px en diagonale au survol. */
.btn--primary::after {
  content: "";
  flex: none;
  width: var(--icon-size-button);
  height: var(--icon-size-button);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--primary:hover::after {
  transform: translate(2px, -2px);
}

/* Secondaire : contour fin, fond transparent, la flèche ↗ sur les liens */
.btn--secondary {
  border-color: var(--text-primary);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

a.btn--secondary::after {
  content: "";
  flex: none;
  width: var(--icon-size-button);
  height: var(--icon-size-button);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-out);
}

a.btn--secondary:hover::after {
  transform: translate(2px, -2px);
}

.btn--small {
  min-height: var(--button-height-small);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--button-radius-small);
}

.btn--block {
  width: 100%;
}

/* --- Surtitre (style « libellé ») -----------------------------------------
   11 px, capitales, interlettrage 0.12em. Sans numéro ni filet. */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-normal);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Tag (Sites web, Social Ads…) ------------------------------------------ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

/* Étiquette en contour (inspirée de TwelveLabs) : petites capitales dans
   un cadre fin, fond transparent, coins légèrement arrondis */
.tag {
  display: inline-block;
  padding: 1px 6px;
  border: var(--border-width-hairline) solid var(--text-faint);
  border-radius: var(--tag-radius);
  background: transparent;
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-primary);
}

/* --- Placeholder d'image ----------------------------------------------------
   Réservé qui nomme l'image attendue (MediaFrame du design system).
   À remplacer par <img> ou <picture>. Ratio réglable avec --ratio.         */

.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: var(--ratio, 16 / 9);
  width: 100%;
  padding: var(--space-2);
  background: var(--surface-quiet);
  border-radius: var(--card-radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: center;
}

/* --- Formulaire -------------------------------------------------------------
   Champs à contour, légèrement arrondis (--field-radius). Les états d'erreur
   natifs du navigateur suffisent pour un formulaire de contact.          */

.form {
  display: grid;
  gap: var(--space-2);
  width: 100%;
}

.field {
  display: grid;
  gap: var(--space-05);
}

.field__label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.field__optional {
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-15) var(--space-2);
  border: var(--border-width-hairline) solid var(--border-mid);
  border-radius: var(--field-radius);
  background: var(--surface-page);
  color: var(--text-primary);
  transition: var(--transition-control);
}

.field__input::placeholder {
  color: var(--text-faint);
}

.field__input:hover {
  border-color: var(--border-strong);
}

.field__input:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 0;
  border-color: var(--border-accent);
}

textarea.field__input {
  resize: vertical;
  min-height: 8rem;
}

/* Prénom + Nom côte à côte dès la tablette */
.form__row {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 48em) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Téléphone : indicatif du pays + numéro */
.field__phone {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: var(--space-1);
}

@media (min-width: 48em) {
  .field__phone {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  }
}

select.field__input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: var(--space-4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23656D7E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-15) center;
  text-overflow: ellipsis;
}

/* Case de consentement */
.field__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.field__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--action-bg);
}

/* Message d'envoi (en cours, erreur) : masqué tant qu'il est vide */
.form__status:empty {
  display: none;
}

/* Piège à robots : hors écran, jamais affiché */
.field--trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__note {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* 6. En-tête : barre de verre (inspirée de TwelveLabs)
   --------------------------------------------------------------------------
   Barre pleine largeur, toujours visible, posée sur le hero : teinte légère
   + flou. main.js pose data-theme="inverse" quand la barre passe sur un bloc
   sombre (hero, Contact, footer) : texte blanc ; sinon texte encre.
   Mobile / tablette : identité + bouton + burger ; les liens s'ouvrent dans
   un panneau sous l'en-tête.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-header);
  width: 100%;
  height: var(--header-height-top);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 100%;
  /* aligné sur la grille du contenu, même sur très grand écran */
  padding: 0 max(var(--gutter), (100% - var(--container-max)) / 2);
  background-color: var(--header-bar);
  -webkit-backdrop-filter: var(--header-bar-blur);
  backdrop-filter: var(--header-bar-blur);
  transition: background-color var(--duration-morph) var(--ease-morph);
}

/* Couleurs du texte et du bouton : même rythme que le fond de la barre */
.site-header .site-id,
.site-header .status,
.site-header .site-nav__link,
.site-header .nav-toggle,
.site-header .btn {
  transition:
    color var(--duration-morph) var(--ease-morph),
    background-color var(--duration-morph) var(--ease-morph),
    border-color var(--duration-morph) var(--ease-morph);
}

/* Identité : photo ronde + statut de disponibilité (point vert) */
.site-id {
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.site-id:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Identité, deux états :
   - sur le hero et les blocs sombres : « Hugo Cousty · Disponible » sur
     une ligne ;
   - sur fond clair (après le hero) : la photo ronde à gauche, et à sa
     droite le nom au-dessus de « Disponible », en plus petit.
   Désactivé si animations réduites. */
.site-id {
  display: grid;
  grid-template-areas: "avatar name status";
  grid-template-columns: auto auto auto;
  align-items: center;
}

.site-id .avatar { grid-area: avatar; }
.site-id__name   { grid-area: name; }
.site-id .status { grid-area: status; }

/* Le passage d'une version à l'autre est animé en JS (module 3 de
   main.js) : le nom et « Disponible » glissent de leur ancienne place à
   la nouvelle en changeant de taille, la pastille réapparaît en fondu.
   Ici, seule la photo a sa transition (fondu, zoom, mise au point). */
.site-id .avatar {
  transition:
    opacity var(--duration-morph) var(--ease-out),
    filter var(--duration-morph) var(--ease-out),
    transform var(--duration-morph) var(--ease-out);
}

.site-id__name {
  margin-right: var(--space-2);
  font-size: var(--text-header-name);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: 1.2;
  white-space: nowrap;
}

/* Sur fond sombre, la photo sort du flux (posée à gauche, invisible) :
   elle peut s'effacer sur place pendant que le nom glisse vers la gauche. */
.site-id {
  position: relative;
}

.site-id .avatar {
  position: absolute;
  top: calc(50% - var(--avatar-size) / 2);
  left: 0;
  max-width: none; /* sinon limitée à la colonne vide (largeur 0) */
  opacity: 0;
  filter: blur(6px);
  transform: scale(.7);
  pointer-events: none;
}

/* Fond clair : photo à gauche, nom et statut empilés à droite */
.site-header:not([data-theme="inverse"]) .site-id {
  grid-template-areas:
    "avatar name"
    "avatar status";
  grid-template-columns: auto auto;
  row-gap: 1px;
}

.site-header:not([data-theme="inverse"]) .site-id__name {
  margin-right: 0;
  font-size: var(--text-header-name-small);
}

.site-header:not([data-theme="inverse"]) .site-id .status {
  font-size: var(--text-caption);
  line-height: 1.2;
}

/* La pastille passe après « Disponible » */
.site-header:not([data-theme="inverse"]) .site-id .status__dot {
  order: 1;
}

.site-header:not([data-theme="inverse"]) .site-id .avatar {
  position: static;
  margin-right: var(--space-15);
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.avatar {
  flex: none;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--radius-pill);
  object-fit: cover;
}

/* Monogramme « HC » à la place de la photo (en-tête clair) : pastille
   encre, initiales blanches */
.avatar--mono {
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  letter-spacing: .02em;
  line-height: 1;
}


.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.status__dot {
  flex: none;
  width: var(--status-dot-size);
  height: var(--status-dot-size);
  border-radius: var(--radius-pill);
  background: var(--status-available);
  transition: background-color var(--duration-morph) var(--ease-morph);
}

/* Indisponible : point gris */
/* « Disponible » : la pastille pulse doucement (léger halo qui s'élargit
   puis s'efface, toutes les 2,4 s). Pas d'animation si indisponible ou
   si les animations sont réduites. */
.status:not(.status--off) .status__dot {
  animation: status-pulse 2.4s var(--ease-out) infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 var(--status-pulse); opacity: 1; }
  50%  { opacity: .55; }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot {
    animation: none !important;
  }
}

.status--off .status__dot {
  background: var(--text-faint);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-05);
}

/* Bouton "Réserver un appel" de l'en-tête : remplacé sur mobile par la barre
   collée en bas d'écran, visible dès la tablette */
.site-header__cta {
  display: none;
}

@media (min-width: 48em) {
  .site-header__cta {
    display: inline-flex;
  }
}

/* Pages secondaires : pas de barre en bas, le bouton reste dans l'en-tête */
.site-header__cta--always {
  display: inline-flex;
}

.page-simple {
  display: flex;
  flex-direction: column;
  min-height: 100svh; /* pages courtes : le footer reste collé en bas */
  padding-bottom: 0;
}

.page-simple main {
  flex: 1;
}

/* --- Burger ---------------------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Liens de navigation ----------------------------------------------------
   Mobile / tablette : panneau encre sous la pilule, ouvert par le burger.
   Desktop : liens en ligne dans la pilule, blanc à 72 %.                   */

.site-nav {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--glass-panel); /* verre : clair en haut de page, sombre dans la pilule */
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

/* Sans JS, le panneau reste masqué : le contenu reste accessible au défilement */
.site-nav:not(.is-open) {
  display: none;
}

.site-nav__link {
  display: block;
  padding: var(--space-15) 0;
  font-size: var(--text-lead);
  color: var(--header-link);
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Bloque le défilement de la page quand le menu mobile est ouvert */
.has-menu-open {
  overflow: hidden;
}

@media (min-width: 64em) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav:not(.is-open) {
    position: static;
    display: block;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none; /* le verre ne sert qu'au panneau mobile */
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    gap: var(--space-4);
  }

  .site-nav li + li {
    border: 0;
  }

  .site-nav__link {
    padding: var(--space-05) 0;
    font-size: var(--text-body);
  }
}


/* 7. Barre CTA mobile (bas d'écran)
   --------------------------------------------------------------------------
   La bande n'a aucun fond : seul le bouton est visible. Il reprend le verre
   sombre translucide de l'en-tête réduit (texte blanc, thème inverse).
   ========================================================================== */

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: var(--z-sticky-cta);
  display: flex;
  align-items: center;
  height: var(--sticky-cta-height);
  padding: var(--space-15) var(--gutter);
  padding-bottom: max(var(--space-15), env(safe-area-inset-bottom));
  pointer-events: none; /* la zone transparente autour du bouton laisse passer les clics */
  transition:
    transform var(--duration-base) var(--ease-out),
    visibility var(--duration-base);
}

/* Même bouton que « Réserver un appel » de l'en-tête : noir plein, texte
   blanc, avec une ombre douce pour le détacher du contenu qui défile. */
.sticky-cta .btn {
  min-height: var(--button-height-small);
  border-radius: var(--button-radius-small);
  pointer-events: auto;
  border-color: var(--ink-900);
  background: var(--ink-900);
  box-shadow: var(--shadow-pop);
  color: var(--white);
}

.sticky-cta .btn:hover {
  border-color: var(--ink-700);
  background: var(--ink-700);
  color: var(--white);
}

.sticky-cta .btn:active {
  border-color: var(--ink-800);
  background: var(--ink-800);
  color: var(--white);
}

/* Masquée par main.js quand la section Contact ou le footer sont à l'écran */
.sticky-cta.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
}

@media (min-width: 48em) {
  .sticky-cta {
    display: none;
  }
}


/* 8. Footer
   ========================================================================== */

/* Footer : noir un peu plus clair que la section Contact, pleine largeur,
   une barre avec le copyright et l'email à gauche, les liens à droite.
   Seul (pages légales), il garde un arrondi en haut. */
.site-footer {
  overflow: hidden;
  border-radius: var(--contact-radius) var(--contact-radius) 0 0;
  padding-block: var(--space-4) var(--space-3);
  background: var(--surface-card); /* encre plus claire, via data-theme="inverse" */
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* Haut du footer : identité à gauche, puis 3 colonnes de liens.
   Mobile : identité, puis colonnes de liens sur deux colonnes. */
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-3);
  padding-block: var(--space-4) var(--space-5);
}

.site-footer__brand {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: var(--space-15);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
}

.site-footer__tagline {
  max-width: 22rem;
  line-height: var(--leading-normal);
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: var(--space-15);
}

.site-footer__heading {
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-footer__col ul,
.site-footer__legal {
  margin: 0;
  padding: 0;
}

.site-footer__col ul {
  display: grid;
  gap: var(--space-1);
  list-style: none;
}

/* LinkedIn : pictogramme seul (Simple Icons, CC0), couleur du texte */
.site-footer__social {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -11px; /* aligne l'icône sur le texte, zone de clic large */
}

.site-footer__icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/assets/img/regies/linkedin.svg") center / contain no-repeat;
  mask: url("/assets/img/regies/linkedin.svg") center / contain no-repeat;
}

/* Bas du footer : copyright et liens légaux, sous un filet */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-width-hairline) solid var(--border-hairline);
  font-size: var(--text-caption);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  list-style: none;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer a:hover {
  color: var(--text-primary);
}

@media (min-width: 64em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    padding-block: var(--space-5) var(--space-6);
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* Pages avec section Contact : le footer prolonge le bloc noir du Contact */
.site-footer--joined {
  border-radius: 0;
}


/* Bandeau cookies (main.js, module 13) : petite carte en verre dépoli en
   bas à gauche, au-dessus de la barre CTA mobile. « Accepter » en bouton
   principal ; « Refuser » reste au même niveau, même taille, dès le
   premier écran. */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-2);
  z-index: calc(var(--z-sticky-cta) + 1);
  display: grid;
  gap: var(--space-1);
  max-width: 28rem;
  max-height: calc(100svh - var(--space-4));
  overflow-y: auto;
  padding: var(--space-25);
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: 24px;
  /* Verre dépoli : la page reste devinée derrière, floutée */
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow-pop);
  color: var(--text-primary);
  font-size: var(--text-caption);
  line-height: 1.5;
}

/* Sur fond sombre (page provisoire, Contact, footer) : verre encre */
[data-theme="inverse"] .consent,
.consent[data-theme="inverse"] {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(13, 16, 23, .62);
}

/* Titre et texte, avec le GIF du chaton en haut à droite : le texte
   s'enroule autour */
.consent__intro {
  display: flow-root;
}

.consent__pet {
  float: right;
  overflow: hidden;
  width: 64px;
  height: 64px;
  margin: 0 0 var(--space-1) var(--space-15);
  border-radius: 50%;
  background: var(--surface-sunken);
}

/* Zoom sur le haut du chaton : ses grands yeux dans la pastille */
.consent__pet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35); /* zoom léger : la tête bouge, elle doit rester dans le cadre */
  transform-origin: 42% 18%;
}

.consent__title {
  margin-bottom: var(--space-05);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
}

.consent:focus {
  outline: none; /* le focus est posé sur la fenêtre à l'ouverture, pour les lecteurs d'écran */
}

.consent__text {
  color: var(--text-secondary);
}

.consent__text a {
  color: var(--text-primary);
}

/* Détail des choix : un interrupteur par usage */
.consent__options {
  display: grid;
  border-top: var(--border-width-hairline) solid var(--border-hairline);
}

.consent__options[hidden] {
  display: none;
}

.consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-15);
  border-bottom: var(--border-width-hairline) solid var(--border-hairline);
  cursor: pointer;
}

.consent__option > span {
  display: grid;
  gap: 2px;
}

.consent__option strong {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
}

.consent__option > span > span {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* Interrupteur : case à cocher redessinée (rail + pastille) */
.consent__switch {
  flex: none;
  position: relative;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--border-mid);
  appearance: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 14, 15, .2);
  transition: transform var(--duration-fast) var(--ease-out);
}

.consent__switch:checked {
  background: var(--ink-900);
}

.consent__switch:checked::after {
  transform: translateX(16px);
}

[data-theme="inverse"] .consent__switch:checked {
  background: var(--status-available);
}

.consent__switch:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.consent__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.consent__actions .btn {
  min-height: 38px;
  padding: 0 var(--space-1);
  border-radius: 12px;
  font-size: var(--text-caption);
}

/* Apparition : fondu et montée de 12 px, une seule fois */
.consent {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.consent.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    transform: none;
    transition: none;
  }
}

/* Desktop : la carte reste compacte, en bas à gauche */
@media (min-width: 48em) {
  .consent {
    right: auto;
    bottom: var(--space-3);
    left: var(--space-3);
    width: 24rem;
    max-width: calc(100vw - 2 * var(--space-3));
  }
}

/* Pas de flèche ↗ dans le bandeau : ce ne sont pas des liens */
.consent .btn::after {
  content: none;
}

/* Mobile : « Accepter » sur toute la largeur, « Refuser » et
   « Personnaliser » côte à côte juste en dessous */
@media (max-width: 47.99em) {
  .consent__actions {
    grid-template-columns: 1fr 1fr;
  }

  .consent__accept {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* Lien « Gérer les cookies » du pied de page : un bouton qui a l'air d'un lien */
.consent-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.consent-open:hover {
  color: var(--text-primary);
}
