/* PC Lilas — charte des cartes de visite : noir bleuté, vert néon, traits de lumière. Sans police ni ressource externe. */
:root {
  color-scheme: dark;
  --fond: #0b1016;
  --fond-2: #0e151c;
  --surface: #121b23;
  --surface-2: #17222c;
  --bord: #233240;
  --bord-fort: #6b8193;
  --texte: #eef4f1;
  --gris: #a9b8b1;
  --neon: #3fe08a;
  --neon-clair: #8ff0b5;
  --neon-fonce: #1f9e5c;
  --sur-neon: #03170b;
  --lien: #6ff0a8;
  --rouge: #ff8f97;
  --rouge-fond: #2a1216;
  --anneau: #8ff0b5;
  --rayon: 16px;
  --lueur: 0 0 0 1px rgba(63, 224, 138, .35), 0 0 24px rgba(63, 224, 138, .18);
  --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  --doux: cubic-bezier(.2, .8, .2, 1);
  --sortie: cubic-bezier(.22, 1, .36, 1);
  --police: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", "Arial Rounded MT Bold", -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", Ubuntu, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--fond); }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background:
    radial-gradient(50rem 40rem at 0% 100%, rgba(63, 224, 138, .07), transparent 60%),
    radial-gradient(60rem 40rem at 100% 0%, rgba(88, 96, 160, .1), transparent 60%),
    var(--fond);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;

}
h1, h2, h3 { text-wrap: balance; color: #fff; }
a { color: var(--lien); text-underline-offset: .18em; }
a:hover { color: var(--neon-clair); }
a:focus-visible, .bouton:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--anneau); outline-offset: 3px; border-radius: 8px; }
.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.saut { position: absolute; left: -999px; }
.saut:focus { left: 1rem; top: 1rem; background: var(--neon); color: var(--sur-neon); padding: .5rem 1rem; z-index: 50; border-radius: 8px; }
::selection { background: rgba(63, 224, 138, .35); color: #fff; }

/* En-tête collant, verre fumé */
.entete {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 16, 22, .82);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--bord);
}
.entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 224, 138, .55), transparent); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--texte); }
.logo:hover { color: var(--texte); }
.logo-marque { flex: none; width: 44px; height: 44px; color: var(--neon); filter: drop-shadow(0 0 6px rgba(63, 224, 138, .45)); transition: transform .25s var(--doux), filter .25s; }
.logo:hover .logo-marque { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(63, 224, 138, .7)); }
.logo-texte { display: flex; flex-direction: column; line-height: 1.1; }
.logo-nom { font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; color: #fff; }
.logo-sous { font-size: .8rem; color: var(--gris); font-weight: 600; }
.entete nav { display: flex; align-items: center; flex-wrap: wrap; }
.entete nav a { text-decoration: none; font-weight: 700; margin-left: 1.3rem; color: var(--gris); position: relative; transition: color .15s; }
.entete nav a:not(.bouton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--neon); border-radius: 2px; box-shadow: 0 0 8px var(--neon); transform: scaleX(0); transition: transform .2s var(--doux); }
.entete nav a:not(.bouton):hover, .entete nav a[aria-current="page"]:not(.bouton) { color: #fff; }
.entete nav a:not(.bouton):hover::after, .entete nav a[aria-current="page"]:not(.bouton)::after { transform: scaleX(1); }
.entete nav a.bouton { color: var(--sur-neon); }
@media (max-width: 760px) { .entete nav a.secondaire { display: none; } }
@media (max-width: 380px) { .logo-sous { display: none; } }

/* Boutons : pastille verte, comme « Devis express » sur la carte */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; min-height: 48px; border-radius: 999px;
  background: var(--neon); color: var(--sur-neon); font: inherit; font-weight: 800; text-decoration: none; letter-spacing: .01em;
  border: 2px solid var(--neon); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(63, 224, 138, 0), 0 6px 22px rgba(63, 224, 138, .28);
  transition: background-color .15s, border-color .15s, transform .15s var(--doux), box-shadow .2s;
}
.bouton:hover { background: var(--neon-clair); border-color: var(--neon-clair); color: var(--sur-neon); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(63, 224, 138, .18), 0 10px 30px rgba(63, 224, 138, .4); }
.bouton:active { transform: scale(.97); transition-duration: .1s; }
.bouton.grand { min-height: 56px; padding: 1rem 2rem; font-size: 1.12rem; }
.bouton.petit { padding: .5rem 1.1rem; min-height: 42px; font-size: .95rem; box-shadow: none; }
.bouton.clair { background: transparent; color: var(--neon-clair); border-color: var(--neon); box-shadow: none; }
.bouton.clair:hover { background: rgba(63, 224, 138, .12); color: #fff; }
.bouton.danger { background: transparent; color: var(--rouge); border-color: var(--rouge); box-shadow: none; }
.bouton.danger:hover { background: var(--rouge-fond); color: #fff; }
.bouton .mention { font-weight: 600; opacity: .85; }
.lien-fort { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; color: var(--texte); text-decoration: none; }
.lien-fort::after { content: "→"; color: var(--neon); transition: transform .2s var(--doux); }
.lien-fort:hover { color: var(--neon-clair); }
.lien-fort:hover::after { transform: translateX(4px); }

/* Haut de page */
.accroche { position: relative; overflow: hidden; padding: 3rem 0 3rem; }
.accroche::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 78% 40%, rgba(63, 224, 138, .13), transparent 65%),
    radial-gradient(30rem 20rem at 5% 0%, rgba(110, 100, 190, .12), transparent 70%);
}
.haut { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .haut { grid-template-columns: 7fr 5fr; } .accroche { padding: 5rem 0 4.5rem; } }
.sur-titre { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .3rem .9rem; border-radius: 999px; background: rgba(63, 224, 138, .08); border: 1px solid rgba(63, 224, 138, .4); color: var(--neon-clair); font-weight: 700; font-size: .9rem; }
.sur-titre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.accroche h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.07; margin: 0 0 1.1rem; letter-spacing: -.02em; font-weight: 800; }
.accent { color: var(--neon); text-shadow: 0 0 24px rgba(63, 224, 138, .45); }
@media (forced-colors: active) { .accent { color: CanvasText; text-shadow: none; } }
.accroche p.intro { font-size: 1.2rem; color: var(--gris); max-width: 34rem; margin: 0 0 1.9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; font-weight: 700; font-size: .95rem; }
.points li { background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: .35rem .95rem; }
.points li::before { content: "✓"; color: var(--neon); font-weight: 800; margin-right: .4rem; }
.haut-image { position: relative; display: flex; justify-content: center; }
.haut-image svg { position: relative; width: 100%; max-width: 520px; height: auto; }
/* Traits de lumière verticaux de la carte */
.trait { position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--neon-clair) 50%, transparent);
  box-shadow: 0 0 12px 2px rgba(63, 224, 138, .35); opacity: .7; }
