/* Gabon Sécu First — rouge, noir et argent du logo GSF */
:root {
  --asphalt: #2A2D33;
  --asphalt-2: #34383F;
  --bitume: #5E636B;
  --red-dark: #A8160F;
  --silver: #C9CDD2;
  --green: #009E60;
  --red: #E0201B;   /* rouge du logo GSF */
  --white: #F6F7F4;
  --paper: #FFFFFF;
  --tint: #ECEEEA;
  --line: #DADDE0;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--asphalt);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--bitume); font-size: 1.08rem; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--white); padding: 10px 16px; font-weight: 800; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.header :focus-visible, .hero :focus-visible, .page-header :focus-visible,
.cta-band :focus-visible, .footer :focus-visible, .fleet :focus-visible { outline-color: var(--white); }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--asphalt); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: rgba(246,247,244,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-big { min-height: 58px; padding: 16px 28px; font-size: 1.1rem; }
.link-light { color: var(--white); font-weight: 700; text-underline-offset: 4px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: #000; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
/* Le logo est sur fond noir : en-tête et pied de page en noir pour qu'il s'y fonde */
.brand-logo { height: 60px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; opacity: .82; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--red); }
.nav-cta { min-height: 40px; padding: 8px 16px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--white); }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -8px; }
.burger::after { top: 8px; }

/* Ligne médiane pointillée : marque la fin de chaque bandeau sombre */
.lane-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--white) 0 40px, transparent 40px 70px) center / 100% 4px no-repeat,
    #23262B;
}

/* ── Accueil : la voie express de Libreville en fond ─────────────────── */
.hero {
  position: relative; color: var(--white); padding: 64px 0 104px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(42,45,51,.96) 0%, rgba(42,45,51,.86) 45%, rgba(42,45,51,.55) 100%),
    url("../images/photos/hero-voie-express.jpg") center 40% / cover no-repeat,
    var(--asphalt);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.lead { font-size: 1.2rem; color: rgba(246,247,244,.86); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.slider { background: var(--asphalt); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.slide[hidden] { display: none; }
.slide-photo { aspect-ratio: 16 / 10; background: var(--asphalt-2); overflow: hidden; }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { padding: 22px 26px 6px; }
.slide-text h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: .35em; }
.slide-text p { color: rgba(246,247,244,.8); margin-bottom: 18px; min-height: 3.2em; }
.slide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .slide:not([hidden]) .slide-photo img { animation: slide-in .6s cubic-bezier(.2,.7,.2,1); }
  @keyframes slide-in { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
}

.slider-controls { display: flex; align-items: center; gap: 14px; padding: 16px 26px 20px; }
.slider-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid rgba(246,247,244,.35); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { border-color: var(--red); color: var(--white); background: var(--red); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-lanes { display: flex; gap: 8px; flex: 1; }
.lane { flex: 1; height: 6px; max-width: 48px; border: 0; padding: 0; border-radius: 1px; background: rgba(246,247,244,.28); cursor: pointer; position: relative; }
.lane::before { content: ""; position: absolute; inset: -12px 0; }
.lane[aria-current="true"] { background: var(--red); }
.slider-status { font-weight: 800; font-variant-numeric: tabular-nums; color: rgba(246,247,244,.6); min-width: 3ch; text-align: right; }

/* ── En-tête des pages intérieures ───────────────────────────────────── */
.page-header { position: relative; background: var(--asphalt); color: var(--white); padding: 64px 0 96px; }
.page-header.has-photo {
  padding: 96px 0 120px;
  background-color: var(--asphalt);
  background-size: cover;
  background-repeat: no-repeat;
}
.page-header h1 { max-width: 18ch; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 600px; }
.section-head p { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-photo { order: 2; }
.split-text { align-items: start; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Étapes : vraie séquence, d'où la numérotation */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 28px; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--red); color: var(--white); font-weight: 900; border-radius: 4px;
}
.steps strong { display: block; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 5px; background: var(--red); }

/* Aperçu produits (accueil) */
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.preview { display: block; text-decoration: none; background: var(--paper); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.preview-photo { display: block; aspect-ratio: 1; overflow: hidden; }
.preview-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.preview:hover .preview-photo img { transform: scale(1.04); }
.preview-name { display: block; padding: 14px 16px 16px; font-weight: 800; }

/* Catalogue : chaque produit est une plaque à liseré, comme un panneau */
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.plate {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 3px solid var(--asphalt); border-radius: 10px;
}
.plate-photo { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--asphalt); }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; }
.plate-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.plate h2 { font-size: 1.25rem; margin-bottom: .4em; }
.plate p { color: var(--bitume); font-size: .98rem; }
.plate ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: .95rem; }
.plate li { padding: 5px 0 5px 22px; position: relative; border-top: 1px solid var(--line); }
.plate li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 4px; background: var(--red); }
.plate-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 800; }

/* ── Bande flottes : rouge GSF, ruban de chantier ────────────────────── */
.fleet { background: var(--red); color: var(--white); position: relative; padding: 64px 0 56px; }
.fleet::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, #000 0 14px, var(--white) 14px 28px);
}
.fleet-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.fleet h2 { margin-bottom: .3em; }
.fleet p { max-width: 58ch; margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.9); }

