/* Garage des Remparts : feuille de style.
   Couleurs : blanc cassé #F7F8F6, gris acier clair #EEF1F4, bleu atelier #16324F (texte, en-tête),
   nuit d'atelier #0C1B2B (sections sombres), acier #9FB3C8 (texte secondaire sur fond sombre),
   rouge #C8231E (boutons, zone rouge du compte-tours) et rouge vif #E0362C (accents sur fond sombre).
   Polices : Barlow Condensed 600 (titres), Barlow 400 et 600 (texte), fichiers locaux dans fonts/.
   Motion : signature « compte-tours » (aiguille qui monte au chargement puis avec le scroll) et
   « rideau métallique » (les photos se découvrent comme une porte de garage qui se lève).
   Tout le mouvement vit sous html.js-motion (posée seulement sans prefers-reduced-motion). */

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #F7F8F6;
  --carte: #FFFFFF;
  --gris: #EEF1F4;
  --nuit: #0C1B2B;
  --nuit-2: #13283E;
  --acier: #A9BACB;
  --rouge-vif: #E0362C;
  --ease-moteur: cubic-bezier(0.16, 1, 0.3, 1);
  --bleu: #16324F;
  --rouge: #C8231E;
  --filet: rgba(22, 50, 79, 0.15);
  --colonne: 1180px;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(48px, 6vw, 80px);
  --corps: clamp(17px, 16px + 0.25vw, 18px);
  --h1: clamp(46px, 22px + 4.8vw, 100px);
  --h1-page: clamp(40px, 26px + 3vw, 76px);
  --h2: clamp(34px, 24px + 2.2vw, 64px);
  --h3: 1.25rem;
  --titres: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --texte: "Barlow", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  background: var(--blanc);
  color: var(--bleu);
  font-family: var(--texte);
  font-size: var(--corps);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--bleu);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--titres);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--h1-page);
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h2 {
  font-size: var(--h2);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: var(--h3);
  font-family: var(--texte);
  margin-bottom: 0.5rem;
}

p,
ul,
ol,
dl,
table,
address {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

strong {
  font-weight: 600;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

img {
  opacity: 0;
  transition: opacity 200ms;
}

img.est-chargee,
.no-js img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  img {
    transition: none;
    opacity: 1;
  }
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: auto;
  padding: 0.75rem 1rem;
  background: var(--blanc);
  color: var(--bleu);
  font-weight: 600;
  z-index: 100;
}

/* Au focus, le lien entre dans le flux entre la barre BRNSG et l'en-tête :
   bande blanche, texte bleu, contour bleu à l'intérieur. Il ne recouvre rien. */
.lien-evitement:focus {
  position: static;
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--filet);
}

.lien-evitement:focus-visible {
  outline-offset: -4px;
}

[data-brnsg-horaires] {
  font-size: 0.9375rem;
}

/* Toute cible d'ancre reste sous la barre BRNSG collante de 36 px. */
[id] {
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + 1rem);
}

