/* =====================================================================
   Schirrtech — feuille de styles
   ---------------------------------------------------------------------
   Mobile-first : les règles de base visent le téléphone, les media
   queries (min-width) ajoutent les mises en page plus larges.
   Couleurs, typos et espacements passent tous par les variables de :root.

   1.  Design system
   2.  Base
   3.  Utilitaires
   4.  Boutons
   5.  En-tête et navigation
   6.  Accueil
   7.  Sections et titres
   8.  Services (grille bento)
   9.  Fonctionnement (frise)
   10. Tarifs
   11. À propos
   12. Contact et formulaire
   13. Pied de page
   14. Compléments (professionnels, parcours, conditions, FAQ, accès, carte, mentions légales)
   15. Mises en page plus larges
   15 bis. Finitions visuelles (trame, icônes, cartes, réalisation, pied de page,
           fonds teintés, particules)
   15 ter. En-tête : langue et mode clair / sombre
   15 quater. Mode sombre
   15 quinquies. Suivi de réparation et espace équipe
   16. Préférences utilisateur
   ===================================================================== */


/* ---------------------------------------------------------------------
   0. Polices
   ---------------------------------------------------------------------
   Inter et Raleway sont hébergées sur le site (dossier fonts/) : aucune
   requête n'est envoyée à Google Fonts. Fichiers « variables » : un seul
   fichier par famille couvre toutes les graisses utilisées.
   Licence SIL Open Font License 1.1 (voir fonts/LICENCE.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/raleway-latin.woff2") format("woff2");
}


/* ---------------------------------------------------------------------
   1. Design system
   --------------------------------------------------------------------- */
:root {
  /* Palette de la charte graphique (logo/README.md) :
     bleu nuit #052747, bleu profond #0A3A94, bleu #0A6CC4 (#0A62C0 sous un texte blanc),
     cyan #14B9EC, fond clair #F2F7FC. Pas de noir : en mode sombre, le fond est #04192F.
     Les autres valeurs sont des nuances claires de ces couleurs. */
  --bg-main: #F2F7FC;
  --bg-surface: #FFFFFF;
  --bg-alt: #F2F7FC;
  --text-primary: #052747;          /* bleu nuit : 15:1 sur blanc */
  --text-secondary: #4A5F78;        /* 6,6:1 sur blanc, 6,1:1 sur le fond clair */
  --brand-primary: #0A6CC4;         /* bleu : 5,3:1 sur blanc */
  --brand-accent: #0A6CC4;          /* bouton d'appel : dégradé de la charte, voir .btn--accent */
  --border-light: #DBE5F0;

  /* Contrastes WCAG AA :
     - --brand-primary sert aux contours de focus, puces et repères ;
     - --brand-primary-strong sert aux liens et aux boutons bleus ;
     - le cyan #14B9EC (2,3:1 sur blanc) ne sert qu'aux décors et au texte sur fond sombre. */
  --brand-primary-strong: #0A62C0;  /* 6:1 avec le blanc */
  --brand-primary-hover: #0A3A94;   /* bleu profond : 10:1 */
  --brand-primary-soft: #DBE5F0;
  --brand-accent-hover: #0A3A94;    /* 10:1 */
  --border-field: #C9D8E8;          /* bordure claire de la charte */
  --border-strong: #8396AE;         /* bordure des champs (3:1 sur blanc) */
  --text-on-dark: #FFFFFF;
  --ink: #052747;                   /* fond des blocs sombres (reste sombre en mode sombre) */
  --text-on-dark-muted: #C9D8E8;    /* 10:1 sur le bleu nuit */
  --danger: #B91C1C;                /* 6,5:1 sur blanc */
  --danger-soft: #FEF2F2;

  /* Typographie de la charte graphique (logo/README.md) : Raleway Bold pour les titres,
     Inter pour les textes. Raleway dessine par défaut des chiffres « elzéviriens » qui
     descendent sous la ligne : les titres passent en chiffres alignés (lining-nums). */
  --font-heading: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 1rem;
  --fs-small: 1rem;         /* 16 px sur mobile, 0,875rem sur ordinateur */
  --fs-body-sm: 1rem;       /* 16 px sur mobile, 0,9375rem sur ordinateur */
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h1: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --lh-base: 1.6;

  /* Espacements et formes */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --space-section: clamp(4rem, 2.75rem + 5.5vw, 7.5rem);
  --space-head: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  --container: 72rem;
  --header-height: 4.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;

  /* Ombres ultra-subtiles : juste de quoi décoller une surface du fond */
  --shadow-sm: 0 1px 2px rgba(5, 39, 71, 0.04);
  --shadow-md: 0 1px 2px rgba(5, 39, 71, 0.04), 0 4px 12px rgba(5, 39, 71, 0.04);

  --transition: 150ms ease;

  color-scheme: light;
}


/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-variant-numeric: lining-nums; /* chiffres alignés, y compris dans les titres en Raleway */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--brand-primary-strong);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

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

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

::selection {
  background: var(--brand-primary-soft);
  color: var(--text-primary);
}


/* ---------------------------------------------------------------------
   3. Utilitaires
   --------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sprite du logo : masqué sans display:none, pour que le masque SVG reste actif */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--text-on-dark);
}


/* ---------------------------------------------------------------------
   4. Boutons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  text-decoration: none;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: var(--fs-body-sm);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.8125rem 1.5rem;
  font-size: 1.1875rem;
}

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

/* Bouton d'appel principal : dégradé de la charte, 19 px en gras */
.btn--accent {
  background: var(--brand-accent);
  /* dégradé de la charte (bleu profond -> bleu) : le cyan, trop clair sous un texte blanc, est laissé de côté.
     Contraste le plus faible, du côté bleu : 5,3:1. */
  background-image: linear-gradient(90deg, #0A3A94, #0A6CC4);
  color: #FFFFFF;
  font-size: 1.1875rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  background: var(--brand-accent-hover);
  background-image: none;
  color: #FFFFFF;
}

.btn--primary {
  background: var(--brand-primary-strong);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--brand-primary-hover);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-field);
  color: var(--text-primary);
}

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

