/* Cyber Praxis — services.cyberpraxis.eu
   Polices auto-hébergées (aucun appel à Google). */
@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0B2238;        /* marine du logo */
  --ink-deep: #071A2C;
  --teal: #1E9A96;       /* sarcelle du logo (décor, pas texte sur blanc) */
  --teal-text: #12706E;  /* sarcelle lisible sur fond clair */
  --mint: #48E5B8;       /* turquoise du logo */
  --paper: #F4F7F7;
  --white: #FFFFFF;
  --line: #D6E1E3;
  --muted: #4A5C6B;
  --on-ink-muted: #A9BCC8;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.68 var(--text);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-2); font-weight: 400; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand img { height: 2.6rem; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.02rem; }
.nav a:hover { color: var(--teal-text); }
.nav .tel { color: var(--muted); }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 500; font-size: 1.02rem;
  padding: .72em 1.3em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #6BEDC8; color: var(--ink); }
.btn-ghost { border-color: var(--on-ink-muted); color: var(--white); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.nav .btn-primary { padding: .55em 1.1em; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; color: var(--ink); font: 500 1rem var(--display); cursor: pointer; }
@media (max-width: 52rem) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4.75rem; z-index: 5; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; width: 100%; }
  .nav .btn-primary { width: auto; margin-top: .6rem; padding: .6em 1.2em; }
  .site-header { position: relative; }
}

/* ---------- Héros ---------- */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: var(--step-4); font-weight: 300; line-height: 1.06; letter-spacing: -.02em; max-width: 15ch; }
.hero .lede { color: var(--on-ink-muted); font-size: var(--step-1); line-height: 1.5; margin-top: 1.5rem; max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-map { width: 100%; height: auto; }
.hero-map text { font-family: var(--display); }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-map { max-width: 30rem; }
}
/* Le seul mouvement de la page : le fil se trace depuis le nœud du logo. */
.trace { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s cubic-bezier(.6,.05,.25,1) .25s forwards; }
.node-in { opacity: 0; animation: appear .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .node-in { animation: none; opacity: 1; }
}