/* ── Services ────────────────────────────────────────────────────────── */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teaser { position: relative; display: block; border-radius: 10px; overflow: hidden; color: var(--white); text-decoration: none; aspect-ratio: 4 / 5; background: var(--asphalt); }
.teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.teaser:hover img { transform: scale(1.04); }
.teaser span { position: absolute; inset: auto 0 0 0; padding: 60px 22px 22px; background: linear-gradient(transparent, rgba(30,32,36,.92) 45%); color: rgba(246,247,244,.85); }
.teaser strong { display: block; color: var(--white); font-size: 1.2rem; line-height: 1.2; margin-bottom: 6px; }

.services-list { display: grid; gap: 88px; }

/* ── À propos ────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about-text { font-size: 1.15rem; max-width: 64ch; }
.about-facts dl { margin: 0; border-top: 3px solid var(--asphalt); }
.about-facts dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { font-size: .9rem; color: var(--bitume); }
.about-facts dd { margin: 2px 0 0; font-weight: 800; }

/* ── Offre du moment ─────────────────────────────────────────────────── */
.offer { background: var(--paper); border-bottom: 1px solid var(--line); }
.offer-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.offer-poster img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.offer-tag { display: inline-block; background: var(--red); color: var(--white); font-weight: 900; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.offer-table { width: 100%; border-collapse: collapse; margin: 22px 0 4px; font-size: 1.05rem; }
.offer-table th { text-align: left; font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); }
.offer-table td { text-align: right; font-weight: 800; padding: 12px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.offer-table tfoot th, .offer-table tfoot td { border-top: 3px solid var(--asphalt); font-size: 1.25rem; font-weight: 900; }
.offer-table tfoot td { color: var(--red); }
.offer-table s, .price s { color: var(--bitume); font-weight: 600; font-size: .85em; margin-right: 6px; }
.offer .checklist { margin-bottom: 28px; }
.slide-price { font-weight: 900; font-size: 1.25rem; color: var(--white); margin-top: -6px; }
.slide-price s { color: rgba(246,247,244,.6); font-weight: 600; font-size: .8em; margin-right: 6px; }

/* ── Catalogue par rubrique ──────────────────────────────────────────── */
.catalogue-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.catalogue-nav a { text-decoration: none; font-weight: 700; padding: 8px 16px; border: 2px solid var(--asphalt); border-radius: 999px; }
.catalogue-nav a:hover { background: var(--asphalt); color: var(--white); }
.catalogue-group + .catalogue-group { margin-top: 64px; }
.catalogue-title { padding-bottom: 12px; border-bottom: 3px solid var(--red); margin-bottom: 28px; }

/* ── Conseils (affiches GSF) ─────────────────────────────────────────── */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tip { display: block; text-decoration: none; background: var(--paper); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.tip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tip span { display: block; padding: 12px 14px 14px; font-weight: 800; }

/* ── Session de formation 2026 ───────────────────────────────────────── */
.session { background: var(--paper); border-top: 1px solid var(--line); }
.session-photo img { width: 100%; height: auto; border-radius: 10px; }
.session-photo figcaption { color: var(--bitume); font-size: .92rem; margin-top: 10px; }
.quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); }
.quote p { font-size: 1.12rem; font-weight: 600; margin-bottom: .4em; }
.quote footer { color: var(--bitume); font-size: .95rem; }
.source { color: var(--bitume); font-size: .95rem; margin-bottom: 24px; }

/* ── Bandeau d'appel ─────────────────────────────────────────────────── */
.cta-band { background: var(--asphalt); color: var(--white); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; max-width: 20ch; }
.cta-inner .hero-actions { margin: 0; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.order-form { display: grid; gap: 18px; background: var(--paper); border: 3px solid var(--asphalt); border-radius: 10px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.field label { font-weight: 800; }
.optional { font-weight: 400; color: var(--bitume); }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  padding: 12px 14px; min-height: 48px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,32,27,.25); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); }
.order-form .btn { justify-self: start; }

.contact-list { margin: 0; }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 3px solid var(--asphalt); }
.contact-list dt { font-size: .9rem; color: var(--bitume); }
.contact-list dd { margin: 2px 0 0; font-weight: 800; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-poster { margin-top: 28px; }
.contact-poster img { width: 100%; max-width: 380px; height: auto; border-radius: 10px; }

/* ── Crédits ─────────────────────────────────────────────────────────── */
.credits-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px 28px; }
.credits-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.credits-list img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; }
.credits-list a:first-child { font-weight: 700; display: block; overflow-wrap: anywhere; }
.credits-list span { color: var(--bitume); }

/* ── Pied de page ────────────────────────────────────────────────────── */
.footer { background: #000; color: rgba(246,247,244,.75); padding: 56px 0 24px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 180px; height: auto; margin: -8px 0 10px -8px; }
.footer-motto { color: var(--white); font-weight: 800; margin-bottom: .4em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { gap: 16px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #000; padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.08); color: var(--white); box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
  .nav-cta { margin-top: 14px; }

  .hero-inner, .split, .about-grid, .contact-grid, .offer-inner { grid-template-columns: 1fr; gap: 36px; }
  .offer-poster { max-width: 520px; }
  .tips { grid-template-columns: repeat(2, 1fr); }
  .split-reverse .split-photo { order: 0; }
  .teasers { grid-template-columns: 1fr; }
  .teaser { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 80px; }
  .page-header, .page-header.has-photo { padding: 48px 0 84px; }
  .section { padding: 64px 0; }
  .services-list { gap: 64px; }
  .slide-text { padding: 18px 18px 4px; }
  .slider-controls { padding: 12px 18px 16px; }
  .preview-grid { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .order-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
