/* =====================================================================
   Espace client mfdy.digital : DA « Nuit verte » avec Silver (15/10/2026).
   Registre du site : vert nuit, crème, orange, Archivo + Roboto Flex +
   Patrick Hand. L'admin garde app.css + admin.css, ce fichier ne sert
   que la vue client (index.html).
   ===================================================================== */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Flex'; font-style: normal; font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; src: url(../fonts/roboto-flex.woff2) format('woff2'); }
@font-face { font-family: 'Patrick Hand'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/patrick-hand.woff2) format('woff2'); }

:root {
  --fond: #14281F; --fond-2: #0F1F18; --carte: #1B342A; --carte-2: #22402F; --ligne: #2F5141; --ligne-forte: #4F7562;
  --texte: #F2F2ED; --doux: #C9D6D1; --creme: #F2F2ED; --vert: #1F3D34; --orange: #E8692E; --brique: #C4511F; --encre: #0B1611;
  --action: #E8692E; --action-texte: #14281F; --anneau: #E8692E;
  --alerte-fond: rgba(232, 105, 46, .18); --alerte-texte: #FFB792;
  --ok-fond: rgba(201, 214, 209, .14); --ok-texte: #BFE3CF; --ok-point: #5BC48C;
  --info-fond: rgba(233, 200, 132, .16); --info-texte: #F0D59A;
  --erreur-texte: #FF9F8A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: 'Roboto Flex', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: 'Archivo', sans-serif; }
:focus-visible { outline: 3px solid var(--anneau); outline-offset: 3px; }
h1:focus { outline: none; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100000; padding: 10px 16px; border-radius: 10px; background: var(--action); color: var(--action-texte); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.main-ecrite { font-family: 'Patrick Hand', cursive; color: var(--orange); font-size: 1.55rem; line-height: 1.05; }
.logo { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 72%; font-size: 1.7rem; color: var(--creme); text-decoration: none; letter-spacing: -.01em; }
.logo b { color: var(--orange); }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.15em; border: 2px solid transparent; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--principal { background: var(--action); color: var(--action-texte); }
.btn--principal:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--creme); }
.btn--second { background: transparent; color: var(--creme); border-color: var(--ligne-forte); }
.btn--second:hover { border-color: var(--creme); }
.btn--lien { background: none; padding: 0 .4em; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: inherit; }
.btn--petit { min-height: 44px; padding: 0 .95em; font-size: .92rem; }

/* ---------------------------------------------------------------- Statuts (le mot, jamais la couleur seule) */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.badge--alerte { background: var(--alerte-fond); color: var(--alerte-texte); }
.badge--ok { background: var(--ok-fond); color: var(--ok-texte); }
.badge--info { background: var(--info-fond); color: var(--info-texte); }
.pastille { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--ok-point); box-shadow: 0 0 0 4px rgba(91, 196, 140, .2); flex: none; }
.pastille--off { background: var(--doux); box-shadow: 0 0 0 4px rgba(201, 214, 209, .15); }
.pastille-nb { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; margin-left: .4em; border-radius: 999px; background: var(--orange); color: var(--fond); font-size: .75rem; font-weight: 800; }
.barre .pastille-nb { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

/* ================================================================ Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 120px 18px 40px;
  background: radial-gradient(110% 80% at 70% 100%, #22402F 0, var(--fond) 50%, var(--encre) 100%); }
.login__carte { position: relative; isolation: isolate; width: min(100%, 460px); padding: 30px 26px 24px; }
.login__carte::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 24px; background: var(--carte); border: 1px solid var(--ligne); box-shadow: 10px 10px 0 rgba(232, 105, 46, .9); }
.login__silver { position: absolute; z-index: -2; right: 18px; bottom: calc(100% - 36px); height: 132px; width: auto; }
.login .logo { display: inline-block; margin-bottom: 18px; }
.login__titre { font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 2.6rem; line-height: .95; }
.login__sous { margin: 12px 0 22px; color: var(--doux); }
.login__form { display: grid; gap: 12px; }
.login__form .btn { width: 100%; }
.login__code { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--ligne); }
.login__entrer { display: grid; gap: 12px; margin-bottom: 8px; }
.login__pret { font-weight: 600; }
.login__msg { margin-top: 14px; font-size: .95rem; color: var(--doux); min-height: 1em; }
.login__msg.est-ok { color: var(--ok-texte); }
.login__msg.est-erreur { color: var(--erreur-texte); }
.login__aide { margin-top: 18px; font-size: .9rem; color: var(--doux); }
.login__aide a { color: var(--orange); }
.login__admin { margin-top: 14px; width: 100%; }
.champ { display: grid; gap: 6px; }
.champ__label, label { font-weight: 700; }
input[type="email"], input[type="text"], input[type="search"], textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--ligne-forte); background: var(--fond-2); color: var(--creme); font-size: 1.05rem; }
input::placeholder, textarea::placeholder { color: #9FB2A9; }
textarea { min-height: 110px; resize: vertical; }

/* ================================================================ Application */
.app { display: grid; min-height: 100vh; }
@media (min-width: 980px) { .app { grid-template-columns: 264px minmax(0, 1fr); } }
.app__droite { min-width: 0; display: flex; flex-direction: column; }

/* Colonne ordinateur */
.colonne { display: none; }
@media (min-width: 980px) {
  .colonne { display: flex; flex-direction: column; gap: 26px; padding: 28px 18px; background: var(--fond-2); border-right: 1px solid var(--ligne); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.colonne__client { padding: 14px; border-radius: 14px; background: var(--carte); }
.colonne__client small { display: block; color: var(--doux); font-size: .82rem; }
.colonne__client strong { font-size: 1.02rem; }
.colonne nav ul { display: grid; gap: 4px; }
.colonne nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--doux); }
.colonne nav a:hover { background: var(--carte); color: var(--creme); }
.colonne nav a[aria-current] { background: var(--carte-2); color: var(--creme); box-shadow: inset 3px 0 0 var(--orange); }
.colonne__bas { margin-top: auto; display: grid; gap: 4px; }
.colonne__bas button, .colonne__bas a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--doux); font-weight: 600; cursor: pointer; text-align: left; text-decoration: none; }
.colonne__bas button:hover, .colonne__bas a:hover { background: var(--carte); color: var(--creme); }
.colonne__tete { width: 30px; height: auto; margin: -4px -2px; }

