/* =====================================================================
   Flex Ride — site vitrine
   Identité : le marine et l'orange du logo ; titres en Archivo italique
   large et très gras, qui reprennent l'élan du mot-symbole FLEX RIDE.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --marine: #012C5D;
  --marine-2: #0A4A8F;
  --orange: #F58A07;
  --vert: #4A9A1C;
  --ciel: #EAF1FA;
  --texte: #0E1E33;
  --texte-doux: #4E5E73;
  --trait: #D3DCE8;
  --titre: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --corps: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cadre: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--corps); font-size: 1.0625rem; line-height: 1.6;
  color: var(--texte); background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }

.aller-contenu { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: .6rem 1rem; background: var(--marine); color: #fff; border-radius: 8px; }
.aller-contenu:focus { top: 1rem; }

.cadre { width: min(var(--cadre), 100% - 2.5rem); margin-inline: auto; }
.cadre-etroit { width: min(760px, 100% - 2.5rem); }

/* ---------- Titres ---------- */
h1, .titre-bloc {
  font-family: var(--titre); font-style: italic; font-weight: 850; font-stretch: 112%;
  color: var(--marine); letter-spacing: -.01em; margin: 0;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.02; max-width: 15ch; }
.titre-bloc { font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.08; max-width: 22ch; margin-bottom: 1.25rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .35rem; }
.intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 56ch; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.bouton-plein { background: var(--orange); color: var(--marine); }
.bouton-plein:hover { background: #E07B00; }
.bouton-contour { border-color: var(--marine); color: var(--marine); background: #fff; }
.bouton-contour:hover { background: var(--ciel); }
.bouton-whatsapp { background: #1FA855; color: #fff; }
.bouton-whatsapp:hover { background: #178F47; }
.lien { font-weight: 700; color: var(--marine); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--trait); backdrop-filter: blur(8px); }
.entete-cadre { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.logo img { width: 135px; }
.menu { display: flex; gap: 1.75rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; color: var(--marine); padding: .4rem 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--orange); }
.bouton-entete { min-height: 44px; padding: 0 1.1rem; }
@media (max-width: 900px) {
  .menu { display: none; }
  .bouton-entete { margin-left: auto; }
}

/* ---------- Ouverture ---------- */
.ouverture { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.arc {
  position: absolute; z-index: 0; color: var(--orange); opacity: .9; pointer-events: none;
  width: min(820px, 90vw); right: -14vw; top: -6vw;
}
.ouverture-cadre { position: relative; z-index: 1; display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 900px) {
  .ouverture-cadre { grid-template-columns: 1fr; }
  .arc { width: 130vw; right: -70vw; top: 18rem; opacity: .35; }
}
.chapo { font-size: 1.2rem; color: var(--texte-doux); max-width: 46ch; margin-top: 1.25rem; }

/* Bascule des deux parcours : l'élément distinctif de la page */
.bascule {
  display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 1.75rem;
  background: var(--ciel); border-radius: 999px; position: relative;
}
.bascule button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--marine); padding: .7rem 1.4rem; border-radius: 999px; white-space: nowrap;
}
.bascule::before {
  content: ""; position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--marine); border-radius: 999px; transition: transform .28s cubic-bezier(.3, .7, .2, 1);
}
body[data-parcours="proposer"] .bascule::before { transform: translateX(100%); }
.bascule button[aria-selected="true"] { color: #fff; }
@media (prefers-reduced-motion: reduce) { .bascule::before { transition: none; } }

.panneau {
  background: var(--marine); color: #fff; border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 24px 60px -24px rgba(1, 44, 93, .55);
}
.panneau-titre { font-family: var(--titre); font-style: italic; font-weight: 800; font-stretch: 108%; font-size: 1.5rem; margin: 0 0 1.25rem; line-height: 1.15; }
.recherche, .estimateur { display: grid; gap: 1rem; }
.champ { display: grid; gap: .35rem; }
.champ > span:first-child { font-weight: 600; font-size: .95rem; color: #C9D6E8; }
.panneau input:not([type="range"]) {
  width: 100%; min-height: 50px; padding: .6rem .85rem; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-size: 16px; color: var(--texte); background: #fff;
}
.panneau input:focus { border-color: var(--orange); outline: none; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.deux:has(input[type="datetime-local"]) { grid-template-columns: 1fr; } /* date + heure : trop large pour deux colonnes */
.deux > * { min-width: 0; }
@media (max-width: 420px) { .deux { grid-template-columns: 1fr; } }
.note { font-size: .88rem; color: #B5C4DA; margin: 0; }
.champ-suffixe { display: flex; }
.champ-suffixe input { border-radius: 10px 0 0 10px !important; }
.champ-suffixe > span { display: grid; place-items: center; padding: 0 .9rem; background: var(--ciel); color: var(--marine); font-weight: 700; border-radius: 0 10px 10px 0; }
input[type="range"] { width: 100%; accent-color: var(--orange); height: 32px; }
.resultat { display: grid; gap: .1rem; margin: .25rem 0; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.resultat span { color: #C9D6E8; font-size: .92rem; }
.resultat strong {
  font-family: var(--titre); font-style: italic; font-weight: 850; font-stretch: 112%;
  font-size: clamp(2rem, 4vw, 2.6rem); color: var(--orange); line-height: 1.1; font-variant-numeric: tabular-nums;
}

/* ---------- Blocs ---------- */
.bloc { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.bloc-marine { background: var(--marine); color: #fff; }
.bloc-marine .titre-bloc { color: #fff; }
.bloc-ciel { background: var(--ciel); }
.bloc > .cadre > .bouton { margin-top: 2rem; }

/* Étapes : vraie séquence, d'où la numérotation */
.etapes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(4, 1fr); counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding-top: 3.6rem; }
.etapes li::before {
  content: counter(etape); position: absolute; top: 0; left: 0;
  font-family: var(--titre); font-style: italic; font-weight: 900; font-stretch: 120%; font-size: 3rem; line-height: 1;
  color: var(--orange);
}
.etapes p { color: var(--texte-doux); margin: 0; }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; gap: 1.5rem; } .etapes li { padding: 0 0 0 3.2rem; } .etapes li::before { font-size: 2.3rem; } }

/* Garanties */
.garanties { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .garanties { grid-template-columns: 1fr; gap: 1rem; } }
.liste-garanties { margin: 0; display: grid; gap: 0; }
.liste-garanties > div { padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.liste-garanties > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.liste-garanties dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; }
.liste-garanties dt::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: .6rem; vertical-align: middle; background: var(--orange); border-radius: 2px; }
.liste-garanties dd { margin: 0; color: #C9D6E8; max-width: 62ch; }

/* Loueurs */
.loueurs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: start; }
.loueurs > .bouton { grid-column: 1; justify-self: start; margin-top: 1rem; }
@media (max-width: 900px) { .loueurs { grid-template-columns: 1fr; } }
.avantages { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.avantages li { padding-left: 1.6rem; position: relative; color: var(--texte-doux); }
.avantages li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); }
.avantages strong { color: var(--texte); }
.etapes-compactes { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 0; padding: 2rem; background: var(--ciel); border-radius: 22px; }
.etapes-compactes li { padding: 0 0 0 3.4rem; }
.etapes-compactes li::before { font-size: 2.2rem; }
@media (max-width: 900px) { .etapes-compactes { grid-row: auto; } }
@media (min-width: 901px) { .etapes-compactes { grid-column: 2; grid-row: 1 / span 2; } }

/* Application */
.application { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: start; }
.application > .bouton { justify-self: start; }
.systemes { display: grid; gap: 1.25rem; }
.systemes > div { padding-left: 1.25rem; border-left: 4px solid var(--orange); }
.systemes p { margin: 0; color: var(--texte-doux); }
@media (max-width: 860px) { .application { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem; color: var(--marine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--texte-doux); max-width: 64ch; padding-bottom: .5rem; }

/* Contact */
.bloc-contact { background: linear-gradient(180deg, #fff 0, #fff 50%, var(--ciel) 50%); }
.contact { background: #fff; border: 2px solid var(--marine); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem); }
.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.5rem; }

/* Pied de page */
.pied { background: var(--ciel); padding: 2rem 0 3rem; }
.pied-cadre { display: grid; gap: 1.25rem; justify-items: start; }
.pied img { width: 180px; }
.pied nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pied nav a { font-weight: 600; color: var(--marine); }
.pied p { margin: 0; color: var(--texte-doux); font-size: .92rem; }

/* Pages simples (mentions légales, 404) */
.page-simple { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.page-simple h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; max-width: none; }
.page-simple h2 { font-size: 1.2rem; color: var(--marine); margin: 2rem 0 .5rem; }
.page-simple p, .page-simple li { color: var(--texte-doux); max-width: 70ch; }
.a-completer { background: #FFF3D6; padding: 0 .3rem; border-radius: 4px; color: var(--texte); }

.sans-coupure { white-space: nowrap; }
@media (max-width: 560px) { .contacts .bouton { width: 100%; } }
