/* KARINI — feuille de style de l'application (jetons repris du prototype). Base 18 px : lisibilité demandée. */
:root {
  --orange: #FF6B00;
  --orange-vif: #FF8A1F;
  --orange-fonce: #C94608;
  --braise: #EE3E1E;
  --or: #FFD147;
  --ardoise: #3A4256;
  --encre: #1E202E;
  --encre-2: #524B5C;
  --fond: #FFF9F3;
  --carte: #FFFFFF;
  --teinte: #FFE8D1;
  --filet: #F2D7BC;
  --piste: #FBEBD9;
  --vert: #1F8A52;
  --vert-f: #E0F5EA;
  --rouge: #D63420;
  --rouge-f: #FDE5E0;
  --info: #2260B8;
  --info-f: #E3EEFC;
  --ombre: 0 2px 6px rgba(217, 74, 12, .08), 0 12px 28px rgba(217, 74, 12, .11);
  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-marque: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --f-arabe: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --r: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange: #F5A04E;
    --orange-fonce: #F8B472;
    --braise: #FF7A5C;
    --ardoise: #9AA3BA;
    --encre: #ECEEF4;
    --encre-2: #AAB1C1;
    --fond: #13151B;
    --carte: #1C1F28;
    --teinte: #2A1E14;
    --filet: #2D313C;
    --piste: #2A2E38;
    --vert: #5CC48A;
    --vert-f: #15301F;
    --rouge: #FF7D6B;
    --rouge-f: #3A1A16;
    --info: #7FB0F0;
    --info-f: #16263B;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --orange: #F5A04E;
  --orange-fonce: #F8B472;
  --braise: #FF7A5C;
  --ardoise: #9AA3BA;
  --encre: #ECEEF4;
  --encre-2: #AAB1C1;
  --fond: #13151B;
  --carte: #1C1F28;
  --teinte: #2A1E14;
  --filet: #2D313C;
  --piste: #2A2E38;
  --vert: #5CC48A;
  --vert-f: #15301F;
  --rouge: #FF7D6B;
  --rouge-f: #3A1A16;
  --info: #7FB0F0;
  --info-f: #16263B;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  overflow-x: clip;
}

body,
main {
  overflow-x: clip;
}

/* rien ne doit dépasser la largeur du téléphone */
img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--encre);
  font: 400 1rem/1.6 var(--f-texte);
  -webkit-font-smoothing: antialiased;
}

[lang="ar"],
html[dir="rtl"] body {
  font-family: var(--f-arabe);
}

h1,
h2,
h3 {
  font-family: var(--f-titre);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

a {
  color: var(--orange-fonce);
}

.aller-contenu {
  position: absolute;
  left: -999px;
}

.aller-contenu:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--carte);
  padding: .5rem 1rem;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Couleurs des rubriques (reprises du prototype, plus vives) : chaque rubrique se reconnaît d'un coup d'œil */
.c-orange {
  --c: #FF6B00;
}

.c-bleu {
  --c: #256EE0;
}

.c-vert {
  --c: #14947A;
}

.c-violet {
  --c: #7347D6;
}

.c-rouge {
  --c: #E63B24;
}

.c-rose {
  --c: #E11D74;
}

.c-turquoise {
  --c: #0E7490;
}

/* En-tête : bandeau orange vif en haut + marque KARINI lumineuse + barre de navigation colorée */
.tete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #FFFBF7 0%, #FFF0DF 100%);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 4px 20px rgba(238, 62, 30, .14);
}

/* pas de backdrop-filter : il piégerait le tiroir (position: fixed) dans l'en-tête */
.bandeau-haut {
  background: linear-gradient(90deg, #E23B16 0%, #FF6B00 50%, #FF8C1A 100%);
  color: #fff;
  font-size: .92rem;
}

.bandeau-haut-in {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: .42rem 16px;
  text-align: center;
}

.bandeau-haut b {
  font-weight: 800;
}

.bandeau-lien {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .48);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.bandeau-lien:hover {
  background: #fff;
  color: var(--orange-fonce);
}

.tete-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.2rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: .55rem 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--encre);
  flex: none;
}

.logo .torche {
  filter: drop-shadow(0 3px 8px rgba(255, 107, 0, .38));
}

.logo b {
  display: block;
  font-family: var(--f-marque);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: .96;
  letter-spacing: .04em;
  color: #EA4E11;
  background: linear-gradient(135deg, #FF7B00 0%, #F04A14 55%, #D42C08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  display: block;
  font-family: "Reem Kufi", var(--f-arabe);
  font-style: normal;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #E04A0E;
}

.torche .fl {
  transform-origin: 32px 42px;
  animation: flamme 1.2s ease-in-out infinite alternate;
}

@keyframes flamme {
  to {
    transform: scale(.95, 1.05) rotate(1.5deg);
  }
}

.tete-act {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: none;
  margin-left: auto;
}

/* Switch mode jour (soleil) / nuit (croissant de lune) */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 76px;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid #F2BE86;
  background: linear-gradient(135deg, #FFF2DA 0%, #FFD699 100%);
  box-shadow: inset 0 2px 5px rgba(201, 70, 8, .12), 0 2px 8px rgba(238, 62, 30, .14);
  cursor: pointer;
  flex: none;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .15s ease;
}

.theme-switch:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 5px rgba(201, 70, 8, .12), 0 4px 12px rgba(238, 62, 30, .24);
}

.ts-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.ts-soleil {
  color: #D95B00;
}

.ts-lune {
  color: #8C6A4A;
  opacity: .72;
}

.ts-curseur {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(180, 68, 8, .28);
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), background .25s ease, box-shadow .25s ease;
}

.theme-switch[aria-checked="true"] {
  background: linear-gradient(135deg, #1B2238 0%, #2C385E 100%);
  border-color: #4D5E8F;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .35);
}

.theme-switch[aria-checked="true"] .ts-curseur {
  transform: translateX(36px);
  background: #3B4B7C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.theme-switch[aria-checked="true"] .ts-soleil {
  color: #93A0C2;
  opacity: .55;
}

.theme-switch[aria-checked="true"] .ts-lune {
  color: #FFD866;
  opacity: 1;
  transform: rotate(-10deg);
}

:root[data-theme="dark"] .tete {
  background: linear-gradient(180deg, #161923 0%, #1D2130 100%);
  box-shadow: 0 4px 22px rgba(0, 0, 0, .45);
}

:root[data-theme="dark"] .hero-site {
  background: radial-gradient(circle at 86% 18%, rgba(255, 107, 0, .20) 0%, rgba(255, 107, 0, 0) 52%), linear-gradient(160deg, #1B1E2A 0%, #151822 55%, #13151B 100%);
}

:root[data-theme="dark"] .hero-cas {
  background: linear-gradient(90deg, #2D2117, #221B15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

:root[data-theme="dark"] .hero-photo>img {
  border-color: #2B3040;
}

:root[data-theme="dark"] .bulle {
  border-color: #363C4E;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}

:root[data-theme="dark"] .sec-teinte {
  background: linear-gradient(180deg, #1A1D27 0%, #151820 100%);
  border-top-color: var(--filet);
  border-bottom-color: var(--filet);
}

:root[data-theme="dark"] .btn-ardoise {
  background: #2C3448;
  border-color: #46506B;
  color: #F8FAFC;
}

:root[data-theme="dark"] .btn-blanc {
  background: #222634;
  border-color: #3A4258;
  color: #F8B472;
}

:root[data-theme="dark"] .btn-blanc:hover {
  background: #2A3042;
  color: #FFD09B;
}

.en-ligne {
  display: inline;
  margin: 0;
}

/* Bandeau de navigation principal (ordinateur) : barre orange vif avec pastilles colorées + pictogrammes visibles */
.tete-nav {
  background: linear-gradient(90deg, #E84617 0%, #FF6B00 45%, #FF821A 100%);
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.nav-principale {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: .45rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: .48rem 16px;
}

/* Garde-fou (site.js) : si le menu ne tient pas sur une ligne, on passe au tiroir */
.tete.nav-serree .tete-nav {
  display: none;
}

.tete.nav-serree .nav-mobile {
  display: block;
}

.nav-item {
  position: relative;
  --nav-bg: var(--c);
}

.nav-item.c-orange {
  --nav-bg: #E11D74;
}

.nav-item.c-bleu {
  --nav-bg: #2563EB;
}

.nav-item.c-vert {
  --nav-bg: #15803D;
}

.nav-item.c-violet {
  --nav-bg: #7C3AED;
}

.nav-item.c-rouge {
  --nav-bg: #C81E2B;
}

.nav-item.c-turquoise {
  --nav-bg: #0E7490;
}

.nav-lien {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .85rem .35rem .38rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  background: var(--nav-bg);
  border: 1.5px solid rgba(255, 255, 255, .52);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}

.nav-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  flex: none;
  transition: background .15s, color .15s;
}

.nav-fl {
  font-size: .78rem;
  opacity: .85;
  transition: transform .2s;
}

.nav-item:hover .nav-fl,
.nav-item:focus-within .nav-fl {
  transform: rotate(180deg);
}

.nav-lien:hover,
.nav-item:focus-within>.nav-lien,
.nav-lien.on {
  background: #fff;
  color: var(--nav-bg);
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(130, 30, 0, .22);
}

.nav-lien:hover .nav-ico,
.nav-item:focus-within>.nav-lien .nav-ico,
.nav-lien.on .nav-ico {
  background: var(--nav-bg);
  color: #fff;
}

.nav-dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  padding: .55rem;
  margin-top: .35rem;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-top: 5px solid var(--nav-bg);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(30, 34, 48, .16);
  z-index: 50;
}

.nav-dd::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  display: grid;
}

.nav-dd a {
  display: grid;
  padding: .55rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--encre);
}

.nav-dd a:hover,
.nav-dd a:focus-visible {
  background: color-mix(in srgb, var(--nav-bg) 14%, var(--carte));
}

.nav-dd small {
  color: var(--encre-2);
}

/* Menu téléphone : tiroir latéral (<details> natif). Le voile derrière le tiroir est le <summary> lui-même :
   toucher en dehors du menu le referme sans JavaScript ; site.js ajoute Échap, ✕ et la fermeture après un clic sur un lien. */
.nav-mobile {
  display: none;
  flex: none;
}

.nav-mobile summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 62, 30, .3);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.burger {
  display: grid;
  gap: 5px;
  width: 22px;
}

.burger i {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
}

.nav-mobile[open] summary::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 22, 30, .5);
  animation: voile .2s ease-out;
}

.nav-mobile-panneau {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 400px);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--fond);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: tiroir .25s ease-out;
}