/* En-tete telephone */
.tete-mobile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--ligne); background: var(--fond-2); position: sticky; top: 0; z-index: 40; }
.tete-mobile .logo { font-size: 1.4rem; }
.tete-mobile__droite { display: flex; gap: 8px; align-items: center; }
.tete-mobile a.aide { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--carte-2); color: var(--creme); font-weight: 700; text-decoration: none; }
.tete-mobile a.aide[aria-current] { background: var(--orange); color: var(--fond); }
@media (min-width: 980px) { .tete-mobile { display: none; } }

.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--fond-2); border-top: 1px solid var(--ligne); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.barre ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.barre a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; border-radius: 12px; text-decoration: none; font-size: .78rem; font-weight: 600; color: var(--doux); }
.barre a .ico { width: 1.5rem; height: 1.5rem; }
.barre a[aria-current] { color: var(--orange); background: var(--carte); }
@media (min-width: 980px) { .barre { display: none; } }
@media (max-width: 979px) { .app { padding-bottom: 84px; } }

/* Barre d'outils (dossier, apercu admin) */
.outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px 0; }
@media (min-width: 980px) { .outils { padding: 22px 48px 0; } }
.selecteur { width: auto; min-width: 220px; padding: 10px 14px; font-size: .95rem; }
.apercu { flex: 1 1 260px; padding: 10px 14px; border-radius: 12px; background: var(--info-fond); color: var(--info-texte); font-size: .9rem; }

