/* Charte graphique Carwise, palette B : voir ../../CLAUDE.md */
:root {
  --encre: #0E1D20;
  --encre-2: #3C5156;
  --encre-3: #5E7478;
  --filet: #D7E0DE;
  --porcelaine: #F6F8F7;
  --petrole: #1F5A7A;
  --petrole-fonce: #164660;
  --bleu-clair: #8FB8CE;
  --bleu-pale: #E3EDF3;
  --brique: #B5483A;
  --brique-fonce: #9A3B2F;
  --vert-wa: #1fa855;
  --rayon: 8px;
  --header-h: 106px;
  --serif: "Source Serif 4", Constantia, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: var(--encre);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrole); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; color: var(--petrole); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--petrole); outline-offset: 2px; }
.header :focus-visible, .section--bande :focus-visible, .footer :focus-visible { outline-color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--petrole); margin: 0 0 10px; }
.note { color: var(--encre-2); font-size: .9rem; margin: 0 0 18px; }

/* Boutons : bleu pétrole par défaut, une seule touche brique par écran */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 6px;
  padding: 12px 20px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: .95rem; }
.btn--lg { padding: 15px 26px; font-size: 1.08rem; }
.btn--brique { background: var(--brique); color: #fff; }
.btn--brique:hover { background: var(--brique-fonce); }
.btn--clair { background: #fff; color: var(--petrole); }
.btn--clair:hover { background: var(--bleu-pale); }
.btn--wa { background: var(--vert-wa); color: #fff; }
.btn--ghost { background: #fff; color: var(--petrole); border: 1px solid var(--petrole); }
.btn--ghost:hover { background: var(--bleu-pale); }
.btn--outline { background: transparent; color: var(--petrole); border: 1px solid var(--petrole); }
.btn--outline:hover { background: var(--petrole); color: #fff; }

/* En-tête : bandeau bleu pétrole, comme le papier en-tête */
.header { position: sticky; top: 0; z-index: 50; background: var(--petrole); }
/* Le bandeau garde le même ordre dans toutes les langues : logo, menu, bouton, langues */
.header__inner { direction: ltr; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__brand { display: block; }
.header__brand img { width: 100px; height: auto; }
.header__nav { display: flex; align-items: center; gap: 26px; }
.header__nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; }
.header__nav a:not(.btn):hover { color: var(--bleu-pale); text-decoration: underline; }
.header__nav { margin-inline-start: auto; }
.langues { display: flex; gap: 4px; flex-shrink: 0; }
.langue { font: inherit; font-size: .85rem; font-weight: 700; min-width: 38px; min-height: 36px; padding: 4px 8px; color: #fff; background: transparent; border: 1px solid var(--bleu-clair); border-radius: 6px; cursor: pointer; }
.langue:hover { background: var(--petrole-fonce); }
.langue.is-active { background: #fff; color: var(--petrole); border-color: #fff; }
.header__burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.header__burger span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 859px) {
  html { scroll-padding-top: 0; }
  .header { position: relative; }
  .langues { margin-inline-start: auto; }
  .header__burger { display: block; }
  .header__nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--petrole); padding: 8px 20px 20px; border-top: 1px solid var(--petrole-fonce); display: none;
  }
  [dir="rtl"] .header__nav { direction: rtl; }
  .header__nav.is-open { display: flex; }
  .header__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--petrole-fonce); font-size: 1.05rem; }
  .header__nav .btn { margin-top: 16px; padding: 14px; }
}

/* Accueil */
.hero { background: var(--porcelaine); border-bottom: 1px solid var(--filet); }
/* Accueil compact : les premiers véhicules doivent apparaître dès l'ouverture de la page */
.hero__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.hero__text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 8px; }
.hero__text > .eyebrow, .hero__text > h1, .hero__text > .hero__lead { flex: 0 0 100%; }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.hero h1 .hero__t2 { color: var(--petrole); display: block; }
.hero__lead { color: var(--encre-2); font-size: 1.02rem; max-width: 42em; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn--lg { padding: 11px 22px; font-size: 1rem; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.hero__facts span { color: var(--encre-2); font-size: .84rem; }
.hero__media img { width: 100%; max-height: 215px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 859px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 16px; }
  .hero__cta { flex: 0 0 100%; }
  .hero__media { display: none; }
  .hero__facts { gap: 20px; }
  .hero__cta .btn { flex: 1; }
}

/* Sections */
.section { padding: 80px 0; }
.section--soft { background: var(--porcelaine); }
.section--bande { background: var(--petrole); color: #fff; }
.section--bande p { color: var(--bleu-pale); }
.section--bande .eyebrow { color: var(--bleu-pale); }
.section--bande h3 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
@media (max-width: 599px) { .section { padding: 56px 0; } }

/* Atouts : une bande simple sous la flotte, icône à côté du texte, sans cadres */
#flotte { padding-top: 18px; padding-bottom: 48px; }
#flotte .eyebrow { display: none; }
#flotte h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
#flotte .section__head { margin-bottom: 8px; }
#flotte .note { margin-bottom: 10px; font-size: .86rem; }
.atouts { padding: 32px 0; background: var(--porcelaine); border-top: 1px solid var(--filet); }
.atouts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 959px) { .atouts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .atouts__grid { grid-template-columns: 1fr; gap: 16px; } }
.atout { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.atout__icon { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 6px; background: var(--bleu-pale); display: grid; place-items: center; }
.atout h3 { font-size: 1.02rem; margin: 0 0 2px; }
.atout p { margin: 0; color: var(--encre-2); font-size: .9rem; line-height: 1.4; }
.atout__icon svg, .map__pin svg { width: 26px; height: 26px; fill: none; stroke: var(--petrole); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Filtres */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--filet); background: #fff; color: var(--encre); border-radius: 6px; padding: 8px 16px; font: inherit; font-size: .92rem; cursor: pointer; }
.chip.is-active { background: var(--petrole); color: #fff; border-color: var(--petrole); }

/* Flotte */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 959px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .fleet { grid-template-columns: 1fr; } }
.car { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.car:hover { border-color: var(--petrole); }
.car__photo { background: #fff; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--filet); }
.car__photo img { width: 100%; height: 100%; object-fit: contain; }
.car__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car__name { font-size: 1.2rem; color: var(--encre); }
.car__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.car__tags span { font-size: .78rem; background: var(--porcelaine); border: 1px solid var(--filet); color: var(--encre-2); padding: 2px 9px; border-radius: 4px; }
.car__tags .tag--gold { background: var(--bleu-pale); border-color: var(--bleu-pale); color: var(--petrole); font-weight: 600; }
.car__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.car__devis { flex: 1; }
.car__price { margin: 0; }
.car__price small { display: block; color: var(--encre-2); font-size: .78rem; }
.car__price strong { font-size: 1.25rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.car__price em { font-style: normal; font-size: .82rem; color: var(--encre-2); font-weight: 400; }
@media (max-width: 599px) {
  .car__photo { aspect-ratio: 16 / 8; padding: 8px; }
  .car__body { padding: 14px 16px 16px; gap: 8px; }
}

/* Étapes */
.section--bande h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 759px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--petrole-fonce); border-radius: var(--rayon); padding: 24px; }
.steps h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; font-size: .98rem; }
.steps__num { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--petrole); display: grid; place-items: center; font-weight: 700; }

/* Tarifs */
.segmented { display: inline-flex; background: var(--porcelaine); border: 1px solid var(--filet); border-radius: 6px; padding: 3px; gap: 3px; }
.segmented button { font: inherit; font-size: .92rem; font-weight: 600; border: 0; background: transparent; padding: 8px 14px; border-radius: 4px; cursor: pointer; color: var(--encre-2); }
.segmented button.is-active { background: var(--petrole); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--filet); border-radius: var(--rayon); }
.prices { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .98rem; }
.prices th, .prices td { padding: 14px 16px; text-align: end; border-bottom: 1px solid var(--filet); white-space: nowrap; }
.prices th:first-child, .prices td:first-child { text-align: start; white-space: normal; }
.prices thead th { background: var(--porcelaine); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); }
.prices tbody tr:last-child td { border-bottom: 0; }
.prices td:first-child strong { display: block; }
.prices td:first-child small { color: var(--encre-2); }
.prices td strong { font-variant-numeric: tabular-nums; }
.prices .prices__tarifs { text-align: start; white-space: normal; }
.prices__palier { display: inline-block; margin-block: 2px; margin-inline-end: 18px; }
.included { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
@media (max-width: 699px) { .included { grid-template-columns: 1fr; } }
.included li { padding-inline-start: 26px; position: relative; font-size: .98rem; }
.included li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--petrole); border-bottom: 2.5px solid var(--petrole); transform: rotate(-45deg); }