@keyframes tiroir {
  from {
    transform: translateX(100%);
  }
}

@keyframes voile {
  from {
    opacity: 0;
  }
}

.nm-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nm-marque {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nm-marque b {
  font-family: var(--f-marque);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .03em;
}

.nm-fermer {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--piste);
  color: var(--encre);
  font-size: 1.2rem;
  cursor: pointer;
}

.nm-groupe {
  background: var(--carte);
  border-radius: 16px;
  padding: .5rem;
  border: 1px solid var(--filet);
  border-left: 5px solid var(--c);
}

.nm-titre {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: .8rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--encre);
  text-decoration: none;
}

.nm-titre img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.nm-fl {
  font-size: 1.6rem;
  color: var(--c);
  padding-right: .3rem;
}

.nm-liens {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

.nm-liens a {
  padding: .4rem .8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, var(--carte));
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.nm-bas {
  display: grid;
  background: var(--carte);
  border-radius: 16px;
  border: 1px solid var(--filet);
  overflow: hidden;
}

.nm-bas a {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .85rem 1rem;
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--filet);
}

.nm-bas a:last-child {
  border-bottom: 0;
}

.nm-compte {
  display: grid;
  gap: .5rem;
  margin-top: auto;
}

.nm-compte form {
  display: block;
}

.ico-compte {
  display: none;
}

/* Barre d'action en bas de l'écran (téléphone) */
.barre-mobile {
  display: none;
}

/* Pied de page */
.pied {
  margin-top: auto;
  background: #1B1C28;
  color: #D7D2CC;
  font-size: .95rem;
  border-top: 5px solid var(--orange);
}

.pied a {
  color: #FFF2E4;
  text-decoration: none;
}

.pied a:hover {
  color: var(--or);
  text-decoration: underline;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 16px 1.5rem;
}

.pied-grille>div {
  display: grid;
  align-content: start;
  gap: .45rem;
}

.pied-grille p {
  margin: 0;
}

.pied-nom {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pied-nom b {
  font-family: var(--f-marque);
  font-weight: 400;
  font-size: 2rem;
  color: #FF9A2E;
  background: linear-gradient(135deg, #FFD147, #FF6B00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .04em;
}

.pied-titre {
  font-family: var(--f-texte);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FF9436;
  margin: 0 0 .2rem;
}

.pied-tel {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--or) !important;
}

.pied-bas {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 16px 1.4rem;
  border-top: 1px solid #353042;
}

.acces-equipe {
  opacity: .75;
}

.devise {
  font-style: italic;
}

/* Mise en page */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 16px;
}

.hero {
  max-width: 760px;
  padding-block: clamp(1rem, 6vw, 4rem);
}

.sur-titre {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-fonce);
  margin: 0 0 .4rem;
}

.chapo {
  font-size: 1.25rem;
  color: var(--encre-2);
  max-width: 62ch;
}

.sous {
  font-size: 1.12rem;
  color: var(--encre-2);
  margin: 0 0 1.2rem;
}

.note {
  color: var(--encre-2);
  font-size: .95rem;
}

.carte {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--r);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  box-shadow: var(--ombre);
}

.etroit {
  max-width: 560px;
  margin: 0 auto;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.4rem 0 1rem;
}

/* Boutons et liens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--filet);
  background: var(--carte);
  color: var(--encre);
  font: 700 1rem var(--f-texte);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ombre);
}

.btn.gros {
  min-height: 56px;
  padding: .8rem 1.65rem;
  font-size: 1.1rem;
}

.btn.plein {
  width: 100%;
}

.btn-orange {
  background: linear-gradient(135deg, #FF7B00, #EE3E1E);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(238, 62, 30, .28);
}

.btn-orange:hover {
  background: linear-gradient(135deg, #FF8C1A, #D93214);
  box-shadow: 0 8px 24px rgba(238, 62, 30, .38);
}

.btn-ardoise {
  background: var(--ardoise);
  border-color: transparent;
  color: #fff;
}

.btn-appel {
  background: linear-gradient(135deg, #FF7B00, #EE3E1E);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(238, 62, 30, .35);
}

.lien {
  font-weight: 700;
}

.retour-haut {
  max-width: 1000px;
  margin: 0 auto 1rem;
}

/* Formulaires */
form {
  display: grid;
  gap: 1rem;
}

.champ {
  display: grid;
  gap: .35rem;
  font-weight: 700;
}

.champ input,
.grille-form input {
  width: 100%;
  min-height: 52px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--filet);
  border-radius: 12px;
  background: var(--carte);
  color: var(--encre);
  font: 400 1.08rem var(--f-texte);
}

.champ input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent);
}

.champ-erreur {
  color: var(--rouge);
  font-weight: 600;
  font-size: .95rem;
}

.case {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}

.case input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.grille-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.plein {
  grid-column: 1 / -1;
}