/* Bouton clair, pour les fonds sombres */
.btn--light {
  background: #FFFFFF;
  color: #052747;
}

.btn--light:hover {
  background: #DBE5F0;
  color: #052747;
}


/* ---------------------------------------------------------------------
   5. En-tête et navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  /* le logo a une marge interne : on la compense pour l'aligner sur le contenu */
  margin-left: calc(-2.25rem * 0.125);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
}

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

.brand__logo {
  height: 2.25rem;
  width: calc(2.25rem * 1010 / 192);
}

.brand__logo--small {
  height: 2rem;
  width: calc(2rem * 1010 / 192);
}

/* Bouton du menu mobile (piloté par script.js) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0 0.625rem;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle:hover {
  background: var(--bg-alt);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile : le menu se déplie sous la barre */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.nav.is-open {
  display: block;
}

.nav__list {
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

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

.nav__cta {
  width: 100%;
  margin-top: 1.25rem;
}


/* ---------------------------------------------------------------------
   6. Accueil
   --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 1.75rem + 7vw, 7.5rem) clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4.5rem);
}

.hero__kicker {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.hero__kicker::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  /* centré sur la première ligne, même si le texte passe sur deux lignes */
  margin-top: calc((1.6em - 0.5rem) / 2);
  background: var(--brand-primary);
  border-radius: 50%;
}

.hero__title {
  max-width: 16ch;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__actions .btn {
  flex: 1 1 100%;
}

.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.hero__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

/* petite coche dessinée en CSS */
.hero__assurances li::before {
  content: "";
  flex: none;
  width: 0.375rem;
  height: 0.6875rem;
  margin-top: -0.25rem;
  border: solid var(--brand-primary-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ---------------------------------------------------------------------
   7. Sections et titres
   --------------------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--bg-alt);
}

.section--bordered {
  border-top: 1px solid var(--border-light);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-head);
}

.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head__text {
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
}


/* ---------------------------------------------------------------------
   8. Services (grille bento)
   --------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.bento__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.bento__meta {
  color: var(--brand-primary-strong);
  font-size: var(--fs-small);
  font-weight: 600;
}

.bento__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Le grand bloc « Réparation » a un titre plus affirmé */
.bento__item--wide:not(.bento__item--dark) .bento__title {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
}

.bento__text {
  max-width: 40rem;
  color: var(--text-secondary);
}

.bento__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-left: 1.125rem;
  font-size: var(--fs-body-sm);
}

.bento__list li {
  padding-left: 0.25rem;
}

.bento__list li::marker {
  color: var(--brand-primary);
}

/* lien de bas de bloc */
.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  text-decoration: none;
}

.bento__link:hover {
  text-decoration: underline;
}

/* Bloc sombre : appel à l'action */
.bento__item--dark {
  justify-content: center;
  background: var(--ink);
  border-color: var(--ink);
}

.bento__item--dark .bento__title {
  color: var(--text-on-dark);
}

.bento__item--dark .bento__text {
  color: var(--text-on-dark-muted);
}

.bento__item--dark .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}


/* ---------------------------------------------------------------------
   9. Fonctionnement (frise : verticale sur mobile, horizontale ensuite)
   --------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0 0 0 3.5rem;
  list-style: none;
}

/* le trait de la frise */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: calc(1.125rem - 0.5px);
  width: 1px;
  background: var(--border-field);
}

.timeline__step {
  position: relative;
}

.timeline__num {
  position: absolute;
  top: -0.375rem;
  left: -3.5rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  /* même fond que la section : le trait passe « derrière » le numéro */
  background: var(--bg-alt);
  border: 1px solid var(--border-field);
  border-radius: 50%;
  color: var(--brand-primary-strong);
  font-family: var(--font-heading);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

.timeline__title {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline__text {
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}


/* ---------------------------------------------------------------------
   10. Tarifs
   --------------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 3rem) clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
}

.price-table caption {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.price-table th {
  padding-right: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  text-align: left;
}

.price-table td {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.pricing__note {
  margin-top: 2.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}


/* ---------------------------------------------------------------------
   11. À propos
   --------------------------------------------------------------------- */
.about {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.about__lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.about__body {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.about__subtitle {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.commitments {
  padding: 0;
  list-style: none;
}

.commitments li {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border-field);
}

.commitments li:last-child {
  border-bottom: 0;
}

.commitments strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
}

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


/* ---------------------------------------------------------------------
   12. Contact et formulaire
   --------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.contact__text {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
}

.contact-details {
  margin-top: 2rem;
}

.contact-details__row {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--border-light);
}

.contact-details__row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.contact-details dt {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.contact-details dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-details a,
.legal__details a {
  font-weight: 600;
}

.form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form__intro {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.field {
  display: grid;
  gap: 0.5rem;
}

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

.field__facultatif {
  color: var(--text-secondary);
  font-weight: 400;
}

.field__hint {
  margin-top: -0.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color var(--transition), background-color var(--transition);
}

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

.field__input:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
  border-color: var(--brand-primary);
}

.field__input--area {
  min-height: 9rem;
  resize: vertical;
  line-height: var(--lh-base);
}

.field__input--select {
  padding-right: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234A5F78' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem;
  cursor: pointer;
}

/* champ signalé vide par script.js (aria-invalid) */
.field__input[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: var(--danger-soft);
}

/* message d'erreur sous un champ, affiché par script.js */
.field__error {
  color: var(--danger);
  font-size: var(--fs-small);
  font-weight: 500;
}

.form__note {
  min-height: 1.5em;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* type de demande : devis ou question */
.form__type {
  margin: 0;
  padding: 0;
  border: 0;
}

.form__type legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

.form__choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form__option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  cursor: pointer;
}

.form__option:has(input:checked) {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary-strong);
  font-weight: 600;
}

.form__option input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--brand-primary-strong);
}

