/* PRO-AFRIQUE CI — styles
   Thème piloté par <html data-theme="dark|light">. */

:root {
  --accent: #FF7A1A;
  --accent-hover: #ff9040;
  --accent-deep: #c25e00;
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --pad-x: 64px;
  --pad-y: 96px;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --ink: #ffffff;
  --muted: #999999;
  --body: #aaaaaa;
  --line: #262626;
  --nav-bg: #0d0d0dee;
  --nav-link: #dddddd;
  --on-accent: #0d0d0d;
  --hero-scrim: linear-gradient(90deg, #0d0d0df2 0%, #0d0d0dcc 45%, #0d0d0d40 100%);
  --exp-bg: #0d0d0d;
  --card-bg: #151515;
  --card-line: #242424;
  --mines-bg: #141414;
  --why-bg: #0d0d0d;
  --reason-bg: #151515;
  --contact-bg: linear-gradient(#0d0d0dfa, #0d0d0df2), url('../assets/img/btp-pelle.jpeg') center / cover;
  --form-bg: #161616;
  --field-bg: #0d0d0d;
  --field-line: #333333;
  --field-ink: #ffffff;
  --coord-ink: #dddddd;
  --coord-label: var(--accent);
  --foot-ink: #666666;
}

[data-theme="light"] {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6459;
  --body: #5a5349;
  --line: #e6e2dc;
  --nav-bg: #ffffffee;
  --nav-link: #444444;
  --on-accent: #ffffff;
  --hero-scrim: linear-gradient(90deg, #1a1613e6 0%, #1a1613a6 48%, #1a161300 100%);
  --exp-bg: #f5f2ed;
  --card-bg: #ffffff;
  --card-line: #e6e2dc;
  --mines-bg: #1a1613;
  --why-bg: #ffffff;
  --reason-bg: #f5f2ed;
  --contact-bg: #f5f2ed;
  --form-bg: #ffffff;
  --field-bg: #faf8f5;
  --field-line: #ddd8d1;
  --field-ink: #111111;
  --coord-ink: #3a352e;
  --coord-label: var(--accent-deep);
  --foot-ink: #8a8378;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.accent { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 32px; border-radius: 4px; font-weight: 800; font-size: 15px; font-family: inherit; border: 0; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border: 1px solid #5a5a5a; color: #fff; font-weight: 700; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 40px; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--font-display); font-size: 24px; color: var(--ink); letter-spacing: .5px; }
.logo-sm { font-size: 16px; }
.brand-sep { width: 1px; height: 22px; background: var(--line); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu > a:not(.btn) { color: var(--nav-link); font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu > a:not(.btn):hover { color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--nav-link); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { min-height: 640px; display: flex; align-items: flex-end; background: var(--hero-scrim), url('../assets/img/hero-route.jpeg') center 60% / cover; }
.hero-inner { padding: 0 var(--pad-x) 84px; max-width: 900px; }
.tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12px; letter-spacing: 1.6px; padding: 8px 15px; border-radius: 3px; margin-bottom: 26px; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 58px; line-height: 1.08; margin: 0 0 24px; }
.lead { color: #cfcfcf; font-size: 19px; line-height: 1.6; max-width: 640px; margin: 0 0 38px; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Bandeau */
.band { background: var(--accent); padding: 26px var(--pad-x); display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 56px; }
.band span { font-family: var(--font-display); font-size: 15px; color: var(--on-accent); letter-spacing: 1px; }

/* Sections génériques */
.sec { padding: var(--pad-y) var(--pad-x); }
.wrap { max-width: 1280px; margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 72px; align-items: center; }
.split-rev { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.split-end { align-items: end; margin-bottom: 48px; grid-template-columns: 1fr 1fr; }
.split-top { align-items: start; grid-template-columns: 1fr 1fr; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-dark { color: var(--accent-deep); }
.sec h2 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.16; margin: 0 0 24px; text-transform: uppercase; }
.sec p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; }
.sec p:last-child { margin-bottom: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.sec-head h2 { margin: 0; }
.sec-head p { max-width: 400px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.center-head { text-align: center; margin-bottom: 52px; }
.center-head h2 { margin: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.card-mob-visual { height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; background: #0d0d0d; border-bottom: 2px solid var(--accent); font-family: var(--font-display); font-size: 19px; line-height: 1.15; text-transform: uppercase; color: #fff; }
.card-mob-visual:hover { color: #fff; }
.card-mob-visual:hover .accent { color: var(--accent-hover); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

/* Modèle — toujours clair */
.sec-model { background: #fff; color: #111; }
.sec-model p { color: #555; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo img { width: 100%; height: 270px; object-fit: cover; border-radius: 6px; }
.duo img:last-child { margin-top: 40px; }

/* Expertises */
.sec-exp { background: var(--exp-bg); }
.card { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 8px; overflow: hidden; }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 26px 24px 30px; }
.num { font-family: var(--font-display); font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.card h3 { font-size: 17px; font-weight: 800; letter-spacing: .4px; margin: 0 0 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Mines — toujours sombre */
.sec-mines { background: var(--mines-bg); color: #fff; }
.sec-mines p { color: #aaa; margin-bottom: 30px; }
.trio { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.trio img { width: 100%; height: 162px; object-fit: cover; border-radius: 6px; }
.trio img.tall { grid-row: span 2; height: 340px; }
.dash { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dash li { display: flex; gap: 14px; color: #ddd; font-size: 15.5px; line-height: 1.5; }
.dash li::before { content: "—"; color: var(--accent); font-weight: 800; }

/* Artisanat — toujours crème */
.sec-art { background: #faf7f2; color: #111; }
.sec-art p { color: #5a5045; }
.sec-art strong { color: #111; }
.gallery { gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 14px #0000000f; }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.gallery b { font-size: 15px; font-weight: 700; }
.gallery figcaption span { font-size: 13px; color: #8a7f72; }

/* Pourquoi */
.sec-why { background: var(--why-bg); }
.reason { background: var(--reason-bg); border: 1px solid var(--card-line); border-left: 2px solid var(--accent); border-radius: 6px; padding: 30px 28px; }
.reason h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.reason p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Contact */
.sec-contact { background: var(--contact-bg); }
.contact-lead { color: var(--body); max-width: 460px; margin-bottom: 40px !important; }
.coords { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.coords div { display: flex; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--coord-ink); }
.coords dt { color: var(--coord-label); font-weight: 800; min-width: 62px; }
.coords dd { margin: 0; }
.coords a { color: inherit; }
.coords a:hover { color: var(--accent); }
.form { background: var(--form-bg); border: 1px solid var(--line); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
[data-theme="light"] .form { box-shadow: 0 2px 16px #0000000a; }
.form label { display: block; }
.form input, .form select, .form textarea { width: 100%; background: var(--field-bg); border: 1px solid var(--field-line); color: var(--field-ink); padding: 15px 16px; border-radius: 5px; font-size: 14px; font-family: inherit; }
.form textarea { resize: vertical; min-height: 110px; }
.form select:invalid { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 13px !important; color: var(--muted); text-align: center; margin: 0 !important; }
.form-note.ok { color: #2fa35a; font-weight: 700; }
.form-note.err { color: #d9412b; font-weight: 700; }

/* Footer */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 34px var(--pad-x); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--foot-ink); }

/* Page simple (merci / 404) */
.simple { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; }
.simple h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; margin: 22px 0 16px; text-transform: uppercase; }
.simple p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 520px; margin: 0 auto 32px; }

/* Footer légal */
.foot-legal { display: flex; flex-direction: column; gap: 4px; text-align: center; }

/* Lien Mobilité dans le menu */
.menu > a.menu-mob { color: var(--accent); }
.menu > a.is-active { color: var(--accent); }
.band a { font-family: var(--font-display); font-size: 15px; color: var(--on-accent); letter-spacing: 1px; border-bottom: 2px solid var(--on-accent); }
.band a:hover { color: var(--on-accent); opacity: .8; }

/* Accroche Mobilité (accueil) */
.sec-mob-teaser { background: var(--mines-bg); color: #fff; border-top: 1px solid #ffffff14; }
.sec-mob-teaser p { color: #aaa; max-width: 560px; margin-bottom: 32px !important; }
.mob-teaser { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 72px; align-items: center; }

/* Étapes méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; counter-reset: none; }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.steps li span { display: block; font-family: var(--font-body); font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: 1.6px; margin-bottom: 8px; }
.steps li p { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 14.5px !important; line-height: 1.6; color: var(--muted); margin: 10px 0 0 !important; }
.steps-compact { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.steps-compact li { color: #fff; font-size: 22px; }

/* Page Mobilité */
.mob-hero { background: linear-gradient(90deg, #0d0d0df5 0%, #0d0d0dd9 45%, #0d0d0d59 100%), url('../assets/img/mob-mecaniciens.jpeg') center 35% / cover; color: #fff; padding: 120px var(--pad-x) 96px; border-bottom: 1px solid #ffffff14; }
.mob-hero .wrap { max-width: 1280px; }
.mob-hero .kicker { font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #bbb; margin-bottom: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mob-hero .kicker a { color: #bbb; border-bottom: 1px solid #555; }
.mob-hero .kicker a:hover { color: var(--accent); border-color: var(--accent); }
.mob-hero .h1 { font-family: var(--font-display); font-weight: 400; font-size: 76px; line-height: 1.02; margin: 0 0 28px; text-transform: uppercase; }
.mob-hero .lead { max-width: 680px; }
.subnav { position: sticky; top: var(--nav-h, 77px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--pad-x); display: flex; gap: 32px; overflow-x: auto; }
.subnav a { color: var(--nav-link); font-size: 14px; font-weight: 700; padding: 18px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.sec-mob-about { background: var(--bg); }
.sec-mob-about p { color: var(--body); }
.parent { background: var(--reason-bg); border: 1px solid var(--card-line); border-radius: 8px; padding: 36px 32px; }
.parent .logo { display: inline-block; margin-bottom: 18px; }
.parent h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.parent p { font-size: 15px !important; color: var(--muted) !important; }
.parent ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.parent li { font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.parent .btn-ghost { color: var(--ink); border-color: var(--line); }
.parent .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.parent li.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.sec-mob-services { background: var(--exp-bg); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.services li { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 8px; padding: 28px 22px; font-weight: 700; font-size: 15.5px; line-height: 1.45; }
.services li span { display: block; font-family: var(--font-display); font-size: 24px; color: var(--accent); margin-bottom: 14px; }

.sec-mob-method { background: var(--bg); }

.sec-mob-target { background: var(--exp-bg); }
.target { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
.target-intro p { color: var(--body); }
.target-img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; margin: 8px 0 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks li { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 8px; padding: 24px 22px; }
.checks b { display: block; font-size: 16px; margin-bottom: 8px; }
.checks span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.sec-mob-premium { background: #0d0d0d; color: #fff; }
.sec-mob-premium .target-intro p { color: #aaa; }
.sec-mob-premium .checks li { background: #151515; border-color: #262626; }
.sec-mob-premium .checks span { color: #999; }
.quote { font-family: var(--font-display); font-size: 26px; line-height: 1.25; text-transform: uppercase; border-left: 2px solid var(--accent); padding-left: 22px; margin: 32px 0 0; color: #fff; }

.sec-mob-engage { background: var(--accent); color: var(--on-accent); }
.engage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.engage span { font-family: var(--font-display); font-size: 34px; letter-spacing: .5px; }
.sec-mob-engage p { max-width: 760px; font-size: 17px; color: var(--on-accent); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.socials a { font-size: 13px; font-weight: 700; color: var(--coord-ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.handle { margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; --pad-y: 80px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .split, .split-rev { gap: 48px; }
  .hero h1 { font-size: 48px; }
  .services { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mob-hero .h1 { font-size: 60px; }
}

@media (max-width: 1100px) {
  .burger { display: flex; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu .theme-toggle { margin: 16px 0; }
  .menu .btn { margin-top: 4px; padding: 15px; }
}

@media (max-width: 900px) {
  .split, .split-rev, .split-end, .split-top { grid-template-columns: 1fr; }
  .split-rev .trio { order: 2; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .mob-teaser, .target { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .services { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; --pad-y: 64px; }
  .nav { padding: 12px 20px; }
  .brand-sep, .brand-sub { display: none; }
  .hero { min-height: 560px; background: linear-gradient(180deg, #0d0d0d66 0%, #0d0d0df2 70%), url('../assets/img/hero-route.jpeg') center / cover; }
  .hero-inner { padding-bottom: 56px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .actions .btn { width: 100%; }
  .band { gap: 10px 28px; padding: 20px; }
  .band span { font-size: 13px; }
  .sec h2 { font-size: 28px; }
  .sec p { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery img { height: 160px; }
  .gallery figcaption { padding: 12px; }
  .gallery b { font-size: 13.5px; }
  .duo img { height: 200px; }
  .trio img { height: 130px; }
  .trio img.tall { height: 276px; }
  .form { padding: 24px; }
  .coords div { flex-direction: column; gap: 2px; }
  .foot { flex-direction: column; text-align: center; }
  .mob-hero { padding: 80px var(--pad-x) 64px; background: linear-gradient(180deg, #0d0d0d8c 0%, #0d0d0df2 75%), url('../assets/img/mob-mecaniciens.jpeg') center / cover; }
  .target-img { height: 200px; }
  .mob-hero .h1 { font-size: 40px; }
  .subnav { gap: 22px; }
  .services, .checks { grid-template-columns: 1fr; }
  .engage span { font-size: 24px; }
  .quote { font-size: 20px; }
}