main { padding: 32px 20px 56px; max-width: 1080px; width: 100%; }
@media (min-width: 980px) { main { padding: 40px 48px 64px; } }
h1 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4rem); line-height: .95; letter-spacing: -.005em; }
.sur-titre { color: var(--orange); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.chapo { margin-top: 12px; color: var(--doux); font-size: 1.1rem; max-width: 58ch; }
h2 { font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 20px; padding: 22px; }
.vide { padding: 18px; border-radius: 14px; background: rgba(15, 31, 24, .5); color: var(--doux); }

/* ---------------------------------------------------------------- Accueil */
.accueil-tete { margin-bottom: 8px; }
.afaire { position: relative; isolation: isolate; margin: 84px 0 18px; background: none; border: 0; }
.afaire::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: linear-gradient(140deg, #2A4A39, var(--carte)); border: 1px solid #3E6450; }
.afaire__liste { display: grid; gap: 10px; }
.afaire__item { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: rgba(15, 31, 24, .55); }
.afaire__texte { display: flex; flex-direction: column; }
.afaire__texte strong { font-size: 1.08rem; color: var(--creme); }
.afaire__texte span { color: var(--doux); }
.afaire__vide { display: flex; gap: .6em; align-items: center; font-weight: 600; min-height: 48px; }
.afaire__silver { position: absolute; z-index: -2; right: 22px; bottom: calc(100% - 34px); height: 128px; width: auto; transform: scaleX(-1); transform-origin: 50% 100%; animation: silver-respire 4.5s ease-in-out infinite; }
.afaire--calme .afaire__silver { transform: none; animation: none; height: 120px; }
.afaire__note { position: absolute; right: 262px; top: -40px; transform: rotate(-5deg); white-space: nowrap; }
.afaire__note::after { content: ' ↘'; }
.afaire--calme .afaire__note { right: 168px; }
.afaire--calme .afaire__note::after { content: ''; }
@keyframes silver-respire { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-4px) rotate(-1deg); } }
.afaire.est-mise-en-avant::before { animation: halo 1.3s ease-out 2; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(232, 105, 46, .75); } 100% { box-shadow: 0 0 0 20px rgba(232, 105, 46, 0); } }
@media (max-width: 700px) {
  .afaire { margin-top: 70px; }
  .afaire__silver { height: 100px; right: 12px; }
  .afaire--calme .afaire__silver { height: 96px; }
  .afaire__note { right: 198px; top: -34px; font-size: 1.35rem; }
  .afaire--calme .afaire__note { right: 120px; }
  .afaire__item .btn { width: 100%; }
}

.compteurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .compteurs { grid-template-columns: repeat(4, 1fr); } }
.compteur { display: grid; gap: 2px; align-content: start; padding: 18px; border-radius: 18px; background: var(--carte); border: 1px solid var(--ligne); text-decoration: none; color: var(--texte); transition: border-color .15s, transform .15s; }
.compteur:hover { border-color: var(--orange); transform: translateY(-2px); }
.compteur b { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 75%; font-size: 2.6rem; line-height: 1; color: var(--creme); }
.compteur span { color: var(--doux); font-size: .95rem; }
.compteur--chaud b { color: var(--orange); }

.grille { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .grille { grid-template-columns: 1.4fr 1fr; }
  .grille > :nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
}
.site-resume { display: flex; align-items: center; gap: 14px; }
.site-resume__corps { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.site-resume__corps strong { overflow-wrap: anywhere; }
.site-resume__corps span { color: var(--doux); }
.lien-fleche { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; color: var(--orange); text-underline-offset: 3px; }
.aide-carte { overflow: hidden; }
.aide-carte p { color: var(--doux); }
.aide-carte .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.aide-carte__silver { float: right; height: 104px; width: auto; margin: -8px -6px 6px 12px; }

/* ---------------------------------------------------------------- Documents */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 18px; }
.filtre { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: none; color: var(--doux); font-weight: 600; cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--creme); color: var(--fond); border-color: var(--creme); }
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico corps actions"; align-items: center; gap: .4rem .9rem; padding: 14px 16px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); }
.carte .doc { background: rgba(15, 31, 24, .5); }
.doc__ico { grid-area: ico; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--carte-2); color: var(--orange); }
.doc__corps { grid-area: corps; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc__titre { font-weight: 700; overflow-wrap: anywhere; }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; color: var(--doux); }
.doc__actions { grid-area: actions; display: flex; gap: 8px; }
@media (max-width: 640px) {
  .doc { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico corps" "actions actions"; }
  .doc__actions > * { flex: 1; }
}

/* ---------------------------------------------------------------- Mon site */
.site-carte { margin-top: 24px; display: grid; gap: 20px; padding: 22px; border-radius: 20px; background: var(--carte); border: 1px solid var(--ligne); }
.site-carte__apercu { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--ligne); background: var(--fond-2); }
.site-carte__nom { margin: 0; font-size: 1.4rem; }
.site-carte__url { color: var(--orange); font-weight: 600; overflow-wrap: anywhere; }
.site-carte__infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.site-carte__infos dt { color: var(--doux); font-size: .85rem; }
.site-carte__infos dd { font-weight: 700; display: flex; align-items: center; gap: .5em; overflow-wrap: anywhere; }
.site-carte__infos a { color: var(--orange); }
.site-carte__notes { padding: 12px 14px; border-radius: 12px; background: rgba(15, 31, 24, .55); color: var(--doux); }
.site-carte__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-carte__mdp { font-size: .9rem; color: var(--doux); }