.form__option:has(input:focus-visible) {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* piège à robots, invisible pour les visiteurs */
.form__piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__note--ok {
  padding: 0.75rem 1rem;
  background: rgba(22, 163, 74, 0.1);
  border-radius: var(--radius-sm);
  color: #15803D;
  font-weight: 600;
}

[data-theme="dark"] .form__note--ok {
  color: #86EFAC;
}

/* secours quand la messagerie du visiteur ne s'ouvre pas */
.form__fallback {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
}

.form__fallback[hidden] {
  display: none;
}

.form__fallback-title {
  color: var(--text-primary);
  font-weight: 600;
}

.form__fallback .field__input--area {
  min-height: 7rem;
  font-size: var(--fs-body-sm);
}

.form__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.form__copy-status {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.form__privacy {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}


/* ---------------------------------------------------------------------
   13. Pied de page
   --------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
}

.site-footer .brand {
  margin-left: calc(-2rem * 0.125);
}

.site-footer__tagline {
  max-width: 22rem;
  margin-top: 0.75rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.site-footer__nav a,
.site-footer__bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__bottom a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-field);
  font-size: var(--fs-small);
}


/* ---------------------------------------------------------------------
   14. Compléments : professionnels, parcours, conditions, FAQ, accès
   --------------------------------------------------------------------- */

/* Les éléments masqués par l'attribut hidden le restent, même s'ils ont un display */
[hidden] {
  display: none !important;
}

/* Liens isolés (hors phrase) : zone cliquable d'au moins 44 px de haut */
.section-next a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}

.section-next a:not(.btn):hover {
  text-decoration: underline;
}

/* Liens de coordonnées : zone cliquable agrandie sans décaler la mise en page */
.facts a,
.contact-details a,
.legal__details a {
  display: inline-block;
  padding-block: 0.625rem;
  margin-block: -0.625rem;
}

/* Bloc « Réparation » : appareils et interventions côte à côte */
.bento__split {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.bento__subtitle {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
}

/* Mention « Pour les professionnels » : une ligne sobre sous la grille */
.pro-note {
  display: grid;
  gap: 0.5rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border-top: 1px solid var(--border-light);
}

.pro-note__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pro-note__text {
  max-width: 44rem;
  color: var(--text-secondary);
}

.pro-note__text a {
  font-weight: 600;
  white-space: nowrap;
}

/* Fonctionnement : un titre par parcours */
.flow-title {
  margin-bottom: 1.75rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Parcours courts (domicile, site web) : listes numérotées simples */
.flows {
  display: grid;
  gap: 3rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--border-field);
}

.flow .flow-title {
  margin-bottom: 1rem;
}

.flow__steps {
  padding-left: 1.5rem;
}

.flow__steps li {
  padding: 0.875rem 0 0.875rem 0.375rem;
  border-bottom: 1px solid var(--border-field);
  color: var(--text-secondary);
}

.flow__steps li:last-child {
  border-bottom: 0;
}

.flow__steps li::marker {
  color: var(--brand-primary-strong);
  font-family: var(--font-heading);
  font-weight: 700;
}

.flow__steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Lien ou bouton de passage à la section suivante */
.section-next {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* Tarifs et conditions */
.terms {
  display: grid;
  border-top: 1px solid var(--text-primary);
}

.terms__item {
  display: grid;
  align-content: start; /* les textes restent en haut quand une case voisine est plus longue */
  gap: 0.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.terms dt {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

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

/* Questions fréquentes (details/summary natifs, sans JavaScript) */
.faq {
  display: grid;
  gap: 2rem;
}

.faq__lead {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
}

.faq__lead a {
  font-weight: 600;
}

.faq__list {
  border-top: 1px solid var(--border-light);
}

.faq__item {
  border-bottom: 1px solid var(--border-light);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.5rem;
  padding-block: 1rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color var(--transition);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* chevron dessiné en CSS : indique l'état ouvert ou fermé */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-right: 0.25rem;
  border: solid var(--text-secondary);
  border-width: 0 2px 2px 0;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.faq__item summary:hover {
  color: var(--brand-primary-strong);
}

.faq__item summary:focus-visible {
  outline-offset: 2px;
  border-radius: 4px;
}

.faq__item p {
  max-width: 44rem;
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
}

/* Accès */
.access {
  display: grid;
  gap: 2rem;
}

.access__info {
  max-width: 40rem;
}

.access__details > div {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.875rem;
  border-top: 1px solid var(--border-field);
}

.access__details > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.access__details dt {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.access__details dd {
  font-weight: 500;
}

.access__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.access__actions .btn {
  flex: 1 1 100%;
}

/* Carte : un cadre de 260 px (mobile) ou 320 px, chargé seulement au clic.
   isolation : les calques de Leaflet restent sous l'en-tête collant. */
.map {
  position: relative;
  isolation: isolate;
  min-height: 260px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  min-height: inherit;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}

.map__address {
  font-size: 1.125rem;
  line-height: 1.5;
}

.map__address strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.map__note {
  max-width: 28rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.map__canvas {
  position: absolute;
  inset: 0;
}

/* Habillage de Leaflet (sélecteurs préfixés pour passer devant leaflet.css) */
.map .leaflet-container {
  font-family: var(--font-body);
}

.map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.map .leaflet-popup-content {
  margin: 0.875rem 1.125rem;
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
}

.map .leaflet-popup-content strong {
  font-family: var(--font-heading);
}

.map .leaflet-popup-content a {
  color: var(--brand-primary-strong);
  font-weight: 600;
}

.map .leaflet-control-attribution a {
  color: var(--brand-primary-strong);
}

/* boutons de zoom assez grands pour le doigt */
.map .leaflet-container .leaflet-bar a {
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
}

/* Contact */
.bento__note,
.flow__note {
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
  font-style: italic;
}

.flow__note {
  margin-top: 1rem;
}

.contact__more {
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.contact__more a {
  font-weight: 600;
}

/* Pied de page : liens assez hauts pour le doigt */
.site-footer__nav a,
.site-footer__bottom a {
  display: inline-block;
  padding-block: 0.625rem;
}

.site-footer__nav ul {
  row-gap: 0;
}

/* ---------------------------------------------------------------------
   15. Mises en page plus larges
   --------------------------------------------------------------------- */

/* Grand téléphone : boutons de l'accueil côte à côte */
@media (min-width: 30em) {
  .hero__actions .btn {
    flex: 0 0 auto;
  }
}

/* Tablette */
@media (min-width: 45em) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento__item--wide {
    grid-column: 1 / -1;
  }

  .bento__list--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ordinateur : menu complet, frise horizontale, titres en deux colonnes */
@media (min-width: 56.25em) {
  .menu-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    position: static;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav__list {
    display: flex;
    gap: 1.75rem;
  }

  .nav__link {
    padding: 0.25rem 0;
    border-bottom: 0;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
  }

  .nav__link:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.4em;
  }

  .nav__cta {
    width: auto;
    margin-top: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: 4rem;
  }

  .about {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 1rem + 5vw, 6rem);
    align-items: start;
  }

  .about__commitments {
    padding-top: 0.5rem;
  }

  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 1rem + 5vw, 6rem);
    align-items: start;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .site-footer__bottom {
    grid-column: 1 / -1;
  }
}

/* Grand écran : accueil en deux colonnes, bento sur 12 colonnes, tarifs sur 3 */
@media (min-width: 64em) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    align-items: center;
    gap: clamp(3rem, 1rem + 4vw, 5rem);
  }

  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bento__item {
    grid-column: span 5;
  }

  .bento__item--wide {
    grid-column: span 7;
  }

  .pricing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Compléments (section 14) : mises en page plus larges */
@media (min-width: 30em) {
  .access__actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 45em) {
  .bento__split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

@media (min-width: 56.25em) {
  /* Sur ordinateur, les textes secondaires reprennent leur taille réduite */
  :root {
    --fs-body-sm: 0.9375rem;
    --fs-small: 0.875rem;
  }

  /* Variante de titre de section : titre et texte l'un sous l'autre */
  .section-head--stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 46rem;
  }

  .pro-note {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: baseline;
    gap: 4rem;
  }

  .flows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 1rem + 4vw, 5rem);
  }

  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(3rem, 1rem + 4vw, 5rem);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  .access:has(.map) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
    align-items: stretch;
  }

  .map {
    min-height: 320px;
  }

  .site-footer__nav ul {
    column-gap: 1.25rem;
  }
}

@media (min-width: 64em) {
  /* Frise horizontale : 5 étapes, il faut la largeur d'un grand écran */
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 3.5rem 0 0;
  }

  .timeline--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .timeline::before {
    top: calc(1.125rem - 0.5px);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .timeline__num {
    top: -3.5rem;
    left: 0;
  }

  .terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Page « Mentions légales » */
.site-header__inner > .btn {
  flex: none;
  white-space: nowrap;
}

.legal__inner {
  width: min(100% - 2 * var(--gutter), 48rem);
}

.legal__block {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.legal__title {
  margin-bottom: 1rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal__details > div {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border-light);
}

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

.legal__details dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.legal__text {
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
}

.legal__footer {
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 45em) {
  .legal__details > div {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.legal__meta {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.legal__text ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.legal__text li::marker {
  color: var(--brand-primary);
}

/* Impression (CGV et mentions légales imprimées pour l'atelier) : uniquement le texte */
@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .section-next {
    display: none;
  }

  body {
    background: #FFFFFF;
    font-size: 10pt;
    line-height: 1.45;
  }

  .section {
    padding-block: 0;
  }

  .legal__inner {
    width: 100%;
  }

  .legal__block {
    margin-top: 1rem;
    break-inside: auto;
  }

  .legal__title {
    margin-bottom: 0.375rem;
    font-size: 12pt;
    break-after: avoid;
  }

  .legal__text {
    gap: 0.375rem;
    color: var(--text-primary);
  }

  .legal__details > div {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 0.25rem;
  }

  .legal__details a {
    padding-block: 0;
    margin-block: 0;
    color: var(--text-primary);
    text-decoration: none;
  }
}

/* ---------------------------------------------------------------------
   15 bis. Finitions visuelles
   ---------------------------------------------------------------------
   Couche d'habillage ajoutée par-dessus les sections précédentes :
   trame discrète, icônes, cartes, bloc « Réalisation », pied de page sombre.
   Aucune animation au défilement : seulement des survols courts.
   Pour revenir à l'ancien rendu, il suffit de retirer cette section.
   --------------------------------------------------------------------- */
:root {
  --brand-sky: #14B9EC;             /* reflets et filets décoratifs uniquement */
  --brand-sky-soft: #B9EAF9;
  --brand-on-dark: #5CCDF2;         /* 9,6:1 sur --text-primary */
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --radius-btn: 10px;
  --shadow-lg: 0 1px 2px rgba(5, 39, 71, 0.04), 0 18px 36px -18px rgba(5, 39, 71, 0.18);
  /* trame de points, rappel des pastilles du logo */
  --dots: radial-gradient(circle at 1px 1px, rgba(5, 39, 71, 0.13) 1px, transparent 0);
}

/* En-tête : filet de marque et léger flou du contenu qui défile dessous */
.site-header {
  background: rgba(242, 247, 252, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary-strong), var(--brand-sky));
}

/* Boutons */
.btn {
  border-radius: var(--radius-btn);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition),
    box-shadow var(--transition);
}

.btn--accent {
  box-shadow: 0 1px 2px rgba(5, 39, 71, 0.08), 0 10px 20px -10px rgba(10, 108, 196, 0.6);
}

.btn--primary {
  box-shadow: 0 1px 2px rgba(5, 39, 71, 0.08);
}

/* Bouton à contour clair, pour les fonds sombres */
.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-on-dark);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

/* Accueil : trame de points et halo bleu, estompés vers le texte */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image: var(--dots);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 88% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 88% 12%, #000 0%, transparent 72%);
}

.hero::after {
  top: -30%;
  right: -12%;
  width: min(60rem, 75%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(20, 185, 236, 0.22), transparent);
}

.hero__accent {
  color: var(--brand-primary-strong);
}

.hero__kicker {
  align-items: center;
  width: fit-content;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem; /* reste arrondi quand le texte passe sur deux lignes */
  box-shadow: var(--shadow-sm);
}

.hero__kicker::before {
  margin-top: 0;
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.hero__assurances {
  gap: 0.5rem;
  font-size: var(--fs-small);
}

.hero__assurances li {
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.6875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Accueil : titre en deux temps, la promesse en bleu sur sa propre ligne */
.hero {
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.hero__title {
  max-width: none;
  text-wrap: balance;
}

.hero__accent {
  display: block;
}

/* Illustration : ordinateur, téléphone et deux cartes, dessinés en SVG */
.hero__art {
  display: none;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-art__device {
  filter: drop-shadow(0 18px 24px rgba(5, 39, 71, 0.16));
}

.hero-art__card {
  filter: drop-shadow(0 10px 18px rgba(5, 39, 71, 0.12));
}

.hero-art__titre {
  fill: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.hero-art__texte {
  fill: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
}

/* Bande « En bref » : les infos pratiques sous l'accueil */
.hero__facts {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(120deg, var(--brand-sky), var(--border-light) 35%) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.facts {
  display: grid;
}

.fact {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.125rem 1.25rem;
  border-top: 1px solid var(--border-light);
}

.fact:first-child {
  border-top: 0;
}

.fact dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
}

.fact__icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand-primary-strong);
}

.fact dd {
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Mention « Pour les professionnels » : un encart teinté */
.pro-note {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: #F2F7FC;
  border: 1px solid var(--brand-sky-soft);
  border-radius: var(--radius-md);
}

.pro-note__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pro-note__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-primary-strong);
}

/* À propos : les engagements dans une carte */
.about__commitments {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.commitments li {
  border-bottom-color: var(--border-light);
}

.commitments li:last-child {
  padding-bottom: 0;
}

/* Contact : icônes devant le téléphone et l'e-mail */
.contact-details dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-details__icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand-primary-strong);
}

/* Sur-titre de section */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  color: var(--brand-primary-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Services : pastille d'icône, survol discret */
.bento__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--brand-primary-soft);
  border-radius: 10px;
  color: var(--brand-primary-strong);
}

.bento__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.bento__item {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.bento__item:not(.bento__item--dark):hover {
  border-color: var(--border-field);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bento__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: auto;
}

.bento__links .bento__link {
  margin-top: 0;
}

.bento__item--dark {
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(10, 98, 192, 0.55) 0%, transparent 60%),
    var(--ink);
}

.bento__item--dark .bento__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-on-dark);
}