/* Messages */
.messages {
  display: grid;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.flash {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.flash-erreur {
  background: var(--rouge-f);
  color: var(--rouge);
}

.flash-ok {
  background: var(--vert-f);
  color: var(--vert);
}

.flash-info,
.flash-message {
  background: var(--info-f);
  color: var(--info);
}

/* Connexion */
.cnx {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cnx-cote {
  display: grid;
  align-content: center;
  gap: .6rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border-radius: var(--r);
  color: #fff;
  background: linear-gradient(135deg, #FF7A00 0%, #EE3E1E 100%);
  box-shadow: 0 14px 34px rgba(238, 62, 30, .28);
}

.cnx-cote h2 {
  color: #fff;
}

.cnx-cote p {
  margin: 0;
  font-size: 1.08rem;
}

.cnx-cote .coches li::before {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

.etapes {
  padding-inline-start: 1.3rem;
  display: grid;
  gap: .8rem;
  margin: 0 0 1.2rem;
}

.cle {
  display: block;
  margin: .5rem 0;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--piste);
  font: 700 1.2rem/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  word-break: break-all;
}

/* Espaces */
.bienvenue h1 {
  margin-bottom: .3rem;
}

.a-venir {
  display: grid;
  gap: .6rem;
  padding: 0;
  list-style: none;
  max-width: 640px;
}

.a-venir li {
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--carte);
  border: 1px dashed var(--filet);
}

.a-venir li::before {
  content: "⏳ ";
}

/* Administration */
.admin-grille {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-menu {
  display: grid;
  gap: .3rem;
  position: sticky;
  top: 1rem;
}

.admin-qui {
  margin: 0 0 .6rem;
}

.admin-qui b,
.admin-qui small {
  display: block;
}

.admin-qui small {
  color: var(--encre-2);
}

.admin-lien {
  display: flex;
  gap: .6rem;
  align-items: center;
  padding: .65rem .8rem;
  border-radius: 12px;
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
}

.admin-lien:hover {
  background: var(--piste);
}

.admin-lien.on {
  background: var(--teinte);
  color: var(--orange-fonce);
}

.admin-contenu {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
}

.kpi {
  display: grid;
  gap: .1rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--carte);
  border: 1px solid var(--filet);
}

.kpi span {
  color: var(--encre-2);
  font-weight: 600;
}

.kpi b {
  font-family: var(--f-titre);
  font-size: 2rem;
}

.kpi small {
  color: var(--encre-2);
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--filet);
  text-align: start;
  vertical-align: top;
}

.table th {
  color: var(--encre-2);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.nowrap {
  white-space: nowrap;
}

/* Erreurs */
.erreur {
  text-align: center;
}

.erreur-code {
  font-family: var(--f-marque);
  font-size: 4rem;
  color: var(--orange);
  margin: 0;
}

/* Utilitaires */
.centre {
  text-align: center;
  margin-inline: auto;
}

.h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.h3 {
  font-size: 1.35rem;
}

h3 {
  font-family: var(--f-titre);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 .4rem;
}

.espace-haut {
  margin-top: 2.2rem;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pre {
  white-space: pre-line;
}

.page-etroite {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 16px;
}

.btn-blanc {
  background: #fff;
  border-color: #fff;
  color: var(--orange-fonce);
  box-shadow: 0 6px 18px rgba(140, 35, 0, .16);
}

.btn-blanc:hover {
  background: #FFF8F0;
  color: #B83206;
}

.btn-contour {
  background: var(--carte);
  border: 2px solid var(--orange);
  color: var(--orange-fonce);
}

.btn-contour:hover {
  background: var(--teinte);
}

.btn-petit {
  min-height: 40px;
  padding: .35rem .9rem;
  font-size: .95rem;
}

.btn-danger {
  border-color: var(--rouge);
  color: var(--rouge);
}

.coches {
  list-style: none;
  padding: 0;
  margin: .8rem 0;
  display: grid;
  gap: .55rem;
}

.coches li {
  position: relative;
  padding-left: 2rem;
}

.coches li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
}

.coches.grandes {
  font-size: 1.1rem;
}

/* Pastilles (statuts) */
.pastille {
  display: inline-block;
  padding: .15rem .65rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--piste);
  color: var(--encre-2);
}

.p-ok,
.s-converti {
  background: var(--vert-f);
  color: var(--vert);
}

.p-warn,
.s-sansrep {
  background: #FFF3D6;
  color: #8A5A00;
}

.p-info,
.s-rappel,
.s-propose {
  background: var(--info-f);
  color: var(--info);
}

.p-alerte {
  background: var(--rouge-f);
  color: var(--rouge);
}

.s-nouveau {
  background: var(--teinte);
  color: var(--orange-fonce);
}

.s-essai {
  background: #EEE9FB;
  color: #5B3FB8;
}

@media (prefers-color-scheme: dark) {

  :root:not([data-theme="light"]) .p-warn,
  :root:not([data-theme="light"]) .s-sansrep {
    background: #3A2E12;
    color: #F5C969;
  }

  :root:not([data-theme="light"]) .s-essai {
    background: #261E3E;
    color: #B9A6F5;
  }
}

:root[data-theme="dark"] .p-warn,
:root[data-theme="dark"] .s-sansrep {
  background: #3A2E12;
  color: #F5C969;
}

:root[data-theme="dark"] .s-essai {
  background: #261E3E;
  color: #B9A6F5;
}

/* ======================================================================= Site public */
main.site {
  width: 100%;
}

.sec {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sec-in {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 16px;
}

.sec-teinte {
  background: linear-gradient(180deg, #FFE6CA 0%, #FFF3E5 100%);
  border-top: 1px solid #F6CFA8;
  border-bottom: 1px solid #F6CFA8;
}

.sec-orange {
  background: radial-gradient(circle at 85% 15%, rgba(255, 212, 71, .32), transparent 50%), linear-gradient(135deg, #FF7A00 0%, #F04E18 58%, #D93412 100%);
  color: #fff;
}

.sec-orange h2,
.sec-orange h3 {
  color: #fff;
}

.deux-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.trio-clair article {
  padding: 1.6rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
}

.trio-clair .grand-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  font-size: 2rem;
  margin-bottom: .8rem;
  box-shadow: 0 8px 20px rgba(120, 25, 0, .22);
}

.grand-ico {
  font-size: 2.2rem;
  display: block;
  margin-bottom: .4rem;
}

/* Accueil : bandeau d'ouverture chaleureux, vibrant et orange avec photo + forme organique */
.hero-site {
  position: relative;
  background: radial-gradient(circle at 86% 18%, #FFC98B 0%, rgba(255, 201, 139, 0) 52%), linear-gradient(160deg, #FFE4C4 0%, #FFF3E4 55%, #FFFBF7 100%);
  padding-block: clamp(1.4rem, 5vw, 3.8rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-photo {
  order: 2;
  position: relative;
  margin: 0;
  padding: 1.1rem;
}

.hero-rond {
  position: absolute;
  inset: 0;
  border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, #FF851B 0%, #FF6B00 48%, #EE3E1E 100%);
  box-shadow: 0 22px 54px rgba(238, 62, 30, .32);
  animation: respire 9s ease-in-out infinite;
}

@keyframes respire {
  50% {
    border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%;
    transform: rotate(3deg);
  }
}

.hero-photo>img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 36px 36px 36px 96px;
  border: 7px solid #fff;
  box-shadow: 0 24px 60px rgba(184, 70, 10, .3);
}

.hero-texte {
  order: 1;
}

.hero-texte h1::after {
  content: "";
  display: block;
  width: 110px;
  height: 8px;
  border-radius: 8px;
  margin-top: .8rem;
  background: linear-gradient(90deg, var(--orange), var(--braise));
}

.hero-cas {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  padding: .42rem 1.15rem .42rem .6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFE1C0, #FFF3E5);
  border: 2px solid var(--orange);
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  line-height: 1.2;
  color: var(--orange-fonce);
  box-shadow: 0 6px 20px rgba(255, 107, 0, .2);
}

.hero-cas .torche {
  width: 28px;
  height: auto;
  flex: none;
}

.hero-tel {
  color: var(--encre-2);
  margin: 0;
}

.bulle {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: .6rem;
  align-items: center;
  padding: .7rem 1rem;
  border-radius: 16px;
  background: var(--carte);
  box-shadow: 0 10px 28px rgba(184, 70, 10, .18);
  border: 2px solid #FFD6AD;
}

.bulle span:first-child {
  font-size: 1.5rem;
}

.bulle b,
.bulle small {
  display: block;
}

.bulle small {
  color: var(--encre-2);
}

.b1 {
  top: 4%;
  left: -4%;
}

.b3 {
  bottom: 4%;
  right: -2%;
}

.direct {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EE3E1E;
  box-shadow: 0 0 0 5px rgba(238, 62, 30, .28);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(238, 62, 30, .08);
  }
}

.hero-vague {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 54px;
  fill: #EE4619;
  display: block;
}

.bande-chiffres {
  background: linear-gradient(100deg, #EE4619 0%, #FF6B00 50%, #F58216 100%);
  color: #fff;
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.9rem;
  text-align: center;
}

.chiffres b {
  display: block;
  font-family: var(--f-marque);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  color: #FFF4C2;
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(120, 25, 0, .22);
}

.chiffres span {
  font-weight: 600;
  opacity: .96;
}

/* Portes d'entrée (offres) */
.portes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .portes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.porte {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: .2rem .6rem;
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--encre);
  background: var(--carte);
  border: 1.5px solid var(--filet);
  border-bottom: 6px solid var(--c);
  box-shadow: var(--ombre);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.porte:hover {
  transform: translateY(-4px);
  border-color: var(--c);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 24%, transparent);
}

.porte-photo {
  grid-column: 1 / -1;
  position: relative;
  display: block;
}

.porte-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s;
}

.porte:hover .porte-photo img {
  transform: scale(1.04);
}

.porte-ico {
  position: absolute;
  left: .8rem;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.45rem;
  background: var(--c);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent);
}

.porte-txt {
  padding: 1.7rem 1.1rem 1rem;
}

.porte-txt small {
  display: block;
  color: var(--encre-2);
  font-size: .9rem;
  font-weight: 600;
}

.porte-txt b {
  font-size: 1.25rem;
  font-family: var(--f-titre);
}

.porte-fl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: .9rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, var(--carte));
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c);
  transition: background .15s, color .15s, transform .2s;
}