/* ----------------------------- Mise en page ------------------------------ */
.colonne {
  width: 100%;
  max-width: calc(var(--colonne) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.colonne-etroite {
  max-width: calc(780px + 2 * var(--gouttiere));
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--filet);
}

.section-grise {
  background: var(--gris);
  border-top: 0;
}

.section-premiere {
  border-top: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section-suite {
  margin-top: 2rem;
}

.bouton {
  display: inline-block;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.bouton-principal {
  background: var(--rouge);
}

.bouton:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Bouton inactif ou en cours d'envoi : gris clair, texte bleu (11,7:1), filet.
   Pas d'opacité : le bouton rouge à 60 % tombait à 1,95:1. */
.bouton:disabled,
.bouton[aria-busy="true"] {
  background: var(--gris);
  color: var(--bleu);
  border: 1px solid var(--filet);
  padding: 11px 21px;
  cursor: default;
  text-decoration: none;
}

/* -------------------------------- En-tête -------------------------------- */
.entete {
  background: var(--bleu);
  color: var(--blanc);
}

.entete a {
  color: var(--blanc);
}

.entete :focus-visible {
  outline-color: var(--blanc);
}

.entete-grille {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.entete-marque {
  display: inline-block;
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  padding-block: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.entete-marque:hover {
  text-decoration: underline;
}

.menu-bouton {
  display: none;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--blanc);
  border: 1px solid var(--blanc);
  font-weight: 600;
}

.menu-bouton[aria-expanded="true"] {
  background: var(--blanc);
  color: var(--bleu);
}

.entete-nav {
  display: flex;
  gap: 1.5rem;
  min-width: 0;
  flex-wrap: wrap;
}

.entete-nav a {
  display: inline-block;
  text-decoration: none;
  padding-block: 0.6rem;
  font-weight: 600;
}

.entete-nav a:hover,
.entete-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.entete-contact {
  display: grid;
  justify-items: end;
  margin: 0;
  text-align: right;
}

.entete-tel {
  font-family: var(--titres);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.5rem;
}

.entete-tel:hover {
  text-decoration: underline;
}

.entete-horaires {
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .entete-grille {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    padding-block: 0.75rem;
  }

  .entete-marque {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.5rem;
    white-space: normal;
  }

  .menu-bouton {
    display: inline-block;
    grid-column: 2;
    grid-row: 1;
  }

  .entete-contact {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
    text-align: left;
  }

  .entete-tel {
    font-size: 1.5rem;
  }

  .entete-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .entete.menu-ouvert .entete-nav {
    display: flex;
  }

  .entete-nav a {
    padding-block: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .entete-nav a:hover,
  .entete-nav a[aria-current] {
    text-underline-offset: 3px;
  }
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section);
}

.hero-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
}

.hero-texte {
  grid-column: 1;
  grid-row: 1;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--filet);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

/* Entre 901 et 1080 px, la colonne du formulaire fait moins de 480 px : les
   rangées à deux champs s'empilent pour que « Choisir une prestation » tienne. */
@media (max-width: 1080px) {
  .hero-texte .champ-rangee {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sous 900 px (même seuil que l'en-tête), photo en bandeau puis formulaire :
   à 768 px, deux colonnes de 338 px écrasaient les rangées à deux champs. */
@media (max-width: 900px) {
  .hero-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo,
  .hero-texte {
    grid-column: 1;
  }

  .hero-photo {
    grid-row: 1;
  }

  .hero-texte {
    grid-row: 2;
  }

  .hero-photo img {
    max-height: 240px;
  }
}

/* ------------------------------ Formulaire ------------------------------- */
.formulaire {
  margin-bottom: 1.5rem;
}

.champ {
  margin-bottom: 1.1rem;
  min-width: 0;
}

.champ label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.champ-optionnel {
  font-weight: 400;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  background: var(--blanc);
  border: 1px solid var(--bleu);
  border-radius: 0;
}

.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316324F' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

.champ textarea {
  resize: vertical;
  min-height: 6rem;
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
}

.champ [aria-invalid="true"] {
  border: 2px solid var(--rouge);
}

.champ-erreur {
  color: var(--rouge);
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0.35rem 0 0;
}

.formulaire-erreur {
  margin-top: 0.75rem;
}

.formulaire-erreur:empty {
  display: none;
}

.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.champ-rangee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  min-height: 44px;
  font-size: 0.9375rem;
}

.consentement input {
  accent-color: var(--bleu);
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  flex: none;
}

.consentement + .champ-erreur {
  margin-bottom: 0.75rem;
}

.formulaire .bouton {
  margin-top: 0.75rem;
}

.formulaire-succes {
  padding: 1.25rem;
  border: 1px solid var(--bleu);
  background: var(--gris);
  margin-bottom: 1.5rem;
}

.formulaire-succes p:first-child {
  font-weight: 600;
}

.formulaire-note {
  font-size: 0.9375rem;
}

/* Plaque d'immatriculation : bandes bleues en CSS, champ en monospace système. */
.plaque {
  display: flex;
  border: 1px solid var(--bleu);
  background: var(--blanc);
}

.plaque:focus-within {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
}

.plaque-bande {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: 600;
  font-size: 0.9375rem;
}

.champ .plaque-champ {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  border: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.champ .plaque-champ:focus-visible {
  outline: none;
}

.champ .plaque-champ[aria-invalid="true"] {
  border: 0;
}

.plaque:has(.plaque-champ[aria-invalid="true"]) {
  border: 2px solid var(--rouge);
}

/* ------------------------------- Tarifs ---------------------------------- */
.tarifs-tableau {
  overflow-x: auto;
  margin-bottom: 1rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.tableau caption {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--filet);
}

.tableau th,
.tableau td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--filet);
}

.tableau thead th {
  background: var(--gris);
  border-bottom: 2px solid var(--bleu);
  white-space: nowrap;
}

.tableau tbody th {
  font-weight: 400;
}

.tableau td {
  white-space: nowrap;
}

.tableau .tableau-groupe th {
  font-weight: 600;
  background: var(--gris);
}

.tableau .tableau-groupe a {
  display: inline-block;
  padding-block: 0.5rem;
  text-decoration: none;
}

.tableau .tableau-groupe a:hover {
  text-decoration: underline;
}

.prix-note {
  font-size: 0.9375rem;
}

.tarifs-conditions {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
  border-top: 1px solid var(--filet);
}

.tarifs-conditions li {
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--filet);
}

/* Onglets par type de véhicule : visibles sous 720 px seulement. */
.tarifs-onglets {
  display: none;
}

.onglets {
  display: flex;
  border-bottom: 2px solid var(--bleu);
}

.onglet {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0.6rem 0.5rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-bottom: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.onglet[aria-selected="true"] {
  background: var(--bleu);
  color: var(--blanc);
  border-color: var(--bleu);
}

.onglet:focus-visible {
  outline-offset: -3px;
}

.panneau {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-top: 0;
  padding: 1rem;
}

.tarifs-groupe {
  font-weight: 600;
  margin: 1rem 0 0.25rem;
}

.tarifs-groupe:first-child {
  margin-top: 0;
}

.tarifs-groupe a {
  display: inline-block;
  padding-block: 0.6rem;
  text-decoration: none;
}

.tarifs-groupe a:hover {
  text-decoration: underline;
}

.tarifs-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tarifs-liste li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--filet);
}

.tarifs-prix {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .tarifs-tableau {
    display: none;
  }

  .tarifs-onglets {
    display: block;
    margin-bottom: 1rem;
  }
}

/* ----------------------------- Prestations ------------------------------- */
.prestations-grille {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.prestation-carte {
  margin: 0;
}

.prestation-carte a {
  display: block;
  text-decoration: none;
}

.prestation-carte a:hover h3 {
  text-decoration: underline;
}

.prestation-carte img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--filet);
  margin-bottom: 0.75rem;
}

.prestation-carte h3 {
  margin-bottom: 0.35rem;
}

.prestation-carte p {
  margin: 0;
}

/* -------------------------------- Équipe --------------------------------- */
.equipe-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--filet);
  margin-bottom: 0.75rem;
}

