/* CB CS — site vitrine. Une feuille, aucun script, aucune ressource externe.
   Polices embarquées (licence OFL) : Space Grotesk pour les titres, Inter pour le texte. */

@font-face {
  font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --fond: #0a0f1f;
  --fond-2: #0f1730;
  --surface: rgba(255,255,255,.035);
  --surface-bord: rgba(255,255,255,.09);
  --texte: #e9edf6;
  --texte-2: #a3aec6;
  --texte-3: #6f7b99;
  --reseau: #62c6ff;          /* structure, liens, nœuds */
  --alerte: #ff5c3d;          /* le chemin ouvert, l'action */
  --alerte-2: #ff7a5f;
  --titre: "Space Grotesk", system-ui, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--corps); font-size: 1.05rem; line-height: 1.65;
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(98,198,255,.10), transparent 60%),
    radial-gradient(40rem 24rem at -10% 20%, rgba(255,92,61,.07), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--reseau); }
img, svg { max-width: 100%; height: auto; display: block; }

/* Accessibilité */
.saut { position: absolute; left: -999px; top: 0; background: var(--alerte); color: #fff; padding: .5rem 1rem; z-index: 20; }
.saut:focus { left: 1rem; top: 1rem; }
a:focus-visible { outline: 3px solid var(--alerte); outline-offset: 3px; border-radius: 4px; }

.cadre { width: min(74rem, 100% - 2 * var(--gouttiere)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(10,15,31,.72); border-bottom: 1px solid var(--surface-bord); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; flex-wrap: wrap; }
.marque { display: inline-flex; align-items: center; gap: .7rem; color: var(--texte); text-decoration: none; font-family: var(--titre); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; }
.marque svg { width: 1.6rem; height: 1.6rem; flex: none; }
.marque small { font-family: var(--corps); font-weight: 400; font-size: .8rem; color: var(--texte-3); margin-left: .2rem; }
.nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--texte-2); text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--texte); }
.nav a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--alerte); }
.nav .contact { color: #fff; background: var(--alerte); border: 0; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.nav .contact:hover { background: var(--alerte-2); }

/* ---------- Bandeau ---------- */
.bandeau { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.bandeau .cadre { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bandeau h1 { font-family: var(--titre); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 1.5rem; max-width: 16ch; }
.bandeau .sous { font-size: 1.15rem; color: var(--texte-2); max-width: 46ch; margin: 0 0 2.2rem; }
.bandeau figure { margin: 0; }
.bandeau figcaption { font-size: .85rem; color: var(--texte-3); margin-top: .6rem; }
.bandeau figure.photo { max-width: 17rem; justify-self: center; }
.bandeau figure.photo img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--surface-bord); }
.bandeau.page h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 18ch; }
@media (max-width: 56rem) { .bandeau .cadre { grid-template-columns: 1fr; } .bandeau figure { order: -1; max-width: 32rem; } .bandeau figure.photo { max-width: 12rem; justify-self: start; } }

/* ---------- Appel à l'action — unique ---------- */
.action { display: inline-block; }
.action a {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--alerte); color: #fff; text-decoration: none; font-weight: 600;
  padding: .95rem 1.5rem; border-radius: 999px; letter-spacing: .005em;
  box-shadow: 0 10px 30px rgba(255,92,61,.28);
  transition: transform .15s ease, background .15s ease;
}
.action a:hover { background: var(--alerte-2); transform: translateY(-1px); }
.action .delai { display: block; margin-top: .7rem; font-size: .9rem; color: var(--texte-3); }

