/* Charte reprise de carborok.com : noir et blanc, bleu azur et orange des visuels */
:root {
  --black: #111111;
  --ink-2: #3d3d3d;
  --muted: #707070;
  --white: #ffffff;
  --concrete: #f2f2f2;
  --concrete-2: #e3e3e3;
  --sky-text: #1567b3; /* azur un peu plus fonce pour les petits textes */
  --sky: #1976c9; /* azur soutenu : rectangles ponctuels, jamais en bandeau */
  --sky-light: #e6f1fb;
  --orange: #ef7d32;
  --orange-dark: #d9661c;
  --line: rgba(17, 17, 17, .12);
  --radius: 6px;
  --max: 1180px;
  --font-title: Roboto, Helvetica, sans-serif;
  --font-text: Figtree, Helvetica, sans-serif;
  --font-menu: Figtree, Helvetica, sans-serif;
  --font-form: Jost, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-title); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky-text);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--ink-2); }
.section-head { display: grid; gap: 16px; margin-bottom: 56px; }

/* Placeholder à confirmer */
.todo { background: #fff3b0; color: var(--black); padding: 0 4px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-text); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: var(--white); border-color: var(--white); color: var(--sky-text); }
.btn-outline:hover { background: var(--sky-light); border-color: var(--sky-light); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--sky-text); }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow, .card-link:hover .arrow { transform: translateX(4px); }

/* Header blanc, comme le site actuel */
header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; font-family: var(--font-menu); font-size: .98rem; font-weight: 400; color: var(--black); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a[aria-current]:not(.btn)::after { transform: scaleX(1); }
.nav-links .lang { font-size: .85rem; color: var(--muted); }
.nav-links .btn { padding: 10px 22px; font-size: .92rem; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--black); }

/* Hero photo plein écran */
.hero {
  position: relative; color: var(--white);
  min-height: calc(100vh - 84px); display: flex; align-items: center;
  padding: 90px 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,.25) 0%, rgba(17,17,17,.1) 55%, rgba(17,17,17,0) 100%),
    url("accueil-hero.jpg") center / cover no-repeat;
}
.hero-content { max-width: 800px; }
/* Seul le titre est posé dans un cadre sombre translucide */
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 700;
  padding: 30px 36px;
  background: rgba(17,17,17,.55); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: var(--white); margin: 26px 0 40px; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 18px rgba(0,0,0,.6); }