.portrait h3 {
  margin-bottom: 0.15rem;
}

.portrait p {
  margin-bottom: 0.25rem;
}

.portrait-role {
  font-weight: 600;
}

/* ------------------------------ Rendez-vous ------------------------------ */
.rdv-prochain {
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: var(--gris);
  border-left: 4px solid var(--bleu);
}

.rdv-bloc {
  margin-bottom: 1.5rem;
}

.rdv-etiquette {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rdv-jours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.jour-bouton {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  background: var(--blanc);
  border: 1px solid var(--bleu);
  line-height: 1.2;
}

.jour-bouton[aria-pressed="true"] {
  background: var(--bleu);
  color: var(--blanc);
}

.jour-nom {
  font-size: 0.875rem;
  text-transform: capitalize;
}

.jour-date {
  font-weight: 600;
  white-space: nowrap;
}

.rdv-creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}

.creneau-bouton {
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  background: var(--blanc);
  border: 1px solid var(--bleu);
  font-weight: 600;
}

.creneau-bouton[aria-pressed="true"] {
  background: var(--bleu);
  color: var(--blanc);
}

.creneau-bouton:disabled {
  background: var(--gris);
  border-color: var(--filet);
  text-decoration: line-through;
  font-weight: 400;
  cursor: default;
}

.rdv-legende {
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
}

.rdv-resume {
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

/* -------------------------------- Avis ----------------------------------- */
.avis-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.avis-chiffre {
  font-family: var(--titres);
  font-size: var(--h1);
  line-height: 1.1;
}

.avis-extrait {
  padding: 1rem 0;
  border-top: 1px solid var(--filet);
}

.avis-extrait:last-child {
  border-bottom: 1px solid var(--filet);
}

.avis-tete {
  margin-bottom: 0.5rem;
}

.avis-extrait p:last-child {
  margin-bottom: 0;
}

.avis-reponse {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--blanc);
  border-left: 4px solid var(--bleu);
}

/* -------------------------------- Accès ---------------------------------- */
.acces-grille {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}

.acces-texte h3 {
  margin-top: 1.25rem;
}

/* Communes desservies : liste compacte sur deux colonnes, une commune par élément. */
.zone-liste {
  columns: 2;
  column-gap: 1.5rem;
  padding-left: 1.2rem;
}

.zone-liste li {
  break-inside: avoid;
}

/* Obligation du métier (attestation, agrément) sous la liste des opérations. */
.label {
  padding: 0.75rem 1rem;
  background: var(--gris);
  border-left: 4px solid var(--bleu);
}

.acces-plan {
  width: 100%;
  border: 1px solid var(--filet);
  background: var(--blanc);
}

/* --------------------------------- FAQ ----------------------------------- */
.faq-item {
  border-top: 1px solid var(--filet);
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--filet);
}

.faq-item summary {
  padding: 0.75rem 0;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary:focus-visible {
  outline-offset: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 0 1rem;
}

/* --------------------------- Pages de prestation ------------------------- */
.prestation-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.prestation-photo-grande img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--filet);
}

/* ------------------------------- L'atelier ------------------------------- */
.galerie {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.galerie li {
  margin: 0;
}

.galerie li:first-child {
  grid-column: 1 / -1;
}

.galerie img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--filet);
}

.pret-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pret-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--filet);
}

/* --------------------------- Pages légales et 404 ------------------------ */
.page-legale,
.page-404 {
  max-width: calc(780px + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gouttiere) var(--section);
}

.page-legale h2 {
  font-size: var(--h3);
  font-family: var(--texte);
  margin: 2rem 0 0.5rem;
}

.page-404 .bouton {
  margin-top: 0.5rem;
}