/* ---------------------------------------------------------------- Visuels */
.galerie { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.vignette { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--carte); border: 1px solid var(--ligne); }
.vignette__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 4px; background: var(--fond-2); }
.vignette__type { display: grid; place-items: center; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--orange); background: radial-gradient(rgba(232, 105, 46, .25) 1.4px, transparent 1.7px) 0 0 / 12px 12px, var(--fond-2); }
.vignette__titre { font-weight: 700; overflow-wrap: anywhere; }
.vignette__meta { color: var(--doux); font-size: .88rem; margin-bottom: 4px; }
.vignette .btn { margin-top: auto; }

/* ---------------------------------------------------------------- Messages */
.fil { display: grid; gap: 14px; margin: 24px 0; max-height: 62vh; overflow-y: auto; padding: 4px 4px 4px 0; }
.bulle { max-width: 78%; }
.bulle__corps { padding: 14px 16px; border-radius: 18px; }
.bulle__texte { white-space: pre-line; overflow-wrap: anywhere; }
.bulle__qui { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 4px; opacity: .85; }
.bulle--client { justify-self: end; }
.bulle--client .bulle__corps { background: var(--creme); color: var(--fond); border-bottom-right-radius: 4px; }
.bulle--agence { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: end; }
.bulle--agence .bulle__corps { background: var(--carte); border: 1px solid var(--ligne); border-bottom-left-radius: 4px; }
.bulle__av { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: var(--carte-2); padding: 3px; box-shadow: 2px 2px 0 var(--orange); }
.bulle__fichiers { display: grid; gap: 4px; margin-top: 8px; }
.bulle__fichiers button { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid currentColor; background: none; cursor: pointer; font-size: .9rem; text-align: left; }
@media (max-width: 560px) { .bulle { max-width: 96%; } }
.redaction { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--carte); border: 1px solid var(--ligne); }
.redaction__bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.choisis { display: grid; gap: 4px; font-size: .92rem; }
.choisis li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--fond-2); }
.journal { font-size: .92rem; color: var(--doux); min-height: 1em; }
.journal.est-ok { color: var(--ok-texte); }
.journal.est-erreur { color: var(--erreur-texte); }
.petit { color: var(--doux); font-size: .9rem; }
.fil .vide { display: flex; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- Aide */
.aide-tete { display: flex; align-items: flex-end; gap: 14px; }
.aide-tete__silver { height: 92px; width: auto; transform: scaleX(-1); margin-bottom: -6px; }
.aide-recherche { position: relative; margin: 26px 0 8px; }
.aide-recherche .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--orange); width: 1.4rem; height: 1.4rem; }
.aide-recherche input { min-height: 64px; padding-left: 56px; border-radius: 999px; font-size: 1.15rem; border-color: var(--orange); border-width: 2px; }
.aide-grille { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 900px) { .aide-grille { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } .aide-cote { position: sticky; top: 24px; } }
.faq-theme { margin-bottom: 24px; }
.faq-theme h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.faq { padding: 4px 18px; margin-bottom: 8px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 52px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5em; line-height: 1; font-weight: 400; color: var(--orange); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 16px; color: var(--doux); }
.faq-vide { padding: 20px; border-radius: 16px; background: var(--info-fond); color: var(--info-texte); overflow: hidden; }
.faq-vide p + p { margin-top: 6px; }
.faq-vide__silver { float: right; height: 110px; width: auto; margin: -6px -4px 4px 12px; }
.aide-cote .carte { display: grid; gap: 12px; }
.aide-cote .carte + .carte { margin-top: 16px; }
.aide-cote .carte p { color: var(--doux); }

/* ---------------------------------------------------------------- Pied */
.pied { margin-top: auto; padding: 24px 20px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--doux); font-size: .88rem; border-top: 1px solid var(--ligne); }
@media (min-width: 980px) { .pied { padding: 24px 48px 32px; } }
.pied a, .pied button { min-height: 44px; display: inline-flex; align-items: center; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- Chargement */
.chargement { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--fond); }
.chargement__point { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .4; } }

/* ---------------------------------------------------------------- Annonce */
.annonce { position: fixed; left: 50%; bottom: 96px; z-index: 250; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 520px); padding: 14px 18px 14px 12px; border-radius: 14px; background: var(--creme); color: var(--fond); font-weight: 600; box-shadow: 6px 6px 0 var(--orange); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.annonce.est-visible { opacity: 1; transform: translate(-50%, 0); }
.annonce__silver { height: 58px; width: auto; margin: -22px 0 -10px; flex: none; }
@media (min-width: 980px) { .annonce { bottom: 32px; left: calc(50% + 132px); } }

