/* =========================================================
   PMAX — feuille de style
   Les couleurs et polices sont regroupées ci-dessous : pour
   appliquer la nouvelle identité visuelle, modifier ces jetons.
   ========================================================= */
:root {
  /* Identité PMAX — piste 1c « Trajectoire » */
  --ink: #1C1F22;          /* anthracite du logo : texte principal */
  --ink-2: #2A2F34;
  --deep: #16191C;         /* fond profond (versions sombres) */
  --text: #2E3338;
  --muted: #5B6066;
  --bg: #FFFFFF;
  --bg-alt: #F6F6F3;       /* blanc cassé des planches */
  --line: #E1E2DC;
  --accent: #A6D12B;       /* vert électrique (fonds, boutons) */
  --accent-dark: #4E6B08;  /* vert foncé lisible pour le texte */
  --accent-mid: #7FAE12;   /* vert du logo */
  --yellow: #E3CF1B;       /* départ du dégradé */
  --accent-ink: #16191C;   /* texte posé sur l'accent */
  --accent-soft: #EEF4DA;
  --gradient: linear-gradient(90deg, var(--yellow), var(--accent-mid));
  --font-titre: "Archivo", system-ui, sans-serif;
  --font-texte: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font-texte); }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-titre); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-stretch: 108%; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 1.1em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 var(--font-texte); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent-dark); }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { color: var(--ink); display: inline-flex; }