/* Fonctionnement : numéros sur fond blanc, parcours courts en cartes */
.timeline__num {
  background: var(--bg-surface);
  border-color: var(--brand-sky-soft);
  box-shadow: 0 0 0 4px var(--bg-alt);
}

.flow {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.flow__steps li {
  border-bottom-color: var(--border-light);
}

.flow__note {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
  font-style: italic;
}

/* Tarifs et conditions : une carte par engagement */
.terms {
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  border-top: 0;
}

.terms__item {
  gap: 0.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.terms dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.terms__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-primary-strong);
}

/* Réalisation : bande sombre, capture dans un cadre de navigateur */
.showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
}

.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -15%;
  width: min(70rem, 90%);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(10, 98, 192, 0.5), transparent);
  pointer-events: none;
}

.showcase__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.showcase__content {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.showcase h2,
.showcase h3 {
  color: var(--text-on-dark);
}

.showcase .eyebrow {
  margin-bottom: -0.25rem;
  color: var(--brand-on-dark);
}

.showcase__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.showcase__domain {
  color: var(--brand-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0;
}

.showcase__text {
  max-width: 34rem;
  color: var(--text-on-dark-muted);
}

.showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.showcase__tags li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
}

.showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.browser {
  margin: 0;
  overflow: hidden;
  background: #163A5C;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -30px rgba(1, 12, 24, 0.7);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
}

.browser__dots {
  display: flex;
  flex: none;
  gap: 0.375rem;
}

.browser__dots span {
  width: 0.625rem;
  height: 0.625rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.browser__url {
  flex: 1;
  min-width: 0;
  margin-right: 2.25rem; /* équilibre visuel avec les trois points */
  padding: 0.1875rem 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* À propos : engagements numérotés */
.commitments {
  counter-reset: engagement;
}

.commitments li {
  position: relative;
  min-height: 4.75rem;
  padding-left: 3.5rem;
  counter-increment: engagement;
}

.commitments li::before {
  content: counter(engagement, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--brand-sky-soft);
  border-radius: 50%;
  color: var(--brand-primary-strong);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Questions fréquentes : une carte par question */
.faq__list {
  display: grid;
  gap: 0.625rem;
  border-top: 0;
}

.faq__item {
  padding-inline: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item:hover,
.faq__item[open] {
  border-color: var(--border-field);
  box-shadow: var(--shadow-md);
}

.faq__item[open] summary {
  color: var(--brand-primary-strong);
}

/* Accès : la zone de la carte reprend la trame de points */
.map__placeholder {
  background-image: var(--dots);
  background-size: 20px 20px;
}

.map__address,
.map__note {
  padding: 0.125rem 0.375rem;
  margin-inline: -0.375rem;
  background: var(--bg-surface);
  border-radius: 4px;
}

/* Pages légales : un texte suivi d'une liste de coordonnées */
.legal__text + .legal__details {
  margin-top: 1rem;
}

/* Contact : la carte du formulaire ressort davantage */
.form {
  box-shadow: var(--shadow-lg);
}

/* Pied de page sombre */
.site-footer {
  background: var(--ink);
  border-top: 0;
  color: var(--text-on-dark-muted);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--text-on-dark);
}

.site-footer__heading {
  margin-bottom: 0.75rem;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}

.site-footer__contact ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.site-footer__nav a,
.site-footer__contact a,
.site-footer__bottom a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover,
.site-footer__bottom a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.site-footer__bottom {
  border-top-color: var(--border-on-dark);
}

.site-footer a:focus-visible,
.showcase a:focus-visible {
  outline-color: var(--brand-on-dark);
}

@media (min-width: 30em) {
  .hero__kicker {
    white-space: nowrap;
  }
}

@media (min-width: 30em) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(2) {
    border-top: 0;
  }

  .fact:nth-child(even) {
    border-left: 1px solid var(--border-light);
  }
}

@media (min-width: 45em) {
  .hero__art {
    display: block;
    max-width: 30rem;
    margin-inline: auto;
  }
}

@media (min-width: 64em) {
  .hero__art {
    max-width: none;
    margin-inline: 0;
  }

  /* Le halo et la trame restent près de l'illustration, même sur un écran très large */
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 36rem 30rem at calc(50% + 20rem) 35%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 36rem 30rem at calc(50% + 20rem) 35%, #000 0%, transparent 72%);
  }

  .hero::after {
    top: -8rem;
    right: auto;
    left: calc(50% - 2rem);
    width: 46rem;
  }

  .facts {
    grid-template-columns: 1.3fr 1fr 1.3fr 0.9fr;
  }

  .facts .fact {
    padding: 1.25rem 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--border-light);
  }

  .facts .fact:first-child {
    border-left: 0;
  }

  .about__commitments {
    padding-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  }
}

@media (min-width: 56.25em) {
  .showcase__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media print {
  .site-header::before {
    display: none;
  }
}


/* Fonds teintés : un bleu-gris très léger à la place du blanc, alterné d'une section à l'autre.
   Les cartes restent blanches et ressortent sur ces fonds. */
:root {
  --bg-main: #F2F7FC;
  --bg-alt: #E6EEF7;   /* texte secondaire : 6,6:1 ; liens bleus : 5,1:1 */
  --bg-tint: #ECF2F9;
}

.site-header {
  background: rgba(242, 247, 252, 0.92);
}

.hero {
  background: linear-gradient(180deg, rgba(219, 229, 240, 0.4) 0%, rgba(242, 247, 252, 0) 100%);
}

/* Services, tarifs, questions et contact : léger dégradé qui sépare les sections.
   Fonds en partie transparents : le fond de particules reste visible derrière. */
#services,
#tarifs,
#faq,
#contact {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0) 0%, rgba(230, 238, 247, 0.35) 100%);
}

.section--alt {
  background: rgba(219, 229, 240, 0.45);
}

.section--bordered {
  border-top-color: transparent;
}



/* Fond de particules de toute la page (site/particules.js), version claire de « Particle Drift ».
   Fixé derrière le contenu : les cartes, le formulaire, la section « Réalisation »
   et le pied de page, qui ont un fond plein, le cachent. */
.page-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media print {
  .page-particles {
    display: none;
  }
}


/* ---------------------------------------------------------------------
   15 ter. En-tête : langue et mode clair / sombre
   --------------------------------------------------------------------- */
.header-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* téléphone : le bouton du menu passe après le bouton clair / sombre */
.menu-toggle {
  order: 3;
  margin-left: 0.25rem;
}

.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}

