/* ==========================================================================
   SITE TALA – Feuille de styles
   --------------------------------------------------------------------------
   Sommaire
     1. Police (hébergée en local)
     2. Variables (couleurs, rayons, ombres) ← à modifier pour changer la charte
     3. Base (page, titres, liens, accessibilité)
     4. Éléments communs (conteneur, sections, pastille, boutons, cartes)
     5. En-tête et menu (pilule flottante)
     6. Hero
     7. Bandeau « le mot qui change »
     8. Offres (onglets)
     9. Méthode, engagements, à propos
    10. Contact et formulaire
    11. Pied de page
    12. Pages légales et page 404
    13. Réduction des animations
   ========================================================================== */

/* 1. POLICE ============================================================== */
/* Plus Jakarta Sans, fichier variable (graisses 200 à 800), licence OFL. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. VARIABLES =========================================================== */
:root {
  /* Couleurs */
  --bleu-nuit: #0A2540;        /* texte principal */
  --bleu-fonce: #1F3A56;       /* texte secondaire foncé */
  --gris-texte: #425466;       /* paragraphes */
  --bordure: #E3E8EE;          /* bordures des cartes */
  --bordure-champ: #D5DBE5;    /* bordures des champs */
  --fond: #FFFFFF;
  --fond-alterne: #F6F9FC;     /* sections alternées */
  --violet: #5B3FE0;           /* accent (boutons) */
  --violet-survol: #4428B8;
  --lavande-1: #F2EFFF;
  --lavande-2: #E8E2FF;
  --lavande-bordure: #D4CAFF;
  --vert-succes: #0B6B3A;
  --rouge-erreur: #B42318;
  --degrade: linear-gradient(90deg, #D9488F 0%, #7B66F6 50%, #4F5BE8 100%);
  --degrade-carte: linear-gradient(140deg, #D9488F 0%, #7B66F6 55%, #4F5BE8 100%);

  /* Formes */
  --rayon-carte: 18px;
  --rayon-grand: 22px;
  --rayon-pilule: 999px;
  --ombre-douce: 0 8px 24px rgba(10, 37, 64, 0.06);

  /* Mise en page */
  --largeur-max: 1200px;
  --marge-page: 24px;
  --hauteur-entete: 80px;      /* sert au décalage des ancres sous le menu collant */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;        /* 17 px */
  line-height: 1.55;
  color: var(--bleu-nuit);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.125rem);   /* 66 px sur ordinateur */
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 2.75rem);     /* 44 px sur ordinateur */
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--violet-survol); }

/* Focus clavier bien visible */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Icônes au trait (SVG en ligne) */
.icone {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Texte réservé aux lecteurs d'écran */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement « Aller au contenu » : visible seulement au clavier */
.evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--rayon-pilule);
  background: var(--bleu-nuit);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.evitement:focus { top: 12px; color: #FFFFFF; }

/* 4. ÉLÉMENTS COMMUNS ==================================================== */
.conteneur {
  max-width: var(--largeur-max);
  margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 104px) var(--marge-page); }
.section--grise {
  background: var(--fond-alterne);
  border-top: 1px solid var(--bordure);
}
.section--serree { padding-top: 0; }
.section__contenu {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

/* Bloc d'introduction d'une section : pastille + titre + phrase */
.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.intro--large { max-width: 780px; }
.intro__texte { font-size: 1.125rem; color: var(--gris-texte); }

/* Pastille de section : petit trait dégradé + texte violet en majuscules */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.pastille::before {
  content: "";
  flex: none;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #D9488F, #7B66F6 55%, #4F5BE8);
}

/* Boutons (style « B4 ») : pilule + chevron qui s'allonge en flèche au survol */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 14px 26px;
  border: none;
  border-radius: var(--rayon-pilule);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.bouton--plein { background: var(--violet); color: #FFFFFF; }
.bouton--plein:hover {
  background: var(--violet-survol);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.bouton--lien { padding-left: 20px; background: transparent; color: var(--bleu-nuit); }
.bouton--lien:hover { color: var(--violet); }
.bouton--petit { padding: 10px 14px 10px 18px; font-size: 0.9375rem; }
.bouton[disabled] { opacity: .65; cursor: progress; transform: none; }

.bouton__fleche {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bouton__trait { transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.bouton__chevron { transition: transform .2s; }
.bouton:hover .bouton__trait,
.bouton:focus-visible .bouton__trait { transform: scaleX(1); }
.bouton:hover .bouton__chevron,
.bouton:focus-visible .bouton__chevron { transform: translateX(3px); }

/* Grilles de cartes : le nombre de colonnes s'adapte à la largeur */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--carte-min, 240px)), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grille--3 { --carte-min: 280px; }
.grille--5 { --carte-min: 200px; }

.carte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
}
.carte__titre { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.carte__texte { font-size: 1rem; color: var(--gris-texte); }
.carte__surtitre {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.carte--grande { padding: 30px; border-radius: 20px; }
.carte--grande .carte__titre { font-size: 1.375rem; letter-spacing: -0.015em; }

/* 5. EN-TÊTE ET MENU : une seule pilule flottante ========================= */
/* Maquette V17 (logo définitif) : logo à gauche, liens au centre, bouton
   violet à droite, dans une pilule blanche qui reste visible au défilement. */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px var(--marge-page) 0;
  pointer-events: none;          /* seule la pilule capte les clics */
}
.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  justify-content: flex-start;     /* le menu se centre grâce à ses marges automatiques */
  max-width: 1240px;               /* un peu plus large que le contenu (1200 px) */
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-pilule);
  background: var(--fond);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.10);
  pointer-events: auto;
}
.entete__logo { display: flex; align-items: center; text-decoration: none; }