.logo-svg { height: 44px; width: auto; }
.logo-footer .logo-svg { height: 52px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.nav a:not(.btn)[aria-current="page"]::after, .nav a:not(.btn):hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Accueil */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--deep); padding: clamp(64px, 10vw, 136px) 0 clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 38%; background: url("/assets/img/banniere-v2.jpg") center 35% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 36%, rgba(22,25,28,.82) 52%, rgba(22,25,28,.35) 78%, rgba(22,25,28,.15)), linear-gradient(0deg, rgba(166,209,43,.16), transparent 45%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.76); }
.hero .eyebrow { color: var(--accent); }
.hero .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero .hero-points { background: rgba(22,25,28,.55); backdrop-filter: blur(6px); }
.hero .hero-points li { color: #fff; }
.hero .hero-points li + li { border-top-color: rgba(255,255,255,.14); }
.hero .hero-points span { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero h1 { max-width: 14em; }
.hero-points { list-style: none; margin: 0; padding: 0; border-left: 3px solid; border-image: linear-gradient(180deg, var(--yellow), var(--accent-mid)) 1; }
.hero-points li { padding: 14px 0 14px 22px; font-size: 1.05rem; color: var(--ink); }
.hero-points li + li { border-top: 1px solid var(--line); }
.hero-points span { display: block; font: 500 .75rem var(--font-mono); color: var(--accent-dark); letter-spacing: .1em; margin-bottom: 2px; }

.chiffres { background: radial-gradient(800px 300px at 20% 0%, rgba(166,209,43,.12), transparent 70%), var(--deep); color: #fff; }
.chiffres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid rgba(255,255,255,.08); }
.chiffre { padding: clamp(32px, 5vw, 56px) clamp(8px, 2vw, 32px); }
.chiffre + .chiffre { border-left: 1px solid rgba(255,255,255,.12); }
.chiffre-valeur { font: 800 clamp(2.6rem, 6vw, 4.2rem)/1 var(--font-titre); font-stretch: 112%; display: inline-block; background: linear-gradient(90deg, var(--yellow), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .35em; letter-spacing: -.02em; }
.chiffre-label { color: rgba(255,255,255,.72); margin: 0; max-width: 18em; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: etape; }
.etapes li { counter-increment: etape; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font: 500 1.6rem var(--font-mono); color: var(--accent-mid); margin-bottom: .5em; }
.etapes p { margin: 0; color: var(--muted); }

/* Cartes projets */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card-projet { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-projet:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,25,28,.1); border-color: transparent; color: inherit; }
.card-projet[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--ink-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-projet:hover .card-media img { transform: scale(1.04); }
.card-media-vide { background: radial-gradient(400px 200px at 80% 110%, rgba(166,209,43,.35), transparent 70%), var(--deep); }
.card-media-vide::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink); font: 500 .7rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 22px 24px 26px; }
.card-chiffre { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.card-chiffre strong { display: block; font: 800 1.9rem/1.1 var(--font-titre); font-stretch: 112%; color: var(--accent-dark); }
.card-body p:last-child { margin: 0; font-size: .95rem; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtre { border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: .5em 1.1em; border-radius: 999px; font: 500 .95rem var(--font-texte); cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Bandeau d'appel */
.cta { background: radial-gradient(700px 300px at 50% 120%, rgba(166,209,43,.18), transparent 70%), var(--deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { text-align: center; max-width: 820px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); }
.cta .btn { margin-top: .8em; }

/* Pages intérieures */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); background: radial-gradient(900px 400px at 90% -20%, var(--accent-soft), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.panel { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.panel h3 + p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%234E6B08' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

.grid-competences { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.competence { background: var(--bg); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.competence p { margin: 0; color: var(--muted); font-size: .97rem; }
.competence-icone { display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 18px; position: relative; }
.competence-icone::after { content: ""; position: absolute; inset: 10px; background: var(--accent-dark); -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.icone-plc   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h4M7 13h10M7 17h6'/%3E%3C/svg%3E"); }
.icone-pid   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 16c3 0 3-8 6-8s3 6 6 6 3-3 4-3h4'/%3E%3C/svg%3E"); }
.icone-gauge { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 18a9 9 0 1 1 16 0'/%3E%3Cpath d='M12 15l4-5'/%3E%3C/svg%3E"); }
.icone-chart { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.icone-people{ --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-4 3-6 7-6s7 2 7 6M16 4.5a3.5 3.5 0 0 1 0 7M18 14c2.5.6 4 2.6 4 6'/%3E%3C/svg%3E"); }
.icone-algo  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6l-5 6 5 6M16 6l5 6-5 6M14 4l-4 16'/%3E%3C/svg%3E"); }
.icone-invest{ --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.resultats { width: 100%; border-collapse: collapse; min-width: 560px; }
.resultats th, .resultats td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.resultats thead th { background: var(--bg-alt); font: 600 .8rem var(--font-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.resultats tbody tr:last-child td { border-bottom: 0; }
.resultats .impact { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* Projet */
.projet-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.projet-kpi { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 28px 32px; min-width: 240px; }
.projet-kpi strong { display: block; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-titre); font-stretch: 112%; color: var(--accent); margin-bottom: 8px; }
.projet-kpi span { color: rgba(255,255,255,.8); }
.projet-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.projet-etapes > div { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.projet-etapes > div:last-child { border: 0; }
.projet-etapes h2 { font-size: 1.35rem; }
.projet-etapes ul:not(.checks) { padding-left: 1.2em; margin: 0; }
.projet-etapes li { margin-bottom: .4em; }
.projet-final { background: var(--accent-soft); border-radius: var(--radius); padding: 28px !important; }
.projet-aside { display: grid; gap: 12px; position: sticky; top: 96px; }
.projet-aside img { border-radius: var(--radius); width: 100%; margin-bottom: 8px; }

/* Équipe */
.grid-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.membre img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 18px; background: var(--bg-alt); }
.membre h2 { font-size: 1.2rem; margin-bottom: .2em; }
.membre-role { color: var(--accent-dark); font-weight: 600; margin-bottom: .8em; }
.membre ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); font-size: .94rem; }

/* Médias */
.card-doc { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
a.card-doc:hover { border-color: var(--accent); color: inherit; }
.card-doc strong { font: 700 1.35rem/1.25 var(--font-titre); color: var(--ink); }
.card-doc-meta { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Autres projets */
.grid-annexes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card-annexe { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--bg); position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-annexe::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--gradient); }
.card-annexe:hover { color: inherit; border-color: transparent; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,25,28,.1); }
.card-annexe h3 { font-size: 1.6rem; margin: 6px 0 0; }
.annexe-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.annexe-logo img { height: 56px; width: auto; }
.annexe-logo-complet img { height: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-annexes-titre { margin: 1.4em 0 .6em; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-size: .72rem; }
.footer-annexes { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-annexes a { display: inline-flex; align-items: center; gap: 8px; opacity: .85; transition: opacity .2s; font-weight: 600; }
.footer-annexes a:hover { opacity: 1; color: #fff; }
.footer-annexes .logo-complet { height: 40px; width: auto; }
.footer-annexes .logo-mono { height: 30px; width: 30px; }
.card-annexe-accroche { font-weight: 600; color: var(--accent-dark); margin-bottom: .4em; }
.card-annexe .checks { margin-top: .4em; font-size: .95rem; }
.card-annexe .link-arrow { margin-top: auto; padding-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #c7d1cc; border-radius: 10px; padding: .75em .9em; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form .err { color: #c0392b; font-size: .85rem; font-weight: 400; }
.form .btn { justify-self: start; }
.piege { position: absolute !important; left: -9999px; }
.alerte { padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; }
.alerte-ok { background: var(--accent-soft); color: var(--ink); }
.alerte-erreur { background: #fdecea; color: #8a1f15; }
.contact-infos { display: grid; gap: 16px; }
.contact-infos h2 { font-size: 1.2rem; }
.carte { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.carte iframe { width: 100%; height: 100%; border: 0; }

/* Pied de page */
.site-footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 64px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .muted { color: rgba(255,255,255,.55); }
.logo-footer { color: #fff; margin-bottom: 16px; --logo-line: var(--accent); --logo-tip: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-title { color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 1em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: .85rem; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(16px); 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; } * { scroll-behavior: auto !important; } }

/* Tablette / mobile */
@media (max-width: 960px) {
  .hero-grid, .two-col, .projet-grid, .contact-grid, .projet-hero { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .projet-aside { position: static; }
  .hero::before { inset: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(22,25,28,.94) 0%, rgba(22,25,28,.86) 60%, rgba(22,25,28,.7)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-120%); transition: transform .25s; box-shadow: 0 20px 30px rgba(22,25,28,.08); }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .chiffre + .chiffre { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-cards, .grid-competences { grid-template-columns: 1fr; }
}

/* Conditions générales */
.cg { max-width: 820px; }
.cg h2 { font-size: 1.3rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.cg h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.cg p, .cg li { color: var(--text); }
.cg .num { font: 500 .85rem var(--font-mono); color: var(--accent-dark); margin-right: .4em; }
.cg ul { padding-left: 1.3em; margin: -.4em 0 1em; }
.cg dl { margin: 0 0 1em; }
.cg dt { font-weight: 600; color: var(--ink); }
.cg dd { margin: 0 0 .7em; color: var(--muted); }
.cg-meta { font: 500 .85rem var(--font-mono); color: var(--muted); }
.a-completer { background: #FFF3C4; color: #6B5300; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.sommaire { columns: 2; column-gap: 32px; padding: 20px 24px 20px 40px; background: var(--bg-alt); border-radius: var(--radius); margin: 0 0 2.5em; }
.sommaire li { margin-bottom: .3em; break-inside: avoid; }
@media (max-width: 640px) { .sommaire { columns: 1; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Anti-robot ALTCHA */
.robot { display: grid; gap: 6px; }
altcha-widget {
  --altcha-max-width: 320px;
  --altcha-border-radius: 10px;
  --altcha-color-base: var(--bg);
  --altcha-color-border: #c7d1cc;
  --altcha-color-border-focus: var(--accent-mid);
  --altcha-color-text: var(--ink);
  --altcha-color-error-text: #c0392b;
  --altcha-color-footer-bg: var(--bg-alt);
  font-family: var(--font-texte);
}

/* Domaines de compétences */
.icone-flamme { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c4 0 7-2.7 7-7 0-4-3-6-4-9-1 2-2 3-3.5 3.5C11 7 11 4 9 2c0 4-4 7-4 13 0 4.3 3 7 7 7z'/%3E%3C/svg%3E"); }
.icone-bois { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16M6 20c0-4 2-6 6-8M12 12c3-1 5-4 6-8-4 1-7 3-8 7'/%3E%3Cpath d='M8 16c-2-1-4-3-4-6 3 0 5 2 6 4'/%3E%3C/svg%3E"); }
.icone-turbine { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 10c0-4 1-7 4-8 1 3-1 6-4 8zM14 13c3 2 5 4 4 7-3 0-5-3-4-7zM10 13c-3 2-6 2-8 0 2-2 5-2 8 0z'/%3E%3C/svg%3E"); }
.icone-soleil { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.icone-goutte { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c4 5 6 8 6 11a6 6 0 0 1-12 0c0-3 2-6 6-11z'/%3E%3C/svg%3E"); }
.icone-cellule { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='15' cy='14' r='1.5'/%3E%3Ccircle cx='9' cy='15.5' r='1'/%3E%3C/svg%3E"); }
.icone-fiole { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-5-9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E"); }
.icone-cristal { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 5v10l-8 5-8-5V7z'/%3E%3Cpath d='M4 7l8 5 8-5M12 12v10'/%3E%3C/svg%3E"); }
.icone-couches { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.icone-antenne { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Cpath d='M8.5 8.5a5 5 0 0 0 0 7M15.5 8.5a5 5 0 0 1 0 7M5.6 5.6a9 9 0 0 0 0 12.8M18.4 5.6a9 9 0 0 1 0 12.8'/%3E%3C/svg%3E"); }
.icone-jauge { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18a9 9 0 1 1 16 0'/%3E%3Cpath d='M12 15l4-5'/%3E%3C/svg%3E"); }
.icone-automate { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h4M7 13h10M7 17h6'/%3E%3C/svg%3E"); }
.ancres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6em; }
.ancres a { border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; padding: .45em 1em; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.ancres a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-domaines { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.domaine { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .domaine { background: var(--bg); }
.domaine h3 { margin: 0; }
.domaine-sous-titre { color: var(--accent-dark); font-weight: 600; font-size: .95rem; margin: 0; }
.domaine p { margin: 0 0 .4em; font-size: .97rem; }
.domaine .provisoire { color: var(--muted); font-style: italic; }
.domaine-gain { font-size: .9rem !important; }
.domaine-gain > span:first-child { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: .5em; }
.tags { list-style: none; padding: 0; margin: .2em 0 .6em; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 .72rem var(--font-mono); letter-spacing: .04em; background: var(--accent-soft); color: var(--accent-dark); padding: 4px 9px; border-radius: 999px; }
.domaine .link-arrow { margin-top: auto; padding-top: 6px; }
.grid-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.theme { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.theme::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--gradient); }
.theme:hover { color: inherit; transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 34px rgba(22,25,28,.1); }
.theme-num { font: 500 .8rem var(--font-mono); color: var(--accent-mid); margin-bottom: .6em; }
.theme h3 { font-size: 1.35rem; }
.theme ul { list-style: none; padding: 0; margin: 0 0 1.2em; color: var(--muted); font-size: .95rem; }
.theme li { padding: 6px 0; border-top: 1px solid var(--line); }
.theme .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .grid-themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-themes { grid-template-columns: 1fr; } }

.icone-pluie { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15a5 5 0 1 1 1-9.9A6 6 0 0 1 19 9a4 4 0 0 1-1 7.9'/%3E%3Cpath d='M9 18l-1 3M13 18l-1 3M17 18l-1 3'/%3E%3C/svg%3E"); }
.icone-code { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6l-5 6 5 6M16 6l5 6-5 6'/%3E%3C/svg%3E"); }
.icone-carte { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l-6 2v14l6-2 6 2 6-2V4l-6 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
.theme-bandeau { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--deep) center / cover no-repeat; display: flex; align-items: flex-end; margin-bottom: 28px; }
.theme-bandeau::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,28,.94) 0%, rgba(22,25,28,.75) 45%, rgba(22,25,28,.2) 100%); }
.theme-bandeau-texte { position: relative; padding: clamp(24px, 4vw, 44px); max-width: 640px; }
.theme-bandeau .eyebrow { color: var(--accent); }
.theme-bandeau h2 { color: #fff; margin-bottom: .3em; }
.theme-bandeau p { color: rgba(255,255,255,.78); margin: 0; }
.theme-credit { position: absolute; right: 14px; bottom: 10px; font: 400 .7rem var(--font-texte); color: rgba(255,255,255,.55); text-decoration: none; }
.theme-credit:hover { color: #fff; }
.domaine-logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 14px; }
.theme { padding-top: 0; }
.theme-image { display: block; max-width: none; width: calc(100% + 48px); margin: 0 -24px 18px; aspect-ratio: 2 / 1; object-fit: cover; }
.theme::before { z-index: 1; }

/* Bandeaux photo des pages */
.page-hero-photo { position: relative; overflow: hidden; color: #fff; background: var(--deep); border-bottom: 0; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.page-hero-photo::before { content: ""; position: absolute; inset: 0 0 0 30%; background: var(--hero-img) center / cover no-repeat; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 30%, rgba(22,25,28,.8) 50%, rgba(22,25,28,.35) 80%, rgba(22,25,28,.2)), linear-gradient(0deg, rgba(166,209,43,.14), transparent 50%); }
.page-hero-photo > .wrap { position: relative; z-index: 1; }
.page-hero-photo h1 { color: #fff; }
.page-hero-photo .lead, .page-hero-photo p { color: rgba(255,255,255,.78); }
.page-hero-photo .eyebrow, .page-hero-photo .eyebrow a { color: var(--accent); }
.page-hero-photo .cg-meta { color: rgba(255,255,255,.65); }
.page-hero-photo .ancres a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.page-hero-photo .ancres a:hover { background: #fff; color: var(--ink); }
.page-hero-photo .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.page-hero-photo .projet-kpi { border: 1px solid rgba(255,255,255,.14); background: rgba(22,25,28,.7); backdrop-filter: blur(6px); }
.page-hero-photo .two-col p { color: rgba(255,255,255,.8); }
.hero-credit { position: absolute; right: 14px; bottom: 10px; z-index: 2; font: 400 .7rem var(--font-texte); color: rgba(255,255,255,.5); text-decoration: none; }
.hero-credit:hover { color: #fff; }
.hero .hero-credit { z-index: 2; }
@media (max-width: 960px) {
  .page-hero-photo::before { inset: 0; }
  .page-hero-photo::after { background: linear-gradient(180deg, rgba(22,25,28,.94), rgba(22,25,28,.82)); }
}

/* Ils nous font confiance */
.clients { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.clients .eyebrow { margin: 0; }
.clients-logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.clients-logos img { height: 56px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.clients-logos a:hover img, .clients-logos a:focus-visible img { filter: none; opacity: 1; }
.page-hero-photo:has(.two-col)::after { background: linear-gradient(90deg, rgba(22,25,28,.96) 0%, rgba(22,25,28,.86) 55%, rgba(22,25,28,.62) 100%), linear-gradient(0deg, rgba(166,209,43,.14), transparent 50%); }