.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-switch a[aria-current="page"] {
  background: #0A62C0;
  color: #FFFFFF;
}

/* sur téléphone, le choix de langue est dans le menu ; dans la barre à partir de l'ordinateur */
.lang-switch--bar {
  display: none;
}

.lang-switch--menu {
  margin-top: 1rem;
}

.theme-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-field);
}

.theme-toggle:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.header-tools .btn {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 23.99em) {
  .brand__logo {
    height: 1.875rem;
    width: calc(1.875rem * 1010 / 192);
  }
}

@media (min-width: 56.25em) {
  .nav,
  .nav.is-open {
    margin-left: auto;
  }

  .header-tools {
    margin-left: 1.25rem;
  }

  .lang-switch--bar {
    display: inline-flex;
  }

  .lang-switch--menu {
    display: none;
  }
}

/* largeur intermédiaire : on resserre le menu pour laisser la place aux boutons */
@media (min-width: 56.25em) and (max-width: 67.5em) {
  .nav,
  .nav.is-open {
    gap: 1.25rem;
  }

  .nav__list {
    gap: 1.125rem;
  }
}


/* ---------------------------------------------------------------------
   15 quater. Mode sombre (bouton soleil / lune, ou réglage de l'appareil)
   ---------------------------------------------------------------------
   Limité à l'écran : à l'impression, la page reste toujours claire. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg-main: #04192F;
    --bg-surface: #0A2742;
    --bg-alt: #072038;
    --bg-tint: #061D34;
    --text-primary: #DBE5F0;          /* 14:1 sur --bg-surface */
    --text-secondary: #A9BDD3;        /* 7,5:1 sur --bg-surface */
    --border-light: #163A5C;
    --border-field: #2B4F73;
    --border-strong: #4F6E90;
    --brand-primary: #14B9EC;
    --brand-primary-strong: #5CCDF2;  /* liens : 10:1 sur --bg-surface */
    --brand-primary-hover: #B9EAF9;
    --brand-primary-soft: rgba(20, 185, 236, 0.14);
    --brand-sky-soft: rgba(92, 205, 242, 0.35);
    --danger: #FCA5A5;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --ink: #021224;
    --shadow-sm: 0 1px 2px rgba(1, 12, 24, 0.3);
    --shadow-md: 0 1px 2px rgba(1, 12, 24, 0.3), 0 4px 12px rgba(1, 12, 24, 0.25);
    --shadow-lg: 0 1px 2px rgba(1, 12, 24, 0.3), 0 18px 36px -18px rgba(1, 12, 24, 0.6);
    --dots: radial-gradient(circle at 1px 1px, rgba(131, 150, 174, 0.18) 1px, transparent 0);
  }

  [data-theme="dark"] .site-header {
    background: rgba(4, 25, 47, 0.88);
  }

  [data-theme="dark"] .hero {
    background: linear-gradient(180deg, rgba(10, 58, 148, 0.35) 0%, rgba(4, 25, 47, 0) 100%);
  }

  [data-theme="dark"] #services,
  [data-theme="dark"] #tarifs,
  [data-theme="dark"] #faq,
  [data-theme="dark"] #contact {
    background: linear-gradient(180deg, rgba(4, 25, 47, 0) 0%, rgba(7, 32, 56, 0.5) 100%);
  }

  [data-theme="dark"] .section--alt {
    background: rgba(7, 32, 56, 0.6);
  }

  [data-theme="dark"] .hero::after {
    background: radial-gradient(closest-side, rgba(20, 185, 236, 0.16), transparent);
  }

  /* boutons bleus : on garde un bleu soutenu sous le texte blanc */
  [data-theme="dark"] .btn--primary {
    background: #0A62C0;
    color: #FFFFFF;
  }

  [data-theme="dark"] .btn--primary:hover {
    background: #0A6CC4;
    color: #FFFFFF;
  }

  [data-theme="dark"] .pro-note {
    background: rgba(20, 185, 236, 0.07);
    border-color: rgba(20, 185, 236, 0.22);
  }

  /* illustration de l'accueil : cadres et cartes adaptés au fond sombre */
  [data-theme="dark"] .hero-art__device > rect:first-child {
    fill: #163A5C;
  }

  [data-theme="dark"] .hero-art__card > rect:first-child {
    fill: #0A2742;
    stroke: #163A5C;
  }

  [data-theme="dark"] .hero-art circle[fill="#fff"] {
    fill: #04192F;
  }

  [data-theme="dark"] .hero-art__device {
    filter: drop-shadow(0 18px 24px rgba(1, 12, 24, 0.45));
  }

  [data-theme="dark"] .hero-art__card {
    filter: drop-shadow(0 10px 18px rgba(1, 12, 24, 0.4));
  }

  [data-theme="dark"] .field__input--select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23A9BDD3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  }

  [data-theme="dark"] .site-footer {
    border-top: 1px solid var(--border-light);
  }
}


