/* Police Poppins (charte AITRPRO), hébergée par le site : aucun appel à Google Fonts (RGPD, politique de sécurité).
   Licence SIL Open Font License 1.1 — voir assets/fonts/OFL.txt. Graisses 400, 400 italique, 500, 700 ;
   les textes en 600 et 800 utilisent automatiquement la graisse 700. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 90%; ascent-override: 105%; descent-override: 35%; line-gap-override: 0%; src: url("../fonts/poppins-400-normal.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 90%; ascent-override: 105%; descent-override: 35%; line-gap-override: 0%; src: url("../fonts/poppins-400-italic.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 90%; ascent-override: 105%; descent-override: 35%; line-gap-override: 0%; src: url("../fonts/poppins-500-normal.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 90%; ascent-override: 105%; descent-override: 35%; line-gap-override: 0%; src: url("../fonts/poppins-700-normal.woff") format("woff"); }

/* ==========================================================================
   AITRPRO — feuille de style du site public
   Charte : #00467D #005C93 #78C9EB #ABE1FA #E6E7E8, texte #414042
   Typographie système (aucun appel externe), mobile d'abord.
   ========================================================================== */

:root {
  --blue-900: #00345d;
  --blue-800: #00467D;
  --blue-700: #005C93;
  --blue-400: #78C9EB;
  --blue-200: #ABE1FA;
  --blue-50: #EEF7FC;
  --grey-200: #E6E7E8;
  --grey-100: #F4F6F8;
  --text: #414042;
  --text-soft: #5f6b78;
  --white: #fff;
  --ok: #2f8f63;
  --warn: #b36b00;
  --error: #b3261e;
  --accent: #F2A541;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 52, 93, .06), 0 8px 24px rgba(0, 52, 93, .08);
  --shadow-lg: 0 18px 50px rgba(0, 52, 93, .16);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 64px; /* barre mobile */
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 { color: var(--blue-800); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.icon-xs { width: .9em; height: .9em; }

/* ---------- Bandeau maquette ---------- */
.maquette-ribbon { background: #fff4d6; color: #6b4d00; font-size: .85rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #f0d78a; display: flex; gap: 8px; justify-content: center; align-items: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px rgba(0, 92, 147, .28); }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-light { background: #fff; color: var(--blue-800); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn-light:hover { color: var(--blue-900); background: var(--blue-50); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: #fff; color: var(--blue-800); }
.btn-phone { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-200); }
.btn-phone:hover { background: var(--blue-200); color: var(--blue-900); }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
/* Bouton d'accès rapide au support (à dicter au téléphone : "tapez aitrpro, cliquez sur ce bouton en haut") */
.btn-assist { border-color: var(--accent); color: var(--warn); font-weight: 600; }
.btn-assist:hover { background: var(--accent); color: var(--blue-900); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-block { width: 100%; margin-top: .6em; }

/* ---------- Barre haute ---------- */
/* Essai point 19 : bandeau plus haut, il porte aussi les boutons tél/assistance/devis (voir header.php) */
.topbar { background: var(--blue-900); color: #d7ecf8; font-size: .82rem; display: none; }
.topbar-inner { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { margin: 0; display: flex; align-items: center; gap: 6px; }
.topbar-info a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-actions .btn { white-space: nowrap; }
.btn-topbar-phone { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-topbar-phone:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-topbar-assist { background: transparent; color: var(--accent); border-color: var(--accent); font-weight: 600; }
.btn-topbar-assist:hover { background: var(--accent); color: var(--blue-900); }
@media (min-width: 1140px) and (max-width: 1370px) { .topbar-hours { display: none; } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--grey-200); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 52, 93, .1); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-800); margin-right: auto; }
.brand-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-brand); font-size: 1.65rem; letter-spacing: .06em; color: var(--blue-800); }
.brand-tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-top: 3px; }
.brand-light .brand-name { color: #fff; }
@media (max-width: 479px) { .brand-tag { display: none; } .brand-name { font-size: 1.45rem; } .hero-visual { max-width: 320px; margin: 0 auto; } }

/* Clin d'œil village repris dans l'en-tête : visible tant que le bandeau du haut (.topbar) est caché,
   c'est-à-dire en dessous de 1140px (voir @media (min-width: 1140px) { .topbar { display: block; } }). */
.brand-village-link { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--blue-800); text-decoration: none; white-space: nowrap; }
.brand-village-link:hover, .brand-village-link:focus-visible { text-decoration: underline; }
@media (min-width: 1140px) { .brand-village-link { display: none; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--grey-200); background: #fff; color: var(--blue-800); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.site-nav { display: none; position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: #fff; padding: 12px var(--gutter) 96px; overflow-y: auto; }
body.nav-open .site-nav { display: block; animation: navIn .2s ease; }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 600; font-size: 1.05rem; color: var(--blue-800); text-decoration: none; border-bottom: 1px solid var(--grey-200); }
.nav-item.is-active > a { color: var(--blue-700); }
.sub-nav { list-style: none; margin: 0; padding: 4px 0 8px 12px; }
.sub-nav a { display: block; padding: 8px 4px; color: var(--text); text-decoration: none; font-size: .98rem; }
.sub-nav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(120, 201, 235, .45), transparent 60%), linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 55%, var(--blue-900) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 24px; padding-top: 40px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; text-wrap: balance; }
.hero-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-200); margin-bottom: .8em; }
.hero-lead { font-size: 1.15rem; color: #e3f2fb; max-width: 640px; }
.hero-lead p:last-child { margin-bottom: 0; }
.aitrpro-letter { color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions.center { justify-content: center; }
.hero-visual { display: flex; justify-content: center; }
.hero-img { width: 100%; max-width: 520px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .18)); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: #fff; }
.hero-home .hero-inner { padding-top: 48px; padding-bottom: 88px; }
.hero-compact .hero-inner, .hero-noimg .hero-inner { padding-bottom: 64px; }
.hero-article h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .85rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--blue-400); }
.breadcrumb a { color: var(--blue-200); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; position: relative; }
.bg-light { background: var(--blue-50); }
.bg-dark { background: var(--blue-800); color: #d9edf8; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-gradient { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #d9edf8; }
.bg-gradient h2, .bg-gradient h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); margin-bottom: .6em; }
.bg-dark .kicker, .bg-gradient .kicker { color: var(--blue-200); }
.section-title { text-wrap: balance; }
.section-intro { font-size: 1.08rem; color: var(--text-soft); }
.bg-dark .section-intro, .bg-gradient .section-intro { color: #cfe6f4; }
.section-actions { margin-top: 24px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid > *, .split > *, .contact-grid > *, .reviews > *, .article-layout > * { min-width: 0; }
.contact-list a, .footer-contact a { overflow-wrap: anywhere; }

.cards-filter { margin: 0 0 24px; max-width: 420px; }
.cards-filter input[type="search"] { width: 100%; padding: 12px 16px; border: 1px solid #b9c3cd; border-radius: 999px; font: inherit; }
.cards-filter-count { font-size: .85rem; color: var(--text-soft); margin: 8px 0 0; }
.cards-filter-empty { padding: 24px; text-align: center; color: var(--text-soft); background: var(--grey-100); border-radius: var(--radius); }
.card.is-filtered-out { display: none; }
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.bg-dark .card, .bg-gradient .card { color: var(--text); }

.split { display: grid; gap: 32px; align-items: center; }
.split-media img { width: 100%; max-width: 560px; display: block; margin: 0 auto; }

/* Prose (textes longs) */
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--blue-700); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue-700); }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--blue-400); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--grey-200); margin: 2em 0; }
.table-wrap, .prose figure { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: top; }
.prose thead th { background: var(--blue-800); color: #fff; font-weight: 600; }
.prose thead th:first-child { border-radius: 8px 0 0 0; }
.prose thead th:last-child { border-radius: 0 8px 0 0; }
.prose tbody tr:nth-child(even) { background: var(--grey-100); }
.t-right { text-align: right !important; }
.t-center { text-align: center !important; }

/* Cartes à icônes */
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px; border: 1px solid var(--blue-200); }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-title { font-size: 1.12rem; margin-bottom: .4em; }
.feature p { color: var(--text-soft); margin: 0; }
.link-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; display: flex; flex-direction: column; }
.link-card p { color: var(--text-soft); }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.link-card .feature-title a { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-700); font-weight: 600; font-size: .95rem; margin-top: auto; padding-top: 8px; text-decoration: none; }
.link-card:hover .link-more .icon, .link-more:hover .icon { transform: translateX(3px); }
.link-more .icon { transition: transform .15s; }