/* ------------------------------ Pied de page ----------------------------- */
.pied {
  background: var(--bleu);
  color: var(--blanc);
  padding-block: 3rem 2rem;
  font-size: 0.9375rem;
}

.pied a {
  color: var(--blanc);
}

.pied :focus-visible {
  outline-color: var(--blanc);
}

.pied-grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.pied-titre {
  font-family: var(--titres);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pied-colonne p,
.pied-colonne address {
  margin-bottom: 0.6rem;
}

.pied-tel {
  display: inline-block;
  font-family: var(--titres);
  font-size: 1.5rem;
  font-weight: 600;
  padding-block: 0.6rem;
  text-decoration: none;
}

.pied-tel:hover {
  text-decoration: underline;
}

.pied-colonne ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pied-colonne li {
  margin: 0;
}

.pied-colonne li a,
.pied-legal a,
.lien-seul {
  display: inline-block;
  padding-block: 0.65rem;
}

.pied-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.pied-legal p {
  margin: 0;
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 960px) {
  .prestations-grille,
  .equipe-grille {
    gap: 1.5rem;
  }

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

  .acces-grille {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .prestations-grille,
  .equipe-grille,
  .acces-grille,
  .prestation-grille,
  .pret-grille,
  .galerie,
  .champ-rangee {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    max-width: 380px;
  }

  .rdv-jours {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

@media (max-width: 480px) {
  .pied-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* ======================================================================
   Direction artistique 2026-10 : nuit d'atelier, compte-tours, rideau.
   ====================================================================== */

@view-transition {
  navigation: auto;
}

::selection {
  background: var(--rouge);
  color: #fff;
}

html {
  scrollbar-color: var(--bleu) var(--gris);
}

h2 {
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}

/* Filet rouge sous les titres de section : il se trace à l'apparition. */
main h2 {
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

main h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--rouge);
  transform-origin: left center;
}

.page-legale h2 {
  text-transform: none;
  padding-bottom: 0;
}

.page-legale h2::after {
  display: none;
}

.section {
  padding-block: clamp(56px, 7.5vw, 116px);
  border-top: 0;
}

/* ---------------------------- Sections sombres --------------------------- */
.sombre {
  background: var(--nuit);
  color: #EEF2F6;
}

.sombre a {
  color: #fff;
}

.sombre :focus-visible {
  outline-color: #fff;
}

.sombre h2::after {
  background: var(--rouge-vif);
}

/* ------------------------------- Boutons --------------------------------- */
.bouton {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2px;
  font-family: var(--titres);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 26px;
  transition: transform 300ms var(--ease-moteur), background-color 200ms;
}

.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nuit);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 450ms var(--ease-moteur);
}

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

.bouton:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.sombre .bouton::before {
  background: #fff;
}

.sombre .bouton:hover {
  color: var(--nuit);
}

.bouton > span {
  display: inline-block;
}

.bouton:disabled::before,
.bouton[aria-busy="true"]::before {
  display: none;
}

/* ------------------------------- En-tête --------------------------------- */
.entete {
  position: sticky;
  top: var(--brnsg-barre, 0px);
  z-index: 50;
  background: var(--nuit);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 300ms;
}

.entete.est-defilee {
  background: rgba(12, 27, 43, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.entete-grille {
  padding-block: 0.7rem;
}

.entete-marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.entete-marque:hover {
  text-decoration: none;
}

.entete-picto {
  width: 34px;
  height: 34px;
  flex: none;
  overflow: visible;
}

html:not(.js-motion) .entete-aiguille {
  transform-origin: 20px 24px;
  transition: transform 600ms var(--ease-moteur);
}

html:not(.js-motion) .entete-marque:hover .entete-aiguille {
  transform: rotate(95deg);
}

.entete-nav a {
  position: relative;
  text-decoration: none;
}

.entete-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--rouge-vif);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 400ms var(--ease-moteur);
}

.entete-nav a:hover,
.entete-nav a[aria-current] {
  text-decoration: none;
}

.entete-nav a:hover::after,
.entete-nav a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.entete-tel {
  letter-spacing: 0.01em;
}

.entete-tel:hover {
  text-decoration: none;
  color: #fff;
}

.entete-horaires {
  color: var(--acier);
}

/* Barre de progression de lecture : la « zone rouge » qui avance. */
.entete-progression {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--rouge-vif) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .entete-grille {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.5rem;
  }

  .entete-marque {
    font-size: 1.3rem;
  }

  .entete-picto {
    width: 28px;
    height: 28px;
  }

  .entete-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.75rem;
  }

  .entete-tel {
    font-size: 1.4rem;
    padding-block: 0.25rem;
  }

  .entete-horaires {
    font-size: 0.8125rem;
  }

  .entete-nav a::after {
    display: none;
  }

  .menu-bouton {
    border-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    font-family: var(--titres);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  background: var(--nuit);
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  min-height: clamp(560px, calc(100svh - var(--brnsg-barre, 0px) - 76px), 900px);
  display: grid;
  align-items: end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  grid-column: auto;
  grid-row: auto;
}

.hero-photo picture,
.hero-photo img {
  width: 100%;
  height: 100%;
}

.hero-photo img {
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 60% 50%;
  border: 0;
  transform-origin: 60% 50%;
}

/* Voile : lisibilité du texte à gauche, la photo respire à droite. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 27, 43, 0.96) 0%, rgba(12, 27, 43, 0.86) 34%, rgba(12, 27, 43, 0.35) 66%, rgba(12, 27, 43, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 27, 43, 0.9) 0%, rgba(12, 27, 43, 0) 45%);
}

/* Rideau métallique : lames horizontales qui se lèvent au chargement. */
.rideau {
  display: none;
}

.hero-grille {
  position: relative;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero-texte {
  grid-column: 1;
  grid-row: 1;
}

.hero .hero-titre {
  font-size: var(--h1);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  text-wrap: balance;
}

.hero-faits {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 3vw, 2.75rem);
}

.hero-faits li {
  margin: 0;
  display: grid;
  gap: 0.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rouge-vif);
}

