/* site.css — enumerisation.bj, d'après la charte graphique (maquettes_pages/Charte graphique…).
   Poppins hébergée sur le site (licence OFL) : aucune requête vers un service tiers. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  /* Palette de la charte */
  --marine: #0B2D6B;
  --marine-2: #123C8A;
  --vert: #16A34A;
  --vert-fonce: #15803D;
  --bleu-clair: #E8F1FF;
  --fond: #F8FAFC;
  --texte: #1F2937;
  --texte-2: #6B7280;
  --bordure: #E5E7EB;
  --succes: #DCFCE7;
  --alerte: #FEF9C3;
  --erreur: #FEE2E2;
  /* Couleurs d'accent des tuiles d'icônes (maquettes) */
  --bleu: #2563EB;
  --violet: #7C3AED;
  --violet-pale: #EDE9FE;
  --ambre: #F59E0B;
  --ambre-fonce: #B45309;
  --ambre-pale: #FEF3C7;
  --rouge: #DC2626;
  --rouge-fonce: #B91C1C;
  --vert-pale: #E7F7EE;
  --ombre: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .18);
  --ombre-forte: 0 24px 60px -24px rgba(11, 45, 107, .35);
  --rayon: 14px;
  --rayon-petit: 10px;
  --police: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.5; color: var(--texte); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--marine); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--marine); line-height: 1.2; }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.17; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
p { margin: 0 0 1em; }
small, .petit { font-size: 14px; line-height: 20px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--marine); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.lien-evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid #3B82F6; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ——— Logo : proportions de la charte (version horizontale), exprimées en em pour toutes les tailles ———
   Mesures sur la charte, H = hauteur du monogramme : mot-symbole Poppins Bold de 0,496 H, interlettrage −0,07 em,
   écart 0,167 H, ligne de base à 0,685 H du haut du monogramme. */
.marque { display: inline-block; flex: none; line-height: 1; text-decoration: none; font-weight: 700; font-size: 20px; color: var(--marine); letter-spacing: -.07em; white-space: nowrap; }
.marque img { display: inline-block; max-width: none; height: 2.016em; width: auto; vertical-align: -.635em; margin-right: .337em; }
.marque .bj { color: var(--vert); }

