/* Bâti Forages — feuille de style
   Couleurs principales : modifier ici pour changer toute la charte */
:root {
  --gris: #55585e;          /* bandeau d'en-tête */
  --gris-fonce: #3e4146;    /* pied de page */
  --bleu: #1e5d97;          /* titres, boutons */
  --bleu-clair: #5ab0ea;    /* « Forages » du logo, survols */
  --fond: #ffffff;
  --fond-2: #f1f3f5;        /* sections alternées */
  --texte: #2b2d31;
  --texte-doux: #5c6068;
  --trait: #dde1e6;
  --max: 1140px;
  --titre: "Abel", "Arial Narrow", Arial, sans-serif;
  --corps: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corps); font-size: 1rem; line-height: 1.65; color: var(--texte); background: var(--fond); }
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-clair); }
:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.2; color: var(--bleu); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--bleu-clair); }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 4.5rem 0; }
.section--alt { background: var(--fond-2); }
.center { text-align: center; }
.lead { font-size: 1.15rem; font-weight: 600; color: var(--texte); }

/* ---------- En-tête ---------- */
.topbar { background: var(--gris-fonce); color: #fff; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--bleu-clair); }

.header { background: var(--gris); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { height: 64px; width: auto; }
.logo-text { font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.logo-text .b { color: #fff; }
.logo-text .f { color: var(--bleu-clair); }

.nav ul { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { color: #fff; font-weight: 700; text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bleu-clair); color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--gris); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .topbar .hide-sm { display: none; }
}

/* ---------- Héros ---------- */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center; color: #fff; background: #1d2a38 center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,52,.55), rgba(20,35,52,.75)); }
.hero .wrap { position: relative; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: #fff; max-width: 18ch; margin: 0 auto .8em; }
.hero p { max-width: 60ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero--small { min-height: 42vh; }

.btn { display: inline-block; background: var(--bleu); color: #fff; font-weight: 600; text-decoration: none; padding: .85rem 1.8rem; border-radius: 3px; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--bleu-clair); color: #fff; }
.btn--light { background: #fff; color: var(--bleu); }
.btn--light:hover { background: var(--bleu-clair); color: #fff; }

/* ---------- Deux colonnes ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Cartes photo ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--trait); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; margin: 0; padding: 1rem 1.2rem; min-height: 4.4em; display: flex; align-items: center; }
.card .photo { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card .photo img.contain { object-fit: contain; padding: .5rem; }
.card .more { padding: .9rem 1.2rem; font-weight: 600; color: var(--bleu); border-top: 1px solid var(--trait); }
.card:hover .photo img { transform: scale(1.04); }
.card:hover .more { color: var(--bleu-clair); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat b { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--bleu); line-height: 1.1; }
.stat span { color: var(--texte-doux); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Encadrés ---------- */
.objectif { border-left: 4px solid var(--bleu-clair); background: #fff; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.section--alt .objectif { background: #fff; }
.objectif strong:first-child { color: var(--bleu); }

.cta-band { background: var(--bleu); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin: 0 auto 1.6rem; }

/* ---------- Engagements ---------- */
.engagements { display: grid; gap: 0; }
.eng { display: grid; grid-template-columns: 72px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--trait); }
.eng:last-child { border-bottom: 0; }
.eng .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bleu); display: grid; place-items: center; }
.eng .ico svg { width: 32px; height: 32px; stroke: #fff; }
.eng h3 { margin-bottom: .3em; }
.eng p:last-child { margin-bottom: 0; }

/* ---------- Partenaires ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 1rem; }
.track { display: flex; gap: 1rem; width: max-content; animation: defile 45s linear infinite; }
.marquee--rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
.partner { flex: 0 0 auto; min-width: 180px; height: 90px; display: grid; place-items: center; padding: 0 1.2rem; background: #fff; border: 1px solid var(--trait); font-weight: 600; color: var(--texte-doux); text-align: center; }
.partner img { max-height: 60px; width: auto; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .card .photo img { transition: none; }
}

/* ---------- Infos contact (bas de page) ---------- */
.infos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .infos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .infos { grid-template-columns: 1fr; } }
.info { display: flex; gap: 1rem; align-items: flex-start; }
.info svg { flex: 0 0 auto; width: 40px; height: 40px; stroke: var(--bleu); }
.info h3 { font-family: var(--corps); font-size: .95rem; font-weight: 700; color: var(--texte); margin: 0 0 .2em; }
.info p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--gris-fonce); color: #d6d9de; padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; }
.footer p { max-width: 60ch; }
.footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--bleu-clair); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .82rem; color: #a9adb4; }
@media (max-width: 700px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Solutions (page travaux) ---------- */
.solution { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; padding: 3rem 0; border-top: 1px solid var(--trait); }
.solution:first-of-type { border-top: 0; }
@media (max-width: 860px) { .solution { grid-template-columns: 1fr; } }
.solution h3 { font-size: 1.15rem; color: var(--texte); font-family: var(--corps); font-weight: 700; margin-top: 1.2em; }

.slider { position: relative; aspect-ratio: 4 / 3; background: var(--fond-2); border: 1px solid var(--trait); overflow: hidden; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.slider img.on { opacity: 1; }
.slider .vide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texte-doux); font-size: .95rem; text-align: center; padding: 1rem; }
.slider button { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--bleu); font-size: 1.3rem; cursor: pointer; }
.slider .prev { left: .6rem; } .slider .next { right: .6rem; }

.banner-img { aspect-ratio: 16 / 7; overflow: hidden; background: #fff; border: 1px solid var(--trait); margin-bottom: 2.5rem; }
.banner-img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-box { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--bleu); color: #fff; }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; } }
.contact-side { padding: 2.5rem 2rem; }
.contact-side h2 { color: #fff; }
.contact-side .info svg { stroke: #fff; width: 32px; height: 32px; }
.contact-side .info h3, .contact-side .info p, .contact-side .info a { color: #fff; }
.contact-side .info + .info { margin-top: 1.3rem; }
.form { background: #fff; color: var(--texte); padding: 2.5rem 2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
.form .field { margin-bottom: 1.1rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #c8cdd3; border-radius: 3px; background: #fff; color: var(--texte); }
.form input:focus, .form textarea:focus { border-color: var(--bleu); outline: 2px solid rgba(90,176,234,.4); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: .82rem; color: var(--texte-doux); }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.2rem; border-radius: 3px; display: none; }
.alert.ok { background: #e6f4ea; color: #1f6b34; }
.alert.err { background: #fdecea; color: #8a1c13; }
.alert.show { display: block; }