.fait-chiffre {
  font-family: var(--titres);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--acier);
}

.fait-chiffre strong {
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
}

.fait-texte {
  font-size: 0.9375rem;
  color: var(--acier);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0;
}

.hero-actions .bouton {
  font-size: 1.4rem;
  padding: 16px 30px;
}

.hero-tel {
  font-family: var(--titres);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 400ms var(--ease-moteur);
}

.hero-tel:hover {
  background-size: 0% 2px;
  background-position: right bottom;
}

.hero-jauge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 320px);
}

/* Compte-tours */
.compte-tours {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ct-fond {
  fill: rgba(8, 18, 30, 0.62);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.ct-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
}

.ct-arc-rouge {
  fill: none;
  stroke: var(--rouge-vif);
  stroke-width: 6;
}

.ct-majeur {
  stroke: #fff;
  stroke-width: 3;
}

.ct-mineur {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.4;
}

.ct-rouge {
  stroke: var(--rouge-vif);
  stroke-width: 2.4;
}

.ct-chiffre {
  fill: #fff;
  font-family: var(--titres);
  font-size: 22px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.ct-chiffre-rouge {
  fill: var(--rouge-vif);
}

.ct-unite {
  fill: var(--acier);
  font-family: var(--texte);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-anchor: middle;
  text-transform: uppercase;
}

html:not(.js-motion) .ct-aiguille {
  transform-box: view-box;
  transform-origin: 160px 160px;
  transform: rotate(-84deg);
}

.ct-aiguille-trait {
  fill: var(--rouge-vif);
}

.ct-moyeu {
  fill: #1D3550;
  stroke: rgba(255, 255, 255, 0.35);
}

.ct-moyeu-centre {
  fill: var(--rouge-vif);
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    align-items: stretch;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    height: 46vw;
    min-height: 220px;
    max-height: 380px;
  }

  .hero-photo img {
    max-height: none;
  }

  .hero::before {
    top: 0;
    background: linear-gradient(0deg, var(--nuit) 0%, rgba(12, 27, 43, 0) 38%);
    height: max(46vw, 220px);
    max-height: 380px;
  }

  .hero-grille {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    margin-top: -2.5rem;
  }

  .hero-jauge {
    display: none;
  }

  .hero .hero-titre {
    max-width: none;
  }
}

/* ------------------------------ Bloc devis ------------------------------- */
.section-devis {
  background: var(--gris);
}

.devis-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.devis-intro {
  position: sticky;
  top: calc(var(--brnsg-barre, 0px) + 110px);
}

.devis-intro p {
  max-width: 36ch;
  font-size: 1.075rem;
}

.devis-intro p + p {
  font-weight: 600;
  padding-left: 0.9rem;
  border-left: 3px solid var(--rouge);
}

.devis-carte {
  background: var(--carte);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 4px solid var(--rouge);
  border-radius: 3px;
  box-shadow: 0 30px 60px -30px rgba(12, 27, 43, 0.45), 0 2px 6px rgba(12, 27, 43, 0.08);
}

.devis-carte .formulaire {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .devis-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .devis-intro {
    position: static;
  }

  .hero-texte {
    grid-row: 1;
  }
}

/* Champs : fond blanc pur, contour qui s'épaissit au focus. */
.champ input,
.champ select,
.champ textarea {
  background-color: var(--carte);
  border-color: rgba(22, 50, 79, 0.45);
  border-radius: 2px;
  transition: border-color 200ms, box-shadow 200ms;
}

.champ input:hover,
.champ select:hover {
  border-color: var(--bleu);
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, 0.18);
}

/* Plaque : vraie plaque française, bande bleue, fond blanc, liseré. */
.plaque {
  border: 2px solid #1B1B1B;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 6px 18px -10px rgba(12, 27, 43, 0.5);
}

.plaque-bande {
  background: #0D3FA6;
  width: 2.6rem;
}