/* ---------- Références ---------- */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof li { padding: 1.6rem 1.5rem 1.6rem 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.proof li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.proof strong { display: block; color: var(--ink); font: 500 1.12rem/1.3 var(--display); margin-bottom: .3rem; }
@media (max-width: 52rem) {
  .proof ul { grid-template-columns: 1fr; }
  .proof li, .proof li + li { padding: 1.1rem 0; border-left: 0; }
  .proof li + li { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 52rem) { .section-head { grid-template-columns: 1fr; } }

/* Domaines : des lignes, pas des cartes */
.domains { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.domain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 3rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.domain h3 { display: flex; gap: .8rem; align-items: baseline; }
.domain h3::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); transform: translateY(-.15rem); }
.domain .for { color: var(--muted); margin: .8rem 0 0 1.4rem; font-size: .98rem; }
.domain ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.domain li { margin-bottom: .35rem; }
.domain li::marker { color: var(--teal); }
.domain .ask { font-family: var(--display); font-weight: 500; }
@media (max-width: 52rem) { .domain { grid-template-columns: 1fr; } .domain .for { margin-left: 1.4rem; } }

/* Méthode : une vraie séquence, donc numérotée */
.method { background: var(--white); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal-text); font: 500 .95rem/1.75rem var(--display); text-align: center; background: var(--white); z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: .95rem; left: 1.9rem; right: -2rem; height: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 60rem) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 36rem) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* Questions */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font: 400 1.22rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.1rem; font: 300 1.6rem/1 var(--display); color: var(--teal-text); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.3rem; }
.faq details > div p { color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem 4rem; }
.contact h2 { margin-bottom: 1rem; }
.contact .intro p { color: var(--on-ink-muted); }
.contact dl { margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact dt { font-size: .9rem; color: var(--on-ink-muted); }
.contact dd { margin: 0; font: 400 1.15rem var(--display); }
.contact dd a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--teal); }
.contact dd a:hover { color: var(--mint); }
@media (max-width: 52rem) { .contact .wrap { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .95rem; color: var(--on-ink-muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--display); color: var(--white); background: var(--ink-deep); border: 1px solid #2B4A63; border-radius: 6px; padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(72,229,184,.25); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - .75rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.form .notice { grid-column: 1 / -1; font-size: .88rem; color: var(--on-ink-muted); margin: 0; }
.form .notice a { color: var(--mint); }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; font-family: var(--display); min-height: 1.5em; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: #FFB4A8; }
@media (max-width: 36rem) { .form { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); font-size: .92rem; padding-block: 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; justify-content: space-between; }
.site-footer img { height: 2.3rem; width: auto; margin-bottom: .8rem; }
.site-footer p { margin: 0 0 .3rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* Pages légales */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: var(--step-3); font-weight: 300; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; font-weight: 500; margin: 2.2rem 0 .6rem; }
.legal .meta { color: var(--muted); }
.legal table { border-collapse: collapse; width: 100%; max-width: 50rem; margin: .5rem 0 1rem; font-size: .96rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: .55rem .6rem .55rem 0; vertical-align: top; }
.legal .todo { background: #FFF4D6; border-left: 3px solid #E0A800; padding: .1rem .4rem; }

/* Longueurs des tracés du héros (pas de style en ligne : CSP stricte) */
.l354 { --len: 354; }
.l254 { --len: 254; }
.d1 { animation-delay: 1.3s; } .d2 { animation-delay: 1.4s; } .d3 { animation-delay: 1.5s; } .d4 { animation-delay: 1.6s; }
.hero-map a { cursor: pointer; }
.hero-map a:hover .lbl, .hero-map a:focus .lbl { fill: var(--mint); }
.hero-map a:focus { outline: none; }
.hero-map a:focus-visible .dot { stroke: var(--white); stroke-width: 3; }
@media (max-width: 40rem) { .hero-map { display: none; } }

/* ---------- Sélecteur de langue ---------- */
.langs { list-style: none; margin: 0 0 0 .4rem; padding: 0; display: flex; gap: .15rem; font-family: var(--display); font-size: .9rem; }
.langs a { display: inline-block; padding: .3rem .45rem; border-radius: 4px; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { color: var(--ink); background: var(--paper); font-weight: 500; }
.langs a:hover { color: var(--teal-text); }
@media (max-width: 52rem) { .langs { margin: .8rem 0 0; } .nav .langs a { width: auto; padding: .4rem .6rem; } }

/* ---------- Solutions (accueil) ---------- */
.solutions { background: var(--white); border-top: 1px solid var(--line); }
.solution-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.solution-list li { border-left: 3px solid var(--mint); padding: .2rem 0 .2rem 1.5rem; max-width: 52rem; }
.solution-name { font: 400 var(--step-2)/1.2 var(--display); margin: 0; }
.solution-what { color: var(--teal-text); font-family: var(--display); font-weight: 500; margin: .2rem 0 .7rem; }
.ask { font-family: var(--display); font-weight: 500; }

/* ---------- Listes d'articles ---------- */
.page-title { font-size: var(--step-3); font-weight: 300; }
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.article-list li { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.article-list h2, .article-list h3 { font-size: var(--step-2); font-weight: 400; margin: .2rem 0 .5rem; }
.article-list h2 a, .article-list h3 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover, .article-list h3 a:hover { color: var(--teal-text); text-decoration: underline; }
.article-list p { color: var(--muted); margin: 0; }
.article-list .meta, .meta { color: var(--muted); font-size: .92rem; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: var(--step-4); font-weight: 300; line-height: 1.06; letter-spacing: -.02em; max-width: 20ch; }
.page-hero .lede { color: var(--on-ink-muted); font-size: var(--step-1); line-height: 1.5; margin-top: 1.4rem; max-width: 46ch; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.crumbs { font-family: var(--display); font-size: .95rem; margin: 0 0 1rem; }
.page-hero .crumbs a { color: var(--mint); text-decoration: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 3rem; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }
.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { margin-bottom: .6rem; }
.plain-list li::marker { color: var(--teal); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.feature-grid li { border-top: 1.5px solid var(--teal); padding-top: 1rem; }
.feature-grid h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: .45rem; }
.feature-grid p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 60rem) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .feature-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.mapping { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .96rem; }
.mapping th, .mapping td { text-align: left; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mapping thead th { font-family: var(--display); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.mapping tbody th { font-weight: 600; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.6rem; }
.cta-box { margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--ink); color: var(--white); border-radius: 10px; padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 50rem; }
.cta-box h2 { font-size: var(--step-2); font-weight: 400; margin-bottom: .6rem; }
.cta-box p { color: var(--on-ink-muted); }

/* ---------- Article ---------- */
.article { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.article-head { max-width: 46rem; margin-bottom: 2.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: var(--step-4); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; }
.article-head .crumbs a { text-decoration: none; }
.standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--muted); margin: 1.2rem 0 1rem; }
.alt-langs a { margin-left: .3rem; }
.prose { max-width: 42rem; font-size: 1.12rem; line-height: 1.72; }
.prose h2 { font-size: var(--step-2); font-weight: 500; margin: 2.4rem 0 .7rem; }
.prose h3 { font-size: 1.3rem; font-weight: 500; margin: 1.8rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--mint); color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-family: var(--display); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.prose code { font-size: .92em; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: .05em .3em; }
.prose strong { font-weight: 600; }

/* Formulaire : case de consentement et confirmation */
.form .check { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--on-ink-muted); cursor: pointer; }
.form .check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--mint); flex: none; }
.form-thanks { grid-column: 1 / -1; border-left: 3px solid var(--mint); padding: .4rem 0 .4rem 1.2rem; }
.form-thanks h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: .5rem; color: var(--white); }
.form-thanks p { color: var(--on-ink-muted); margin: 0; }
.form-thanks a { color: var(--mint); white-space: nowrap; }
[hidden] { display: none !important; }
