/* =========================================================================
   Arrivée — Chef de marque Aston Martin · Emil Frey Genève
   =========================================================================
   Verrou de référence (refero-design) — jetons relevés le 24.08.2026 sur
   astonmartin.com/en, en direct, pas de mémoire :

     texte courant   #161A11   (noir légèrement olive, jamais du noir pur)
     vert Aston      #00665E   (RÔLE STRICT : texte du bouton clair, filets actifs)
     gris de section #F4F4F2
     noir de section #000000
     H1              54px / 70px · graisse 400 · aucune capitale, aucun interlettrage
     H3              32px / 40px · graisse 400
     boutons         16px · rayon 2px · padding 0 16px · pas de capitales
       primaire      fond #FFF, texte #00665E   (réservé aux médias sombres)
       sur média     fond rgba(255,255,255,.15), texte #FFF
     sections        ~900px, défilement par accroches (proximity ici, cf. README)
     cartes modèles  260px de large

   Substitutions de polices (les fontes AstonMartinFlare / AstonMartinSans
   sont propriétaires) :
     titres  Tenor Sans  — dessin d'après Optima, graisse unique 400
     corps   Inter       — néo-grotesque, graisses 400/500/700

   À rejeter (verrou) : capitales décoratives, interlettrage large, ombres
   portées, rayons généreux, dégradés, vert utilisé comme fond de section.
   ========================================================================= */

:root {
  --encre:       #161A11;
  --encre-douce: #4A4E46;
  --vert:        #00665E;
  --blanc:       #FFFFFF;
  --gris:        #F4F4F2;
  --noir:        #000000;
  --voile:       rgba(255, 255, 255, .15);
  --filet:       #DDDDD8;
  --filet-nuit:  rgba(255, 255, 255, .22);
  --titres:      "Tenor Sans", "Optima", "Segoe UI", sans-serif;
  --corps:       "Inter", "Helvetica Neue", Arial, sans-serif;
  --lente:       .7s cubic-bezier(.25, .1, 0, 1);
  --vive:        .3s cubic-bezier(.25, .1, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 400;          /* la référence titre tout en 400 */
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
}

h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.3; }
h2 { font-size: clamp(28px, 3vw, 40px);  line-height: 1.28; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }

p { margin: 0; }

.contenant {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* Accessibilité ------------------------------------------------------- */

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--blanc);
  color: var(--vert);
  padding: 12px 16px;
}
.saut:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--vert);
  outline-offset: 3px;
}
.section--nuit :focus-visible,
.barre :focus-visible,
.hero :focus-visible { outline-color: var(--blanc); }

/* Barre --------------------------------------------------------------- */

.barre {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 18px 0;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  transition: background-color var(--vive), padding var(--vive);
}
.barre.est-posee {
  background: rgba(0, 0, 0, .92);
  padding: 12px 0;
}
.barre__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.barre__nom {
  font-family: var(--titres);
  font-size: 19px;
  color: var(--blanc);
  text-decoration: none;
  white-space: nowrap;
}
.barre__liens {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.barre__liens a {
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--vive);
}
.barre__liens a:hover { color: var(--blanc); }

.langues {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.langues a,
.langues span {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  padding-bottom: 2px;
}
.langues [aria-current] {
  color: var(--blanc);
  border-bottom: 1px solid var(--blanc);
}
.langues a:hover { color: var(--blanc); }
.langues .langues__filet { color: var(--filet-nuit); }

@media (max-width: 860px) {
  .barre__liens li:not(:last-child) { display: none; }
}

/* Boutons — rayon 2px, 16px, pas de capitales -------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--corps);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background-color var(--vive), color var(--vive);
}
/* primaire sur média sombre : fond blanc, texte vert — comme la référence */
.bouton--clair { background: var(--blanc); color: var(--vert); }
.bouton--clair:hover { background: #E9E9E5; color: #00534C; }
/* secondaire sur média : voile blanc */
.bouton--voile { background: var(--voile); color: var(--blanc); }
.bouton--voile:hover { background: rgba(255, 255, 255, .28); color: var(--blanc); }
/* sur fond clair : encre pleine */
.bouton--encre { background: var(--encre); color: var(--blanc); }
.bouton--encre:hover { background: var(--noir); color: var(--blanc); }

/* Sections ------------------------------------------------------------- */

.section { padding: 104px 0; }
.section--nuit { background: var(--noir); color: var(--blanc); }
.section--gris { background: var(--gris); }

.sur-titre {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;   /* seul élément en capitales : l'étiquette de section */
  color: var(--vert);
  margin-bottom: 18px;
}
.section--nuit .sur-titre { color: rgba(255, 255, 255, .6); }

/* Révélations — jamais masquées sans JavaScript ------------------------ */

.js [data-surgir] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--lente), transform var(--lente);
}
.js [data-surgir].est-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-surgir] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 1 · Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
  background: var(--noir);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* remonte les voitures, le texte se pose sur l'asphalte */
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .8));
}
.hero__texte {
  position: relative;
  padding: 0 0 84px;
  max-width: 720px;
}
.hero__date {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 20px;
}
.hero__sous-titre {
  font-size: 19px;
  color: rgba(255, 255, 255, .88);
  margin-top: 18px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__mention {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}

/* 2 · L'arrivée -------------------------------------------------------- */

.arrivee__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.arrivee__texte p + p { margin-top: 1.35em; }
.arrivee__texte .ouverture {
  font-size: 19px;
  line-height: 1.65;
}
.arrivee__texte h2 { margin-bottom: 28px; }
.arrivee__signature {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--filet);
}
.arrivee__signature strong {
  display: block;
  font-weight: 700;
  font-size: 16px;
}
.arrivee__signature span {
  font-size: 14px;
  color: var(--encre-douce);
}
.arrivee__portrait { position: relative; }
.arrivee__portrait img { width: 100%; height: auto; }
.arrivee__portrait figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--encre-douce);
}