.trait.t1 { left: 2%; top: 8%; bottom: 20%; }
.trait.t2 { right: 1%; top: 30%; bottom: 0; opacity: .5; }
.flotte { animation: flotte 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flotte.f2 { animation-duration: 7.5s; animation-delay: -2s; }
.flotte.f3 { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lueur-pulse, .trait { animation: pulse 4.5s ease-in-out infinite; }
.lueur-pulse.l2, .trait.t2 { animation-delay: -2.2s; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.charge { animation: charge 3.2s var(--doux) .4s both; transform-box: fill-box; transform-origin: left center; }
@keyframes charge { from { transform: scaleX(.08); } to { transform: none; } }
@media (max-width: 899px) { .haut-image { order: -1; } .haut-image svg { max-width: 320px; } }
@media (max-width: 560px) {
  .actions .bouton { width: 100%; }
  .actions { justify-content: center; }
  .points { display: grid; grid-template-columns: 1fr 1fr; }
  .points li { text-align: center; }
  .haut-image svg { max-width: 240px; }
}
/* Entrée au chargement : boutons et points seulement (le titre reste immédiat) */
.actions, .points li { animation: monte .35s var(--sortie) both; }
.points li:nth-child(1) { animation-delay: .06s; } .points li:nth-child(2) { animation-delay: .12s; }
.points li:nth-child(3) { animation-delay: .18s; } .points li:nth-child(4) { animation-delay: .24s; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Bande de confiance */
.confiance { background: var(--fond-2); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.confiance ul { list-style: none; margin: 0 auto; padding-top: 1.2rem; padding-bottom: 1.2rem; display: grid; gap: .9rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.confiance li { display: flex; align-items: center; gap: .7rem; font-weight: 700; }

/* Sections */
section { padding: 4.2rem 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.015em; font-weight: 800; }
.chapeau { color: var(--gris); margin: 0 0 2rem; max-width: 42rem; }
h2.espace { margin-top: 3.2rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--ombre);
  transition: transform .18s var(--doux), box-shadow .18s, border-color .18s;
}
.carte:hover { transform: translateY(-3px); border-color: rgba(63, 224, 138, .55); box-shadow: var(--ombre), var(--lueur); }
.carte h3 { margin: 0 0 .45rem; font-size: 1.12rem; display: flex; align-items: center; gap: .7rem; }
.carte p { margin: 0; color: var(--gris); }
.icone { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(63, 224, 138, .1); border: 1px solid rgba(63, 224, 138, .35); color: var(--neon); transition: background-color .18s, color .18s, transform .18s var(--doux), box-shadow .18s; }
.icone svg { width: 22px; height: 22px; }
.carte:hover .icone { background: var(--neon); color: var(--sur-neon); box-shadow: 0 0 16px rgba(63, 224, 138, .5); transform: rotate(-4deg); }
@media (max-width: 760px) {
  .grille { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .carte { padding: 1rem .9rem; }
  .carte h3 { flex-direction: column; align-items: flex-start; font-size: 1rem; gap: .5rem; }
  .carte p { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 360px) { .grille { grid-template-columns: 1fr; } }

/* Étapes reliées par un trait de lumière */
.bande { background: var(--fond-2); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.etapes li { counter-increment: etape; position: relative; padding: 3.7rem 1.2rem 1.2rem; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--bord); transition: transform .18s var(--doux), box-shadow .18s, border-color .18s; }
.etapes li:hover { transform: translateY(-3px); border-color: rgba(63, 224, 138, .55); box-shadow: var(--lueur); }
.etapes li::before { content: counter(etape); position: absolute; left: 1.2rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--neon); color: var(--sur-neon); display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 14px rgba(63, 224, 138, .5); }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 2.2rem; left: 3.7rem; right: -1rem; height: 2px; background: linear-gradient(90deg, var(--neon), rgba(63, 224, 138, .1)); }
.etapes strong { display: block; font-size: 1.05rem; color: #fff; }
.etapes span { color: var(--gris); }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr; gap: .8rem; }
  .etapes li { padding: 1.1rem 1.1rem 1.1rem 4rem; }
  .etapes li:not(:last-child)::after { top: 3.4rem; bottom: -.9rem; left: 2.25rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--neon), rgba(63, 224, 138, .1)); }
}
.remarque { margin: 1.5rem 0 0; color: var(--gris); }

.deux { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.villes { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.villes li { background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: .35rem .95rem; font-weight: 600; transition: background-color .15s, border-color .15s; }
.villes li:hover { border-color: rgba(63, 224, 138, .55); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: .7rem; transition: border-color .18s, box-shadow .18s; }
.faq details:hover, .faq details[open] { border-color: rgba(63, 224, 138, .5); }
.faq details[open] { box-shadow: var(--lueur); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.chevron { flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--neon); border-bottom: 2.5px solid var(--neon); transform: rotate(-45deg); transition: transform .2s var(--doux); }
.faq details[open] .chevron { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--gris); }
.faq details[open] p { animation: fondu .25s var(--doux); }
@keyframes fondu { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Appel final : le recto de la carte */
.contact {
  position: relative; overflow: hidden; border-radius: 24px; padding: 3rem 1.6rem; text-align: center;
  background:
    radial-gradient(30rem 18rem at 0% 100%, rgba(63, 224, 138, .22), transparent 65%),
    radial-gradient(30rem 18rem at 100% 0%, rgba(110, 100, 190, .18), transparent 65%),
    linear-gradient(160deg, #121a22, #0a0f14);
  border: 1px solid rgba(63, 224, 138, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(63, 224, 138, .1);
}
.contact::before { content: ""; position: absolute; left: clamp(.7rem, 6%, 5rem); top: 10%; bottom: 10%; width: 2px; background: linear-gradient(180deg, transparent, var(--neon-clair), transparent); box-shadow: 0 0 14px 2px rgba(63, 224, 138, .4); opacity: .6; }
.contact > * { position: relative; }
.contact p { color: var(--gris); margin: 0 auto 1.4rem; max-width: 36rem; }
.contact .petit-texte { margin: .9rem auto 0; font-size: .95rem; }
.lien-contact { margin: .6rem 0 0 !important; }
.lien-contact a { font-weight: 700; }

/* Apparition au défilement (navigateurs récents ; sinon tout est visible) */
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) {
  .carte, .etapes li, .faq details, .contact, .confiance li, .villes {
    animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
  }
  @keyframes apparait { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
} }

/* Pages texte */
.texte { max-width: 760px; padding: 2.5rem 1.25rem 3rem; overflow-wrap: break-word; }
.texte h1 { font-size: clamp(1.8rem, 4.5vw, 2.3rem); margin-top: 0; letter-spacing: -.015em; }
.texte h2 { font-size: 1.3rem; margin-top: 2rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--bord); background: var(--fond-2); padding: 2rem 0; font-size: .95rem; color: var(--gris); position: relative; }
.pied::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 224, 138, .5), transparent); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; align-items: center; }
.pied-marque { display: inline-flex; align-items: center; gap: .6rem; line-height: 1.3; flex-basis: 100%; }
.pied-marque strong { color: #fff; }
.pied-marque .logo-marque { width: 36px; height: 36px; }
.pied a { color: var(--gris); }
.pied a:hover { color: var(--neon-clair); }

/* Barre d'appel fixe sur téléphone */
.barre-appel { display: none; }
@media (max-width: 760px) {
  body.avec-barre { padding-bottom: 80px; }
  .barre-appel {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(11, 16, 22, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(63, 224, 138, .35);
    animation: barre .3s var(--sortie) .2s both;
  }
  .barre-appel .bouton { display: flex; width: 100%; min-height: 52px; }
  .entete nav a.bouton { display: none; }
}
@keyframes barre { from { transform: translateY(100%); } to { transform: none; } }

/* Formulaires */
.formulaire-page { max-width: 820px; padding: 2.5rem 1.25rem 3rem; }
.formulaire-page h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 .6rem; letter-spacing: -.015em; line-height: 1.15; }
.parcours { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.5rem; font-weight: 700; font-size: .92rem; }
.parcours span { background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: .25rem .8rem; }
.parcours em { font-style: normal; color: var(--gris); font-weight: 600; margin-left: .3rem; }
form fieldset { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); padding: 1.2rem 1.3rem .5rem; margin: 0 0 1.3rem; min-width: 0; }
form legend { font-weight: 800; font-size: 1.1rem; padding: 0 .4rem; display: flex; align-items: center; gap: .55rem; color: #fff; }
legend .num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--neon); color: var(--sur-neon); font-size: .95rem; font-variant-numeric: tabular-nums; box-shadow: 0 0 12px rgba(63, 224, 138, .45); }
.sous-titre { margin: .2rem 0 .7rem; font-weight: 700; }
.champ { margin: 0 0 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.champ > label { font-weight: 700; }
.facultatif { font-weight: 400; color: var(--gris); }
.aide { color: var(--gris); font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  font: inherit; color: var(--texte); background: var(--fond); width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--bord-fort); border-radius: 12px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
::placeholder { color: #8797a0; opacity: 1; }
input[type=text]:hover, input[type=email]:hover, input[type=tel]:hover, input[type=password]:hover, textarea:hover, select:hover { border-color: var(--neon); }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(63, 224, 138, .25); }
input:user-invalid, textarea:user-invalid { border-color: var(--rouge); }

/* Tuiles d'appareil (boutons radio) */
.grille-tuiles { display: grid; gap: .7rem; grid-template-columns: repeat(3, 1fr); margin: .4rem 0 1.2rem; }
@media (max-width: 600px) { .grille-tuiles { grid-template-columns: 1fr 1fr; } }
.tuile, .puce { position: relative; cursor: pointer; }
.tuile input, .puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tuile span {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center;
  min-height: 92px; padding: .9rem .6rem; border: 1.5px solid var(--bord); border-radius: 14px; background: var(--fond-2); font-weight: 700; font-size: .95rem; line-height: 1.25;
  transition: border-color .15s, background-color .15s, transform .15s var(--doux), box-shadow .15s;
}
.tuile svg { width: 30px; height: 30px; color: var(--neon); }
.tuile:hover span { border-color: rgba(63, 224, 138, .6); transform: translateY(-2px); }
.tuile:active span { transform: scale(.98); }
.tuile input:checked + span { border: 2px solid var(--neon); background: rgba(63, 224, 138, .1); box-shadow: var(--lueur); }
.tuile input:checked + span::after { content: "✓"; position: absolute; top: .4rem; right: .5rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--neon); color: var(--sur-neon); font-size: .8rem; display: grid; place-items: center; animation: coche .2s var(--sortie); }
.tuile input:focus-visible + span, .puce input:focus-visible + span { outline: 3px solid var(--anneau); outline-offset: 2px; }
@keyframes coche { from { transform: scale(0); } to { transform: scale(1); } }

