/* Police Atkinson Hyperlegible hébergée localement (SIL Open Font License) — aucune requête vers Google */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/atkinson-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/atkinson-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Numéri'Loire — feuille de style unique
   Pensée pour un public senior : texte 19px, contrastes AA+, cibles tactiles 48px. */

:root {
  /* Identité Déclic Numérique */
  --bleu: #082B50;          /* couleur principale (titres, bandeaux) */
  --bleu-2: #006D75;        /* liens (turquoise foncé : contraste AA sur blanc) */
  --bleu-clair: #E6F4F5;    /* fonds légers turquoise (icônes, pastilles) */
  --sable: #F4F8FA;         /* fond des sections alternées */
  --orange: #008C95;        /* boutons (turquoise, texte blanc) */
  --orange-fonce: #006D75;  /* survol des boutons */
  --jaune: #FFB82E;         /* accent jaune : petites touches uniquement, texte marine dessus */
  --jaune-clair: #FFF5E0;
  --vert: #008C95;          /* coches et montants « après crédit d'impôt » */
  --texte: #374151;         /* texte courant */
  --texte-2: #4B5563;
  --bord: #DCE5EB;
  --blanc: #FFFFFF;
  --rayon: 14px;
  --rayon-btn: 10px;        /* boutons légèrement arrondis */
  --ombre: 0 6px 24px rgba(8, 43, 80, .10);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu-2); }
a:hover { color: var(--orange-fonce); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; box-shadow: 0 0 0 6px var(--bleu); border-radius: 4px; }