@media (max-width: 860px) {
  .arrivee__grille { grid-template-columns: 1fr; }
  .arrivee__portrait { order: -1; max-width: 420px; }
}

/* 3 · Bande média ------------------------------------------------------ */

.bande {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  color: var(--blanc);
  background: var(--noir);
  overflow: hidden;
}
.bande__media { position: absolute; inset: 0; }
.bande__media video,
.bande__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;   /* la voiture respire a droite du texte */
}
.bande__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .08) 68%);
}
.bande__texte {
  position: relative;
  max-width: 560px;
  padding: 96px 0;
}
.bande__texte p {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(255, 255, 255, .88);
}
.bande__mention {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}

/* 4 · La gamme --------------------------------------------------------- */

.gamme__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.gamme__fleches { display: flex; gap: 10px; }
.gamme__fleche {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--gris);
  color: var(--encre);
  border: 0;
  border-radius: 2px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color var(--vive), color var(--vive), opacity var(--vive);
}
.gamme__fleche:hover { background: var(--encre); color: var(--blanc); }
.gamme__fleche[disabled] { opacity: .35; pointer-events: none; }

.gamme__rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.gamme__rail::-webkit-scrollbar { display: none; }

.modele {
  flex: 0 0 260px;             /* la largeur de carte de la référence */
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--encre);
}
.modele__visuel {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--gris);
}
.modele__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lente);
}
.modele:hover .modele__visuel img { transform: scale(1.045); }
.modele h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 16px;
}
.modele p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--encre-douce);
}
.modele__filet {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vert);
  border-bottom: 1px solid transparent;
  transition: border-color var(--vive);
}
.modele:hover .modele__filet { border-color: var(--vert); }

.gamme__credit {
  margin-top: 26px;
  font-size: 12px;
  color: var(--encre-douce);
}

/* 5 · Le parcours ------------------------------------------------------ */

.parcours__intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.parcours__intro p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--encre-douce);
}
.parcours__liste {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--filet);
}
.jalon {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--filet);
  transition: background-color var(--vive);
}
.jalon:hover { background: var(--blanc); }
.jalon__annee {
  font-family: var(--titres);
  font-size: 26px;
  line-height: 1.2;
  color: var(--encre);
}
.jalon__maison {
  font-weight: 700;
  font-size: 16px;
}
.jalon__maison span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--encre-douce);
  margin-top: 3px;
}
.jalon__fait {
  font-size: 15px;
  color: var(--encre-douce);
}
.jalon--present { background: var(--blanc); }
.jalon--present .jalon__annee { color: var(--vert); }
.jalon--present .jalon__fait { color: var(--encre); }

@media (max-width: 760px) {
  .jalon { grid-template-columns: 72px minmax(0, 1fr); }
  .jalon__fait { grid-column: 2; }
}

/* 6 · Genève ----------------------------------------------------------- */

.geneve {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  color: var(--blanc);
  background: var(--noir);
  overflow: hidden;
}
.geneve__media { position: absolute; inset: 0; }
.geneve__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.geneve__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .78));
}
.geneve__texte {
  position: relative;
  max-width: 640px;
  padding: 96px 0;
}
.geneve__texte p {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(255, 255, 255, .88);
}
.geneve__adresse {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--filet-nuit);
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.9;
}

/* 7 · Contact ---------------------------------------------------------- */