.porte:hover .porte-fl {
  background: var(--c);
  color: #fff;
  transform: translateX(3px);
}

/* Photos : méthode, cartes illustrées, en-têtes des pages */
.photo-cadre {
  margin: 0;
}

.photo-cadre img,
.page-tete-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--ombre);
}

.methode-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.trio-lignes {
  display: grid;
  gap: .9rem;
  margin: 1rem 0 1.2rem;
}

.ligne-ico {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
}

.ligne-ico-rond {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(238, 62, 30, .28);
}

.ligne-ico h3 {
  margin: 0 0 .1rem;
}

.ligne-ico p {
  margin: 0;
  color: var(--encre-2);
}

.duo-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.carte-photo {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--ombre);
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}

.carte-photo:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.carte-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .4s;
}

.carte-photo:hover img {
  transform: scale(1.04);
}

.carte-photo-txt {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: .3rem;
  padding: 3.5rem 1.3rem 1.2rem;
  background: linear-gradient(transparent, rgba(25, 14, 8, .9));
}

.carte-photo-txt small {
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--or);
}

.carte-photo-txt b {
  font-family: var(--f-titre);
  font-size: 1.35rem;
  line-height: 1.2;
}

.carte-photo-txt .lien {
  color: #FFD147;
}

.page-tete-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.page-tete-photo {
  order: 2;
  margin: 0;
}

.page-tete-photo img {
  border: 5px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 46px rgba(40, 12, 0, .32);
  border-radius: 26px;
}

/* Méthode, frise */
.etape {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--r);
  background: var(--carte);
  border: 1.5px solid var(--filet);
  border-top: 5px solid var(--orange);
  box-shadow: var(--ombre);
}

.etape-n {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
  font-weight: 800;
  margin-right: .55rem;
  box-shadow: 0 4px 12px rgba(238, 62, 30, .3);
  flex: none;
}

.etape-ico {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.6rem;
}

.etape h3 {
  margin-top: .6rem;
}

.frise {
  counter-reset: f;
  list-style: none;
  padding: 0;
  display: grid;
  gap: .9rem;
  margin: 1.2rem 0 1.6rem;
}

.frise li {
  counter-increment: f;
  position: relative;
  padding-left: 3rem;
}

.frise li::before {
  content: counter(f);
  position: absolute;
  left: 0;
  top: -.1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(238, 62, 30, .28);
}

.liste-def {
  display: grid;
  gap: .2rem;
  margin: 0;
}

.liste-def dt {
  font-weight: 800;
  margin-top: .6rem;
  color: var(--orange-fonce);
}

.liste-def dd {
  margin: 0;
  color: var(--encre-2);
}

/* Tarifs */
.tarifs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 1rem;
  align-items: stretch;
}

.tarif {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.6rem;
  border-radius: var(--r);
  background: var(--carte);
  border: 1.5px solid var(--filet);
  box-shadow: var(--ombre);
}

.tarif .btn {
  margin-top: auto;
}

.tarif.recommande {
  border: 2.5px solid var(--orange);
  background: linear-gradient(180deg, #FFE8CF 0%, #FFFFFF 44%);
  box-shadow: 0 16px 38px rgba(255, 107, 0, .22);
}

.ruban {
  position: absolute;
  top: -14px;
  left: 1.4rem;
  padding: .22rem .9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--braise), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(238, 62, 30, .32);
}

.prix {
  margin: .2rem 0 0;
}

.prix b {
  font-family: var(--f-titre);
  font-size: 2.2rem;
  color: var(--orange-fonce);
}

.tarif-sous {
  color: var(--encre-2);
  margin: 0;
}

/* Entête des pages intérieures : bandeau richement coloré (orange ou couleur de rubrique) */
.page-tete {
  padding-block: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
  background: radial-gradient(circle at 88% 18%, rgba(255, 214, 92, .4), transparent 48%), linear-gradient(125deg, #FF7B00 0%, #F35320 58%, #D83512 100%);
  border-bottom: 5px solid #B52A0A;
}

.page-tete.c-bleu,
.page-tete.c-vert,
.page-tete.c-violet,
.page-tete.c-rouge {
  background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .22), transparent 48%), linear-gradient(125deg, var(--c) 0%, color-mix(in srgb, var(--c) 64%, #1A1626) 100%);
  border-bottom: 5px solid color-mix(in srgb, var(--c) 55%, #000);
}

.page-tete.petite {
  padding-block: clamp(1.6rem, 3.8vw, 2.5rem);
}

.page-tete h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(70, 15, 0, .2);
}

.page-tete .sur-titre {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #FFF8E6;
  margin-bottom: .75rem;
}

.page-tete .chapo,
.page-tete .hero-tel,
.page-tete .note {
  color: rgba(255, 255, 255, .94);
}

.page-tete .ariane {
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: .8rem;
}

.page-tete .ariane a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.page-tete .ariane a:hover {
  text-decoration: underline;
}

.page-tete .btn-appel {
  background: #fff;
  color: var(--orange-fonce);
  box-shadow: 0 8px 22px rgba(90, 20, 0, .22);
}

.page-tete .btn-appel:hover {
  background: #FFF5E8;
}

.page-tete .btn-blanc {
  background: rgba(255, 255, 255, .18);
  border: 2px solid #fff;
  color: #fff;
  box-shadow: none;
}

.page-tete .btn-blanc:hover {
  background: #fff;
  color: var(--orange-fonce);
}

.page-tete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem 1.05rem;
  border-radius: 999px;
  background: #fff;
  color: var(--orange-fonce);
  border: 2px solid #fff;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(90, 20, 0, .2);
  transition: transform .15s, background .15s, box-shadow .15s;
}

.btn-retour:hover {
  transform: translateX(-2px);
  background: #FFF4E6;
  box-shadow: 0 8px 22px rgba(90, 20, 0, .28);
}

.ariane {
  font-size: .95rem;
  color: var(--encre-2);
  margin-bottom: .8rem;
}

.ariane a {
  color: var(--encre-2);
}

/* Matières */
.mats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.mat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: var(--carte);
  border: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
}

.mat:hover {
  border-color: var(--orange);
}

.mat b,
.mat small {
  display: block;
}

.mat small {
  color: var(--encre-2);
  font-family: var(--f-arabe);
}

.mat-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teinte);
  color: var(--orange-fonce);
  font-weight: 800;
  font-size: 1.2rem;
}

.mat-ico.petit {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.faq {
  border-bottom: 1px solid var(--filet);
  padding: .7rem 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: .5rem 0 0;
  color: var(--encre-2);
}

/* Contact */
.contact-tel {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--carte);
  border: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
  max-width: 420px;
}

.contact-tel>span:first-child {
  font-size: 1.6rem;
}

.contact-tel small,
.contact-tel b {
  display: block;
}

.contact-tel b {
  font-size: 1.3rem;
}

.contact-tel small {
  color: var(--encre-2);
}

.b2b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.b2b>div {
  max-width: 720px;
}

.texte-long {
  max-width: 820px;
}

.texte-long h2 {
  margin-top: 1.8rem;
}

.texte-long li {
  margin-bottom: .4rem;
}

/* Formulaires du site */
.form-demande {
  display: grid;
  gap: 1rem;
}

.form-demande h2 {
  margin: 0;
}

.form-demande .sous {
  margin: 0;
}

.champ select,
.champ textarea {
  width: 100%;
  min-height: 52px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--filet);
  border-radius: 12px;
  background: var(--carte);
  color: var(--encre);
  font: 400 1.08rem var(--f-texte);
}

.champ textarea {
  min-height: 100px;
  resize: vertical;
}

.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent);
}

.case {
  align-items: flex-start;
}

.case input {
  flex: none;
  margin-top: .25rem;
}

/* Leçon d'essai */
.assistant {
  display: grid;
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
  min-width: 0;
}