/* ——— Boutons (charte § 07) ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton-principal { background: var(--vert); color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 163, 74, .7); }
.bouton-principal:hover:not(:disabled) { background: var(--vert-fonce); }
.bouton-secondaire { background: #fff; color: var(--marine); border-color: var(--marine); }
.bouton-secondaire:hover:not(:disabled) { background: var(--bleu-clair); }
.bouton-tertiaire { background: var(--bleu-clair); color: var(--marine); }
.bouton-tertiaire:hover:not(:disabled) { background: #D6E6FF; }
.bouton-discret { background: transparent; color: var(--marine); border-color: transparent; min-height: 34px; padding: 0 10px; font-weight: 500; }
.bouton-discret:hover:not(:disabled) { background: var(--bleu-clair); }
.bouton-danger { background: #fff; color: var(--rouge-fonce); border-color: #F5C2C2; }
.bouton-danger:hover:not(:disabled) { background: var(--erreur); }
.bouton:disabled, .bouton[aria-disabled="true"] { background: #D1D5DB; color: #fff; border-color: transparent; box-shadow: none; cursor: not-allowed; }
.bouton-discret:disabled { background: transparent; color: #9CA3AF; }
.bouton-petit { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.bouton-large { width: 100%; }

/* ——— Pastilles ——— */
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.p-ok { background: var(--succes); color: var(--vert-fonce); }
.p-attention { background: var(--alerte); color: var(--ambre-fonce); }
.p-erreur { background: var(--erreur); color: var(--rouge-fonce); }
.p-info { background: var(--bleu-clair); color: var(--marine); }
.p-neutre { background: #F1F5F9; color: var(--texte-2); }

/* ——— Tuiles d'icônes (charte § 06) ——— */
.icone { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--bleu-clair); color: var(--bleu); }
.icone svg { width: 26px; height: 26px; }
.icone.verte { background: var(--succes); color: var(--vert); }
.icone.violette { background: var(--violet-pale); color: var(--violet); }
.icone.ambree { background: var(--ambre-pale); color: var(--ambre); }
.icone.grise { background: #F1F5F9; color: var(--texte); }
.icone.petite { width: 40px; height: 40px; border-radius: 12px; }
.icone.petite svg { width: 20px; height: 20px; }

/* ——— En-tête et pied des pages publiques ——— */
.entete-site { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordure); }
.entete-site .interieur { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.nav-site { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.nav-site a { text-decoration: none; color: var(--texte); font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-site a:hover { color: var(--marine); }
.nav-site a[aria-current="page"] { color: var(--marine); font-weight: 600; border-bottom-color: var(--vert); }
.actions-entete { display: flex; gap: 12px; }
.actions-entete .bouton { min-height: 44px; padding: 0 22px; }
.menu-mobile { display: none; margin-left: auto; background: none; border: 1px solid var(--bordure); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--marine); cursor: pointer; }
.menu-mobile svg { width: 22px; height: 22px; }
.conteneur { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pied { background: #fff; border-top: 1px solid var(--bordure); padding: 44px 0 20px; font-size: 14px; color: var(--texte-2); }
.pied .colonnes { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.pied h4 { font-size: 15px; color: var(--marine); margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--marine); }
.pied .marque { font-size: 19px; margin-bottom: 12px; color: var(--marine); }
.pied .bas { border-top: 1px solid var(--bordure); margin-top: 32px; padding-top: 16px; font-size: 13px; }
.fedapay { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--marine); font-size: 18px; }
.fedapay img { height: 24px; width: auto; display: block; }
.paiement-par { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--texte-2); }
.paiement-par img { height: 18px; width: auto; display: inline-block; }

/* ——— Accueil ——— */
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); margin-bottom: 14px; }
.surtitre.vert { color: var(--vert); }
.heros { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #fff 38%, rgba(255, 255, 255, 0) 62%); }
.heros .fond { position: absolute; inset: 0 0 0 auto; width: 62%; background: url("../img/heros.jpg") #EEF3FA; background-size: cover; background-position: center right; z-index: -1; }
.heros .fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 18%, rgba(255, 255, 255, 0) 45%); }
.heros .conteneur { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; min-height: 540px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.heros h1 em { font-style: normal; color: var(--vert); }
.heros .accroche { font-size: 17px; color: var(--texte); max-width: 540px; }
.heros .actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 28px; }
.heros h1 { font-size: clamp(30px, 3.3vw, 48px); }
.heros .actions .bouton { min-height: 52px; padding: 0 22px; font-size: 15px; }
.heros .visuel { position: relative; min-height: 420px; }
.heros .fichier-flottant { position: absolute; width: 78px; height: 92px; filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .18)); }
.heros .fichier-flottant.pdf { left: 20%; top: 4%; transform: rotate(-8deg); }
.heros .fichier-flottant.xlsx { left: 37%; top: 0; transform: rotate(6deg); }
.garanties { display: flex; gap: 22px; flex-wrap: wrap; }
.garanties .garantie { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--texte-2); line-height: 1.35; max-width: 205px; }
.garanties .icone { width: 40px; height: 40px; border-radius: 50%; }
.garanties .icone svg { width: 20px; height: 20px; }
.section { padding: 56px 0; }
.section-titre { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-titre p { color: var(--texte-2); }
.cartes-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cartes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.carte h3 { margin: 16px 0 6px; }
.carte p { color: var(--texte-2); font-size: 14px; margin: 0; }
.processus { display: grid; grid-template-columns: repeat(4, 1fr) ; gap: 22px; position: relative; }
.etape-processus { position: relative; }
.etape-processus .image { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bleu-clair); box-shadow: var(--ombre); }
.etape-processus .image img { width: 100%; height: 100%; object-fit: cover; }
.etape-processus .numero { position: absolute; left: -8px; top: -12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: var(--bleu); box-shadow: 0 0 0 4px #fff; z-index: 1; }
.etape-processus .numero.vert { background: var(--vert); }
.etape-processus h3 { margin: 16px 0 4px; }
.etape-processus p { color: var(--texte-2); font-size: 14px; }
.etape-processus:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 28%; color: var(--bleu); font-size: 20px; }
.bande-bleue { background: linear-gradient(180deg, #EEF5FF, #F5F9FF); }
.resultats { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.atouts h3 { font-size: 15px; margin: 10px 0 4px; }
.atouts p { font-size: 13px; color: var(--texte-2); margin: 0; }
.image-arrondie { border-radius: 18px; overflow: hidden; box-shadow: var(--ombre-forte); }
.image-arrondie img { width: 100%; height: 100%; object-fit: cover; }
.avant-apres { display: grid; grid-template-columns: 1fr auto 1fr 260px; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.avant-apres h3 { font-size: 15px; font-weight: 500; color: var(--texte); }
.avant-apres h3 strong { color: var(--marine); }
.avant-apres .vert strong { color: var(--vert); }
.miniatures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.miniatures figure { margin: 0; font-size: 10.5px; color: var(--texte); text-align: center; overflow-wrap: anywhere; line-height: 1.3; }
.miniatures img { width: 100%; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.fleche-verte { color: var(--vert); font-size: 34px; font-weight: 700; }
.format-clair { background: var(--vert-pale); border-radius: 12px; padding: 18px; }
.format-clair h3 { font-size: 16px; color: var(--marine); }
.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.liste-coches li { display: flex; gap: 8px; align-items: center; }
.liste-coches li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 11px; display: grid; place-items: center; flex: none; }
.securite { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.points-securite { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.points-securite li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.points-securite strong { display: block; color: var(--marine); font-size: 14px; }
.points-securite span { font-size: 13px; color: var(--texte-2); }
.points-securite .icone { width: 44px; height: 44px; border-radius: 50%; }
.points-securite .icone svg { width: 20px; height: 20px; }
.avantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.avantage { border-radius: 14px; padding: 22px; }
.avantage h3 { font-size: 16px; margin: 12px 0 4px; }
.avantage p { font-size: 13px; color: var(--texte-2); margin: 0; }
.avantage.a1 { background: #EEFAF2; } .avantage.a1 h3 { color: var(--vert-fonce); }
.avantage.a2 { background: #EEF4FF; }
.avantage.a3 { background: #F3F0FF; }
.avantage.a4 { background: #FFF8E8; } .avantage.a4 h3 { color: #92400E; }
.bandeau-tarifs { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; background: linear-gradient(90deg, #F2F7FF, #F8FAFC); border: 1px solid var(--bordure); border-radius: 16px; padding: 22px 30px; }
.bandeau-tarifs .icone { width: 84px; height: 84px; border-radius: 18px; background: #fff; box-shadow: var(--ombre); color: var(--marine); }
.bandeau-tarifs .icone svg { width: 44px; height: 44px; }
.bandeau-tarifs h2 { margin: 4px 0; }
.bandeau-tarifs p { margin: 0; color: var(--texte-2); }
.faq-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.faq details, .faq-grille details { background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 0; }
details summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 500; color: var(--texte); display: flex; gap: 12px; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "?"; width: 22px; height: 22px; border-radius: 6px; background: var(--bleu-clair); color: var(--marine); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
details summary::after { content: ""; width: 8px; height: 8px; margin: 0 4px 4px auto; border-right: 2px solid var(--texte-2); border-bottom: 2px solid var(--texte-2); transform: rotate(45deg); transition: transform .15s; flex: none; }
details[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
details > p { margin: 0; padding: 0 16px 16px 44px; font-size: 14px; color: var(--texte-2); }
.appel { display: grid; grid-template-columns: 1.2fr auto 240px; gap: 24px; align-items: center; background: linear-gradient(90deg, #EAF2FF, #F6FAFF); border-radius: 18px; padding: 0 0 0 40px; overflow: hidden; }
.appel h2 { font-size: 24px; margin-bottom: 6px; }
.appel p { margin: 0; color: var(--texte-2); font-size: 14px; }
.appel img { height: 170px; width: 100%; object-fit: cover; object-position: top; }
.ruban-securite { display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center; background: #F7FAFF; border: 1px solid var(--bordure); border-radius: 16px; padding: 22px 28px; }
.ruban-securite h3 { font-size: 18px; margin: 2px 0; }
.ruban-securite p { margin: 0; font-size: 13px; color: var(--texte-2); }
.ruban-securite .separateur { width: 1px; align-self: stretch; background: var(--bordure); }

/* ——— Pages intérieures publiques ——— */
.titre-page { text-align: center; padding: 56px 0 28px; }
.titre-page p { color: var(--texte-2); max-width: 640px; margin: 0 auto; }
.fonctionnalites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fonctionnalites .carte { padding: 28px; }
.bandeau-simple { display: flex; gap: 22px; align-items: center; background: var(--bleu-clair); border-radius: 16px; padding: 24px 30px; margin-top: 28px; }
.bandeau-simple .bouclier { width: 64px; height: 64px; flex: none; }
.bandeau-simple h3 { font-size: 20px; margin: 0 0 4px; }
.bandeau-simple p { margin: 0; color: var(--texte-2); font-size: 14px; }
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.offre { position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 28px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.offre.recommandee { border: 2px solid var(--vert); box-shadow: 0 24px 50px -28px rgba(22, 163, 74, .6); }
.offre .bandeau-reco { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--vert); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 14px; }
.offre .entete-offre { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--marine); }
.exemple-tarif { text-align: center; color: var(--texte-2); font-size: 14px; margin: 18px 0 0; }
.offre .prix { font-size: 30px; font-weight: 700; color: var(--marine); margin: 18px 0 4px; }
.offre .prix small { display: block; font-size: 13px; font-weight: 500; color: var(--texte-2); }
.offre ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.offre li { display: flex; gap: 10px; align-items: flex-start; }
.offre li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--vert); color: var(--vert); font-size: 10px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.etapes-verticales { display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
.etape-verticale { display: grid; grid-template-columns: 56px 200px 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 20px; box-shadow: var(--ombre); }
.etape-verticale .numero { width: 52px; height: 52px; border-radius: 50%; background: var(--bleu-clair); color: var(--bleu); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.etape-verticale img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.etape-verticale h3 { margin-bottom: 6px; }
.etape-verticale p { margin: 0; color: var(--texte-2); font-size: 15px; }
.texte-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.texte-page h2 { margin-top: 1.6em; font-size: 22px; }
.texte-page li { margin-bottom: .5em; }

/* ——— Pages de compte (connexion, inscription…) ——— */
.page-compte { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 44%) 1fr; }
.panneau-marque { background: var(--marine); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px; position: relative; overflow: hidden; }
.panneau-marque::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .05); }
/* Version verticale de la charte : mot-symbole centré sous le monogramme, 1,73 fois sa largeur. */
.logo-vertical { display: inline-grid; justify-items: center; align-self: flex-start; gap: .16em; margin-bottom: 36px; color: #fff; text-decoration: none; font-size: 37.8px; }
.panneau-marque .logo-geant { width: 4.5em; height: auto; }
.panneau-marque .mot-marque { font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.panneau-marque .mot-marque .bj { color: var(--vert); }
.panneau-marque h2 { color: #fff; font-size: 26px; }
.panneau-marque p { color: #C7D5EE; font-size: 16px; max-width: 360px; }
.zone-formulaire { display: grid; place-items: center; padding: 48px 24px; background: #fff; }
.formulaire { width: 100%; max-width: 440px; }
.formulaire h1 { font-size: 26px; margin-bottom: 6px; }
.formulaire > p { color: var(--texte-2); font-size: 14px; }
.formulaire .champ { margin-bottom: 16px; }
.formulaire .bouton { width: 100%; margin-top: 8px; }
.formulaire .lien-bas { text-align: center; margin-top: 18px; font-size: 14px; color: var(--texte-2); }
.formulaire .lien-droite { text-align: right; margin: -6px 0 6px; font-size: 13px; }
.bientot { display: flex; gap: 12px; align-items: flex-start; background: var(--alerte); color: #713F12; border: 1px solid #FDE68A; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin: 18px 0; }
.bientot strong { color: #713F12; }
.confirmation { text-align: center; max-width: 440px; margin: 0 auto; }
.confirmation .coche { width: 92px; height: 92px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.confirmation .coche svg { width: 48px; height: 48px; }

/* ——— Champs (charte § 08) ——— */
.champ { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--texte); min-width: 130px; }
.champ input, .champ select { font: inherit; font-size: 14px; font-weight: 400; min-height: 46px; padding: 0 14px; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; color: var(--texte); width: 100%; }
.champ input:focus, .champ select:focus { border-color: var(--marine); outline: none; box-shadow: 0 0 0 3px var(--bleu-clair); }
.champ input:disabled, .champ select:disabled { background: #F9FAFB; color: #9CA3AF; cursor: not-allowed; }
.champ.avec-icone { position: relative; }
.champ.avec-icone input { padding-left: 42px; }
.champ.avec-icone svg { position: absolute; left: 14px; bottom: 13px; width: 18px; height: 18px; color: var(--texte-2); }
.champ.avec-icone:has(.oeil) input { padding-right: 48px; }
.champ.avec-icone .oeil { position: absolute; right: 5px; bottom: 5px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--texte-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.champ.avec-icone .oeil svg { position: static; width: 19px; height: 19px; }
.champ.avec-icone .oeil:hover, .champ.avec-icone .oeil[aria-pressed="true"] { background: var(--bleu-clair); color: var(--marine); }
.aide-champ { display: block; font-size: 12px; color: var(--texte-2); font-weight: 400; margin: -10px 0 14px; }
.champ .aide-champ { margin: 0; }
.formulaire .lien-bas.discret { font-size: 13px; margin-top: 10px; }
#message-formulaire .message { margin: 14px 0; }
.grille-compte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 12px; align-items: start; }
.zone-sensible { border-color: #FECACA; }
.zone-sensible h2 { color: var(--rouge-fonce); }
.champ.large { flex: 1; min-width: 240px; }
.case { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.case input { width: 18px; height: 18px; accent-color: var(--vert); }
.rangee { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.depot { display: block; position: relative; border: 2px dashed #C7D2E4; border-radius: 14px; background: #fff; padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.depot:hover, .depot.survol { border-color: var(--vert); background: #F6FDF8; }
.depot svg { width: 46px; height: 46px; color: var(--bleu); margin: 0 auto 10px; }
.depot strong { display: block; color: var(--texte); font-size: 15px; font-weight: 600; }
.depot small { color: var(--texte-2); }
.message { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 14px; flex-wrap: wrap; }
.message > ul { flex-basis: 100%; margin: 4px 0 0; padding-left: 20px; }
.message.erreur { background: var(--erreur); color: var(--rouge-fonce); }
.message.succes { background: var(--succes); color: var(--vert-fonce); }
.message.info { background: var(--bleu-clair); color: var(--marine); }
.message.attention { background: var(--alerte); color: #854D0E; }
.message .bouton { margin-top: 6px; }
.progression { height: 8px; background: #E2E8F0; border-radius: 99px; overflow: hidden; margin: 12px 0; }
.progression div { height: 100%; background: var(--bleu); width: 0; transition: width .2s; }

/* ——— Application : barre latérale (storyboard 9 à 15) ——— */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--marine) 250px, var(--fond) 250px); }
.barre-laterale { background: var(--marine); color: #fff; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.barre-laterale .marque { color: #fff; font-size: 19px; margin: 0 8px 28px; }
.nav-app { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-app button { width: 100%; display: flex; gap: 12px; align-items: center; background: none; border: 0; border-radius: 10px; color: #C7D5EE; font: inherit; font-size: 14px; font-weight: 500; padding: 11px 12px; cursor: pointer; text-align: left; }
.nav-app button svg { width: 19px; height: 19px; flex: none; }
.nav-app button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-app button[aria-current="page"] { background: #fff; color: var(--marine); font-weight: 600; }
.session-laterale { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 8px 0; font-size: 12px; color: #C7D5EE; display: grid; gap: 12px; }
.session-laterale .identite { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.session-laterale .pastille-session { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.session-laterale .pastille-session svg { width: 18px; height: 18px; }
.session-laterale .bouton { min-height: 36px; font-size: 13px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.session-laterale .bouton:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.app-contenu { padding: 28px 36px 64px; min-width: 0; }
.app-entete-page { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.app-entete-page h1 { font-size: 26px; margin-bottom: 4px; }
.app-entete-page p { color: var(--texte-2); margin: 0; font-size: 14px; }
.etapes { list-style: none; margin: 0 0 22px; padding: 6px; display: flex; gap: 6px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; overflow-x: auto; }
.etapes li { flex: 1; min-width: 132px; }
.etapes button { width: 100%; display: flex; gap: 10px; align-items: center; background: none; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--texte-2); cursor: pointer; text-align: left; }
.etapes button:disabled { cursor: not-allowed; opacity: .55; }
.etapes .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F1F5F9; font-weight: 600; flex: none; }
.etapes button[aria-current="step"] { background: var(--bleu-clair); color: var(--marine); font-weight: 600; }
.etapes button[aria-current="step"] .num { background: var(--marine); color: #fff; }
.etapes button.faite .num { background: var(--vert); color: #fff; }
.etapes .libelle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panneau { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); margin-bottom: 20px; }
.panneau h2 { font-size: 20px; }
.panneau .aide, .aide { color: var(--texte-2); font-size: 14px; }
.aide.note { font-size: 12px; margin-top: 6px; }
.sous-titre { font-size: 15px; margin-top: 18px; }
.barre-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.barre-actions.sans-marge { margin-top: 0; }
.espace-haut { margin-top: 12px; }
.statistiques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.statistique { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--ombre); }
.statistique b { display: block; font-size: 24px; color: var(--marine); line-height: 1.1; }
.statistique span { font-size: 12px; color: var(--texte-2); }
.resume { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.resume .chiffre { background: var(--fond); border: 1px solid var(--bordure); border-radius: 12px; padding: 10px 16px; min-width: 128px; }
.resume .chiffre b { display: block; font-size: 22px; color: var(--marine); }
.resume .chiffre span { font-size: 12px; color: var(--texte-2); }
.tableau-defilant { overflow: auto; max-height: 64vh; border: 1px solid var(--bordure); border-radius: 12px; background: #fff; }
.tableau-defilant.court { max-height: 320px; }
table.donnees { width: 100%; border-collapse: collapse; font-size: 13px; }
table.donnees th { position: sticky; top: 0; z-index: 1; background: #F8FAFC; color: var(--texte-2); text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--bordure); white-space: nowrap; }
table.donnees td { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
table.donnees tr.exclue td { color: #9CA3AF; text-decoration: line-through; background: #FAFAFA; }
table.donnees tr.exclue td.actions { text-decoration: none; }
table.donnees td input { width: 100%; min-width: 110px; font: inherit; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
table.donnees td input:hover { border-color: var(--bordure); }
table.donnees td input:focus { border-color: var(--marine); background: #fff; outline: none; }
td.a-verifier input { background: var(--alerte); border-color: #FDE68A; }
td.corrige input { background: var(--bleu-clair); }
td.verifie input { background: var(--succes); }
td .sous { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
/* « Conforme » : action de validation bien visible (contour vert, coche), distincte du texte et des boutons discrets. */
.bouton-conforme { background: #fff; color: var(--vert-fonce); border-color: #4ADE80; font-weight: 600; }
.bouton-conforme::before { content: ""; width: 9px; height: 5px; border-left: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.bouton-conforme:hover:not(:disabled) { background: var(--succes); border-color: var(--vert); }
.bouton-conforme:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.bouton-conforme:disabled { background: #F3F4F6; color: #9CA3AF; border-color: #E5E7EB; cursor: wait; }
.aide-etape { background: #fff; border: 1px solid #BFDBFE; border-radius: var(--rayon); padding: 0; margin-bottom: 20px; box-shadow: var(--ombre); }
.aide-etape summary { padding: 14px 20px; font-weight: 600; color: var(--marine); }
.aide-etape ol { margin: 0; padding: 0 20px 0 44px; display: grid; gap: 6px; font-size: 14px; }
.aide-etape p { margin: 10px 20px 0; padding: 0; font-size: 14px; color: var(--texte-2); }
.aide-etape .legende { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.temoin { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.temoin.a-verifier { background: var(--alerte); color: #854D0E; }
.temoin.corrige { background: var(--bleu-clair); color: var(--marine); }
.temoin.verifie { background: var(--succes); color: var(--vert-fonce); }
td.actions { white-space: nowrap; }
.apercu-xlsx td, .apercu-xlsx th { font-family: var(--mono); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu-xlsx tr.titres td { background: var(--bleu-clair); }
.liste-anomalies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste-anomalies li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; font-size: 14px; }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.vignette { margin: 0; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 6px; font-size: 11px; color: var(--texte-2); overflow: hidden; position: relative; }
.vignette .rang { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--marine); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.option-ordre { margin-top: 18px; padding: 14px 16px; border: 1px solid #BFDBFE; background: var(--bleu-clair); border-radius: 12px; }
.option-ordre .note { margin: 6px 0 0 28px; }
.case-forte { font-weight: 600; color: var(--marine); align-items: flex-start; }
.case-forte input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--marine); }
.vignette img { width: 100%; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 8px; background: #EEF2F7; display: block; }
.vignette .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.vignette.erreur { border-color: #FECACA; background: var(--erreur); color: var(--rouge-fonce); }
.miniature { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; background: #EEF2F7; display: block; }
.titre-orphelines { font-size: 15px; margin: 18px 0 8px; }
.nom-sortie { font-family: var(--mono); font-size: 12px; }
.puces .puce-champ { font-family: var(--mono); font-size: 13px; min-height: 40px; padding: 0 14px; }
.apercu-nom { margin: 14px 0 0; padding: 10px 14px; background: var(--fond); border: 1px dashed var(--bordure); border-radius: 10px; font-size: 14px; color: var(--texte-2); overflow-wrap: anywhere; }
.apercu-nom code { font-family: var(--mono); font-size: 13px; color: var(--marine); font-weight: 600; }
.apercu-nom.erreur code { color: var(--rouge-fonce); font-family: inherit; font-weight: 500; }
.archive dd.montant { color: var(--vert-fonce); font-size: 18px; }
.zone-paiement { display: grid; gap: 12px; margin-bottom: 14px; }
.zone-paiement .bouton { justify-self: start; }
.recherche { position: relative; }
.recherche input { padding-left: 38px; }
.recherche svg { position: absolute; left: 12px; bottom: 13px; width: 18px; height: 18px; color: var(--texte-2); }
.archive { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.archive dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 18px; font-size: 14px; }
.archive dt { color: var(--texte-2); }
.archive dd { margin: 0; color: var(--texte); font-weight: 600; }
.archive .illustration-zip { width: 200px; height: 200px; border-radius: 50%; background: var(--bleu-clair); display: grid; place-items: center; position: relative; justify-self: center; }
.archive .illustration-zip svg.zip { width: 104px; height: 120px; }
.archive .illustration-zip .telechargement { position: absolute; right: 8px; bottom: 10px; width: 54px; height: 54px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff; }
.archive .illustration-zip .telechargement svg { width: 26px; height: 26px; }
.aide-grille { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.categories { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; display: grid; gap: 2px; }
.categories button { width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--texte); cursor: pointer; }
.categories button[aria-pressed="true"] { background: var(--bleu-clair); color: var(--marine); font-weight: 600; }
.faq-app { display: grid; gap: 10px; }
.boite-dialogue { border: none; border-radius: 16px; padding: 24px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); font-family: var(--police); }
.boite-dialogue::backdrop { background: rgba(15, 23, 42, .45); }
.titre-dialogue { font-size: 18px; }
.erreur-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.erreur-404 .code { font-size: 96px; font-weight: 700; color: var(--marine); line-height: 1; letter-spacing: -.04em; }
.erreur-404 .loupe { width: 200px; margin: 0 auto 18px; }

.texte-page .date-maj { color: var(--texte-2); font-size: 14px; margin-top: -8px; }
.texte-page .mentions { list-style: none; padding: 0; }

/* ——— Comment ça marche : vidéo de démonstration ——— */
.demonstration { margin: 8px 0 56px; text-align: center; }
.demonstration h2 { font-size: 26px; margin-bottom: 6px; }
.demonstration p { color: var(--texte-2); margin: 0 auto 18px; max-width: 640px; }
.demonstration video { display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto; border-radius: 16px; background: #0B2D6B;
  border: 1px solid var(--bordure); box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .45); }

/* ——— Comment ça marche : étapes illustrées par l'interface ——— */
.etapes-demo { display: grid; gap: 56px; margin: 8px 0 24px; }
.etape-demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 44px; align-items: center; }
.etape-demo:nth-child(even) .illustration { order: -1; }
.etape-demo .numero { width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-clair); color: var(--marine); font-weight: 700; font-size: 18px; display: grid; place-items: center; margin-bottom: 12px; }
.etape-demo:nth-child(even) .numero { background: var(--succes); color: var(--vert-fonce); }
.etape-demo h2 { font-size: 26px; margin-bottom: 14px; }
.roles { display: grid; gap: 12px; }
.role { padding: 14px 16px; border-radius: 12px; background: var(--fond); border: 1px solid var(--bordure); }
.role h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.role.vous h3 { color: var(--marine); }
.role.appli h3 { color: var(--vert-fonce); }
.role p { margin: 0; font-size: 14.5px; color: var(--texte); }
.illustration { display: grid; gap: 16px; }
.illustration figure { margin: 0; }
.illustration picture { display: block; }
.illustration img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--bordure); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35); background: #fff; }
.illustration .encart { width: 78%; justify-self: end; }
.illustration figcaption { font-size: 13px; color: var(--texte-2); margin-top: 6px; text-align: right; }

/* ——— Galeries de photos : aperçu, sélection et association ——— */
.nav-app .libelle-court { display: none; }
.bouton-icone { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--bordure); background: #fff; color: var(--texte); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.bouton-icone svg { width: 18px; height: 18px; }
.bouton-icone:hover { background: var(--fond); }
.outils-galerie { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.vignette .ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; cursor: zoom-in; }
.vignette .ouvrir:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.galerie-vide-liste { grid-column: 1 / -1; color: var(--texte-2); font-size: 14px; padding: 24px 0; text-align: center; margin: 0; }
.bouton-photo { display: flex; gap: 10px; align-items: center; padding: 3px 8px 3px 3px; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; font: inherit; font-size: 12px; color: var(--texte); cursor: pointer; text-align: left; max-width: 230px; }
.bouton-photo:hover { border-color: #93C5FD; background: var(--bleu-clair); }
.bouton-photo .nom-photo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choisir-photo { gap: 8px; white-space: nowrap; }
.choisir-photo .silhouette { width: 22px; height: 28px; border-radius: 5px; border: 1.5px dashed currentColor; opacity: .7; flex: none; }
.galerie { padding: 0; max-width: 1080px; width: calc(100% - 32px); height: min(780px, calc(100vh - 48px)); }
.galerie[open] { display: flex; flex-direction: column; }
.galerie-entete { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px 12px; }
.galerie-entete .titre-dialogue { margin-bottom: 2px; }
.galerie-entete p { margin: 0; font-size: 13px; }
.galerie .outils-galerie { padding: 0 24px 14px; border-bottom: 1px solid var(--bordure); }
.galerie-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
.galerie-grille { overflow-y: auto; padding: 16px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; align-content: start; }
.carte-photo { position: relative; display: grid; gap: 6px; padding: 6px; background: #fff; border: 2px solid var(--bordure); border-radius: 12px; cursor: pointer; font: inherit; font-size: 11.5px; color: var(--texte); text-align: left; min-width: 0; }
.carte-photo img { width: 100%; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 8px; background: #EEF2F7; display: block; }
.carte-photo .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-photo .etiquette { position: absolute; left: 10px; right: 10px; top: 10px; font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: 6px; background: rgba(21, 128, 61, .92); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-photo.associee img { opacity: .6; }
.carte-photo.actuelle .etiquette { background: rgba(11, 45, 107, .92); }
.carte-photo:hover { border-color: #93C5FD; }
.carte-photo:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.carte-photo[aria-selected="true"] { border-color: var(--marine); box-shadow: 0 0 0 3px rgba(11, 45, 107, .2); }
.carte-photo[aria-selected="true"] img { opacity: 1; }
.carte-photo[aria-selected="true"]::after { content: ""; position: absolute; right: 12px; bottom: 34px; width: 28px; height: 28px; border-radius: 50%; background: var(--marine) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 3px #fff; }
.galerie-apercu { border-left: 1px solid var(--bordure); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--fond); overflow-y: auto; }
.galerie-image { width: 100%; max-width: 240px; aspect-ratio: 35 / 45; align-self: center; border-radius: 12px; background: #EEF2F7; display: grid; place-items: center; overflow: hidden; color: var(--texte-2); font-size: 13px; text-align: center; padding: 12px; }
.galerie-image img { width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; margin: -12px; }
.galerie-nom { font-weight: 600; color: var(--marine); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.galerie-apercu .message { margin: 0; }
.galerie-apercu .barre-actions { margin-top: auto; }
.galerie-apercu .barre-actions .bouton { flex: 1 1 120px; }
.visionneuse { max-width: 420px; }
.visionneuse img { width: 100%; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 12px; background: #EEF2F7; display: block; margin-bottom: 12px; }
.visionneuse p { margin: 0 0 4px; }

/* ——— Adaptation aux écrans ——— */
@media (max-width: 1100px) {
  .nav-site { gap: 20px; }
  .avant-apres { grid-template-columns: 1fr; }
  .avant-apres .fleche-verte { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 980px) {
  .nav-site, .actions-entete { display: none; }
  .menu-mobile { display: inline-flex; }
  .entete-site.ouvert .nav-site { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--bordure); padding: 8px 24px 16px; }
  .entete-site.ouvert .nav-site a { padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
  .entete-site.ouvert .actions-entete { display: flex; position: absolute; top: calc(100% + 290px); left: 24px; right: 24px; }
  .heros { background: #fff; }
  .heros .fond { position: relative; inset: auto; width: 100%; height: 260px; display: block; z-index: 0; }
  .heros .fond::after { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 40%); }
  .heros .conteneur { grid-template-columns: 1fr; min-height: 0; }
  .heros .visuel { display: none; }
  .cartes-4, .avantages, .atouts, .statistiques { grid-template-columns: repeat(2, 1fr); }
  .processus { grid-template-columns: repeat(2, 1fr); }
  .etape-processus::after { display: none; }
  .cartes-3, .fonctionnalites, .offres, .resultats, .securite, .faq-grille { grid-template-columns: 1fr; }
  .bandeau-tarifs, .appel, .ruban-securite { grid-template-columns: 1fr; text-align: left; padding: 24px; }
  .ruban-securite .separateur { display: none; }
  .appel img { display: none; }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
  .page-compte { grid-template-columns: 1fr; }
  .panneau-marque { padding: 36px 24px; }
  .logo-vertical { font-size: 24.5px; }
  .etape-verticale { grid-template-columns: 48px 1fr; }
  .etape-demo { grid-template-columns: 1fr; gap: 20px; }
  .demonstration video { width: auto; max-width: 100%; max-height: 80vh; }
  .etape-demo:nth-child(even) .illustration { order: 0; }
  .illustration .encart { width: 100%; }
  .etapes-demo { gap: 44px; }
  .etape-verticale img { display: none; }
  .app { grid-template-columns: 1fr; background: var(--fond); }
  .barre-laterale { position: static; height: auto; padding: 14px 16px; }
  .barre-laterale .marque { margin: 0; }
  .nav-principale { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--bordure); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .35); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .nav-app { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; max-width: 640px; margin: 0 auto; }
  .nav-app button { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 2px; font-size: 11px; color: var(--texte-2); text-align: center; border-radius: 12px; }
  .nav-app button svg { width: 22px; height: 22px; }
  .nav-app button:hover { background: var(--fond); color: var(--marine); }
  .nav-app button[aria-current="page"] { background: var(--bleu-clair); color: var(--marine); font-weight: 600; }
  .nav-app .libelle-long { display: none; }
  .nav-app .libelle-court { display: inline; white-space: nowrap; }
  /* Clavier virtuel ouvert : la barre d'onglets s'efface pour ne pas masquer le champ saisi. */
  .app:has(input:not([type="checkbox"]):not([type="file"]):focus, select:focus, textarea:focus) .nav-principale { display: none; }
  /* En-tête compact : logo et « Tout effacer » sur une ligne, durée de conservation dessous ; l'identité est dans l'onglet Compte. */
  .barre-laterale { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
  .session-laterale { display: contents; }
  .session-laterale .identite { display: none; }
  .session-laterale #session-texte { grid-column: 1 / -1; grid-row: 2; font-size: 11.5px; }
  .session-laterale .bouton { grid-column: 2; grid-row: 1; }
  .app-contenu { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .archive, .aide-grille, .grille-compte { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Tableaux de l'application en cartes : une carte par élève, libellé au-dessus de chaque valeur. */
  .tableau-defilant.cartes-mobile { max-height: none; overflow: visible; border: 0; background: none; border-radius: 0; }
  table.cartes, table.cartes tbody, table.cartes tr, table.cartes td { display: block; width: auto; }
  table.cartes thead { display: none; }
  table.cartes tr { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; box-shadow: var(--ombre); }
  table.cartes tr[hidden] { display: none; }
  table.cartes td { border: 0; padding: 0; min-width: 0; }
  table.cartes td[data-libelle]::before { content: attr(data-libelle); display: block; font-size: 11px; color: var(--texte-2); font-weight: 500; margin-bottom: 2px; }
  table.cartes td.pleine, table.cartes td.actions, table.cartes td[colspan] { grid-column: 1 / -1; }
  table.cartes td.actions { white-space: normal; display: flex; flex-wrap: wrap; gap: 8px; }
  table.cartes td.actions .bouton { min-height: 40px; }
  table.cartes td input { min-width: 0; border-color: var(--bordure); background: #fff; padding: 9px 10px; font-size: 15px; }
  table.donnees.cartes tr.exclue td { background: none; }
  table.cartes .nom-liste, table.cartes .eleve { font-weight: 600; color: var(--marine); }
  table.cartes.assoc tr { grid-template-columns: 76px 1fr; }
  table.cartes.assoc td { grid-column: 2; }
  table.cartes.assoc td.photo { grid-column: 1; grid-row: 1 / span 4; }
  table.cartes.assoc td.numero, table.cartes.assoc td.matricule { display: inline-block; font-size: 12px; color: var(--texte-2); }
  table.cartes.assoc td.numero::before, table.cartes.assoc td.matricule::before { display: inline; margin-right: 4px; }
  table.cartes.assoc td.actions { grid-column: 1 / -1; }
  table.cartes.assoc .bouton-photo { flex-direction: column; padding: 3px; max-width: none; width: 72px; }
  table.cartes.assoc .bouton-photo .miniature { width: 64px; height: 82px; }
  table.cartes.assoc .bouton-photo .nom-photo { display: none; }
  table.cartes.assoc .choisir-photo { flex-direction: column; width: 72px; height: 92px; padding: 6px; white-space: normal; font-size: 11px; text-align: center; line-height: 1.2; }
  table.cartes.plan tr { grid-template-columns: 1fr 52px; }
  table.cartes.plan td.photo { grid-row: 1 / span 2; grid-column: 2; }
  table.cartes.plan td.eleve, table.cartes.plan td.nom-sortie { grid-column: 1; overflow-wrap: anywhere; }
  .galerie { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .galerie-entete { padding: 14px 16px 10px; }
  .galerie .outils-galerie { padding: 0 16px 12px; gap: 8px; }
  .galerie .outils-galerie .champ { min-width: 0; flex: 1 1 140px; }
  .galerie .outils-galerie .champ.large { flex-basis: 100%; }
  .galerie-corps { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .galerie-grille { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); padding: 12px 16px; gap: 10px; }
  .galerie-apercu { border-left: 0; border-top: 1px solid var(--bordure); display: grid; grid-template-columns: 76px 1fr; gap: 4px 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .35); }
  .galerie-image { grid-row: 1 / span 2; width: 76px; max-width: none; padding: 4px; font-size: 10px; border-radius: 8px; }
  .galerie-image img { width: calc(100% + 8px); height: calc(100% + 8px); margin: -4px; }
  .galerie-apercu .message { font-size: 12px; padding: 8px 10px; }
  .galerie-apercu .barre-actions { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .entete-site .interieur, .conteneur { padding-left: 16px; padding-right: 16px; }
  .cartes-4, .avantages, .atouts, .processus { grid-template-columns: 1fr; }
  .statistiques { gap: 12px; }
  .statistique { padding: 14px; gap: 10px; }
  .miniatures { grid-template-columns: repeat(2, 1fr); }
  .pied .colonnes { grid-template-columns: 1fr; }
  .etapes .libelle { display: none; }
  .etapes li { min-width: 48px; }
  .panneau { padding: 16px; }
  .marque { font-size: 18px; }
  .barre-laterale .marque { font-size: 16px; }         /* en-tête de l'application : logo et « Se déconnecter » sur une ligne */
  /* Libellés longs (« Associer 8 photos dans l'ordre de la liste ») : retour à la ligne plutôt que débordement. */
  .barre-actions .bouton, .zone-paiement .bouton { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
