@font-face { font-family: "League Spartan"; src: url("fonts/league-spartan-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("fonts/league-spartan-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Nuancier : chaque teinte est relevée sur une voiture photographiée au garage */
:root {
  --rouge-2cv: #C8200F;
  --blanc-ds: #D9DFDC;
  --nuit-403: #1C2236;
  --vert-2cv: #9FB3B2;
  --bleu-solex: #2B66AC;
  --ciel-403: #6FA5D0;
  --encre: #121619;
  --clair: #F3F5F4;

  --titre: "League Spartan", "Arial Narrow", sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, sans-serif;
  --marge: clamp(1rem, 5vw, 4.5rem);
  --rail: 0px;
  --barre: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--nuit-403) var(--blanc-ds); accent-color: var(--rouge-2cv); }
body {
  margin: 0;
  padding-bottom: var(--barre);
  font: 400 1.0625rem/1.55 var(--texte);
  color: var(--encre);
  background: var(--blanc-ds);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--rouge-2cv); color: #fff; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--encre); color: #fff; font-family: var(--titre); font-weight: 800; }
.skip:focus { top: 1rem; }

/* Pastille : un échantillon du nuancier, avec le nom de sa voiture */
.pastille, .cour figcaption {
  font-family: var(--titre); font-weight: 600; font-size: .72rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .08em;
}
.pastille { position: absolute; top: clamp(1rem, 2.5vw, 1.75rem); right: var(--marge); display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .7rem .35rem .35rem; background: var(--clair); color: var(--encre); font-size: .78rem; }
.pastille i { width: 1.6rem; height: 1.6rem; }
.pastille i, .cour figcaption i { flex: none; background: var(--c); outline: 1px solid currentColor; outline-offset: -1px; }
.cour figcaption i { width: 1.1rem; height: 1.1rem; }

/* Boutons : un libellé et sa pastille de couleur */
.btn {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 3.1rem; padding: .7rem 1.15rem;
  font-family: var(--titre); font-weight: 800; font-size: .98rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.btn--plein { background: var(--blanc-ds); color: var(--encre); border-color: var(--blanc-ds); }
.btn--plein::before { content: ""; width: .85rem; height: .85rem; background: var(--rouge-2cv); flex: none; }
.btn--plein:hover { background: #fff; border-color: #fff; }
.btn--trait { color: #fff; border-color: currentColor; }
.btn--trait:hover { background: rgba(255, 255, 255, .14); }
.btn--rouge { background: var(--rouge-2cv); color: #fff; border-color: var(--rouge-2cv); }
.btn--rouge:hover { background: #A81A0B; border-color: #A81A0B; }
.btn--trait-encre { color: var(--encre); border-color: var(--encre); }
.btn--trait-encre:hover { background: rgba(18, 22, 25, .08); }

/* Accueil : l'aplat rouge 2CV posé dans la photo de la façade */
.hero { position: relative; background: var(--nuit-403); }
.hero__photo img { display: block; width: 100%; height: 50svh; min-height: 300px; object-fit: cover; object-position: 58% 75%; }
.hero__panel {
  position: relative; margin: -6svh .75rem 0; padding: 1rem 1.25rem 1.5rem;
  background: var(--rouge-2cv); color: #fff;
  animation: deplie .95s cubic-bezier(.76, 0, .24, 1) .1s both;
}
.hero__name { font-size: clamp(3rem, 14vw, 6rem); line-height: .86; letter-spacing: -.02em; margin: 0 0 1.25rem; }
.hero__name span { display: block; animation: monte .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }
.hero__name span:nth-child(2) { --i: 1; }
.hero__name span:nth-child(3) { --i: 2; }
.hero__lede { font-size: 1.125rem; line-height: 1.45; max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 1.1rem; }
.hero__hours { font-family: var(--titre); font-weight: 600; font-size: .98rem; margin: 0; color: #FBE3DF; }
.etat:not(:empty) { display: inline-block; margin-right: .6rem; padding: .1rem .45rem; background: var(--clair); color: var(--encre); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.hero__lede, .hero__actions, .hero__hours { animation: monte .7s cubic-bezier(.16, 1, .3, 1) .7s both; }
.pastille--hero { position: static; margin-bottom: 1.1rem; }

@keyframes deplie {
  from { clip-path: inset(calc(100% - 2.6rem) calc(100% - 3.6rem) 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes monte {
  from { opacity: 0; transform: translateY(.6em); }
  to { opacity: 1; transform: none; }
}

/* Le nuancier sert de navigation */
.nuancier { background: var(--clair); padding: 1.5rem 0 .5rem; }
.nuancier ul { list-style: none; margin: 0; padding: 0 .75rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.nuancier ul::-webkit-scrollbar { display: none; }
.nuancier li { flex: none; }
.nuancier a {
  display: block; width: 6.6rem; padding-bottom: .5rem; text-decoration: none;
  font-family: var(--titre); font-weight: 600; font-size: .78rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em;
}
.nuancier i { display: block; height: 2rem; margin-bottom: .45rem; background: var(--c); outline: 1px solid rgba(18, 22, 25, .35); outline-offset: -1px; transition: height .35s cubic-bezier(.16, 1, .3, 1), width .35s cubic-bezier(.16, 1, .3, 1); }
.nuancier a:hover i { height: 2.5rem; margin-bottom: -.05rem; }
.nuancier .nuancier__tel { display: none; }

/* Sections : un aplat par voiture */
.aplat { position: relative; padding: clamp(4.5rem, 10vw, 8rem) var(--marge); }
.aplat--ds { background: var(--blanc-ds); color: var(--encre); }
.aplat--nuit { background: var(--nuit-403); color: var(--clair); }
.aplat--vert { background: var(--vert-2cv); color: var(--encre); }
.aplat--solex { background: var(--bleu-solex); color: #fff; }
.aplat--ciel { background: var(--ciel-403); color: var(--encre); }
#atelier { padding-top: clamp(3.5rem, 8vw, 8rem); }

.grille { display: grid; gap: 2.5rem; }
.texte h2 { font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: .92; letter-spacing: -.015em; max-width: 17ch; margin-bottom: 1.4rem; }
.texte p { max-width: 60ch; }
.texte .intro { font-size: 1.2rem; line-height: 1.5; }
.cadre { margin: 0; }
.cadre img { display: block; width: 100%; }
.cadre figcaption { margin-top: .6rem; font-size: .88rem; opacity: .85; }

h3 { font-size: 1rem; letter-spacing: .05em; }

/* Les mots qui reviennent */
.mots { margin-top: clamp(4rem, 9vw, 7rem); }
.mots h3 { font-weight: 600; letter-spacing: .08em; margin-bottom: 1.25rem; }
.mots ul { list-style: none; margin: 0; padding: 0; }
.mots li { display: grid; gap: .3rem; padding: 1.1rem 0 1.25rem; border-top: 1px solid rgba(18, 22, 25, .28); }
.mots strong { font-family: var(--titre); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 10vw, 5rem); line-height: .9; letter-spacing: -.02em; }
.mots span { font-size: 1.08rem; max-width: 52ch; }
.mots em { font-style: normal; font-size: .85rem; opacity: .75; }

/* Situations */
.cas { list-style: none; margin: clamp(3rem, 7vw, 5rem) 0 0; padding: 0; }
.cas li { display: grid; gap: .5rem; padding: 1.5rem 0 1.6rem; border-top: 1px solid rgba(243, 245, 244, .28); }
.cas h3 { font-size: clamp(1.75rem, 5.4vw, 3.2rem); line-height: .95; letter-spacing: -.01em; }
.cas p { max-width: 58ch; margin: 0; }
.cas .auteur, .avis footer {
  font-family: var(--titre); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.cas .auteur { opacity: .8; }

/* Prestations */
.prestations { margin: clamp(3rem, 7vw, 5rem) 0 0; display: grid; column-gap: 3.5rem; }
.prestations div { padding: 1.1rem 0 1.4rem; border-top: 1px solid rgba(18, 22, 25, .3); }
.prestations dt { font-family: var(--titre); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; letter-spacing: .01em; }
.prestations dd { margin: .45rem 0 0; max-width: 54ch; }
.prestations__bureau dt { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }

/* La cour */
.cour { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) calc(var(--marge) * -1) 0; padding: 0 var(--marge) .75rem; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #fff var(--bleu-solex); }
.cour li { scroll-snap-align: start; }
.cour figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.cour img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cour figcaption { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }

/* Avis */
.avis { margin-top: clamp(2.5rem, 6vw, 4rem); column-gap: 2.75rem; }
.avis blockquote { break-inside: avoid; margin: 0 0 2.25rem; padding-top: 1rem; border-top: 3px solid var(--encre); }
.avis blockquote p { font-size: 1.08rem; margin-bottom: .75rem; }
.avis .trad { font-style: italic; font-size: .95rem; }

/* Infos pratiques */
.infos { display: grid; gap: 3rem; margin-top: 2rem; }
.infos h3 { font-size: 1.15rem; letter-spacing: .04em; margin: 0 0 .9rem; }
.infos__bloc h3 + * { margin-top: 0; }
.infos__bloc p + h3 { margin-top: 2rem; }
.horaires { width: 100%; max-width: 32rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires th, .horaires td { padding: .6rem .5rem .6rem 0; border-top: 1px solid rgba(18, 22, 25, .22); text-align: left; vertical-align: top; }
.horaires th { font-weight: 700; }
.horaires td { white-space: nowrap; font-family: var(--titre); font-weight: 600; font-size: 1.02rem; padding-top: .7rem; }
.horaires .ferme td { opacity: .7; }
.horaires tr.aujourdhui { background: var(--vert-2cv); }
.horaires tr.aujourdhui th { padding-left: .5rem; }
.note { margin-top: 1rem; font-size: .95rem; max-width: 40ch; }
address { font-style: normal; font-family: var(--titre); font-weight: 600; font-size: 1.15rem; margin-bottom: .75rem; }
.lien-tel { font-family: var(--titre); font-weight: 800; font-size: 1.9rem; text-decoration-thickness: 3px; }
.infos__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 2rem; }
.carte { margin-top: clamp(2.5rem, 6vw, 4rem); }
.carte iframe { display: block; width: 100%; height: 22rem; border: 0; outline: 1px solid rgba(18, 22, 25, .3); }

/* Pied de page */
.pied { background: var(--nuit-403); color: var(--clair); padding: clamp(3.5rem, 8vw, 6rem) var(--marge) 3rem; }
.pied p { max-width: 60ch; }
.pied a[href^="tel"] { font-family: var(--titre); font-weight: 800; font-size: 1.35rem; display: inline-block; padding: .35rem 0; }
.pied__nom { font-family: var(--titre); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 8vw, 4.5rem); line-height: .9; letter-spacing: -.015em; margin-bottom: 1.5rem; }
.pied__note { font-size: .88rem; opacity: .75; margin-top: 2rem; }

/* Barre d'appel sur mobile */
.barre { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; height: var(--barre); }
.barre a { display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.barre__tel { background: var(--rouge-2cv); }
.barre__route { background: var(--nuit-403); }
.barre a:focus-visible { outline-offset: -5px; }

@media (min-width: 700px) {
  .cour { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; gap: 2rem 1.25rem; }
  .avis { columns: 2; }
  .infos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 900px) {
  :root { --barre: 0px; }
  .barre { display: none; }
  .hero { min-height: 100svh; display: flex; align-items: flex-end; padding: clamp(1.5rem, 3.5vw, 3.5rem); }
  .hero__photo { position: absolute; inset: 0; }
  .hero__photo img { height: 100%; object-position: 60% 30%; }
  .hero__panel { margin: 0; width: min(56%, 44rem); padding: 3.4rem clamp(2rem, 3.5vw, 3.25rem) 2.25rem; }
  .hero__name { font-size: clamp(3rem, min(6.6vw, 10vh), 6rem); margin-bottom: 1rem; }
  .hero__actions { margin: 1.25rem 0 1rem; }
  .pastille--hero { position: absolute; margin: 0; left: auto; right: 1.5rem; top: 1.25rem; }
  .hero__panel { padding-top: 4.4rem; }
  .grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
  .mots li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "mot cite" "mot qui"; column-gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
  .mots strong { grid-area: mot; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
  .mots span { grid-area: cite; }
  .mots em { grid-area: qui; }
  .cas li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "car texte" "car qui"; column-gap: clamp(2.5rem, 6vw, 6rem); padding: 2rem 0 2.2rem; }
  .cas h3 { grid-area: car; }
  .cas li > p:not(.auteur) { grid-area: texte; }
  .cas .auteur { grid-area: qui; margin-top: .4rem; }
  .prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prestations__bureau { grid-column: 1 / -1; order: -1; }
}

@media (min-width: 1100px) {
  :root { --rail: 9.5rem; }
  body { padding-left: var(--rail); }
  .nuancier {
    position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--rail);
    display: flex; flex-direction: column; justify-content: center; gap: 2rem;
    padding: 1.5rem 1.1rem; border-right: 1px solid rgba(18, 22, 25, .18); background: var(--clair);
  }
  .nuancier ul { flex-direction: column; gap: .9rem; padding: 0; overflow: visible; }
  .nuancier a { width: auto; padding: 0; }
  .nuancier i { height: 1.35rem; width: 2.6rem; }
  .nuancier a:hover i, .nuancier a[aria-current] i { width: 100%; height: 1.35rem; margin-bottom: .45rem; }
  .nuancier a[aria-current] { font-weight: 800; }
  .nuancier .nuancier__tel { display: block; font-family: var(--titre); font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: #A81A0B; text-decoration: none; border-top: 1px solid rgba(18, 22, 25, .25); padding-top: 1rem; }
  .nuancier__tel:hover { text-decoration: underline; }
  .cour { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .cour__haut { grid-row: span 2; }
  .cour__haut img { aspect-ratio: auto; flex: 1; min-height: 0; }
  .avis { columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