.etape-form {
  border: 1.5px solid var(--filet);
  border-top: 5px solid var(--orange);
  margin: 0;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.etape-form legend {
  display: flex;
  align-items: center;
  font-family: var(--f-titre);
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0 .5rem;
  max-width: 100%;
}

.etape-form .sous {
  margin: 0;
}

.choix-mat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: .75rem;
  min-width: 0;
}

.choix {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .2rem .7rem;
  padding: .85rem 1rem;
  border: 2px solid var(--filet);
  border-radius: 14px;
  cursor: pointer;
  background: var(--carte);
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.choix input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choix .mat-ico {
  grid-row: span 2;
  background: linear-gradient(135deg, #FFE2C2, #FFD1A1);
  color: var(--orange-fonce);
}

.choix .pastille {
  justify-self: start;
  font-size: .78rem;
}

.choix:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, .14);
}

.choix:has(input:checked) {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FFF2E3, #FFE1C2);
  box-shadow: 0 6px 20px rgba(255, 107, 0, .22);
}

.choix:has(input:checked) .mat-ico {
  background: linear-gradient(135deg, var(--orange), var(--braise));
  color: #fff;
}

.choix:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.puces-champ {
  border: 0;
  padding: 0;
  margin: 0;
}

.puces-champ legend {
  font-weight: 700;
  margin-bottom: .5rem;
  padding: 0;
}

.puces {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.puce {
  position: relative;
  cursor: pointer;
}

.puce input {
  position: absolute;
  opacity: 0;
}

.puce span {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--filet);
  background: var(--carte);
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}

.puce input:checked+span {
  background: linear-gradient(135deg, var(--orange), var(--braise));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(238, 62, 30, .28);
}

.puce input:focus-visible+span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.assistant-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .5rem;
}

.assistant-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.succes {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.succes-ico {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--vert-f);
  color: var(--vert);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.succes .btns {
  justify-content: center;
}

.recap {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .45rem 1.2rem;
  text-align: start;
  margin: 1.2rem 0;
}

.recap dt {
  font-weight: 700;
  color: var(--encre-2);
}

.recap dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Double authentification */
.qr svg {
  display: block;
  width: 220px;
  height: auto;
  margin: .8rem 0;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--filet);
}

/* ======================================================================= Administration */
.carte-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.carte-tete h1,
.carte-tete h2 {
  margin-bottom: .2rem;
}

.badge {
  margin-left: auto;
  min-width: 26px;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: var(--braise);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-align: center;
}

a.kpi {
  color: var(--encre);
  text-decoration: none;
}

a.kpi:hover {
  border-color: var(--orange);
}

.kpi-orange {
  background: var(--teinte);
  border-color: var(--orange);
}

.kpi-alerte {
  background: var(--rouge-f);
  border-color: var(--rouge);
}

.kpi .kpi-texte {
  font-size: 1.2rem;
}

.recherche {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: end;
  grid-template-columns: none;
}

.recherche .champ {
  flex: 1 1 240px;
}

.alerte-carte {
  border-left: 5px solid var(--braise);
}

.liste-simple {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .4rem;
}

.kanban-scroll {
  overflow-x: auto;
  padding-bottom: .5rem;
}

.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: .8rem;
  min-width: min-content;
}

.kcol {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: .7rem;
  border-radius: 16px;
  background: var(--piste);
  min-height: 160px;
}

.kcol-titre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-texte);
  font-size: 1rem;
  margin: 0 0 .2rem;
}

.kcol-titre span {
  min-width: 28px;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: var(--carte);
  text-align: center;
  font-size: .9rem;
}

.kcarte {
  display: grid;
  gap: .15rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: var(--carte);
  border: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
}

.kcarte:hover {
  border-color: var(--orange);
}

.kcarte span {
  color: var(--encre-2);
  font-size: .95rem;
}

.kcarte small {
  color: var(--encre-2);
  font-size: .85rem;
}

.kcarte .rappel {
  color: var(--orange-fonce);
  font-weight: 700;
}

.kcarte.non-lu {
  border-left: 5px solid var(--braise);
}

.kvide {
  color: var(--encre-2);
  text-align: center;
  margin: .5rem 0;
}

tr.non-lu td:first-child {
  box-shadow: inset 4px 0 0 var(--braise);
}

.admin-deux {
  align-items: start;
}

.historique {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}

.historique li {
  padding: .7rem 1rem;
  border-left: 3px solid var(--filet);
}

.historique p {
  margin: 0;
}

.h-meta {
  font-size: .9rem;
  color: var(--encre-2);
  font-weight: 600;
}

.actions-pile {
  display: grid;
  gap: 1rem;
}

.actions-pile form {
  gap: .3rem;
}

.etroit-gauche {
  max-width: 720px;
}

/* Recrutement : pièces du dossier, zone d'effacement */
.pieces {
  list-style: none;
  padding: 0;
  margin: 0 0 .6rem;
  display: grid;
  gap: .5rem;
}

.pieces li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .6rem .8rem;
  border-radius: 12px;
  background: var(--piste);
}

.piece-lien {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--encre);
  text-decoration: none;
  min-width: 0;
}

.piece-lien>span:first-child {
  font-size: 1.5rem;
}

.piece-lien b,
.piece-lien small {
  display: block;
}

.piece-lien small {
  color: var(--encre-2);
  overflow-wrap: anywhere;
}

.piece-lien:hover b {
  color: var(--orange-fonce);
  text-decoration: underline;
}

.ajout-piece {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
}

.ajout-piece .grille-form {
  grid-template-columns: minmax(0, 1fr);
}

.champ input[type="file"] {
  padding: .55rem .6rem;
  font-size: 1rem;
  min-width: 0;
}

.zone-sensible {
  border: 1.5px solid var(--rouge);
}

.texte-alerte {
  color: var(--rouge);
}

.recherche select {
  min-height: 52px;
  padding: .5rem .8rem;
  border: 1.5px solid var(--filet);
  border-radius: 12px;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
}

.mats-liste {
  list-style: none;
  padding: 0;
  margin: .4rem 0 .8rem;
  display: grid;
  gap: .5rem;
}

.mats-liste li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: 1.08rem;
}

.table select {
  min-height: 44px;
  padding: .4rem .6rem;
  border: 1.5px solid var(--filet);
  border-radius: 10px;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
}

/* ======================================================================= Séances (lot 3) */
.p-neutre {
  background: var(--piste);
  color: var(--encre-2);
}

.liste-seances {
  display: grid;
  gap: .5rem;
}

.seance-carte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem .9rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-left: 5px solid var(--orange);
  color: var(--encre);
  text-decoration: none;
}

.seance-carte:hover {
  border-color: var(--orange);
}

.seance-carte.annulee {
  border-left-color: var(--filet);
  opacity: .75;
}

.seance-carte.annulee .sc-corps b {
  text-decoration: line-through;
}

.sc-heure {
  display: grid;
  text-align: center;
  min-width: 4.2rem;
}

.sc-heure b {
  font-family: var(--f-titre);
  font-size: 1.3rem;
  line-height: 1.1;
}

.sc-heure small,
.sc-corps small {
  color: var(--encre-2);
  font-size: .88rem;
}

.sc-corps {
  display: grid;
  min-width: 0;
}

.sc-corps b {
  overflow-wrap: anywhere;
}

.sc-corps i {
  font-style: normal;
  color: var(--orange-fonce);
}

.planning {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .8rem;
}

.jour {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: .7rem;
  border-radius: 16px;
  background: var(--piste);
  min-height: 120px;
}

.jour.aujourdhui {
  background: var(--teinte);
  outline: 2px solid var(--orange);
}

.jour-titre {
  font-family: var(--f-texte);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.jour .seance-carte {
  grid-template-columns: auto minmax(0, 1fr);
}

.jour .seance-carte .pastille {
  grid-column: 1 / -1;
  justify-self: start;
}

.semaine-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.a-traiter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.a-traiter h3 {
  font-size: 1.12rem;
}

.a-traiter .badge {
  display: inline-block;
  margin-left: .35rem;
  vertical-align: .1em;
}

.liste-taches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.liste-taches li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .55rem .8rem;
  border-radius: 12px;
  background: var(--piste);
}

.liste-taches a:not(.btn) {
  display: grid;
  color: var(--encre);
  text-decoration: none;
  min-width: 0;
}

.liste-taches a:not(.btn):hover b {
  color: var(--orange-fonce);
  text-decoration: underline;
}