/* Liste cochée */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { color: #fff; background: var(--blue-700); border-radius: 50%; padding: 4px; width: 26px; height: 26px; flex: none; margin-top: 1px; }
.checklist-sm { gap: 8px; font-size: .95rem; margin: 18px 0 8px; }
.checklist-sm .check-icon { width: 20px; height: 20px; padding: 3px; background: var(--ok); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.step-title { margin: 4px 0 .3em; font-size: 1.08rem; }
.step p { margin: 0; color: var(--text-soft); }

/* Tarifs */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; text-align: left; }
.price-card.is-featured { border: 2px solid var(--blue-700); box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: -13px; left: 24px; background: var(--blue-700); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-name { font-size: 1.25rem; margin-bottom: .3em; }
.price-value { font-size: 1.9rem; font-weight: 800; color: var(--blue-800); margin: 0; line-height: 1.15; }
.price-unit { color: var(--text-soft); font-size: .92rem; margin: .2em 0 0; }
.price-card .btn { margin-top: auto; }
.pricing-note { margin-top: 24px; font-size: .95rem; color: var(--text-soft); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--blue-800); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { transition: transform .2s; color: var(--blue-700); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--text-soft); }
.faq-answer.is-todo { font-style: italic; color: var(--warn); }

/* Questions / réponses */
.qa-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.qa-card { border-top: 4px solid var(--blue-700); }
.qa-num { font-size: .8rem; font-weight: 800; color: var(--blue-400); letter-spacing: .1em; margin: 0 0 .4em; }
.qa-question { font-size: 1.15rem; }
.qa-card .prose { color: var(--text-soft); font-size: .98rem; }

/* Chiffres */
.section-stats { padding: 36px 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-value { display: block; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { display: block; font-size: .92rem; color: var(--blue-200); margin-top: 4px; }

/* Mission / valeurs */
.mission-title { font-family: var(--font-brand); font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; margin: 0 0 .3em; line-height: 1.2; }
.mission-item { text-align: center; padding: 8px 12px; }
.mission-icon { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .25); }
.mission-icon .icon { width: 28px; height: 28px; }
.mission-item h3 { color: #fff; }
.mission-item p { color: #cfe6f4; margin: 0; }

/* Partenaires */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.partner a, .partner { text-decoration: none; }
.partner { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; min-height: 96px; }
.partner-name { display: block; font-weight: 800; font-size: 1.12rem; color: var(--blue-800); letter-spacing: .01em; }
.partner-role { display: block; font-size: .82rem; color: var(--text-soft); margin-top: 4px; }
.partner-logo { align-items: center; }
.partner-img { max-width: 100%; height: 40px; width: auto; object-fit: contain; display: block; margin: 0 auto; }

/* Avis */
.reviews { display: grid; gap: 24px; align-items: start; }
.reviews-score { text-align: center; }
.score { margin: 0; line-height: 1; }
.score-value { font-size: 3.6rem; font-weight: 800; color: var(--blue-800); }
.score-max { font-size: 1.4rem; color: var(--text-soft); font-weight: 600; }
.stars { display: flex; justify-content: center; gap: 2px; margin: 8px 0 4px; }
.star { width: 24px; height: 24px; color: var(--grey-200); fill: currentColor; stroke: none; }
.star.is-full { color: var(--accent); }
.star.is-half { color: #f7cf93; }
.score-caption { color: var(--text-soft); font-size: .92rem; }
.testimonials { display: grid; gap: 16px; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0 0 8px; font-style: italic; }
.testimonial figcaption { font-weight: 600; color: var(--blue-800); font-size: .92rem; }

/* Appel à l'action */
.section-cta { padding: 48px 0 64px; }
.cta-box { background: radial-gradient(800px 300px at 100% 0, rgba(120, 201, 235, .45), transparent 60%), linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #e3f2fb; border-radius: 24px; padding: 36px 28px; display: grid; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-title { color: #fff; margin: 0 0 .3em; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-body p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Emplacement à compléter */
.section-notice { padding: 24px 0; }
.notice { border: 2px dashed #e0b34a; background: #fffaf0; border-radius: var(--radius); padding: 20px 24px; color: #6b4d00; }
.notice-title { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: .4em; }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--grey-200); text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; background: #fff; }
.chip:hover { border-color: var(--blue-400); color: var(--blue-800); }
.chip.is-active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; background: var(--blue-50); aspect-ratio: 4 / 3; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--text-soft); font-size: .96rem; }
.post-card-title { font-size: 1.15rem; }
.post-card-title a { color: var(--blue-800); text-decoration: none; }
.post-card-title a:hover { color: var(--blue-700); text-decoration: underline; }
.post-meta { font-size: .85rem; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: .6em; }
.post-meta-light { color: var(--blue-200); }
.tag { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.empty { color: var(--text-soft); }

.article-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.article-body { font-size: 1.08rem; min-width: 0; }
.article-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.8em; }
.article-body h3 { font-size: 1.15rem; }
.encart { background: var(--blue-50); border: 1px solid var(--blue-200); border-left: 5px solid var(--blue-700); border-radius: var(--radius); padding: 24px 26px; margin: 2em 0; }
.encart h2 { margin-top: 0; }
.prose .btn { color: #fff; }
.article-lead { font-size: 1.22rem; color: var(--blue-800); font-weight: 500; }
.article-aside { display: grid; gap: 20px; align-content: start; }
.toc { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius); padding: 18px 20px; }
.toc-title { font-weight: 700; color: var(--blue-800); margin-bottom: .5em; }
.toc-list { margin: 0; padding-left: 1.2em; font-size: .93rem; display: grid; gap: 6px; }
.toc-list a { text-decoration: none; color: var(--text); }
.toc-list a:hover { color: var(--blue-700); text-decoration: underline; }
.aside-cta { background: var(--blue-800); color: #d9edf8; border-radius: var(--radius); padding: 22px; }
.aside-cta-title { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .3em; }
.aside-cta .btn-outline { border-color: #fff; color: #fff; }
.aside-cta .btn-outline:hover { background: #fff; color: var(--blue-800); }
.aside-cta .btn-primary { background: #fff; color: var(--blue-800); box-shadow: none; }

/* Contact */
.contact-grid { display: grid; gap: 24px; align-items: start; }
.contact-form-wrap { padding: 28px; }
.contact-form-wrap .section-head { margin-bottom: 20px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--blue-800); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel], .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfd6de; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(120, 201, 235, .35); }
.form-field [aria-invalid="true"] { border-color: var(--error); }
.form-check { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-700); flex: none; }
.form-check label { font-weight: 400; color: var(--text); flex: 1; font-size: .92rem; margin: 0; }
.form-check .field-error { flex-basis: 100%; }
.field-error { color: var(--error); font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.form-hint { font-size: .85rem; color: var(--text-soft); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert-success { background: #e8f6ef; color: #1d5f41; border: 1px solid #b8e0cb; }
.alert-error { background: #fdecea; color: #7a1c16; border: 1px solid #f5c2bd; }
.contact-info { display: grid; gap: 20px; }
.contact-card h3 { font-size: 1.05rem; margin-top: .4em; display: flex; align-items: center; gap: 8px; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list > li > .icon { color: var(--blue-700); width: 22px; height: 22px; margin-top: 2px; }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.big-link { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.contact-support { background: var(--blue-50); border-color: var(--blue-200); }
.hours { margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.hours div { display: grid; gap: 1px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* 404 */
.section-404 { padding: 56px 0 72px; }
.section-404-inner { display: grid; gap: 32px; align-items: center; }
.big-404 { font-size: 5rem; font-weight: 800; color: var(--blue-200); line-height: 1; margin: 0 0 4px; }
.section-404-text .lead { font-size: 1.1rem; color: var(--ink-600, #4a5c68); }
.section-404-help { margin-top: 18px; font-size: .95rem; }
.section-404-visual { display: flex; justify-content: center; order: -1; }
.section-404-img { width: 100%; max-width: 380px; }
@media (max-width: 479px) { .section-404-img { max-width: 260px; } }
@media (min-width: 800px) {
  .section-404 { padding: 88px 0 104px; }
  .section-404-inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .section-404-visual { order: 0; }
  .section-404-img { max-width: 480px; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-900); color: #bcd8ea; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-title { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; }
.footer-title-sm { margin-top: 1.6em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-signature { font-family: var(--font-brand); color: #fff; font-size: 1.15rem; margin-top: 12px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 14px; color: #fff; font-weight: 600; font-size: .85rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--blue-400); margin-top: 3px; }
.footer-contact small { color: #8fb4cc; }
.footer-zone { color: #bcd8ea; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-social { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Barre mobile ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--grey-200); box-shadow: 0 -6px 20px rgba(0, 52, 93, .12); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; font-weight: 700; text-decoration: none; }
.mobile-bar-call { background: var(--blue-700); color: #fff; }
.mobile-bar-call:hover { color: #fff; }
.mobile-bar-write { color: var(--blue-800); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(.96); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } /* autant de colonnes que de chiffres */
  .partners { grid-template-columns: repeat(3, 1fr); }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-actions { flex-direction: row; }
}

/* ==========================================================================
   Bureau
   ========================================================================== */
@media (min-width: 1140px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .topbar { display: block; }
  .section { padding: 84px 0; }
  .nav-toggle { display: none; }
  /* Essai point 19 : en-tête sur une seule ligne (logo + menu) — tél/assistance/CTA vivent dans le bandeau du haut */
  .header-inner { display: flex; align-items: center; gap: 24px; }
  .brand { margin-right: 0; }
  .site-nav { display: contents; }
  .header-inner > .site-nav > .nav-actions { display: none; } /* remplacée par .topbar-actions ; reste dans le menu mobile */
  .nav-list { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
  .nav-item { position: relative; }
  .nav-item > a { border: 0; padding: 10px 11px; font-size: .96rem; border-radius: 8px; gap: 4px; }
  .nav-item > a:hover, .nav-item.is-active > a { background: var(--blue-50); color: var(--blue-700); }
  .sub-nav { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--grey-200); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .nav-item.has-sub:hover .sub-nav, .nav-item.has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
  .sub-nav a { padding: 9px 12px; border-radius: 8px; }
  .sub-nav a:hover { background: var(--blue-50); color: var(--blue-800); }

  .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 48px; padding-top: 64px; padding-bottom: 96px; }
  .hero-home .hero-inner { padding-top: 72px; padding-bottom: 120px; }
  .hero-noimg .hero-inner { grid-template-columns: 1fr; max-width: 900px; }
  .hero-wave { height: 60px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-left .split-media { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .partners { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .reviews { grid-template-columns: 320px 1fr; gap: 48px; }
  .cta-box { grid-template-columns: 1.3fr 1fr; padding: 48px 56px; }
  .cta-actions { justify-content: flex-end; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .contact-form-wrap { padding: 40px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; }
}

@media (min-width: 1140px) and (max-width: 1599px) {
  .header-inner { gap: 20px; }
  .brand-name { font-size: 1.45rem; }
  .nav-list { gap: 0; }
  .nav-item > a { padding: 10px 8px; font-size: .93rem; }
  .btn-phone { padding: .6em .75em; }
  .btn-phone span { display: none; }
}
@media (min-width: 1140px) and (max-width: 1260px) {
  .brand-name { font-size: 1.4rem; }
  .nav-item > a { padding: 10px 6px; font-size: .9rem; }
  .nav-actions .btn-cta { padding: .6em .8em; font-size: .86rem; }
}

@media print {
  .site-header, .topbar, .mobile-bar, .site-footer, .hero-wave, .maquette-ribbon, .article-aside { display: none !important; }
  .hero { background: none; color: var(--text); }
  .hero h1 { color: var(--blue-800); }
  body { padding: 0; }
}

/* Images insérées depuis l'éditeur visuel */
.prose figure.figure { margin: 1.6em 0; }
.prose figure.figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--blue-50); }
.prose u { text-underline-offset: .2em; }

/* ---------- Veille cyber ---------- */
.watch-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 0 0 12px; padding: 16px; background: var(--grey-100); border-radius: var(--radius); }
.watch-filters label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--text); }
.watch-filters select { min-width: 180px; padding: 9px 12px; border: 1px solid #b9c3cd; border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: #fff; }
.watch-count { color: var(--text-soft); font-size: .95rem; margin: 0 0 20px; }
.watch-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 14px 16px; background: var(--grey-100); border-radius: var(--radius); }
.watch-org-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.watch-map-label { font-weight: 700; font-size: .9rem; color: var(--text); margin-right: 4px; }
.watch-org-chips .chip { padding: 6px 14px; font-size: .85rem; cursor: pointer; }
.watch-search { flex: 1 1 260px; max-width: 340px; }
.watch-search input { width: 100%; padding: 9px 12px; border: 1px solid #b9c3cd; border-radius: var(--radius-sm); font: inherit; background: #fff; }
.watch-org-tag { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--grey-200); color: var(--text-soft); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.watch-row.is-filtered-out { display: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.watch-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; }
.watch-table th, .watch-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-200); font-size: .92rem; }
.watch-table thead th { background: var(--grey-100); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); white-space: nowrap; }
.watch-table tbody tr:last-child td { border-bottom: none; }
.watch-table tbody tr:hover { background: var(--blue-50); }
.watch-table td[data-label="Lien à suivre"] { min-width: 260px; }
.watch-table td[data-label="Lien à suivre"] a { font-weight: 600; }
.watch-source-name { display: inline-block; margin-top: 2px; font-size: .82rem; color: var(--text-soft); }
.watch-type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .02em; background: var(--blue-50); color: var(--blue-900); white-space: nowrap; }
.watch-type.t-rancongiciel, .watch-type.t-fuite_donnees { background: #fdecea; color: #8a1c14; }
.watch-type.t-fovi, .watch-type.t-hameconnage, .watch-type.t-faux_support { background: #fff3e0; color: #7a4300; }
.watch-impact { font-size: .9rem; }
@media (max-width: 760px) {
  .watch-table thead { display: none; }
  .watch-table, .watch-table tbody, .watch-table tr, .watch-table td { display: block; width: 100%; }
  .watch-table tr { border-bottom: 8px solid var(--grey-100); padding: 6px 0; }
  .watch-table td { border-bottom: none; padding: 6px 14px; white-space: normal; }
  .watch-table td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); margin-bottom: 2px; }
}
.watch-empty { padding: 24px; text-align: center; color: var(--text-soft); background: var(--grey-100); border-radius: var(--radius); }
.watch-glossary { margin-top: 28px; border-top: 1px solid var(--grey-200); padding-top: 16px; }
.watch-glossary summary { cursor: pointer; font-weight: 700; color: var(--blue-800); }
.watch-glossary dl { display: grid; gap: 4px 20px; grid-template-columns: 1fr; margin: 16px 0 0; }
@media (min-width: 760px) { .watch-glossary dl { grid-template-columns: 220px 1fr; } }
.watch-glossary dt { font-weight: 700; }
.watch-glossary dd { margin: 0 0 8px; color: var(--text-soft); }
.watch-legal { font-size: .85rem; color: var(--text-soft); margin-top: 20px; }
.btn-link { font-weight: 600; }

/* ==========================================================================
   Palette contrastée (v1.2) — moins de bleu, plus de contraste.
   Bleus de la charte gardés pour les repères (surtitres, liens, icônes) ;
   titres en encre foncée ; fonds alternés en gris neutre ; bleu nuit profond
   pour les bandeaux ; boutons d'action en orange (accent déjà présent dans les
   illustrations). Pour revenir aux boutons bleus : --cta-bg: var(--blue-700); --cta-text: #fff.
   ========================================================================== */
:root {
  --ink: #15202b;
  --text: #2f3439;
  --text-soft: #505b66;
  --surface-alt: #F2F3F5;
  --line: #dde1e6;
  --navy: #0b2a45;
  --navy-2: #0e3558;
  --night: #0d1720;
  --cta-bg: #F2A541;
  --cta-bg-hover: #e8912a;
  --cta-text: #15202b;
}
h1, h2, h3, h4 { color: var(--ink); }
.prose h3 { color: var(--ink); }
.card, .step, .faq-item, .partner, .watch-table { border-color: var(--line); }
.bg-light { background: var(--surface-alt); }
.bg-dark { background: var(--navy); color: #dfe8f0; }
.bg-gradient { background: linear-gradient(160deg, var(--navy-2), var(--navy) 70%); color: #dfe8f0; }
.bg-dark h2, .bg-dark h3, .bg-gradient h2, .bg-gradient h3 { color: #fff; }
.bg-dark .kicker, .bg-gradient .kicker { color: #9fd3ef; }
.bg-dark .card h3, .bg-gradient .card h3 { color: var(--ink); }

/* Bandeau d'accueil : bleu nuit profond, lueur discrète */
.hero { background: radial-gradient(900px 420px at 88% -12%, rgba(120, 201, 235, .22), transparent 62%), linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 60%, #081f33 100%); }
.hero-text, .hero p { color: #e6eef5; }

/* Boutons d'action */
.btn-primary { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 6px 16px rgba(160, 90, 0, .22); }
.btn-primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { color: var(--ink); }
.btn-phone { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-phone:hover { background: var(--surface-alt); color: var(--ink); }
.aside-cta { background: var(--navy); }
.aside-cta .btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.mobile-bar-call { background: var(--cta-bg); color: var(--cta-text); }
.mobile-bar-call:hover { color: var(--cta-text); }
.mobile-bar-write { color: var(--ink); }

/* Chiffres clés et mission */
.stat-label { color: #b9d3e6; }
.mission-item p { color: #d2dee8; }

/* Éléments d'accent : neutres, le bleu reste sur l'icône */
.feature-icon { background: var(--surface-alt); border-color: var(--line); color: var(--blue-700); }
.check-icon { background: var(--navy); }
.step-num { background: var(--navy); }
.price-badge { background: var(--navy); }
.price-card.is-featured { border-color: var(--navy); }
.price-value, .score-value, .partner-name { color: var(--ink); }
.faq-item summary, .testimonial figcaption, .post-card-title a, .toc-title, .form-field label { color: var(--ink); }
.post-card-media, .prose figure.figure img { background: var(--surface-alt); }
.tag { background: var(--surface-alt); border-color: var(--line); color: var(--navy-2); }
.toc, .encart, .contact-support { background: var(--surface-alt); border-color: var(--line); }
.encart { border-left-color: var(--blue-700); }
.prose blockquote { background: var(--surface-alt); }
.prose thead th { background: var(--navy); }
.chip.is-active { background: var(--ink); border-color: var(--ink); }
.article-lead { color: var(--ink); }
.cta-box { background: radial-gradient(700px 260px at 100% 0, rgba(120, 201, 235, .18), transparent 60%), linear-gradient(135deg, var(--navy-2), var(--navy)); color: #e6eef5; }

/* En-tête, navigation, pied de page */
.topbar { background: var(--night); color: #c9d6e2; }
.nav-item > a { color: var(--ink); }
.brand-name { color: var(--navy-2); }
.site-footer { background: var(--night); color: #b8c6d3; }
@media (min-width: 1140px) {
  .nav-item > a:hover, .nav-item.is-active > a { background: var(--surface-alt); color: var(--blue-700); }
  .sub-nav a:hover { background: var(--surface-alt); color: var(--ink); }
}
.nav-test { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #fff1d6; color: #7a4a00; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }

/* ---------- Onglets interactifs ---------- */
.tabs-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tabs-list { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .tabs-list { display: flex; } }
.tab-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: 600 1rem var(--font); color: var(--text-soft); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.tab-btn .icon { width: 1.4em; height: 1.4em; }
.tab-btn:hover { color: var(--ink); background: #fff; }
.tab-btn[aria-selected="true"] { color: var(--ink); background: #fff; border-bottom-color: var(--cta-bg); }
.tabs-box:not(.is-js) .tab-panel { border-top: 1px solid var(--line); }
.tab-panel { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
@media (min-width: 760px) { .tab-panel { grid-template-columns: 96px 1fr; padding: 36px 40px; } }
.tab-panel[hidden] { display: none; }
.tab-panel-icon { width: 80px; height: 80px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.tab-panel-icon .icon { width: 40px; height: 40px; }
.tab-panel h3 { font-size: 1.35rem; margin-bottom: .7em; }
.tab-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .tab-points { grid-template-columns: 1fr 1fr; gap: 12px 28px; } }
.tab-points li { display: flex; gap: 10px; align-items: flex-start; }
.check-mini { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--cta-bg); color: var(--ink); margin-top: 2px; }

/* ---------- Outils en ligne ---------- */
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
@media (min-width: 760px) { .tool-box { padding: 32px 36px; } }
.tool-form { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid #b9c3cd; border-radius: 10px; }
.tool-input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(120, 201, 235, .35); }
.tool-select { font: inherit; padding: 10px; border: 1.5px solid #b9c3cd; border-radius: 10px; background: #fff; }
.tool-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1c14; }
.tool-result { margin-top: 22px; }
.tool-dl { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0; }
@media (min-width: 640px) { .tool-dl { grid-template-columns: 200px 1fr; } }
.tool-dl dt { font-weight: 700; color: var(--ink); }
.tool-dl dd { margin: 0 0 10px; }
.tool-bin { font-size: .85rem; letter-spacing: .03em; }
.tool-wrap { word-break: break-all; }
.tool-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
.tool-table th, .tool-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-table th { background: var(--surface-alt); color: var(--ink); }
.tool-big { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; color: var(--ink); margin: 0 0 14px; word-break: break-all; }
.tool-note { font-size: .9rem; color: var(--text-soft); margin-top: 14px; }
.tool-score { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px; padding: 16px 20px; border-radius: 14px; margin-bottom: 18px; }
.tool-score b { font-size: 2.6rem; line-height: 1; }
.tool-score p { margin: 0 0 0 12px; }
.tool-score.good { background: #e3f3ea; color: #14532d; }
.tool-score.mid { background: #fff1d6; color: #6b4000; }
.tool-score.low { background: #fde4e1; color: #7f1d1d; }
.tool-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool-checks li { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.tool-checks li p { margin: 6px 0 0; font-size: .95rem; }
.tool-checks li code { font-size: .82rem; }
.tool-checks .lv-ok { border-left-color: var(--ok); }
.tool-checks .lv-warn { border-left-color: var(--cta-bg); }
.tool-checks .lv-bad { border-left-color: var(--error); }
.tool-checks .lv-info { border-left-color: var(--blue-400); }
.tool-lv { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); margin-left: 6px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-pwd-out { flex: 1 1 260px; min-width: 0; font: 600 1.2rem Consolas, "Cascadia Mono", monospace; padding: 14px; background: var(--surface-alt); border-radius: 10px; word-break: break-all; }
.tool-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0 22px; font-size: .95rem; }
.tool-options label { display: inline-flex; gap: 6px; align-items: center; }
.pw-meter { height: 10px; border-radius: 99px; background: var(--grey-200); margin-top: 10px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s; }
.pw-weak span { width: 30%; background: var(--error); }
.pw-mid span { width: 65%; background: var(--cta-bg); }
.pw-strong span { width: 100%; background: var(--ok); }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
/* Entrées de menu regroupées dans « Plus » quand la largeur manque */
@media (min-width: 1140px) {
  .nav-item > a { white-space: nowrap; }
  .sub-more { left: auto; right: 0; min-width: 300px; max-height: 70vh; overflow-y: auto; }
  .sub-more .in-more > a { padding: 9px 12px; font-weight: 700; border-radius: 8px; justify-content: flex-start; }
  .sub-more .in-more > a .icon { display: none; }
  .sub-more .in-more .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
}
.brand { flex-shrink: 0; } .brand-tag { white-space: nowrap; } .nav-actions { flex-shrink: 0; }
@media (min-width: 1600px) { :root { --container: 1360px; } }
.tool-range { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--navy); color: #fff; margin-bottom: 20px; }
@media (min-width: 640px) { .tool-range { grid-template-columns: 1fr auto 1fr; } .tool-range-count { grid-column: 1 / -1; } }
.tool-range span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #b9d3e6; }
.tool-range b { font: 700 1.35rem Consolas, "Cascadia Mono", monospace; word-break: break-all; }
.tool-range-arrow { font-size: 1.6rem; color: var(--cta-bg); text-align: center; }
.tool-range-count { color: #dfe8f0; }
.tool-range-count b { font-family: var(--font); font-size: 1rem; color: var(--cta-bg); }
.tool-phrase-out { margin-top: 10px; }
.tool-unavailable { padding: 18px 20px; border-radius: 12px; background: var(--surface-alt); }
.tool-unavailable p { margin: 0 0 .4em; }
/* Loupe sur le village */
.topbar-village { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-village:hover, .topbar-village:focus-visible { text-decoration: underline; }
.village { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; overflow: auto; background: #fff; color: var(--text); box-shadow: 0 20px 60px rgba(0, 20, 40, .4); }
.village::backdrop { background: rgba(10, 25, 40, .6); }
.village-img { display: block; width: 100%; height: auto; background: #f3e6c4; }
.village-text { padding: 20px 26px 24px; }
.village-text h2 { margin: 0 0 8px; color: var(--ink); }
.village-address { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.village-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.village-close { position: absolute; top: 8px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
/* Formulaire : rappel et vérification */
.form-callback { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-callback legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.callback-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.callback-option { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; background: #fff; }
.callback-option:has(input:checked) { border-color: var(--navy); background: var(--surface-alt); }
.callback-option input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.form-human input { max-width: 180px; }
/* Plan du site */
.sitemap-grid { display: grid; gap: 28px 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sitemap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sitemap-group { border-top: 4px solid var(--cta-bg); padding-top: 12px; }
.sitemap-group h2 { font-size: 1.15rem; margin: 0 0 10px; }
.sitemap-group h2 a { color: var(--ink); text-decoration: none; }
.sitemap-group h2 a:hover { text-decoration: underline; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sitemap-group li a { color: var(--blue-700); }
/* Tchat en direct */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: 700 .98rem var(--font); color: var(--ink); background: var(--cta-bg); padding: 14px 20px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 20, 40, .28); }
.chat-launcher .icon { width: 22px; height: 22px; }
.chat-launcher:hover, .chat-launcher:focus-visible { filter: brightness(1.05); outline: 3px solid var(--navy); outline-offset: 2px; }
.chat.is-open .chat-launcher { background: var(--navy); color: #fff; }
.chat-panel { width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; background: #fff; color: var(--text); border-radius: 16px; padding: 20px 20px 14px; box-shadow: 0 12px 40px rgba(0, 20, 40, .3); border-top: 5px solid var(--cta-bg); position: relative; }
.chat-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-soft); padding: 4px 8px; }
.chat-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text-soft); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.chat-title { font-size: 1.2rem; margin: 0 0 10px; color: var(--ink); }
.chat-panel p { margin: 0 0 12px; font-size: .95rem; }
.chat-small { font-size: .85rem !important; color: var(--text-soft); margin-top: 10px !important; }
.chat-hours { margin: 0 0 14px; font-size: .9rem; }
.chat-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.chat-hours dt { font-weight: 700; color: var(--ink); } .chat-hours dd { margin: 0; }
.chat-upsell { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-alt); font-size: .9rem; }
.chat-upsell p { font-size: .9rem; margin-bottom: 6px; }
.chat-upsell a { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.chat-upsell a .icon { width: 16px; height: 16px; }
.chat-privacy { font-size: .75rem !important; color: var(--text-soft); margin: 10px 0 0 !important; }
/* sur mobile, la barre « Appeler / Écrire » occupe le bas de l'écran : le tchat se place au-dessus */
@media (max-width: 1139px) { .chat { bottom: 70px; right: 12px; z-index: 100; } .chat-panel { max-height: calc(100vh - 150px); } }
@media (max-width: 480px) { .chat-launcher { padding: 11px 15px; font-size: .9rem; } }
@media print { .chat { display: none; } }
/* Certificats */
.tool-form-reader { display: grid; gap: 8px; grid-template-columns: 1fr; }
.tool-form-reader .btn { justify-self: start; }
.tool-label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.tool-textarea { width: 100%; box-sizing: border-box; font: .85rem/1.45 Consolas, "Cascadia Mono", monospace; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; min-height: 180px; }
.tool-textarea:focus { outline: 3px solid var(--cta-bg); outline-offset: 1px; }
.tool-h3 { margin: 26px 0 12px; font-size: 1.1rem; color: var(--ink); }
.tool-lv-bad { color: #a4262c; }
.cert-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cert; }
.cert-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; position: relative; }
.cert-card + .cert-card::before { content: "↑ a signé le certificat ci-dessus"; position: absolute; top: -13px; left: 18px; font-size: .75rem; background: var(--surface, #fff); padding: 0 6px; color: var(--text-soft); }
.cert-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 10px; }
.cert-role { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--navy); background: var(--surface-alt); padding: 2px 8px; border-radius: 999px; }
.tool-wrap { word-break: break-all; }
/* Assistance à distance */
.assist-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: #fff4e0; border: 2px solid var(--cta-bg); color: var(--ink); margin-bottom: 18px; }
.assist-warn .icon { flex: none; width: 26px; height: 26px; color: #9a5b00; margin-top: 2px; }
.assist-warn p { margin: 0; }
.assist-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .assist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.assist-dl { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; border: 2px solid var(--navy); }
.assist-dl:hover, .assist-dl:focus-visible { background: #fff; color: var(--navy); }
.assist-dl .icon { flex: none; width: 30px; height: 30px; }
.assist-dl b { display: block; font-size: 1.05rem; }
.assist-dl small { display: block; opacity: .85; font-size: .85rem; }
.assist-ios { background: var(--surface-alt); color: var(--ink); border-color: var(--line); }
.assist-help { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.assist-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.assist-help p { margin: 8px 0 0; }
/* Auto-évaluation */
.reflexes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reflexe fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.reflexe legend { padding: 0; font-size: 1rem; line-height: 1.5; display: contents; }
.reflexe-num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; align-items: center; justify-content: center; margin-right: 4px; }
.reflexe-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.reflexe-choices label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .95rem; }
.reflexe-choices label:has(input:checked) { border-color: var(--ink); background: var(--surface-alt); font-weight: 600; }
.reflexes-result { margin-top: 24px; }
.reflexes-prio { display: grid; gap: 10px; padding-left: 1.2em; }
@media print {
  .topbar, .site-header, .site-footer, .mobile-bar, .maquette-ribbon, .hero, .section:not(.section-tool), [data-print], .reflexes-result .btn { display: none !important; }
  .tool-box { box-shadow: none; border: 0; padding: 0; }
}
.muted { color: var(--text-soft); font-weight: 400; }

/* Horaires du bandeau : plusieurs plages (lundi-jeudi, vendredi) sur une ligne */
.topbar-hours { flex-wrap: wrap; column-gap: 6px; }
.topbar-slot { white-space: nowrap; }
.topbar-sep { opacity: .5; margin: 0 2px; }
.topbar-hours abbr { text-decoration: none; font-weight: 600; color: #fff; }
.topbar-note { opacity: .8; }

/* Menu : un sous-menu qui sortirait de l'écran s'ouvre vers la gauche (classe posée par site.js, évite le défilement horizontal) */
@media (min-width: 1140px) {
  .site-nav .nav-item.has-sub > .sub-nav.sub-right { left: auto; right: 0; }
}

/* Bandeau de chiffres : sur mobile, un chiffre seul en dernière ligne est centré */
@media (max-width: 639px) { .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Les blocs qui glissent depuis le côté ne doivent pas créer de défilement horizontal */
main#contenu { overflow-x: clip; }

/* Haut de page : courte apparition en cascade au chargement (≈ 1 s, une seule fois, pas d'animation en boucle).
   Le titre, le texte et l'illustration bougent sans jamais être invisibles : Google mesure le temps d'affichage
   du plus gros élément (LCP), qui n'est donc pas retardé. Seuls le surtitre et les boutons partent en fondu.
   Exclus : les pages d'article et les visiteurs qui ont demandé à réduire les animations. */
@keyframes heroRise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: translateY(14px) scale(.94); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.hero-article) .breadcrumb,
  .hero:not(.hero-article) .hero-kicker { animation: heroFade .6s ease both; }
  .hero:not(.hero-article) h1 { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) .05s both; }
  .hero:not(.hero-article) .hero-lead { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .hero:not(.hero-article) .hero-actions { animation: heroFade .6s ease .3s both; }
  .hero:not(.hero-article) .hero-visual { animation: heroZoom 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