/* Logo : symbole TALA + mot « tala » écrit dans la police du site.
   La hauteur du symbole suit la taille du mot (unité em). */
.logo {
  display: inline-flex;
  align-items: baseline;   /* bas du symbole posé sur la ligne de base */
  gap: 0.22em;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--bleu-nuit);
}
.logo__symbole { height: 0.775em; width: auto; } /* = hauteur du « l » */
.logo__mot { display: block; }
.logo--pied { font-size: 64px; }

/* Liens de navigation, au centre de la pilule */
.menu {
  position: static;
  inset: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  margin: 0 auto;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
}
.menu a {
  padding: 8px 0;
  color: var(--bleu-nuit);
  text-decoration: none;
  transition: color .2s;
}
.menu a:hover { color: var(--violet); }
.menu .menu__diagnostic { display: none; }  /* visible seulement dans le menu mobile */

/* Téléphone : icône violette + numéro ; icône seule dans un rond sous 1080 px */
.entete__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--bleu-nuit);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
.entete__tel .icone { color: var(--violet); }
.entete__tel:hover { color: var(--violet); }
@media (max-width: 1079px) {
  .entete__tel {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--fond-alterne);
  }
  .entete__tel-numero { display: none; }
}

/* Bouton « menu » (mobile) : caché par défaut */
.entete__bascule {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--fond-alterne);
  color: var(--bleu-nuit);
  cursor: pointer;
}

/* Mobile : le menu devient un panneau ouvert par le bouton.
   Il utilise l'attribut HTML « popover » : ouverture, fermeture au clic
   à côté et touche Échap sont gérées par le navigateur, sans JavaScript.
   Les navigateurs trop anciens gardent simplement la pilule de liens. */