h1, h2, h3 { color: var(--bleu); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
/* les éléments de grille ne doivent jamais élargir la page (tableaux, longs mots) */
.grid > *, .deux-col > *, .hero .wrap > *, .form-row > * { min-width: 0; }
body { overflow-wrap: break-word; }
.section { padding: 72px 0; }
.section--sable { background: var(--sable); }
.section--bleu { background: var(--bleu); color: #fff; }
.section--bleu h2, .section--bleu h3 { color: #fff; }
.lead { font-size: 1.2rem; color: var(--texte-2); max-width: 760px; }
.centre { text-align: center; }
.centre .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 100; }

/* ---------- Bandeau + en-tête ---------- */
.topbar { background: var(--bleu); color: #fff; font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

.header { background: #fff; border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu); font-weight: 700; font-size: 1.35rem; }
.logo svg { flex: none; }
.logo small { display: block; white-space: nowrap; font-size: .78rem; font-weight: 400; color: var(--texte-2); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; white-space: nowrap; padding: 10px 9px; border-radius: 10px; text-decoration: none; color: var(--texte); font-weight: 700; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bleu-clair); color: var(--bleu); }
.nav .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 2px solid var(--bleu); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--bleu); cursor: pointer; min-height: 48px; }

@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav a { padding: 14px; font-size: 1.1rem; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; min-height: 52px; padding: 14px 26px; border-radius: var(--rayon-btn);
  background: var(--orange); color: #fff !important; font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange); cursor: pointer; font: inherit; font-weight: 700; text-align: center;
}
.btn:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); }
.btn--ghost { background: transparent; color: var(--bleu) !important; border-color: var(--bleu); }
.btn--ghost:hover { background: var(--bleu); color: #fff !important; border-color: var(--bleu); }
.btn--blanc { background: #fff; color: var(--bleu) !important; border-color: #fff; }
.btn--blanc:hover { background: var(--sable); border-color: var(--sable); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--sable) 0%, #fff 75%); padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .badge { display: inline-block; background: var(--bleu-clair); color: var(--bleu); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .95rem; margin-bottom: 18px; }
.hero-card { background: #fff; border-radius: 20px; box-shadow: var(--ombre); padding: 30px; border: 1px solid var(--bord); }
.hero-card .prix { font-size: 3rem; font-weight: 700; color: var(--bleu); line-height: 1; }
.hero-card .prix span { font-size: 1.1rem; color: var(--texte-2); font-weight: 400; }
.hero-card .barre { text-decoration: line-through; color: var(--texte-2); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: calc(.8em - 11px); width: 22px; height: 22px; border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px; box-shadow: 0 2px 8px rgba(18,53,91,.04); display: flex; flex-direction: column; }
.card .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--bleu-clair); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 30px; height: 30px; stroke: var(--bleu); }
.card p { color: var(--texte-2); }
.card .lien { margin-top: auto; font-weight: 700; text-decoration: none; }
.card--ia { border: 2px solid var(--orange); position: relative; }
.card--ia .ico { background: var(--jaune-clair); }
.card--ia .ico svg { stroke: var(--bleu); }
.pastille { position: absolute; top: -14px; right: 20px; background: var(--jaune); color: var(--bleu); font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* ---------- Étapes ---------- */
.etapes { counter-reset: e; }
.etape { position: relative; padding-left: 70px; }
.etape::before { counter-increment: e; content: counter(e); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--jaune); color: var(--bleu); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }

/* ---------- Tarifs ---------- */
.tarif { text-align: center; }
.tarif .montant { font-size: 2.6rem; font-weight: 700; color: var(--bleu); line-height: 1.1; }
.tarif .apres { display: inline-block; background: var(--bleu-clair); color: var(--orange-fonce); font-weight: 700; border-radius: 999px; padding: 4px 14px; margin: 10px 0 16px; }
.tarif ul { text-align: left; }
.tarif .btn { margin-top: auto; }
.tarif--top { border: 2px solid var(--bleu); }

table.prix { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; }
table.prix th, table.prix td { padding: 14px 16px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
table.prix th { background: var(--bleu); color: #fff; }
table.prix td.num { white-space: nowrap; font-weight: 700; }
table.prix td.num .v { color: var(--orange-fonce); display: block; font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- Encadrés ---------- */
.note { background: var(--bleu-clair); border-left: 6px solid var(--bleu); border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.note--orange { background: var(--jaune-clair); border-left-color: var(--jaune); }
.calc { background: #fff; border: 2px solid var(--bleu); border-radius: var(--rayon); padding: 26px; }
.calc label { font-weight: 700; display: block; margin-bottom: 8px; }
.calc input { font: inherit; font-size: 1.4rem; width: 100%; max-width: 240px; padding: 10px 14px; border: 2px solid var(--bord); border-radius: 10px; }
.calc .resultat { font-size: 1.6rem; font-weight: 700; color: var(--orange-fonce); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--bleu); list-style: none; position: relative; padding-right: 54px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--orange-fonce); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--texte-2); }

/* ---------- Pages internes ---------- */
.page-hero { background: var(--sable); padding: 48px 0 40px; }
.fil { font-size: .95rem; color: var(--texte-2); margin-bottom: 12px; }
.fil a { color: var(--texte-2); }
.contenu { max-width: 820px; }
.contenu h2 { margin-top: 1.6em; }
.deux-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.aside { position: sticky; top: 100px; }
@media (max-width: 900px) { .deux-col { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { font: inherit; width: 100%; padding: 12px 14px; border: 2px solid var(--bord); border-radius: 10px; background: #fff; min-height: 52px; }
.form textarea { min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--bleu-2); outline: none; }
.form .rgpd { font-size: .9rem; color: var(--texte-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Zone ---------- */
.communes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.communes li { background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 6px 16px; font-size: 1rem; }

/* ---------- Pied de page ---------- */
.footer { background: #061F3A; color: #CFDCE6; padding: 56px 0 24px; font-size: 1rem; }
.footer a { color: #fff; }
.footer h3 { color: #fff; font-size: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .bas { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Bouton appel mobile ---------- */
.appel-mobile { display: none; }
@media (max-width: 640px) {
  .appel-mobile { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  body { padding-bottom: 80px; }
}

.a-completer { background: var(--jaune-clair); padding: 0 4px; border-radius: 4px; }

/* Notes à astérisque (avance immédiate, prix Cesu) */
.astx { font-size: .9rem; color: var(--texte-2); line-height: 1.5; margin-top: 14px; }
/* Champ anti-spam invisible */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Profil « Qui suis-je » */
.profil { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
.profil > * { min-width: 0; }
.avatar { width: 180px; height: 180px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 5rem; font-weight: 700; display: grid; place-items: center; border: 6px solid #fff; box-shadow: var(--ombre); }
.profil img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--ombre); }
@media (max-width: 700px) { .profil { grid-template-columns: 1fr; gap: 20px; } .avatar, .profil img { width: 120px; height: 120px; font-size: 3.4rem; } }

/* Bandeau « sans limite d'âge » */
.badge-age { display: inline-block; background: var(--jaune); color: var(--bleu); font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.card .checks { margin-top: 4px; }
.card .checks li { font-size: 1rem; }

/* ---------- Mention « à partir de » ---------- */
.des { font-size: .95rem; font-weight: 700; color: var(--texte-2); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

/* ---------- Boutons de profils (page Pour qui) ---------- */
.chips-wrap { background: #fff; border-bottom: 1px solid var(--bord); padding: 18px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: var(--rayon-btn); border: 2px solid var(--bleu); color: var(--bleu); font-weight: 700; text-decoration: none; background: #fff; }
.chip svg { width: 22px; height: 22px; stroke: currentColor; flex: none; }
.chip:hover { background: var(--bleu); color: #fff; }
[id] { scroll-margin-top: 100px; }

/* ---------- Espacements plus compacts ---------- */
.section { padding: 56px 0; }
.hero { padding: 48px 0 56px; }
.page-hero { padding: 40px 0 32px; }
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .hero { padding: 28px 0 36px; }
  .page-hero { padding: 24px 0 20px; }
  .hero .wrap, .deux-col, .profil { gap: 24px; }
  .grid { gap: 16px; }
  .card { padding: 22px; }
  h2 { margin-bottom: .45em; }
  .contenu h2 { margin-top: 1.1em; }
  .chips-wrap { padding: 14px 0; }
  .chip { width: 100%; justify-content: center; }
  /* bandeau du haut centré */
  .topbar .wrap { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
  .topbar { font-size: .88rem; }
}
table.prix { min-width: 560px; }
.profil picture { display: block; line-height: 0; }

/* ---------- Illustrations ---------- */
.illu { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--ombre); object-fit: cover; aspect-ratio: 3 / 2; background: var(--bleu-clair); }
.illu--large { margin: 8px 0 24px; max-height: 380px; }
.hero-droite { display: flex; flex-direction: column; }
.hero-droite .hero-card { margin: -48px 20px 0; position: relative; }
.page-hero--img .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.page-hero--img .wrap > * { min-width: 0; }
@media (max-width: 860px) {
  .page-hero--img .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero-droite .hero-card { margin: -32px 12px 0; }
}
@media (max-width: 640px) {
  .page-hero--img .illu { aspect-ratio: 16 / 9; }
}


/* ---------- Logo Déclic Numérique (mêmes proportions que delegua-pro : 60 px en-tête, 70 px pied) ---------- */
.logo img { height: 60px; width: auto; display: block; }
.logo-pied { height: 70px; width: auto; display: block; margin-bottom: 16px; }
@media (max-width: 640px) { .logo img { height: 48px; } }
.burger { border-radius: var(--rayon-btn); }
.appel-mobile { border-radius: var(--rayon-btn); }
.calc input, .form input, .form select, .form textarea { border-radius: var(--rayon-btn); }
.card--ia { border-color: var(--orange); }

/* Accueil : colonne de droite compacte (photo panoramique + encadré prix resserré) */
.hero-droite .illu { aspect-ratio: 16 / 9; }
.hero-droite .hero-card { padding: 22px 26px; margin-top: -36px; }
.hero-droite .hero-card .prix { font-size: 2.6rem; }
.hero-droite .hero-card .checks { margin-bottom: 14px; }
.hero-droite .hero-card .checks li { margin-bottom: 6px; font-size: 1rem; }
.hero-droite .hero-card .astx { margin-top: 10px; }
.lead strong { color: var(--bleu); }

/* ---------- Écarts resserrés entre les sections ---------- */
.section { padding: 44px 0; }
.contenu > h2:first-child, .wrap > h2:first-child, .centre > h2:first-child { margin-top: 0; }
.communes { margin: 0; }
.section .lead:last-child, .section p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .section { padding: 32px 0; } }

/* ---------- Pages de contenu : pleine largeur, alignées avec le titre ---------- */
.wrap.contenu { max-width: var(--max); }
.wrap.contenu > p, .wrap.contenu > ul, .wrap.contenu > .faq, .wrap.contenu > .note,
.wrap.contenu > .astx, .wrap.contenu > .lead, .wrap.contenu > .illu--large { max-width: 900px; }

/* ---------- Bouton du menu : survol lisible ---------- */
.nav a.btn, .nav a.btn:hover, .nav a.btn:focus { color: #fff !important; }
.nav a.btn:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); }