.champ .plaque-champ {
  min-height: 58px;
  font-size: 1.75rem;
  color: #111;
  background: #fff;
}

/* ------------------------------- Tarifs ---------------------------------- */
.tarifs-tableau {
  border: 0;
  box-shadow: 0 24px 50px -36px rgba(12, 27, 43, 0.5);
}

.tableau caption {
  font-family: var(--titres);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--carte);
}

.tableau thead th {
  background: var(--bleu);
  color: #fff;
  border-bottom: 0;
  font-family: var(--titres);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tableau .tableau-groupe th {
  background: var(--gris);
  font-family: var(--titres);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tableau .tableau-groupe a {
  position: relative;
}

.tableau tbody tr:not(.tableau-groupe) {
  transition: background-color 200ms;
}

.tableau tbody tr:not(.tableau-groupe):hover {
  background: #FFF4F3;
}

.tableau tbody tr:not(.tableau-groupe):hover th {
  box-shadow: inset 4px 0 0 var(--rouge);
}

.tableau td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.onglet {
  font-family: var(--titres);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ----------------------------- Prestations ------------------------------- */
#prestations {
  overflow: hidden;
  padding-bottom: 0;
}

.prestations-grille {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.prestation-carte {
  grid-column: span 4;
  position: relative;
}

.prestation-revision {
  grid-column: span 7;
  grid-row: span 2;
}

.prestation-freinage {
  grid-column: span 5;
}

.prestation-pneus {
  grid-column: span 5;
}

.prestation-controle-technique {
  grid-column: span 4;
}

.prestation-carte a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 3px;
  color: #fff;
  background: var(--nuit-2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease-moteur);
}

.prestation-cadre,
.prestation-cadre picture {
  position: absolute;
  inset: 0;
  display: block;
}

.prestation-carte img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  margin: 0;
  transform: scale(1.04);
  transition: transform 900ms var(--ease-moteur), opacity 200ms;
}

.prestation-carte a:hover img {
  transform: scale(1.1);
}

.prestation-cadre::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 43, 0) 22%, rgba(12, 27, 43, 0.55) 55%, rgba(12, 27, 43, 0.95) 100%);
  transition: background-color 400ms;
}

.prestation-corps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.25rem 1rem;
  padding: clamp(1rem, 2.2vw, 1.75rem);
}

.prestation-carte h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
}

.prestation-revision h3 {
  font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem);
}

.prestation-resume {
  grid-column: 1;
  display: block;
  max-width: 44ch;
  color: #D7E0EA;
  font-size: 0.975rem;
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease-moteur), opacity 300ms;
}

.prestation-revision .prestation-resume {
  max-height: 6em;
  opacity: 1;
}

.prestation-carte a:hover .prestation-resume,
.prestation-carte a:focus-visible .prestation-resume {
  max-height: 6em;
  opacity: 1;
}

.prestation-prix {
  grid-column: 1;
  font-family: var(--titres);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
}

.prestation-prix::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: var(--rouge-vif);
}

.prestation-fleche {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background: var(--rouge);
  transition: transform 500ms var(--ease-moteur), background-color 300ms;
}

.prestation-fleche svg {
  width: 22px;
  height: 22px;
  transition: transform 500ms var(--ease-moteur);
}

.prestation-carte a:hover .prestation-fleche {
  background: #fff;
  color: var(--rouge);
}

.prestation-carte a:hover .prestation-fleche svg {
  transform: translateX(3px) rotate(-45deg);
}

.prestation-carte a:hover h3 {
  text-decoration: none;
}

.prestations-suite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  color: #C9D4DF;
  max-width: 1000px;
}

.prestations-suite h3 {
  color: #fff;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.prestations-suite > p:last-child {
  grid-column: 2;
}