.liste-taches small {
  color: var(--encre-2);
}

.problemes {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .4rem;
  font-weight: 600;
}

.pb-bloquant {
  color: var(--rouge);
}

.pb-derogeable {
  color: var(--orange-fonce);
}

.pb-avertissement {
  color: var(--info);
}

details.replie {
  border-top: 1px solid var(--filet);
  padding-top: .6rem;
}

details.replie>summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  display: flex;
  align-items: center;
}

details.replie[open]>summary {
  margin-bottom: .6rem;
}

details.replie.petit {
  border: 0;
  padding: 0;
}

details.replie.petit>summary {
  min-height: 32px;
  font-weight: 600;
  color: var(--rouge);
}

.version {
  padding: .5rem .8rem;
  border-left: 3px solid var(--filet);
  margin-top: .5rem;
}

.rapport {
  display: grid;
  gap: .8rem;
}

.rap-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
}

.rap-notes>div {
  display: grid;
  padding: .6rem .8rem;
  border-radius: 12px;
  background: var(--piste);
}

.rap-notes small {
  color: var(--encre-2);
  font-weight: 600;
}

.etoiles {
  color: var(--orange);
  font-size: 1.25rem;
  letter-spacing: .08em;
}

.rap-dl {
  display: grid;
  gap: .15rem;
  margin: 0;
}

.rap-dl dt {
  font-weight: 800;
  margin-top: .6rem;
}

.rap-dl dd {
  margin: 0;
}

.note-equipe {
  padding: .5rem .8rem;
  border-radius: 10px;
  background: var(--info-f);
  color: var(--info);
}

.credits {
  display: grid;
  justify-items: end;
  text-align: end;
  padding: .7rem 1rem;
  border-radius: 16px;
  background: var(--vert-f);
  color: var(--vert);
}

.credits b {
  font-family: var(--f-titre);
  font-size: 2.4rem;
  line-height: 1;
}

.credits span {
  font-weight: 800;
}

.credits small {
  color: var(--encre-2);
}

.credits-bas {
  background: #FFF3D6;
  color: #8A5A00;
}

.famille-carte {
  display: grid;
  gap: 1rem;
}

.famille-carte h3 {
  margin-bottom: .6rem;
}

.espace-kpis {
  margin-bottom: 1.2rem;
}

.bienvenue+.kpis,
.bienvenue+.carte,
.bienvenue+section {
  margin-top: .4rem;
}

.page>.carte,
.page>section.carte,
.page>.deux-col,
.page>.kpis,
.page>form.carte {
  margin-bottom: 1.2rem;
}

.grille-form.trois {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grille-form.une {
  grid-template-columns: minmax(0, 1fr);
}

.carte-notes {
  padding: 1rem;
  border-radius: 14px;
  margin: .4rem 0 1rem;
}

.creneaux-jour {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.creneaux-jour legend {
  font-weight: 800;
  padding: 0;
  margin-bottom: .4rem;
}

.creneaux {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.creneau {
  position: relative;
  cursor: pointer;
}

.creneau input {
  position: absolute;
  opacity: 0;
}

.creneau span {
  display: inline-block;
  min-width: 5.2rem;
  padding: .6rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--filet);
  background: var(--carte);
  font-weight: 700;
  text-align: center;
  font-size: 1.08rem;
}

.creneau:hover span {
  border-color: var(--orange);
}

.creneau input:checked+span {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.creneau input:focus-visible+span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.filtre-enfants {
  margin-bottom: 1.2rem;
}

.puce-lien {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--filet);
  background: var(--carte);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}

.puce-lien.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.choix-liste {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

tr.barre-ligne td {
  color: var(--encre-2);
}

tr.barre-ligne td:first-child b {
  text-decoration: line-through;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .credits-bas {
    background: #3A2E12;
    color: #F5C969;
  }
}

:root[data-theme="dark"] .credits-bas {
  background: #3A2E12;
  color: #F5C969;
}

/* ======================================================================= Communications (lot 4) */
.cloche {
  position: relative;
  padding-inline: .9rem;
  font-size: 1.15rem;
}

.cloche .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
}

.liste-notifs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}

.liste-notifs li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: var(--piste);
}

.liste-notifs li.non-lue {
  background: var(--teinte);
  border-left: 5px solid var(--orange);
}

.liste-notifs p {
  margin: .2rem 0;
}

.liste-notifs small {
  color: var(--encre-2);
}

.liste-taches li.non-lu {
  border-left: 5px solid var(--braise);
}

.fil-wa {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .6rem;
}

.fil-wa li {
  max-width: min(560px, 85%);
  padding: .6rem .9rem;
  border-radius: 16px;
}

.fil-wa li p {
  margin: 0;
}

.fil-wa li small {
  color: var(--encre-2);
  font-size: .85rem;
}

.fil-wa .entrant {
  justify-self: start;
  background: var(--piste);
  border-bottom-left-radius: 4px;
}

.fil-wa .sortant {
  justify-self: end;
  background: var(--vert-f);
  border-bottom-right-radius: 4px;
}

.fil-wa .sortant.auto {
  background: var(--info-f);
}

.apercu-message {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--piste);
  border-left: 4px solid var(--orange);
}