/* Puces de problème (cases à cocher) */
.grille-puces { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.2rem; }
@media (max-width: 560px) { .grille-puces { grid-template-columns: 1fr; } }
.puce span {
  display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .55rem .9rem; border: 1.5px solid var(--bord); border-radius: 12px; background: var(--fond-2);
  transition: border-color .15s, background-color .15s, transform .15s var(--doux);
}
.puce span::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 6px; border: 2px solid var(--bord-fort); background: var(--fond); display: grid; place-items: center; color: var(--sur-neon); font-size: .8rem; font-weight: 800; transition: background-color .15s, border-color .15s; }
.puce:hover span { border-color: rgba(63, 224, 138, .6); }
.puce:active span { transform: scale(.98); }
.puce input:checked + span { border-color: var(--neon); background: rgba(63, 224, 138, .1); font-weight: 700; }
.puce input:checked + span::before { content: "✓"; background: var(--neon); border-color: var(--neon); }

/* Photos */
.zone-photos input[type=file] {
  font: inherit; color: var(--texte); width: 100%; padding: 1.1rem; border: 2px dashed var(--bord-fort); border-radius: 14px; background: var(--fond-2); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.zone-photos input[type=file]:hover { border-color: var(--neon); background: rgba(63, 224, 138, .06); }
.zone-photos input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; margin-right: .9rem; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--neon); background: transparent; color: var(--neon-clair); cursor: pointer; transition: background-color .15s;
}
.zone-photos input[type=file]::file-selector-button:hover { background: rgba(63, 224, 138, .15); }