/* ================================================================ Silver */
.silver { display: block; pointer-events: none; user-select: none; }

/* Avant le bonjour : rien ne s'affiche, pour ne pas voir la page puis l'intro */
.intro-attente #vue-app { opacity: 0; }

.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 90% at 70% 100%, #22402F 0, var(--fond) 45%, var(--encre) 100%); }
.intro__trame { position: absolute; inset: -10%; background-image: radial-gradient(rgba(232, 105, 46, .42) 1.5px, transparent 1.8px); background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(55% 60% at 68% 72%, #000 0, transparent 70%); mask-image: radial-gradient(55% 60% at 68% 72%, #000 0, transparent 70%); }
.intro__scene { position: relative; width: min(94vw, 860px); height: min(88vh, 640px); }
.intro__silver { position: absolute; bottom: 0; right: 4%; height: min(70vh, 540px); width: auto; transform-origin: 50% 100%; filter: drop-shadow(10px 8px 0 rgba(196, 81, 31, .95)); }
.intro__bulle { position: absolute; z-index: 2; left: 0; top: 14%; max-width: 400px; padding: 24px 28px 22px; border-radius: 28px; background: var(--creme); color: var(--fond);
  border: 3px solid var(--encre); box-shadow: 9px 9px 0 var(--orange); transform-origin: 90% 100%; }
.intro__bulle::before, .intro__bulle::after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; }
.intro__bulle::before { right: -33px; top: 52%; border-width: 16px 0 16px 32px; border-color: transparent transparent transparent var(--encre); }
.intro__bulle::after { right: -25px; top: calc(52% + 5px); border-width: 11px 0 11px 25px; border-color: transparent transparent transparent var(--creme); }
.intro__mot { display: inline-block; white-space: nowrap; }
.intro__l1 { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.3rem); line-height: .95; overflow: hidden; padding-bottom: 4px; }
.intro__lettre { display: inline-block; }
.intro__l2 { margin-top: 10px; font-size: 1.2rem; font-weight: 650; line-height: 1.35; }
.intro__l3 { margin-top: 8px; font-family: 'Patrick Hand', cursive; font-size: 1.6rem; color: var(--brique); line-height: 1; }
.intro__passer { position: absolute; right: 22px; bottom: 22px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(242, 242, 237, .5); background: rgba(11, 22, 17, .5); color: var(--creme); font-weight: 600; cursor: pointer; }
.intro-boum { position: fixed; z-index: 301; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; border: 5px solid var(--orange);
  background: radial-gradient(rgba(232, 105, 46, .55) 1.6px, transparent 2px) 0 0 / 12px 12px; }
@media (max-width: 700px) {
  .intro__scene { width: 100vw; height: 100vh; }
  .intro__silver { right: 50%; transform: translateX(50%); height: min(56vh, 430px); }
  .intro__bulle { left: 16px; right: 16px; top: auto; bottom: calc(min(56vh, 430px) + 34px); max-width: none; padding: 20px 22px; transform-origin: 50% 100%; }
  .intro__bulle::before { right: auto; left: 56%; top: auto; bottom: -33px; border-width: 32px 16px 0 16px; border-color: var(--encre) transparent transparent transparent; }
  .intro__bulle::after { right: auto; left: calc(56% + 5px); top: auto; bottom: -24px; border-width: 24px 11px 0 11px; border-color: var(--creme) transparent transparent transparent; }
  .intro__passer { right: 50%; transform: translateX(50%); bottom: 18px; }
}