/* ---------- Illustration réseau (accueil) ---------- */
.topo text { font-family: var(--corps); font-size: 11px; fill: var(--texte-3); }
.topo .zone { fill: rgba(98,198,255,.05); stroke: rgba(98,198,255,.18); stroke-width: 1; }
.topo .zone.ot { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.12); }
.topo .lien { stroke: rgba(98,198,255,.30); stroke-width: 1.2; fill: none; }
.topo .noeud { fill: #0f1730; stroke: var(--reseau); stroke-width: 1.6; }
.topo .noeud.ot { stroke: #c7d0e6; }
.topo .barriere { stroke: var(--texte-2); stroke-width: 3; stroke-dasharray: 10 7; }
.topo .ouvert { stroke: var(--alerte); stroke-width: 3; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,92,61,.6)); stroke-dasharray: 8 8; animation: file 1.6s linear infinite; }
.topo .ouvert-noeud { fill: #1a0f10; stroke: var(--alerte); stroke-width: 2.2; }
.topo .etiquette { fill: var(--alerte); font-weight: 600; }
@keyframes file { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .topo .ouvert { animation: none; } .action a { transition: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.bande { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); border-block: 1px solid var(--surface-bord); }
.section h2 { font-family: var(--titre); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1.2rem; max-width: 26ch; }
.section .intro { color: var(--texte-2); font-size: 1.1rem; max-width: 60ch; margin: 0 0 2.5rem; }
.section p, .section li { max-width: 64ch; }
.section p { margin: 0 0 1rem; }
.section ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.section li { margin-bottom: .5rem; }
.sobre { color: var(--texte-2); }

/* ---------- Cartes d'intervention ---------- */
.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.offre {
  background: var(--surface); border: 1px solid var(--surface-bord); border-radius: var(--rayon);
  padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .2s ease, transform .2s ease;
}
.offre:hover { border-color: rgba(98,198,255,.45); transform: translateY(-3px); }
.offre .visuel { height: 8.5rem; border-radius: 10px; background: linear-gradient(160deg, #121c3a, #0b1124); border: 1px solid var(--surface-bord); display: grid; place-items: center; overflow: hidden; }
.offre .visuel svg { width: 100%; height: 100%; }
.offre h3 { font-family: var(--titre); font-weight: 600; font-size: 1.35rem; margin: 0; line-height: 1.2; }
.offre p { margin: 0; color: var(--texte-2); font-size: .98rem; }
.offre .pour { font-size: .88rem; color: var(--texte-3); }
.offre .lire { margin-top: auto; padding-top: .5rem; font-weight: 600; text-decoration: none; }
.offre .lire:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 56rem) { .offres { grid-template-columns: 1fr; } }

/* ---------- Preuves ---------- */
.preuves { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.preuve { padding: 1.5rem; border-left: 2px solid var(--reseau); background: linear-gradient(90deg, rgba(98,198,255,.06), transparent 60%); border-radius: 0 var(--rayon) var(--rayon) 0; }
.preuve strong { display: block; font-family: var(--titre); font-weight: 600; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; margin-bottom: .5rem; }
.preuve span { display: block; font-weight: 600; margin-bottom: .35rem; }
.preuve p { margin: 0; color: var(--texte-2); font-size: .95rem; }
@media (max-width: 56rem) { .preuves { grid-template-columns: 1fr; } }

/* ---------- Principes ---------- */
.principes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.principe svg { width: 2.4rem; height: 2.4rem; stroke: var(--reseau); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.principe h3 { font-family: var(--titre); font-size: 1.15rem; margin: 0 0 .4rem; }
.principe p { margin: 0; color: var(--texte-2); font-size: .98rem; }
.principes.deux { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2.5rem 3rem; }
@media (max-width: 56rem) { .principes, .principes.deux { grid-template-columns: 1fr; } }

/* ---------- Déroulé ---------- */
.deroule { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: .5rem; }
.deroule li { counter-increment: etape; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; max-width: none; background: var(--surface); border: 1px solid var(--surface-bord); border-radius: 12px; }
.deroule li::before { grid-row: 1 / span 2; content: counter(etape, decimal-leading-zero); font-family: var(--titre); font-weight: 600; font-size: 1.5rem; color: var(--reseau); line-height: 1; padding-top: .1rem; }
.deroule strong, .deroule p { grid-column: 2; }
.deroule strong { display: block; font-family: var(--titre); font-size: 1.1rem; margin-bottom: .2rem; }
.deroule p { margin: 0; color: var(--texte-2); }

/* ---------- Livrables ---------- */
.livrables { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.livrables li { max-width: none; margin: 0; padding: 1rem 1.1rem 1rem 2.6rem; background: var(--surface); border: 1px solid var(--surface-bord); border-radius: 12px; position: relative; color: var(--texte-2); font-size: .98rem; }
.livrables li::before { content: ""; position: absolute; left: 1.1rem; top: 1.3rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--reseau); box-shadow: 0 0 10px var(--reseau); }
.livrables strong { color: var(--texte); }
@media (max-width: 56rem) { .livrables { grid-template-columns: 1fr; } }

/* ---------- Encadré ---------- */
.fait { border-left: 3px solid var(--alerte); background: linear-gradient(90deg, rgba(255,92,61,.10), transparent 70%); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 12px 12px 0; max-width: 64ch; }
.fait p { margin: 0; }

/* ---------- Portrait ---------- */
.portrait { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
.portrait figure { margin: 0; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--surface-bord); background: var(--fond-2); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 56rem) { .portrait { grid-template-columns: 1fr; } .portrait figure { max-width: 20rem; } }

/* ---------- Clôture ---------- */
.cloture { padding: clamp(3rem, 7vw, 6rem) 0; }
.cloture .boite { background: linear-gradient(135deg, #16224a, #0f1730 60%); border: 1px solid var(--surface-bord); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cloture .boite::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 28rem; height: 28rem; background: radial-gradient(closest-side, rgba(255,92,61,.22), transparent); pointer-events: none; }
.cloture h2 { font-family: var(--titre); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 .8rem; max-width: 24ch; position: relative; }
.cloture p { color: var(--texte-2); max-width: 52ch; margin: 0 0 1.8rem; position: relative; }
.cloture .adresse { margin: 1.6rem 0 0; font-size: .95rem; }
.cloture .adresse a { color: var(--texte); }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--surface-bord); color: var(--texte-3); font-size: .875rem; padding: 1.6rem 0 2rem; }
.pied .cadre { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pied a { color: var(--texte-2); }

/* ---------- Mentions ---------- */
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }

@media print { .entete, .pied, .cloture, .action { display: none; } body { background: #fff; color: #000; } }

/* ---------- Petits écrans : en-tête compact et non collant ---------- */
@media (max-width: 56rem) {
  .entete { position: static; }
  .entete .cadre { padding: .7rem 0; gap: .6rem 1rem; }
  .marque small { display: none; }
  .nav { gap: .35rem .9rem; }
  .nav a { font-size: .9rem; }
  .nav .contact { padding: .4rem .85rem; }
  .bandeau { padding-top: 2rem; }
  .bandeau figure { max-width: 26rem; }
}