/* Bandeau des marques : texte creux géant qui défile. */
.bandeau-marques {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.bandeau-piste {
  display: inline-flex;
  will-change: transform;
}

.bandeau-piste span {
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(3rem, 2rem + 6vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  padding-right: 0.6em;
  transition: color 300ms, -webkit-text-stroke-color 300ms;
}

.bandeau-piste span:nth-child(3n + 2) {
  -webkit-text-stroke-color: rgba(224, 54, 44, 0.75);
}

@media (max-width: 960px) {
  .prestation-carte,
  .prestation-revision,
  .prestation-freinage,
  .prestation-pneus,
  .prestation-controle-technique {
    grid-column: span 6;
    grid-row: auto;
  }

  .prestation-revision {
    grid-column: 1 / -1;
  }

  .prestation-carte a {
    min-height: 280px;
  }

  .prestations-suite {
    grid-template-columns: minmax(0, 1fr);
  }

  .prestations-suite h3,
  .prestations-suite > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .prestations-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .prestation-carte,
  .prestation-revision,
  .prestation-freinage,
  .prestation-pneus,
  .prestation-controle-technique {
    grid-column: 1;
  }

  .prestation-carte a {
    min-height: 240px;
  }

  .prestation-resume {
    max-height: 6em;
    opacity: 1;
  }
}

/* -------------------------------- Équipe --------------------------------- */
.equipe-grille {
  gap: clamp(1rem, 2.5vw, 2rem);
}

.portrait {
  position: relative;
}

.portrait picture {
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.portrait img {
  border: 0;
  margin: 0;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 600ms var(--ease-moteur), transform 900ms var(--ease-moteur), opacity 200ms;
}

.portrait:hover img {
  filter: none;
  transform: scale(1.04);
}

.portrait h3 {
  font-family: var(--titres);
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}

.portrait-role {
  color: var(--rouge);
  font-family: var(--titres);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.equipe-grille .portrait:nth-child(2) {
  margin-top: clamp(0px, 5vw, 4rem);
}

.equipe-grille .portrait:nth-child(3) {
  margin-top: clamp(0px, 2.5vw, 2rem);
}

@media (max-width: 720px) {
  .equipe-grille .portrait:nth-child(n) {
    margin-top: 0;
  }
}

/* ------------------------------ Rendez-vous ------------------------------ */
.rdv-prochain {
  background: var(--nuit);
  color: #fff;
  border-left: 4px solid var(--rouge-vif);
  border-radius: 2px;
}

.jour-bouton,
.creneau-bouton {
  border-color: rgba(22, 50, 79, 0.35);
  border-radius: 2px;
  background: var(--carte);
  transition: transform 250ms var(--ease-moteur), border-color 200ms, background-color 200ms, color 200ms;
}

.jour-bouton:hover,
.creneau-bouton:not(:disabled):hover {
  border-color: var(--bleu);
  transform: translateY(-2px);
}

.jour-bouton[aria-pressed="true"],
.creneau-bouton[aria-pressed="true"] {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

/* --------------------------------- Avis ---------------------------------- */
#avis .avis-tete-bloc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.avis-jauge {
  width: 200px;
  height: auto;
  overflow: visible;
}

.aj-fond,
.aj-valeur {
  fill: none;
  stroke-width: 12;
}

.aj-fond {
  stroke: rgba(255, 255, 255, 0.12);
}

.aj-valeur {
  stroke: var(--rouge-vif);
}

html:not(.js-motion) .aj-aiguille {
  transform-box: view-box;
  transform-origin: 100px 100px;
}

.aj-aiguille path {
  fill: #fff;
}

.aj-moyeu {
  fill: #fff;
}

#avis .avis-note {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

#avis .avis-chiffre {
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}

#avis .avis-nombre {
  color: var(--acier);
  font-size: 1.05rem;
}

#avis .avis-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

#avis .avis-extrait {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--nuit-2);
  border-radius: 3px;
  color: #DCE4EC;
}

#avis .avis-extrait:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#avis .avis-extrait:nth-child(2) {
  margin-top: clamp(0px, 4vw, 3rem);
}

#avis .avis-tete strong {
  color: #fff;
  font-family: var(--titres);
  font-size: 1.35rem;
  text-transform: uppercase;
}

#avis .avis-reponse {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--rouge-vif);
  color: #DCE4EC;
}

@media (max-width: 960px) {
  #avis .avis-liste {
    grid-template-columns: minmax(0, 1fr);
  }

  #avis .avis-extrait:nth-child(2) {
    margin-top: 0;
  }
}

/* -------------------------------- Accès ---------------------------------- */
.acces-plan {
  border: 0;
  border-radius: 3px;
  box-shadow: 0 24px 50px -36px rgba(12, 27, 43, 0.5);
}

.acces-texte h3 {
  font-family: var(--titres);
  text-transform: uppercase;
  font-size: 1.35rem;
}

/* --------------------------------- FAQ ----------------------------------- */
.faq-item summary {
  list-style: none;
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: 1.1rem;
  transition: color 200ms;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--rouge), var(--rouge)) center / 100% 2px no-repeat,
    linear-gradient(var(--rouge), var(--rouge)) center / 2px 100% no-repeat;
  transition: transform 400ms var(--ease-moteur);
}

.faq-item[open] summary::after {
  transform: rotate(135deg);
}

.faq-item summary:hover {
  color: var(--rouge);
}

/* Ouverture fluide des réponses là où le navigateur le permet. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 450ms var(--ease-moteur), content-visibility 450ms allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
  }
}

/* -------------------------- Pages intérieures ---------------------------- */
.page-tete {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.page-tete h1 {
  color: #fff;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-tete p {
  color: #D3DDE7;
  font-size: 1.1rem;
  max-width: 56ch;
}

.page-tete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.page-tete-prix {
  font-family: var(--titres);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--acier);
}

.page-tete-prix strong {
  font-size: 2.2rem;
  color: #fff;
}

.prestation-grille {
  align-items: center;
}