/* bouton « Mon compte » de l'en-tête (accueil) : avec son texte, sauf quand la place manque (voir plus bas) */
.compte-lien {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), background-color var(--transition);
}

.compte-lien:hover {
  border-color: var(--border-field);
}

.compte-lien:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.compte-lien svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand-primary-strong);
}

/* icône seule : petit téléphone, et ordinateur étroit où le menu complet prend la place */
@media (max-width: 24.99em), (min-width: 56.25em) and (max-width: 74.99em) {
  .compte-lien {
    padding: 0;
  }

  .compte-lien__texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* page Mon compte (compte.html) */
.compte__inner {
  width: min(100% - 2 * var(--gutter), 56rem);
}

.compte__choix {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.compte__carte {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.compte__titre {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
}

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

.compte__form {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}

.compte__lien {
  margin-top: auto;
}

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


/* ---------------------------------------------------------------------
   15 quinquies. Suivi de réparation (suivi.html) et espace équipe (gestion.html)
   --------------------------------------------------------------------- */
/* choix de langue toujours visible dans l'en-tête des pages simples */
.lang-switch--always {
  display: inline-flex;
}

.suivi__inner,
.gestion__inner {
  width: min(100% - 2 * var(--gutter), 46rem);
}

.suivi__intro {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
}

.suivi__form {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.suivi__row {
  display: grid;
  gap: 0.75rem;
}

.suivi__input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suivi__input::placeholder {
  letter-spacing: 0.06em;
  text-transform: none;
}

.suivi__status {
  min-height: 1.5em;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.suivi__indispo {
  display: grid;
  gap: 0.375rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-sky-soft);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.suivi__indispo-titre {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.suivi__resultat {
  margin-top: 0.5rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.suivi__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.suivi__numero {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
}

.suivi__appareil {
  margin-top: 0.25rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.suivi__badge {
  flex: none;
  padding: 0.375rem 0.875rem;
  background: var(--brand-primary-soft);
  border-radius: 999px;
  color: var(--brand-primary-strong);
  font-size: var(--fs-small);
  font-weight: 700;
}

.suivi__badge[data-statut="pret"],
.suivi__badge[data-statut="rendu"] {
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
}

.suivi__badge[data-statut="devis"] {
  background: rgba(20, 185, 236, 0.16);   /* cyan de la charte, texte bleu profond : 8:1 */
  color: #0A3A94;
}

/* frise verticale des étapes */
.suivi__etapes {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.suivi__etape {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
}

/* trait entre deux étapes */
.suivi__etape:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: -1.25rem;
  left: calc(1rem - 1px);
  width: 2px;
  background: var(--border-light);
}

.suivi__etape--fait:not(:last-child)::before {
  background: var(--brand-primary);
}

.suivi__pastille {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-field);
  border-radius: 50%;
}

.suivi__etape--fait .suivi__pastille {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* coche des étapes faites */
.suivi__etape--fait .suivi__pastille::after {
  content: "";
  width: 0.375rem;
  height: 0.6875rem;
  margin-top: -0.1875rem;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.suivi__etape--en-cours .suivi__pastille {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-soft);
}

.suivi__etape--en-cours .suivi__pastille::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  background: var(--brand-primary);
  border-radius: 50%;
}

.suivi__etape-titre {
  padding-top: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.suivi__etape--a-venir .suivi__etape-titre {
  color: var(--text-secondary);
  font-weight: 600;
}

.suivi__etape-texte {
  margin-top: 0.125rem;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.suivi__etape-date {
  margin-top: 0.125rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.suivi__message {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.suivi__message-titre {
  font-size: var(--fs-small);
  font-weight: 700;
}

.suivi__maj {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.suivi__aide {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.suivi__aide-icone {
  flex: none;
  margin-top: 0.125rem;
  color: var(--brand-primary-strong);
}

@media (min-width: 36em) {
  .suivi__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* espace équipe */
.gestion__carte {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.gestion__connexion {
  max-width: 26rem;
}

.gestion__titre {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gestion__aide {
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.gestion__grille {
  display: grid;
  gap: 1rem;
}

.gestion__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.gestion__devis {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border-field);
  border-left: 4px solid #14b9ec;
  border-radius: 0.5rem;
}

.gestion__devis-titre {
  color: var(--text-primary);
  font-weight: 600;
}

.gestion__devis-etapes {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding-left: 1.25rem;
}

.gestion__devis-etapes li {
  display: grid;
  justify-items: start;
  gap: 0.375rem;
}

.gestion__devis-fichier {
  max-width: 100%;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.gestion__devis-choisi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
}

.gestion__coordonnees {
  margin-top: 1rem;
}

.gestion__coordonnees > summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--fs-body-sm);
}

.gestion__coordonnees[open] > summary {
  margin-bottom: 0.75rem;
}

.gestion__coordonnees .gestion__aide {
  margin: 0.5rem 0 0.75rem;
}

.gestion__prestations {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 48em) {
  .gestion__prestations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gestion__prestations-groupe {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-field);
  border-radius: 0.5rem;
}

.gestion__prestations-groupe legend {
  padding: 0 0.375rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--fs-body-sm);
}

.gestion__prestation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: var(--fs-body-sm);
  color: var(--text-primary);
}

.gestion__prestation label {
  cursor: pointer;
}

.gestion__prestation-prix {
  color: var(--text-secondary);
  white-space: nowrap;
}

.gestion__prestation-quantite {
  width: 4.5rem;
  min-height: 0;
  padding: 0.25rem 0.5rem;
}

.gestion__ajustement {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

@media (min-width: 48em) {
  .gestion__ajustement {
    grid-template-columns: 1.3fr 0.7fr 1.5fr;
  }
}

.gestion__total {
  margin-top: 0.875rem;
  color: var(--text-primary);
  font-size: var(--fs-body);
}

.gestion__devis-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
}

.gestion__devis-option input {
  margin-top: 0.2rem;
}

.gestion__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.gestion__etat {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.gestion__filtre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.gestion__nouveau {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-sky-soft);
  border-radius: var(--radius-sm);
}

.gestion__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gestion__lien {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.gestion__tickets {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gestion__ticket {
  display: grid;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
}

.gestion__ticket[data-statut="pret"] {
  border-left-color: #16A34A;
}

.gestion__ticket[data-statut="devis"] {
  border-left-color: var(--brand-accent);
}

.gestion__ticket[data-statut="rendu"],
.gestion__ticket[data-statut="non_reparable"] {
  border-left-color: var(--border-field);
}

.gestion__ticket-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.gestion__ticket-appareil {
  font-weight: 600;
}

.gestion__ticket-info {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.gestion__supprimer {
  color: var(--danger);
}

@media (min-width: 40em) {
  .gestion__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  [data-theme="dark"] .suivi__badge[data-statut="pret"],
  [data-theme="dark"] .suivi__badge[data-statut="rendu"] {
    background: rgba(74, 222, 128, 0.12);
    color: #86EFAC;
  }

  [data-theme="dark"] .suivi__badge[data-statut="devis"] {
    background: rgba(20, 185, 236, 0.16);
    color: #5CCDF2;
  }
}


/* ---------------------------------------------------------------------
   Suivi : échanges client ↔ atelier, types de tickets (réparation / commande)
   --------------------------------------------------------------------- */

.suivi__badge[data-statut="annulee"],
.suivi__badge[data-statut="non_reparable"] {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.suivi__echanges {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.suivi__echanges-titre {
  font-size: 1.125rem;
  font-weight: 700;
}

.suivi__echanges-vide,
.suivi__echanges-clos {
  color: var(--text-secondary);
}

/* fil de discussion : messages du client à droite, de l'atelier à gauche */
.suivi__fil,
.gestion__fil {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suivi__bulle,
.gestion__bulle {
  max-width: min(36rem, 90%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
  white-space: pre-line; /* garde les retours à la ligne du message */
}

.suivi__bulle--atelier,
.gestion__bulle--client {
  justify-self: start;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.suivi__bulle--client,
.gestion__bulle--atelier {
  justify-self: end;
  background: var(--brand-primary-soft);
  border: 1px solid var(--border-field);
  border-bottom-right-radius: 4px;
}

.suivi__bulle-auteur,
.gestion__bulle-tete {
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
}

.suivi__ecrire {
  display: grid;
  gap: 0.5rem;
}

.suivi__ecrire .field__input {
  min-height: 6rem;
  resize: vertical;
}

.suivi__ecrire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.suivi__ecrire-etat {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* espace équipe */
.gestion__ticket-type {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0;
}

.gestion__ticket-type[data-type="commande"] {
  background: rgba(20, 185, 236, 0.16);
  color: #0A3A94;
}

.gestion__nonlus {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: var(--brand-primary-strong);
  border-radius: 999px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
}

.gestion__ticket[data-statut="annulee"] {
  border-left-color: var(--border-field);
}

.gestion__echanges {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.gestion__echanges[open] {
  gap: 0.875rem;
}

.gestion__echanges summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

/* Page de suivi sur téléphone : le logo ramène déjà à l'accueil ; le bouton « Retour au site » est masqué
   pour laisser la place au logo, au choix de la langue et au mode sombre. */
@media (max-width: 29.99em) {
  .lang-switch--always ~ .btn {
    display: none;
  }
}

@media screen {
  [data-theme="dark"] .gestion__ticket-type[data-type="commande"] {
    background: rgba(20, 185, 236, 0.16);
    color: #5CCDF2;
  }
}

/* ---------------------------------------------------------------------
   16. Préférences utilisateur
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