label.case { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; cursor: pointer; padding: .3rem 0; min-height: 44px; }
label.case input { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .2rem; accent-color: var(--neon); }
.accord { background: rgba(63, 224, 138, .06); border: 1px solid rgba(63, 224, 138, .3); border-radius: var(--rayon); padding: .9rem 1.1rem; }
.en-erreur input, .en-erreur select, .en-erreur textarea { border-color: var(--rouge); }
.en-erreur .tuile span { border-color: var(--rouge); }
.erreur { color: var(--rouge); font-weight: 700; font-size: .95rem; }
.alerte { background: var(--rouge-fond); border: 1px solid #7a2f37; color: #ffd5d9; border-radius: var(--rayon); padding: .9rem 1.1rem; margin: 0 0 1.2rem; animation: fondu .25s var(--doux); }
.succes { background: rgba(63, 224, 138, .08); border: 1px solid rgba(63, 224, 138, .45); border-radius: var(--rayon); padding: 1.4rem 1.5rem 1.4rem 4.4rem; margin-bottom: 1.5rem; position: relative; animation: monte .4s var(--sortie) both; box-shadow: var(--lueur); }
.succes::before { content: "✓"; position: absolute; left: 1.3rem; top: 1.35rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--neon); color: var(--sur-neon); display: grid; place-items: center; font-weight: 800; box-shadow: 0 0 14px rgba(63, 224, 138, .5); animation: coche .35s var(--sortie) .15s both; }
.succes h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-court { max-width: 480px; }
@media (max-width: 560px) { button.envoyer { width: 100%; min-height: 56px; } }