.prestation-photo-grande,
.galerie li,
.pret-photo {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.prestation-photo-grande img,
.galerie img,
.pret-photo img {
  border: 0;
}

.prestation-photo-grande img {
  aspect-ratio: 4 / 3;
}

.page-tete-claire h1 {
  text-transform: uppercase;
}

/* Listes « ce que nous faisons », « quand le faire » : repères rouges. */
main .colonne-etroite > ul:not(.zone-liste) {
  list-style: none;
  padding: 0;
}

main .colonne-etroite > ul:not(.zone-liste) > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.2rem;
  margin: 0;
  border-bottom: 1px solid var(--filet);
}

main .colonne-etroite > ul:not(.zone-liste) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 14px;
  height: 3px;
  background: var(--rouge);
}

.label {
  border-left-color: var(--rouge);
  background: var(--gris);
  border-radius: 2px;
}

.page-atelier .galerie {
  margin-top: clamp(2rem, 4vw, 3rem);
}



/* -------------------------------- Pied ----------------------------------- */
.pied {
  background: var(--nuit);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.pied-titre {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pied-colonne li a,
.pied-legal a,
.pied .lien-seul {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom 0.5rem / 0% 1px no-repeat;
  transition: background-size 400ms var(--ease-moteur), color 200ms;
}

.pied-colonne li a:hover,
.pied-legal a:hover,
.pied .lien-seul:hover {
  background-size: 100% 1px;
}

.pied-colonne p,
.pied-colonne address {
  color: #C9D4DF;
}

.pied-geant {
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(3rem, 1rem + 10.4vw, 11.5rem);
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  user-select: none;
}

.pied-legal {
  color: var(--acier);
}

/* Liens isolés du contenu : soulignement qui se dessine. */
main .lien-seul {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--rouge), var(--rouge)) left bottom 0.45rem / 100% 2px no-repeat;
  transition: background-size 400ms var(--ease-moteur);
}

main .lien-seul:hover {
  background-size: 30% 2px;
}

/* ======================================================================
   États initiaux du motion : uniquement sous html.js-motion.
   Sans JavaScript ou avec prefers-reduced-motion, tout est visible.
   ====================================================================== */
html.js-motion .hero-titre,
html.js-motion .page-tete h1 {
  visibility: hidden;
}

html.js-motion .hero-faits li,
html.js-motion .hero-actions > *,
html.js-motion .hero-jauge {
  opacity: 0;
}

html.js-motion [data-rideau] .rideau {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, #24384E 0 22px, #1A2C40 22px 24px, #2B4158 24px 26px);
  transform-origin: center top;
}

html.js-motion main h2::after {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-moteur) 250ms;
}

html.js-motion main h2.trace::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  @view-transition {
    navigation: none;
  }

  .prestation-carte a {
    transform: none;
  }
}

/* Transition entre pages (navigation entre documents) : la nouvelle page monte comme un pont. */
::view-transition-old(root) {
  animation: 380ms cubic-bezier(0.7, 0, 0.84, 0) both vt-sortie;
}

::view-transition-new(root) {
  animation: 620ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both vt-entree;
}

@keyframes vt-sortie {
  to {
    opacity: 0;
    transform: translateY(-2%);
  }
}

@keyframes vt-entree {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Galerie de l'atelier : la façade en grand, trois photos dessous. */
@media (min-width: 721px) {
  .page-atelier .galerie {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-atelier .galerie li:first-child {
    grid-column: 1 / -1;
  }

  .page-atelier .galerie li:not(:first-child) img {
    aspect-ratio: 4 / 3;
  }
}

/* Listes courtes des pages de prestation : deux colonnes sur grand écran. */
@media (min-width: 900px) {
  #titre-fait ~ ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

#titre-duree + p {
  font-family: var(--titres);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  border-left: 4px solid var(--rouge);
  padding-left: 1.25rem;
}

/* ------------------------- Retouches de finition ------------------------- */
/* En-tête désormais collant : les ancres natives (liens depuis les autres pages,
   reduced motion) atterrissent sous l'en-tête et non derrière lui. */
[id] {
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + 7.5rem);
}

/* Bloc « marques + véhicules électriques » : la phrase des marques couvre les deux
   rangées, le titre H3 reste collé à son paragraphe. */
.prestations-suite {
  align-items: start;
}

.prestations-suite > p:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

@media (max-width: 960px) {
  .prestations-suite > p:first-child {
    grid-row: auto;
  }
}

/* Écrans tactiles larges (tablettes) : pas de survol, le résumé reste visible. */
@media (hover: none) {
  .prestation-resume {
    max-height: 6em;
    opacity: 1;
  }
}

/* Nom géant du pied : tient dans la largeur sur mobile (390 px) sans être coupé. */
.pied-geant {
  font-size: clamp(1.75rem, 11.2vw, 11.5rem);
}

/* Le découpage SplitText des titres modifie la mise en page pendant le chargement :
   l'ancrage de défilement de Chromium faisait alors sauter une arrivée sur #devis
   (lien « Demander un devis » des pages de prestation) de 650 px vers le haut. */
html.js-motion {
  overflow-anchor: none;
}