/* ---------------------------------------------------------------- Tutoriel : bulle BD, Silver pointe la cible */
.tuto { position: fixed; inset: 0; z-index: 200; }
.tuto__fond { position: absolute; inset: 0; background: rgba(6, 14, 10, .8); }
.tuto__trou { position: fixed; border-radius: 12px; outline: 3px solid var(--orange); transition: left .3s, top .3s, width .3s, height .3s; pointer-events: none; }
.tuto__trou.est-plein { display: none; }
.tuto__bulle { position: fixed; width: min(380px, calc(100vw - 32px)); padding: 22px 22px 16px; color: var(--fond); isolation: isolate; transition: left .3s cubic-bezier(.2, .7, .2, 1), top .3s cubic-bezier(.2, .7, .2, 1); }
.tuto__bulle::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: var(--creme); border: 3px solid var(--encre); box-shadow: 8px 8px 0 var(--orange); }
.tuto__compte { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brique); }
.tuto__titre { margin: .25em 0 .4em; font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.tuto__texte { font-size: 1.02rem; }
.tuto__points { display: flex; gap: 6px; margin: 16px 0 12px; }
.tuto__points span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .2; }
.tuto__points span.est-actif { width: 22px; border-radius: 4px; opacity: 1; background: var(--brique); }
.tuto__actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tuto__nav { display: flex; gap: 8px; margin-left: auto; }
.tuto .btn--principal { background: var(--brique); color: #fff; }
.tuto .btn--second { color: var(--fond); border-color: var(--fond); }
.tuto__silver { position: absolute; z-index: -2; bottom: calc(100% - 30px); height: 104px; width: auto; transform-origin: 50% 88%; transition: transform .4s cubic-bezier(.2, .8, .2, 1.2), left .3s, right .3s; }
.tuto__silver.est-droite { right: 16px; transform: rotate(var(--angle, 0deg)); }
.tuto__silver.est-gauche { left: 16px; transform: scaleX(-1) rotate(var(--angle, 0deg)); }
.tuto__silver.est-centre { left: 50%; transform: translateX(-50%); }
@media (max-width: 560px) { .tuto__silver { height: 92px; } }

/* ---------------------------------------------------------------- Proposer d'installer l'appli (telephone) */
.installer { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 150; isolation: isolate;
  padding: 20px 18px 14px; color: var(--fond); transform: translateY(calc(100% + 120px)); transition: transform .45s cubic-bezier(.2, .9, .2, 1.1); }
.installer.est-visible { transform: translateY(0); }
.installer::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 22px; background: var(--creme); border: 3px solid var(--encre); box-shadow: 7px 7px 0 var(--orange); }
.installer__silver { position: absolute; z-index: -2; left: 14px; bottom: calc(100% - 26px); height: 92px; width: auto; transform: rotate(14deg); transform-origin: 50% 90%; }
/* pendant la proposition, le Silver du bloc « A faire » s'efface : un seul Silver a l'ecran */
body:has(.installer.est-visible) :is(.afaire__silver, .afaire__note) { opacity: 0; transition: opacity .3s; }
.installer__titre { font-weight: 800; font-size: 1.25rem; line-height: 1.15; margin-bottom: 6px; padding-right: 8px; }
.installer p { font-size: 1rem; }
.installer__etapes { display: grid; gap: 8px; margin: 12px 0 4px; padding: 0; counter-reset: none; }
.installer__etapes li { display: block; position: relative; padding-left: 34px; font-size: .96rem; line-height: 1.45; }
.installer__etapes li .installer__num { position: absolute; left: 0; top: 0; }
.installer__etapes .ico { display: inline-block; vertical-align: -.25em; width: 1.25em; height: 1.25em; color: #0A66D9; }
.installer__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--fond); font-weight: 800; font-size: .85rem; flex: none; }
.installer__actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.installer .btn--principal { background: var(--brique); color: #fff; }
.installer .btn--lien { color: var(--fond); }
.installer__titre:focus { outline: none; }
[data-installer-zone] .btn { width: 100%; }

/* ---------------------------------------------------------------- Bandeau cookies aux couleurs */
.mfdy-cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 99999; display: flex; justify-content: center; }
.mfdy-cookie__in { width: 100%; max-width: 840px; background: var(--fond-2); color: var(--creme); border: 1px solid var(--ligne-forte); border-radius: 16px; padding: 1.1rem 1.25rem; box-shadow: 6px 6px 0 var(--orange); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.mfdy-cookie__t { flex: 1 1 320px; margin: 0; font-size: .92rem; line-height: 1.55; color: var(--doux); }
.mfdy-cookie__t a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.mfdy-cookie__a { display: flex; gap: .6rem; flex: 0 0 auto; }
.mfdy-cookie__b { font: inherit; font-size: .9rem; font-weight: 700; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent; }
.mfdy-cookie__b--n { background: transparent; color: var(--creme); border-color: var(--ligne-forte); }
.mfdy-cookie__b--y { background: var(--orange); color: var(--fond); }
@media (max-width: 560px) { .mfdy-cookie { bottom: 88px; } .mfdy-cookie__in { flex-direction: column; align-items: stretch; } .mfdy-cookie__b { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