@supports selector(:popover-open) {
  @media (max-width: 859px) {
    .entete__bascule { display: inline-flex; }
    .entete__tel { margin-left: auto; }   /* téléphone et boutons regroupés à droite */
    .menu {
      position: fixed;
      inset: calc(var(--hauteur-entete) + 4px) 16px auto 16px;
      flex-direction: column;
      gap: 2px;
      padding: 10px;
      border: 1px solid var(--bordure);
      border-radius: var(--rayon-grand);
      background: var(--fond);
      box-shadow: 0 24px 60px rgba(10, 37, 64, 0.16);
      font-size: 1.0625rem;
    }
    .menu:not(:popover-open) { display: none; }
    .menu::backdrop { background: rgba(10, 37, 64, 0.18); }
    .menu a { padding: 14px 18px; border-radius: 14px; transition: background-color .2s; }
    .menu a:hover { background: var(--fond-alterne); color: var(--bleu-nuit); }
    .menu .menu__diagnostic {
      display: block;
      margin-top: 6px;
      background: var(--violet);
      color: #FFFFFF;
      text-align: center;
    }
    .menu .menu__diagnostic:hover { background: var(--violet-survol); color: #FFFFFF; }
  }
  @media (max-width: 559px) {
    .entete__cta { display: none; }   /* le bouton est repris dans le panneau */
  }
}

/* 6. HERO ================================================================ */
.hero {
  background:
    radial-gradient(ellipse 55% 65% at 82% 0%, rgba(124, 92, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 55% at 10% 10%, rgba(255, 111, 181, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 40% at 60% 100%, rgba(255, 179, 107, 0.14), transparent 70%),
    var(--fond);
  padding: clamp(48px, 7vw, 90px) var(--marge-page) clamp(64px, 8vw, 112px);
}
.hero__contenu {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__contenu { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); }
}
.hero__texte {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.hero__accroche {
  max-width: 580px;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--gris-texte);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

/* Trois cartes empilées en escalier.
   Chaque carte ne recouvre que la marge intérieure de la précédente :
   les textes restent toujours lisibles, quelle que soit leur longueur. */
.pile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pile__carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.06);
}
.pile__carte:nth-child(2) { box-shadow: 0 20px 50px rgba(10, 37, 64, 0.08); }
.pile__carte:nth-child(3) { box-shadow: 0 24px 60px rgba(10, 37, 64, 0.12); }
.pile__titre { font-size: 1.0625rem; font-weight: 700; }
.pile__texte { font-size: 0.9375rem; color: var(--gris-texte); }
.pile .icone { stroke-width: 1.8; color: var(--violet); }  /* les 3 icônes en violet */
@media (min-width: 600px) {
  .pile { gap: 0; }
  .pile__carte { width: 78%; }
  .pile__carte:nth-child(2) { margin: -14px 0 0 11%; }
  .pile__carte:nth-child(3) { margin: -14px 0 0 22%; }
}

/* 7. BANDEAU « LE MOT QUI CHANGE » ======================================= */
.bandeau {
  padding: clamp(28px, 4vw, 44px) var(--marge-page);
  background: var(--degrade);
  color: #FFFFFF;
  overflow: hidden;
}
.bandeau__texte {
  --ligne: 1.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.625rem, 1rem + 3vw, 3.25rem);   /* 52 px sur ordinateur */
  line-height: var(--ligne);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.bandeau__fixe { opacity: 0.85; }
.bandeau__fenetre {
  display: block;
  height: var(--ligne);
  overflow: hidden;
}
.bandeau__mots {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mot-qui-change 10s cubic-bezier(.7, 0, .3, 1) infinite;
}
.bandeau__mots span { height: var(--ligne); white-space: nowrap; }
@media (min-width: 1240px) {
  .bandeau__texte { flex-direction: row; justify-content: center; align-items: baseline; column-gap: 18px; }
  .bandeau__mots { align-items: flex-start; }
}
/* 4 mots + répétition du premier : un mot toutes les 2,5 s, en boucle */
@keyframes mot-qui-change {
  0%, 20%  { transform: translateY(0); }
  25%, 45% { transform: translateY(-20%); }
  50%, 70% { transform: translateY(-40%); }
  75%, 95% { transform: translateY(-60%); }
  100%     { transform: translateY(-80%); }
}

/* 8. OFFRES (ONGLETS) ==================================================== */
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: flex-start;
  padding: 8px;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 30px;
}
@media (min-width: 760px) { .onglets { border-radius: var(--rayon-pilule); } }
.onglet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--rayon-pilule);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
@media (max-width: 479px) {
  .onglets { gap: 6px; padding: 6px; }
  .onglet { padding: 10px 13px; font-size: 0.875rem; }
}
.onglet:hover { background: var(--fond-alterne); color: var(--bleu-nuit); }
.onglet[aria-selected="true"] { background: var(--bleu-nuit); color: #FFFFFF; }

/* Un panneau d'offre : carte dégradée à gauche, texte à droite */
.offre {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
.offre__visuel {
  flex: 1 1 420px;
  min-width: 0;
  min-height: clamp(240px, 30vw, 340px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 3.4vw, 36px);
  border-radius: 28px;
  background: var(--degrade-carte);
  color: #FFFFFF;
}
.offre__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}
.offre__promesse {
  max-width: 420px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.offre__texte {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.offre__titre {
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.offre__liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
  color: var(--gris-texte);
}
.offre .bouton { align-self: flex-start; }

/* Encadré « Votre besoin ne rentre dans aucune case ? » */
.besoin-specifique {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--lavande-bordure);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lavande-1), var(--lavande-2));
}
.besoin-specifique__texte {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--gris-texte);
}
.besoin-specifique__titre {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bleu-nuit);
}
.besoin-specifique .bouton { flex: none; }