.btns-ligne {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ======================================================================= Écrans moyens et petits */
@media (max-width: 1220px) {
  .nav-principale {
    gap: .3rem;
  }

  .nav-lien {
    padding: .32rem .68rem .32rem .34rem;
    font-size: .93rem;
  }

  .nav-ico {
    width: 28px;
    height: 28px;
    font-size: .92rem;
  }
}

@media (max-width: 1024px) {
  .tete-nav {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

@media (max-width: 960px) {
  .pied-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied-marque {
    grid-column: 1 / -1;
  }

  .tarifs {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-grille,
  .page-tete-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo,
  .page-tete-photo {
    order: 0;
  }
}

@media (max-width: 860px) {

  .cnx,
  .admin-grille,
  .grille-form,
  .deux-col,
  .trio,
  .grille-form.trois,
  .methode-grille,
  .duo-photos {
    grid-template-columns: minmax(0, 1fr);
  }

  .chiffres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-menu {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .admin-qui {
    display: none;
  }

  .admin-lien {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {

  /* Téléphone : en-tête compact (logo · compte · menu), barre d'action en bas, texte réduit à l'essentiel */
  .cache-mobile,
  .detail {
    display: none !important;
  }

  .tete-in {
    padding: .45rem 12px;
    gap: .5rem;
  }

  .ico-compte {
    display: inline;
    font-size: 1.25rem;
  }

  .txt-compte {
    display: none;
  }

  .btn-compte {
    width: 48px;
    padding: 0;
  }

  .tete-act {
    margin-left: auto;
  }

  .bandeau-haut {
    font-size: .82rem;
  }

  .bandeau-haut-in {
    padding: .32rem 10px;
    gap: .25rem .6rem;
  }

  .barre-mobile {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: .5rem;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, #FFF8F0 95%, transparent);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--orange);
    box-shadow: 0 -6px 20px rgba(238, 62, 30, .12);
  }

  .barre-mobile .btn {
    flex: 1;
    min-height: 52px;
    font-weight: 800;
  }

  .barre-mobile .btn-blanc {
    flex: 0 1 auto;
    border-color: var(--filet);
  }

  body:has(.barre-mobile) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .hero-site {
    padding-top: .8rem;
    padding-bottom: 2.6rem;
  }

  .hero-photo {
    padding: .6rem;
  }

  .hero-photo>img {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    border-width: 5px;
  }

  .hero-vague {
    height: 32px;
  }

  .b1 {
    top: auto;
    bottom: -18px;
    left: 10px;
  }

  .b3 {
    display: none;
  }

  .hero-texte {
    padding-top: 1rem;
  }

  .hero-texte h1 {
    font-size: 2.15rem;
  }

  .hero-texte .chapo {
    font-size: 1.15rem;
  }

  .portes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .porte {
    grid-template-columns: 1fr;
  }

  .porte:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .porte:last-child:nth-child(odd) .porte-photo img {
    aspect-ratio: 2 / 1;
  }

  .porte-fl {
    display: none;
  }

  .porte-ico {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    bottom: -18px;
    left: .5rem;
  }

  .porte-txt {
    padding: 1.4rem .75rem .8rem;
  }

  .porte-txt b {
    font-size: 1.1rem;
  }

  .porte-txt small {
    font-size: .8rem;
  }

  .page-tete {
    padding-top: .8rem;
  }

  .page-tete-photo img {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .sec {
    padding-block: 2.2rem;
  }

  .tarifs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: .8rem;
    margin-inline: -12px;
    padding: 1rem 12px .6rem;
    max-width: none;
  }

  .tarif {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .pied-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 17px;
  }

  .logo {
    gap: .35rem;
  }

  .logo b {
    font-size: 1.75rem;
  }

  .logo i {
    font-size: 1rem;
  }

  .logo .torche {
    width: 34px;
    height: auto;
  }

  .btn-appel.btn:not(.gros) {
    display: none;
  }

  .recap {
    grid-template-columns: minmax(0, 1fr);
  }

  .recap dd {
    margin-bottom: .4rem;
  }

  .seance-carte {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .seance-carte .pastille {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .credits {
    justify-items: start;
    text-align: start;
  }

  .grille-form.trois {
    grid-template-columns: minmax(0, 1fr);
  }

  .choix-mat {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-actions {
    margin-left: 0;
    width: 100%;
  }

  .assistant-actions .btn {
    flex: 1 1 auto;
  }

  .btns .btn.gros {
    width: 100%;
  }

  .bulle {
    padding: .45rem .7rem;
    font-size: .85rem;
  }

  .bulle span:first-child {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Lot 5 : paie, commandes, factures ---------------------------------------------------------- */
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}

.onglet {
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--filet);
  background: var(--carte);
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
}

.onglet.actif {
  background: var(--teinte);
  border-color: var(--orange);
  color: var(--orange-fonce);
}

.citation {
  margin: .6rem 0;
  padding: .6rem .9rem;
  border-left: 4px solid var(--orange);
  background: var(--piste);
  border-radius: 0 10px 10px 0;
  white-space: pre-line;
}

.liste-demandes {
  display: grid;
  gap: .8rem;
}

.demande {
  padding: 1rem;
  border: 1px solid var(--filet);
  border-radius: 14px;
}

.demande-ouverte {
  border-color: var(--orange);
  background: var(--teinte);
}

.liste-docs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .4rem;
}

.liste-docs li {
  padding: .55rem .8rem;
  border: 1px solid var(--filet);
  border-radius: 10px;
}

.choix-cartes {
  border: 0;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .7rem;
}

.choix-cartes legend {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.choix-carte {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--filet);
  border-radius: 14px;
  background: var(--carte);
  cursor: pointer;
}

.choix-carte:has(input:checked) {
  border-color: var(--orange);
  background: var(--teinte);
}

.choix-carte input {
  margin-top: .35rem;
  accent-color: var(--orange);
}

.choix-carte>span {
  display: grid;
  gap: .15rem;
}

.choix-carte small {
  color: var(--encre-2);
}

.choix-carte .prix {
  font-family: var(--f-titre);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-fonce);
}

/* ---- Documents imprimables (factures, relevés, attestations) : page A4 ---------------------------- */
.corps-document {
  background: var(--piste);
  display: block;
}

.barre-impression {
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.document {
  max-width: 210mm;
  min-height: 270mm;
  margin: 0 auto 2rem;
  padding: 18mm 16mm;
  background: #fff;
  color: #1E2230;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.doc-tete {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 3px solid #F09138;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.doc-marque {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.doc-marque b {
  font-family: var(--f-marque);
  font-size: 2rem;
  letter-spacing: .04em;
  display: block;
  line-height: 1;
}

.doc-marque small {
  color: #4E5568;
}

.doc-societe {
  text-align: end;
  font-size: .9rem;
  line-height: 1.45;
}

.doc-titre h1 {
  font-size: 1.9rem;
  margin-bottom: .2rem;
}

.doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}

.doc-parties>div {
  padding: .8rem 1rem;
  border: 1px solid #E2E5EB;
  border-radius: 10px;
}

.doc-parties small {
  display: block;
  color: #4E5568;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}

.doc-table th,
.doc-table td {
  padding: .5rem .6rem;
  border-bottom: 1px solid #E2E5EB;
  text-align: start;
}

.doc-table th:last-child,
.doc-table td:last-child {
  text-align: end;
  white-space: nowrap;
}

.doc-table thead th {
  background: #FFF2E4;
}

.doc-table tfoot td {
  font-weight: 600;
}

.doc-total td {
  font-size: 1.2rem;
  font-weight: 800;
  border-top: 2px solid #1E2230;
}

.doc-mention {
  font-size: .85rem;
  color: #4E5568;
  margin-top: 1.2rem;
}

.doc-pied {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #E2E5EB;
  font-size: .8rem;
  color: #4E5568;
  text-align: center;
}

.document .note {
  color: #4E5568;
}

.attestation-doc {
  text-align: center;
  padding: 2rem 0;
}

.attestation-doc h1 {
  font-size: 2.2rem;
  margin: .5rem 0 2rem;
}

.att-texte {
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: justify;
  margin: 0 auto 1.5rem;
  max-width: 160mm;
}

.att-signature {
  display: flex;
  justify-content: space-between;
  margin: 3rem auto 0;
  max-width: 160mm;
  text-align: start;
  min-height: 40mm;
}

.att-signature span:last-child {
  text-align: end;
}

@media (max-width: 640px) {
  .document {
    padding: 1.2rem;
    min-height: 0;
  }

  .doc-parties {
    grid-template-columns: 1fr;
  }

  .doc-societe {
    text-align: start;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #000;
  }

  .bandeau-haut,
  .tete,
  nav,
  .admin-menu,
  .pied,
  .barre-impression,
  .aller-contenu,
  .btn,
  .btns,
  .btn-retour,
  .retour-haut,
  form,
  .flash {
    display: none !important;
  }

  .document {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
    min-height: 0;
  }

  .carte {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .table-scroll {
    overflow: visible;
  }
}

/* ---- Lot 5 bis : visio, supervision, transcriptions --------------------------------------------- */
.ligne-active td {
  background: var(--teinte);
}

.transcription {
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
}

code {
  font-size: .9em;
  background: var(--piste);
  padding: .1em .35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

/* ---- Lot 6 : série de travail (flamme) ----------------------------------------------------------- */
.serie {
  border: 2px solid var(--filet);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  background: var(--carte);
  display: grid;
  gap: 1rem;
}

.serie.niveau-1 {
  border-color: #F6C79A;
}

.serie.niveau-2 {
  border-color: var(--orange);
}

.serie.niveau-3,
.serie.niveau-4 {
  border-color: var(--braise);
  background: linear-gradient(160deg, var(--teinte), var(--carte) 60%);
}

.serie-tete {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.flamme-bloc {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 96px;
}

.flamme-bloc .serie-n {
  position: absolute;
  bottom: 14%;
  font-family: var(--f-titre);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(120, 30, 10, .6);
}

.serie-texte {
  flex: 1 1 240px;
}

.serie-texte h3 {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

.serie-niveau {
  display: inline-block;
  font-size: .8rem;
  font-family: var(--f-texte);
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--teinte);
  color: var(--orange-fonce);
  vertical-align: middle;
}

.serie-palier {
  display: grid;
  gap: .3rem;
  margin-top: .4rem;
}

.barre-progres {
  width: 100%;
  height: .8rem;
  border: 0;
  border-radius: 999px;
  background: var(--piste);
  overflow: hidden;
  appearance: none;
}

.barre-progres::-webkit-progress-bar {
  background: var(--piste);
  border-radius: 999px;
}

.barre-progres::-webkit-progress-value {
  background: linear-gradient(90deg, var(--orange), var(--braise));
  border-radius: 999px;
}

.barre-progres::-moz-progress-bar {
  background: linear-gradient(90deg, var(--orange), var(--braise));
  border-radius: 999px;
}

.serie-semaines {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .35rem;
}

.sem {
  display: grid;
  place-items: center;
  gap: .1rem;
  padding: .35rem 0;
  border-radius: 10px;
  background: var(--piste);
  min-height: 3.1rem;
}

.sem i {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  min-height: 1.2rem;
}

.sem small {
  font-size: .62rem;
  color: var(--encre-2);
}

.sem.on {
  background: var(--teinte);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.sem.maintenant {
  outline: 2px dashed var(--orange);
  outline-offset: 1px;
}

.serie-pied {
  margin: 0;
  color: var(--encre-2);
}

.palier {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  margin: 0 .1rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  border: 1px solid var(--filet);
  font-weight: 700;
  font-size: .85rem;
}

.palier.atteint {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* La flamme : couleurs et taille selon le niveau ; éteinte (gris) à 0 */
.flamme-svg .fl-lueur {
  fill: var(--orange);
  opacity: .18;
}

.niveau-0 .flamme-svg {
  filter: grayscale(1) opacity(.45);
}

.niveau-1 .flamme-svg {
  transform: scale(.78);
}

.niveau-2 .flamme-svg {
  transform: scale(.9);
}

.niveau-4 .flamme-svg {
  filter: drop-shadow(0 0 10px rgba(243, 95, 64, .55));
}

.flamme-svg .fl-ext,
.flamme-svg .fl-int {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.serie:not(.niveau-0) .flamme-svg .fl-ext {
  animation: fl-danse 1.6s ease-in-out infinite alternate;
}

.serie:not(.niveau-0) .flamme-svg .fl-int {
  animation: fl-danse 1.1s ease-in-out infinite alternate-reverse;
}

.serie.en-attente .flamme-svg {
  filter: saturate(.6);
}

@keyframes fl-danse {
  0% {
    transform: scale(1, 1) skewX(0deg);
  }

  50% {
    transform: scale(.96, 1.05) skewX(2deg);
  }

  100% {
    transform: scale(1.03, .97) skewX(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .flamme-svg .fl-ext,
  .flamme-svg .fl-int {
    animation: none !important;
  }
}

.flamme-mini {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-weight: 800;
  color: var(--orange-fonce);
}

.flamme-mini.niveau-0 {
  color: var(--encre-2);
}

.flamme-mini.niveau-0 .flamme-svg {
  filter: grayscale(1) opacity(.45);
}

@media (max-width: 560px) {
  .serie-semaines {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Démonstration de la série (page Méthode) */
.serie-demo {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.serie-demo .flamme-bloc b {
  font-family: var(--f-titre);
  font-size: 2.4rem;
}

.serie-demo .semaines {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .3rem;
  width: 100%;
}

.serie-demo .semaines span {
  height: 1.4rem;
  border-radius: 6px;
  background: var(--piste);
}

.serie-demo .semaines span.on {
  background: linear-gradient(180deg, var(--or), var(--orange));
}

/* ---- Lot 6 : contenus du site --------------------------------------------------------------------- */
.etapes-site {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.etapes-site li {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--r);
  padding: 1.3rem;
  box-shadow: var(--ombre);
}

.etapes-site h3 {
  margin-top: .6rem;
  font-size: 1.3rem;
}

.inclus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.inclus-item {
  background: var(--carte);
  border-radius: var(--r);
  padding: 1.2rem;
  border: 1px solid var(--filet);
}

.inclus-ico {
  font-size: 1.8rem;
}

.inclus-item h3 {
  font-size: 1.2rem;
  margin: .4rem 0;
}

.inclus-item p {
  margin: 0;
  color: var(--encre-2);
}

.quatuor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.deroule {
  list-style: none;
  padding: 0;
  margin: .8rem 0;
  display: grid;
  gap: .7rem;
  counter-reset: d;
}

.deroule li {
  display: grid;
  gap: .1rem;
  padding-inline-start: 2.4rem;
  position: relative;
  counter-increment: d;
}

.deroule li::before {
  content: counter(d);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.deroule span {
  color: var(--encre-2);
}

.faq-bloc h2 {
  margin-bottom: .8rem;
}

.bandeau-final {
  background: radial-gradient(circle at 85% 20%, rgba(255, 212, 71, .34), transparent 50%), linear-gradient(125deg, #FF7A00 0%, #EE3E1E 100%);
  color: #fff;
}

.bandeau-final h2,
.bandeau-final .chapo {
  color: #fff;
}

.bandeau-final .chapo {
  margin-inline: auto;
}

.bandeau-final .btns {
  justify-content: center;
}

.bandeau-final .btn-orange {
  background: #fff;
  color: var(--orange-fonce);
  box-shadow: 0 8px 24px rgba(90, 20, 0, .22);
}

.bandeau-final .btn-orange:hover {
  background: #FFF5E8;
}

.bandeau-final .btn-appel {
  background: #fff;
  color: var(--orange-fonce);
}

.bandeau-final .btn-blanc {
  background: rgba(255, 255, 255, .18);
  border: 2px solid #fff;
  color: #fff;
}

.bandeau-final .btn-blanc:hover {
  background: #fff;
  color: var(--orange-fonce);
}

.liste-series {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .5rem;
}

.liste-series li {
  padding: .55rem .8rem;
  border: 1px solid var(--filet);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  align-items: center;
}

.liste-series small {
  flex-basis: 100%;
  color: var(--encre-2);
}

.admin .serie {
  margin: 1rem 0;
}

.famille-carte .serie {
  margin: .8rem 0 1.2rem;
}

/* Cartes matières : la pastille passe sous le nom plutôt que de déborder */
.mat {
  grid-template-columns: auto minmax(0, 1fr);
}

.mat>.pastille {
  grid-column: 2;
  justify-self: start;
  margin-top: -.4rem;
}

/* ---- Lot 6 : actions rapides, assistant, formulaires --------------------------------------------- */
.actions-rapides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .6rem;
  margin: 0 0 1.4rem;
}

.action-rapide {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: var(--carte);
  border: 1px solid var(--filet);
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--ombre);
}

.action-rapide span {
  font-size: 1.4rem;
}

.action-rapide:hover,
.action-rapide:focus-visible {
  border-color: var(--orange);
  background: var(--teinte);
}

.action-rapide.principale {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.action-rapide.principale:hover {
  background: var(--orange-fonce);
  color: #fff;
}

.assistant {
  display: grid;
  gap: 1rem;
}

.etape-assistant h2 small {
  font-weight: 500;
  color: var(--encre-2);
  font-size: .9rem;
}

.champs-form {
  padding-inline-start: 1.4rem;
  display: grid;
  gap: .6rem;
  margin: 0 0 1rem;
}

.champs-form li {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  padding: .6rem .8rem;
  border: 1px solid var(--filet);
  border-radius: 12px;
}

.champs-form small {
  color: var(--encre-2);
}

.champs-form .btns-ligne {
  display: flex;
  flex-wrap: nowrap;
  gap: .3rem;
  flex-shrink: 0;
}

/* Paramètres groupés, assistant Google Meet (lot 5 ter) */
.reglages {
  margin-bottom: 1.2rem;
}

.reglages h2 {
  margin-top: 0;
}

.barre-enregistrer {
  position: sticky;
  bottom: 0;
  padding: .9rem 0;
  background: var(--fond);
  z-index: 2;
}

.assistant {
  list-style: none;
  counter-reset: etape;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}

.assistant>li {
  counter-increment: etape;
  position: relative;
  padding: 1rem 1.1rem 1rem 4rem;
  border: 1.5px solid var(--filet);
  border-radius: 14px;
  background: var(--carte);
}

.assistant>li::before {
  content: counter(etape);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--piste);
  color: var(--encre-2);
}

.assistant>li.fait {
  border-color: color-mix(in srgb, var(--vert) 45%, var(--filet));
}

.assistant>li.fait::before {
  content: "✓";
  background: var(--vert-f);
  color: var(--vert);
}

.assistant>li.actuelle {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 15%, transparent);
}

.assistant>li.actuelle::before {
  background: var(--orange);
  color: #fff;
}

.assistant h3 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
}

.assistant p,
.assistant ul {
  margin: .3rem 0;
  font-size: 1.05rem;
}

.assistant ul {
  padding-inline-start: 1.2rem;
}

.assistant .btns {
  margin-top: .6rem;
}

.copier {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.copier code {
  font-size: 1.02rem;
  padding: .35rem .6rem;
}

.cles-form {
  display: grid;
  gap: .8rem;
  margin-top: .6rem;
}

.cles-form .champ small {
  display: block;
  color: var(--encre-2);
  font-size: .92rem;
}

.case-ligne {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .98rem;
}

fieldset.cles-form {
  border: 1.5px solid var(--filet);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0;
  min-width: 0;
}

fieldset.cles-form legend {
  padding: 0 .4rem;
  font-size: 1.1rem;
}

/* ZAMIL : compte en aperçu tant qu'un parent n'a pas confirmé (D-84) */
.z-apercu {
  max-width: 72rem;
  margin: .8rem auto;
  padding: .9rem 1.1rem;
  border-left: 5px solid var(--braise);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  font-size: 1.05rem;
}