.hero .lead strong { font-weight: 700; color: var(--white); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.intro-band { background: var(--white); }
.intro-figure { margin: 48px 0 0; }
.intro-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; border-radius: var(--radius); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 7px 16px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Chiffres */
/* Même photo que l'accroche, sous un voile noir transparent */
.stats {
  color: var(--white); padding: 0;
  background:
    linear-gradient(rgba(17,17,17,.72), rgba(17,17,17,.72)),
    url("accueil-hero.jpg") center / cover no-repeat;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid rgba(255,255,255,.14); text-align: center; }
.stat:nth-child(odd) { border-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
.stat-value { font-family: var(--font-title); font-size: 2.7rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { margin-top: 10px; font-size: .95rem; color: rgba(255,255,255,.82); }

/* Offre */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offer { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer-img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.offer-body { padding: 38px 40px 40px; display: flex; flex-direction: column; flex: 1; }
.offer-tag { font-family: var(--font-title); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.offer h3 { font-size: 1.9rem; margin: 10px 0 14px; }
.offer-text { color: var(--ink-2); }
.offer ul { list-style: none; padding: 0; margin: 24px 0 34px; display: grid; gap: 10px; }
.offer li { position: relative; padding-left: 28px; color: var(--ink-2); }
.offer li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 3px; background: var(--sky-text); }
.offer ul:last-child { margin-bottom: 0; }
/* Même traitement que le bandeau des 4 cases */
.offer.dark {
  color: var(--white); border-color: var(--black);
  background:
    linear-gradient(rgba(17,17,17,.72), rgba(17,17,17,.72)),
    url("accueil-hero.jpg") center / cover no-repeat;
}
.offer.dark .offer-text, .offer.dark li { color: rgba(255,255,255,.88); }
.offer.dark li::before { background: var(--orange); }

/* Écosystème de minéralisation */
.eco { background: var(--concrete); }
.eco-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.actors { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; counter-reset: actor; }
.actors li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.actors li::before {
  counter-increment: actor; content: counter(actor);
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
}
.actors h3 { font-size: 1.1rem; margin-bottom: 4px; }
.actors p { color: var(--ink-2); font-size: .97rem; }
.eco-figure { margin: 0; }
.eco-figure img { border-radius: var(--radius); width: 100%; box-shadow: 0 24px 50px -28px rgba(0,0,0,.45); }
.eco-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Solutions accessibles */
.access { background: var(--white); }


.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { border-top: 3px solid var(--orange); padding-top: 18px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: .97rem; }
.steps-cta { margin-top: 48px; }

/* Parcours */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 3px solid var(--black); }
.step { padding: 28px 22px 10px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: var(--concrete-2); margin-bottom: 18px;
}
.step-phase { display: inline-block; font-family: var(--font-title); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-text); margin-bottom: 8px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }
.step.license::before { color: var(--orange); }
.step.license .step-phase { color: var(--orange); }

/* Références */
.refs { background: var(--concrete); padding: 70px 0; }
.refs-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ref { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s; }
.ref:hover { box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.ref-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ref:hover .ref-media img { transform: scale(1.04); }
.ref-media.placeholder { background: repeating-linear-gradient(135deg, var(--concrete-2) 0 14px, #d6d6d6 14px 28px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; font-weight: 600; }
.ref-year { position: absolute; top: 14px; left: 14px; background: var(--orange); color: var(--white); font-family: var(--font-title); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ref-body { padding: 24px 26px 28px; display: grid; gap: 8px; }
.ref-meta { font-size: .8rem; color: var(--sky-text); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ref-body p { font-size: .95rem; color: var(--ink-2); }
.card-link { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-title); font-weight: 700; text-decoration: none; color: var(--black); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.logos { margin: 0; }
.logos-title { text-align: center; font-family: var(--font-title); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-tile { width: calc((100% - 6 * 14px) / 7); height: 110px; padding: 16px; background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.logo-tile img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.logo-tile span { font-size: .82rem; line-height: 1.2; color: #00205b; }

/* Contact */
.contact { background: var(--black); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact .eyebrow { color: var(--white); }
.contact .lead { color: rgba(255,255,255,.78); margin-top: 18px; }
.contact-info { margin-top: 40px; display: grid; gap: 18px; font-size: .97rem; color: rgba(255,255,255,.85); }
.contact-info strong { display: block; color: var(--orange); font-family: var(--font-title); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.contact-info a { text-decoration: none; }
.contact-photo { margin-top: 40px; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
form { background: var(--white); color: var(--black); border-radius: var(--radius); padding: 40px; display: grid; gap: 22px; align-self: start; }
.motifs { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.motifs legend { font-family: var(--font-form); font-weight: 400; font-size: .9rem; margin-bottom: 12px; }
.motifs input { position: absolute; opacity: 0; pointer-events: none; }
.motifs label { font-family: var(--font-form); padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--black); font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.motifs input:checked + label { background: var(--orange); border-color: var(--orange); color: var(--white); }
.motifs input:focus-visible + label { outline: 2px solid var(--sky-text); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--font-form); font-size: .9rem; font-weight: 400; }
/* Champs soulignés, comme le formulaire actuel */
.field input, .field textarea {
  font: inherit;
  font-family: var(--font-form); font-size: 1rem; padding: 10px 0;
  border: 0; border-bottom: 1.5px solid var(--black); border-radius: 0; background: transparent;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--orange); }
.field textarea { min-height: 100px; resize: vertical; }
.form-error { border-left: 4px solid var(--orange); padding: 10px 16px; background: var(--concrete); }
.consent { font-size: .8rem; color: var(--muted); }
form .btn { justify-self: start; }

/* Footer */
footer { background: var(--black); color: rgba(255,255,255,.65); padding: 0 0 36px; font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-logo img { height: 40px; width: auto; filter: invert(1); }
footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .82rem; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .eco-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 24px; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-top: 3px solid var(--black); }
  .step.license { grid-column: span 2; }
  .logo-tile { width: calc((100% - 3 * 14px) / 4); }
  .ref-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .nav { height: 70px; }
  .logo img { height: 36px; }
  .hero { min-height: auto; padding: 90px 0 80px; background-position: 65% center; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 24px 16px 32px; background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .offers, .ref-grid, .pillars, .row { grid-template-columns: 1fr; }
  .offer-body { padding: 28px 22px 30px; }
  .steps { grid-template-columns: 1fr; }
  .step.license { grid-column: auto; }
  .refs-head { flex-direction: column; align-items: start; }
  .logo-tile { width: calc((100% - 14px) / 2); }
  .stat { padding: 30px 16px; }
  .stat-value { font-size: 2rem; }
  form { padding: 26px 20px; }
}

/* Mobile : espaces resserrés, gros boutons, cartes compactes */
.eco-figure figcaption { display: none; }
.eco-figure a { display: block; pointer-events: none; }
@media (max-width: 760px) {
  section { padding: 56px 0; }
  h2 { font-size: 1.8rem; }
  .lead { font-size: 1.08rem; line-height: 1.55; }
  .eyebrow { margin-bottom: 10px; font-size: .75rem; letter-spacing: .12em; }
  .section-head { gap: 12px; margin-bottom: 32px; }

  .hero { padding: 56px 0; min-height: calc(100svh - 70px); }
  .hero-badge { margin-bottom: 18px; font-size: .82rem; }
  .hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.4rem); padding: 22px 20px; }
  .hero-ctas { margin-top: 24px; gap: 12px; }
  .hero-ctas .btn, .steps-cta .btn, form .btn { width: 100%; justify-content: center; text-align: center; }
  .btn { padding: 14px 22px; }

  .intro-figure { margin-top: 32px; }
  .intro-figure img { aspect-ratio: 3 / 2; }
  .stat { padding: 28px 10px; }
  .stat-value { font-size: 1.65rem; }
  .stat-label { font-size: .88rem; line-height: 1.4; }

  .refs { padding: 44px 0; }
  .logo-wall { gap: 10px; }
  .logo-tile { width: calc((100% - 20px) / 3); height: 78px; padding: 10px; }
  .logo-tile span { font-size: .68rem; }

  .step, .step + .step { display: grid; grid-template-columns: 58px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 3px solid var(--black); }
  .step::before { grid-row: 1 / span 3; font-size: 2rem; margin: 0; }
  .step > * { grid-column: 2; }
  .step-phase, .step h3 { margin-bottom: 4px; }
  .steps-cta { margin-top: 24px; }

  .offers { gap: 20px; }
  .offer h3 { font-size: 1.55rem; }
  .offer-body { padding: 24px 20px 26px; }
  .offer ul { margin-top: 18px; }

  .eco-grid, .contact-grid { gap: 36px; }
  .actors { margin-top: 28px; gap: 20px; }
  .actors li { gap: 14px; }
  .eco-figure a { pointer-events: auto; }
  .eco-figure figcaption { display: block; text-align: center; }
  .pillars { gap: 24px; }

  .contact-info { margin-top: 28px; }
  .contact-info a { display: inline-block; padding: 4px 0; }
  form { padding: 24px 18px; }
  .motifs label { padding: 10px 16px; }

  footer nav { gap: 6px 24px; }
  footer nav a, .footer-bottom a { padding: 8px 0; }
  .footer-grid { padding-top: 36px; gap: 20px; }
  .footer-bottom { margin-top: 24px; align-items: center; }
}

/* Menu déroulant : téléphone et tablette */
@media (max-width: 1020px) {
  .nav { height: 70px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-toggle { width: 48px; height: 48px; margin-right: -10px; padding: 0; line-height: 1; }
  .nav-links { gap: 0; padding: 4px 16px 24px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.35); max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-links a:not(.btn) { width: 100%; padding: 13px 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a[aria-current] { font-weight: 700; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 20px; padding: 14px 22px; font-size: 1rem; }
}