.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.contact__texte p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--encre-douce);
  max-width: 480px;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.contact__note {
  align-self: end;
  padding: 28px;
  background: var(--gris);
  border-radius: 2px;
  font-size: 14px;
  color: var(--encre-douce);
  line-height: 1.7;
}
.contact__note strong {
  display: block;
  color: var(--encre);
  font-size: 15px;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .contact__grille { grid-template-columns: 1fr; }
}

/* 8 · Pied ------------------------------------------------------------- */

.pied {
  background: var(--noir);
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 40px;
  font-size: 14px;
}
.pied__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--filet-nuit);
}
.pied__nom {
  font-family: var(--titres);
  font-size: 18px;
  color: var(--blanc);
}
.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pied__liens a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color var(--vive);
}
.pied__liens a:hover { color: var(--blanc); }
.pied .langues { font-size: 13px; }
.pied__mentions {
  margin-top: 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  max-width: 74ch;
  line-height: 1.7;
}
.pied__mentions + .pied__mentions { margin-top: 10px; }

/* =========================================================================
   Genève — compléments (horaires, lien sortant)
   ========================================================================= */

.geneve__horaires {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.9;
}
.geneve__lien {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--filet-nuit);
  color: var(--blanc);
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--vive);
}
.geneve__lien:hover { border-bottom-color: var(--blanc); }

/* =========================================================================
   Services — quatre blocs en grille
   ========================================================================= */

.services__intro { max-width: 62ch; }
.services__intro p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--encre-douce);
  line-height: 1.7;
}
.services__grille {
  margin-top: clamp(44px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.service__visuel {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--gris);
}
.service__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--lente);
}
.service:hover .service__visuel img { transform: scale(1.03); }
.service h3 {
  margin: 22px 0 0;
  font-family: var(--titres);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 400;
  color: var(--encre);
}
.service p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--encre-douce);
  line-height: 1.75;
}
.service__filet {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--filet);
  color: var(--vert);
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--vive);
}
.service__filet:hover { border-bottom-color: var(--vert); }

/* =========================================================================
   Reprise et achat — texte à gauche, visuel à droite
   ========================================================================= */

.reprise__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.reprise__texte > p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--encre-douce);
  line-height: 1.7;
}
.reprise__publics {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.reprise__public h3 {
  margin: 0;
  font-family: var(--titres);
  font-size: 19px;
  font-weight: 400;
  color: var(--encre);
}
.reprise__public p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--encre-douce);
  line-height: 1.75;
}
.reprise__mention {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--filet);
  font-size: 13px;
  color: var(--encre-douce);
  line-height: 1.7;
}
.reprise__visuel img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   Partenariats — visuel portrait à gauche, texte à droite
   ========================================================================= */

.partenariats__grille {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.partenariats__visuel img {
  width: 100%;
  height: auto;
  display: block;
}
.partenariats__texte p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--encre-douce);
  line-height: 1.7;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .services__grille,
  .reprise__publics { grid-template-columns: 1fr; }
  .reprise__grille,
  .partenariats__grille { grid-template-columns: 1fr; }
  .partenariats__visuel { max-width: 420px; }
}

/* =========================================================================
   Page « Proposer un véhicule » — étapes et formulaire
   ========================================================================= */

.section--haut { padding-top: clamp(120px, 12vw, 170px); }

.estimation__etapes {
  margin-top: 26px;
  padding: 24px 26px;
  background: var(--gris);
}
.estimation__etapes strong {
  display: block;
  font-family: var(--titres);
  font-size: 17px;
  font-weight: 400;
  color: var(--encre);
}
.estimation__etapes ol {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--encre-douce);
  line-height: 1.75;
}
.estimation__etapes li + li { margin-top: 8px; }

.estimation__formulaire { max-width: 70ch; }
.estimation__formulaire h2 { margin-top: 6px; }
.estimation__formulaire form { margin-top: 28px; }
.estimation__formulaire input[type="text"],
.estimation__formulaire input[type="email"],
.estimation__formulaire input[type="tel"],
.estimation__formulaire textarea,
.estimation__formulaire select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--filet);
  background: var(--blanc);
  font-family: var(--corps);
  font-size: 15px;
  color: var(--encre);
}
.estimation__formulaire input:focus,
.estimation__formulaire textarea:focus,
.estimation__formulaire select:focus {
  outline: 2px solid var(--vert);
  outline-offset: 1px;
}
.estimation__formulaire label {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--encre-douce);
}
.estimation__formulaire input[type="submit"] {
  margin-top: 24px;
  padding: 14px 28px;
  border: 0;
  background: var(--encre);
  color: var(--blanc);
  font-family: var(--corps);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--vive);
}
.estimation__formulaire input[type="submit"]:hover { background: var(--noir); }
.estimation__vie-privee {
  margin-top: 22px;
  font-size: 13px;
  color: var(--encre-douce);
  line-height: 1.7;
}