/* Conditions */
#conditions h2 { margin-bottom: 26px; }
.conditions { list-style: none; padding: 0; margin: 0; counter-reset: c; display: grid; gap: 10px; }
.conditions li { counter-increment: c; background: #fff; border: 1px solid var(--filet); border-radius: 6px; padding-block: 14px; padding-inline: 54px 16px; position: relative; font-size: .98rem; }
.conditions li::before { content: counter(c); position: absolute; inset-inline-start: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--petrole); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 859px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { margin-bottom: 24px; }
.contact__list { margin: 0 0 24px; display: grid; gap: 16px; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact__list dt { font-weight: 700; color: var(--encre-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact__list dd { margin: 0; }
.contact__list dd a { font-weight: 600; }
@media (max-width: 459px) { .contact__list div { grid-template-columns: 1fr; gap: 2px; } }
.contact__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.map {
  min-height: 280px; border-radius: var(--rayon); text-decoration: none; color: var(--encre); padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: var(--bleu-pale); position: relative;
}
.map__pin { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--petrole); display: grid; place-items: center; }
.map__pin svg { stroke: #fff; width: 32px; height: 32px; }
.map strong { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.map span { color: var(--encre-2); }
.map .map__link { color: var(--petrole); font-weight: 700; margin-top: 10px; }

/* Pied de page */
.footer { background: var(--petrole); color: #fff; padding: 40px 0 90px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { width: 100px; height: auto; flex-shrink: 0; }
.footer__brand p { margin: 0; max-width: 32em; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { color: #fff; text-decoration: underline; font-weight: 600; }
.footer__copy { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--bleu-clair); padding-top: 18px; font-size: .84rem; color: var(--bleu-pale); }
@media (max-width: 699px) { .footer__inner { grid-template-columns: 1fr; } .footer__brand { flex-direction: column; align-items: flex-start; } }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--vert-wa); display: grid; place-items: center; z-index: 40; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Arabe : lecture de droite à gauche (Source Sans 3 et Source Serif 4 n'ont pas de lettres arabes) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hero__facts strong, [dir="rtl"] .map strong { font-family: inherit; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .wa-float { right: auto; left: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .car { transition: none; }
}