.collaboration {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}
.collaboration__titre { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* 9. MÉTHODE, ENGAGEMENTS, À PROPOS ====================================== */
.etape { padding: 26px; }
.etape__numero {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: var(--rayon-pilule);
  background: var(--violet);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
}
.etape__titre { font-size: 1.1875rem; font-weight: 600; }
.etape__texte { font-size: 0.9375rem; color: var(--gris-texte); }

.engagement { gap: 12px; }
.engagement__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lavande-1), var(--lavande-2));
  border: 1px solid var(--lavande-bordure);
  color: var(--violet);
}

.duo {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 56px);
}
.duo__titre {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.duo__texte {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--gris-texte);
}

/* 10. CONTACT ET FORMULAIRE ============================================== */
.contact {
  border-top: 1px solid var(--bordure);
  background:
    radial-gradient(ellipse 50% 65% at 12% 100%, rgba(255, 111, 181, 0.10), transparent 70%),
    radial-gradient(ellipse 45% 60% at 92% 0%, rgba(124, 92, 255, 0.10), transparent 70%),
    var(--fond);
}
.contact__infos {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.coordonnees {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
  font-style: normal;
}
.coordonnees a { font-weight: 600; }
.coordonnees .coordonnees__adresse {
  color: var(--gris-texte);
  font-weight: 400;
  text-decoration: none;
}
.coordonnees .coordonnees__adresse:hover { color: var(--violet); text-decoration: underline; }

.formulaire {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-grand);
}
.formulaire__large { grid-column: 1 / -1; }
.formulaire__note { font-size: 0.875rem; color: var(--gris-texte); }
.formulaire .bouton { justify-self: start; }

.champ {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bleu-fonce);
}
.champ input,
.champ textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--bordure-champ);
  border-radius: 12px;
  background: var(--fond);
  color: var(--bleu-nuit);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(91, 63, 224, 0.22);
}
.champ__requis { color: var(--violet); }

/* Champ piège anti-spam : invisible pour les visiteurs, rempli par les robots */
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages après l'envoi : affichés par le script, ou par l'ancre (#…)
   quand JavaScript est désactivé */
.message {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.message:target,
.message.est-visible { display: block; }
.message--ok { background: #E8F7EE; border: 1px solid #A6DDBD; color: var(--vert-succes); }
.message--erreur { background: #FDECEA; border: 1px solid #F3B5AE; color: var(--rouge-erreur); }

/* 11. PIED DE PAGE ======================================================= */
.pied {
  padding: 64px var(--marge-page) 36px;
  background: var(--fond-alterne);
  border-top: 1px solid var(--bordure);
  color: var(--gris-texte);
  font-size: 0.9375rem;
}
.pied__contenu { display: flex; flex-direction: column; gap: 40px; }
.pied__colonnes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.pied__marque {
  flex: 1 1 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.pied__colonne { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pied__titre { color: var(--bleu-nuit); font-size: 0.875rem; font-weight: 600; }
.pied__colonne a { color: var(--gris-texte); text-decoration: none; }
.pied__colonne a:hover { color: var(--violet); text-decoration: underline; }
.pied__colonne a.pied__lien-accent { color: var(--violet); }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--bordure);
  font-size: 0.875rem;
}
.pied__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied__legal a { color: var(--bleu-fonce); }

/* 12. PAGES LÉGALES ET PAGE 404 ========================================== */
.page-texte { padding: clamp(40px, 6vw, 72px) var(--marge-page) clamp(64px, 8vw, 104px); }
.page-texte__contenu {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--gris-texte);
}
.page-texte h1 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--bleu-nuit);
}
.page-texte h2 {
  margin-top: 22px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bleu-nuit);
}
.page-texte ul { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.page-texte strong { color: var(--bleu-nuit); }
.page-texte__maj { font-size: 0.9375rem; }
/* Information encore à renseigner avant la mise en ligne (voir LISEZMOI.md) */
.a-completer {
  padding: 1px 6px;
  border-radius: 6px;
  background: #FFF3C4;
  color: #7A4B00;
  font-weight: 600;
}
.page-404 { text-align: center; }
.page-404 .page-texte__contenu { margin-inline: auto; align-items: center; }

/* 13. RÉDUCTION DES ANIMATIONS =========================================== */
/* Respecte le réglage « réduire les animations » du système du visiteur. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