/* Bouton pendant l'envoi */
.bouton.envoi { pointer-events: none; opacity: .9; }
.bouton.envoi::before { content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2.5px solid rgba(3, 23, 11, .3); border-top-color: var(--sur-neon); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Administration */
.admin { padding: 2rem 1.25rem 3rem; }
.admin-haut { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin h1 { margin: 0; }
.etat-courriel { color: var(--gris); }
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.onglets a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); }
.onglets a[aria-current="page"] { background: var(--neon); color: var(--sur-neon); border-color: var(--neon); }
.liste-demandes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.liste-demandes a { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); text-decoration: none; color: var(--texte); transition: border-color .15s, box-shadow .15s; }
.liste-demandes a:hover { border-color: rgba(63, 224, 138, .55); box-shadow: var(--lueur); }
.liste-demandes .num { color: var(--gris); }
.liste-demandes .date, .admin .date { color: var(--gris); font-size: .95rem; }
.etiquette { font-size: .85rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte); }
.etiquette.s-nouvelle { background: var(--neon); border-color: var(--neon); color: var(--sur-neon); }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.2rem; }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .fiche { grid-template-columns: 1fr; } .fiche dd { margin-bottom: .5rem; } }
.photos { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.photos img { width: 180px; height: 135px; object-fit: cover; border-radius: 10px; border: 1px solid var(--bord); }
.effacer { margin-top: 2rem; border-top: 1px solid var(--bord); padding-top: 1rem; }

/* Moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .flotte, .lueur-pulse, .trait, .charge { animation: none !important; }
}
