/* SyncProfs Pro — identité EDUoctet : nuit, émeraude, cyan et or (v2.3.0) */
:root {
  --fond: #f7f9fc; --fond2: #f7f9fc; --surface: #f4f7fa; --carte: rgba(244,247,250,0.82); --bordure: #dfe9f1; --bordure-vive: #cedeea;
  --texte: #2e6290; --doux: #374b60; --pale: #627a92;
  --accent: #1cad7d; --accent-fonce: #c8e7de; --cyan: #177e8e; --or: #8f6717;
  --danger: #971919; --alerte: #8f6e17; --info: #185096;
  --rayon: 16px; --ombre: 0 30px 70px -40px rgba(34, 211, 238, 0.45), 0 1px 0 rgba(15,31,46,0.04) inset;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; color: var(--texte); font: 15px/1.6 "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif; min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(800px 450px at -5% 5%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(rgba(15,31,46,0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(15,31,46,0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--fond);
  background-attachment: fixed;
}
h1, h2, h3, .marque { font-family: "Space Grotesk", "DM Sans", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.01em; color: #0f1f2e; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #188896; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: rgba(34, 211, 238, 0.3); }
.saut { position: absolute; left: -9999px; } .saut:focus { left: 12px; top: 12px; background: var(--surface); color: var(--texte); padding: 8px 12px; z-index: 10; border-radius: 8px; }

/* Barre du haut */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 28px;
  background: rgba(247,249,252,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--accent), var(--cyan) 45%, var(--or)) 1; }
.marque { display: flex; align-items: center; gap: 0; white-space: pre; font-weight: 700; font-size: 19px; color: #0f1f2e; text-decoration: none; }
.marque::before { content: ''; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  margin-right: 10px;
  background: url("/favicon.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.35)); }
.marque span { background: linear-gradient(135deg, #1d8760, #177e8e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entete nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.entete nav a { color: #375d84; text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 9px; border: 1px solid transparent; transition: border-color .15s, color .15s, background .15s; }
.entete nav a:hover { color: #0f1f2e; border-color: var(--bordure-vive); background: rgba(15,31,46,0.04); }

/* Mise en page */
main { max-width: 1120px; margin: 0 auto; padding: 32px 20px 72px; }
.etroit { max-width: 460px; margin: 64px auto; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 15px; margin: 20px 0 8px; color: #32608a; }
p { color: #3f5c79; }
.sous { color: var(--doux); margin: 0 0 22px; }
.carte { position: relative; background: linear-gradient(180deg, rgba(240,245,249,0.92), rgba(247,249,252,0.88)); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); margin-bottom: 20px; backdrop-filter: blur(6px); }
.carte::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: var(--rayon) var(--rayon) 0 0;
  background: linear-gradient(90deg, transparent, rgba(23,126,142,0.6), transparent); }

/* Formulaires */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: #32608a; }
.aide { display: block; font-weight: 400; color: var(--doux); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--bordure-vive); border-radius: 10px; background: #f7f9fc; font: inherit; color: var(--texte);
  transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--pale); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); }
textarea { min-height: 90px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: #3f5c79; }
.case input { margin-top: 4px; accent-color: var(--accent); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--bordure-vive);
  background: rgba(15,31,46,0.04); color: var(--texte); font: 600 14px/1.2 inherit; cursor: pointer; text-decoration: none; transition: border-color .15s, box-shadow .15s, filter .15s; }
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 20px -6px rgba(23,126,142,0.7); color: #0f1f2e; }
.btn.principal { background: linear-gradient(135deg, #1d8760, #177e8e); border-color: #199c60; color: #f7f9fc;
  box-shadow: 0 10px 30px -10px rgba(28,173,125,0.75), 0 0 40px -14px rgba(23,126,142,0.6); }
.btn.principal:hover { filter: brightness(1.06); color: #f7f9fc; }
.btn.danger { color: #a11a1a; border-color: rgba(151,25,25,0.5); background: rgba(248, 113, 113, 0.08); }
.btn.danger:hover { border-color: var(--danger); box-shadow: 0 0 20px -6px rgba(151,25,25,0.7); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Messages */
.message { padding: 11px 14px; border-radius: 10px; margin: 12px 0; font-size: 14px; border: 1px solid; }
.message.erreur { background: rgba(248, 113, 113, 0.1); color: #a11a1a; border-color: rgba(248, 113, 113, 0.4); }
.message.ok { background: rgba(16, 185, 129, 0.1); color: #199c60; border-color: rgba(16, 185, 129, 0.4); }
.message.info { background: rgba(96, 165, 250, 0.1); color: #1a55a0; border-color: rgba(96, 165, 250, 0.4); }
.message:empty { display: none; }

/* Onglets */
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bordure); margin-bottom: 22px; flex-wrap: wrap; }
.onglets a { position: relative; padding: 11px 16px; text-decoration: none; color: var(--doux); font-weight: 600; }
.onglets a:hover { color: #0f1f2e; }
.onglets a[aria-current=page] { color: #0f1f2e; }
.onglets a[aria-current=page]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 12px rgba(23,126,142,0.8); }
section[hidden] { display: none; }

/* Tableaux */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
th { background: #f7f9fc; color: var(--doux); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:nth-child(even) td { background: rgba(15,31,46,0.02); }
tbody tr:hover td { background: rgba(34, 211, 238, 0.06); }
tbody tr:last-child td { border-bottom: 0; }

/* Composants */
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(55,75,96,0.14); color: #375d84; border: 1px solid rgba(55,75,96,0.25); }
.pastille.ok { background: rgba(16, 185, 129, 0.14); color: #199563; border-color: rgba(16, 185, 129, 0.4); }
.pastille.alerte { background: rgba(251, 191, 36, 0.12); color: #947718; border-color: rgba(251, 191, 36, 0.4); }
.pastille.erreur { background: rgba(248, 113, 113, 0.12); color: #9d1a1a; border-color: rgba(248, 113, 113, 0.4); }
.plateformes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plateforme { border: 1px solid var(--bordure-vive); border-radius: var(--rayon); padding: 18px; background: rgba(15,31,46,0.03); transition: border-color .2s, box-shadow .2s; }
.plateforme:hover { border-color: var(--cyan); }
.plateforme[data-choisie=true] { border-color: var(--accent); background: rgba(16, 185, 129, 0.08); box-shadow: 0 0 30px -12px rgba(28,173,125,0.8); }
.plateforme h3 { margin-top: 0; display: flex; justify-content: space-between; align-items: center; }
.progression { height: 10px; background: #edf3f7; border-radius: 999px; overflow: hidden; margin: 8px 0; border: 1px solid var(--bordure); }
.progression > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); width: 0; transition: width .3s; box-shadow: 0 0 12px rgba(23,126,142,0.7); }
.periodes { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 6px 10px; align-items: center; max-width: 420px; }
.pied { text-align: center; color: var(--pale); font-size: 13px; padding: 28px; border-top: 1px solid var(--bordure); margin-top: 24px; }
.pied a { color: var(--doux); }
@media (max-width: 640px) { .entete { padding: 10px 16px; } main { padding: 20px 14px 56px; } .carte { padding: 18px; } .etroit { margin: 32px auto; } }
@media print { body { background: #0f1f2e; color: #f7f9fc; } .entete, .pied { display: none; } .carte { box-shadow: none; border-color: #3d2929; background: #0f1f2e; } }

/* ═════════ Refonte visuelle v2 (Pro 2.12.0) ═════════ */
@font-face { font-family: 'Inter'; src: url(/polices/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(/polices/space-grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .marque { letter-spacing: -0.02em; }
.i { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -0.15em; }
.entete { background: rgba(247,249,252,0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.btn { border-radius: 12px; padding: 11px 20px; }
.btn.principal { border: 0; background: linear-gradient(135deg, #199563 0%, #1d8760 35%, #177e8e 100%); box-shadow: 0 0 0 1px rgba(25,156,96,0.5) inset, 0 12px 32px -10px rgba(28,173,125,0.75); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea { padding: 12px 14px; border-radius: 12px; border-color: rgba(148, 197, 230, 0.2); background: rgba(247,249,252,0.7); }
.carte { border-color: rgba(148, 197, 230, 0.12); border-radius: 20px; }

/* Pages d'authentification : panneau de marque + formulaire */
main.auth { max-width: 1120px; min-height: calc(100vh - 160px); display: grid; grid-template-columns: 1fr minmax(360px, 460px); gap: 64px; align-items: center; padding-top: 48px; }
.auth-form .carte { padding: 36px; margin: 0; box-shadow: 0 40px 100px -50px rgba(23,126,142,0.6); }
.auth-form h1 { font-size: 32px; }
.auth-form .actions .btn.principal { width: 100%; padding: 14px 20px; font-size: 15px; }
.auth-cote { position: relative; }
.auth-eti { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #199563; }
.auth-titre { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; color: #0f1f2e; margin: 14px 0 32px; }
.auth-titre span { background: linear-gradient(90deg, #1d8760, #177e8e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-cote ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.auth-cote li { display: flex; gap: 14px; align-items: flex-start; color: var(--doux); font-size: 14.5px; }
.auth-cote li b { display: block; color: #0f1f2e; font-weight: 600; font-size: 15px; }
.auth-cote li .i { width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: #199563; background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(34, 211, 238, 0.08)); border: 1px solid rgba(110, 231, 183, 0.22); }
.auth-grille { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; margin-top: 40px; opacity: 0.85; }
.auth-grille i { height: 26px; border-radius: 7px; border: 1px solid rgba(148, 197, 230, 0.12); background: rgba(15,31,46,0.02); }
.auth-grille i[style] { border-color: color-mix(in srgb, var(--c) 45%, transparent); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
@media (max-width: 900px) { main.auth { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 24px; } .auth-cote { display: none; } .auth-form { max-width: 480px; width: 100%; margin: 0 auto; } }
@media (max-width: 640px) { .auth-form .carte { padding: 24px; } }

/* v2.16.0 : étiquette « Pro » dans la marque, sans majuscules forcées */
.marque .m-pro { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #f7f9fc; background: linear-gradient(135deg, #199563, #177e8e); -webkit-background-clip: border-box; background-clip: border-box; border-radius: 6px; padding: 2px 7px; margin-left: 8px; align-self: center; }
.auth-eti { font-size: 15px; }
/* v2.16.0 : choix de la note (étoiles) et affichage des notes */
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etoiles-choix { border: 0; padding: 0; margin: 4px 0 6px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.etoiles-choix legend { float: left; width: 100%; font-weight: 600; margin-bottom: 6px; color: #2e5c90; }
.etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-choix label { cursor: pointer; font-size: 32px; line-height: 1; color: #d8e1ea; margin: 0; transition: color .15s, transform .15s; }
.etoiles-choix label::before { content: '★'; }
.etoiles-choix label:hover, .etoiles-choix label:hover ~ label, .etoiles-choix input:checked ~ label { color: #936d18; }
.etoiles-choix label:hover { transform: scale(1.12); }
.etoiles-choix input:focus-visible + label { outline: 2px solid #199563; outline-offset: 2px; border-radius: 4px; }
.etoiles { color: #936d18; letter-spacing: 2px; white-space: nowrap; }
.etoiles .vide { color: #d8e1ea; }

/* v2.17.0 : force du mot de passe */
.force-barre { height: 5px; border-radius: 3px; background: #e6ecf3; margin: 8px 0 6px; overflow: hidden; }
.force-barre i { display: block; height: 100%; width: 0; border-radius: 3px; background: #971919; transition: width .25s, background .25s; }
.force-barre[data-niveau=moyen] i { background: #936d18; }
.force-barre[data-niveau=fort] i { background: linear-gradient(90deg, #1d8760, #177e8e); }
.force-mdp { list-style: none; margin: 0 0 6px; padding: 0; font-size: 12.5px; color: #394d60; display: grid; gap: 3px; }
.force-mdp li span[aria-hidden] { display: inline-block; width: 14px; color: #678099; }
.force-mdp li.ok { color: #199c60; }
.force-mdp li.ok span[aria-hidden] { color: #1d8760; }

/* v2.18.0 : import du calendrier scolaire en PDF */
.import-pdf { display: flex; align-items: center; gap: 16px; padding: 18px; margin: 6px 0 12px; border: 1.5px dashed rgba(110, 231, 183, 0.45); border-radius: 14px; background: rgba(16, 185, 129, 0.06); flex-wrap: wrap; }
.import-pdf > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.import-pdf .i { width: 30px; height: 30px; color: #199563; flex: none; }
.import-pdf.survol { border-color: #177e8e; background: rgba(34, 211, 238, 0.1); }
.import-pdf label.btn { margin: 0; cursor: pointer; }
.pdf-apercu { border: 1px solid rgba(148, 197, 230, 0.2); border-radius: 14px; padding: 16px; margin-bottom: 18px; background: rgba(244,247,250,0.5); }
.pdf-apercu h3 { margin-top: 0; }
.pdf-types { margin-top: 12px; }
.pdf-types select { min-width: 160px; }
.pdf-avert { color: #947718; font-size: 13px; margin: 10px 0; padding-left: 18px; }
.pastille-couleur { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(15,31,46,0.3); }

/* v2.19.0 : espace connecté (compte, console) en indigo — le site public reste émeraude */
body.espace {
  --accent: #3a199a; --accent-fonce: #441790; --cyan: #1a309d; --bordure: #d0ceea; --bordure-vive: #c1bde3; --doux: #332c8a; --pale: #3c3776;
  --carte: rgba(237,236,247,0.84); --surface: #eeedf7; --fond: #f7f9fc;
  --ombre: 0 30px 70px -40px rgba(25,37,153,0.55), 0 1px 0 rgba(15,31,46,0.04) inset;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(800px 450px at -5% 5%, rgba(167, 139, 250, 0.14), transparent 60%),
    linear-gradient(rgba(167, 139, 250, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(167, 139, 250, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    #f7f9fc;
  background-attachment: fixed;
}
body.espace .entete { background: rgba(238,237,247,0.88); border-image: linear-gradient(90deg, #192599, #3a199a 50%, #177e8e) 1; }
body.espace .btn.principal { background: linear-gradient(135deg, #3a199a, #192599); border-color: #351a9f; color: #f1f0f9; box-shadow: 0 10px 28px -10px rgba(25,37,153,0.9); }
body.espace .btn.principal:hover { color: #f1f0f9; }
body.espace .btn:hover { border-color: #3a199a; box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 0 20px -6px rgba(58,25,154,0.7); }
body.espace .onglets a[aria-current=page]::after { background: linear-gradient(90deg, #3a199a, #192599); box-shadow: 0 0 12px rgba(58,25,154,0.8); }
body.espace a { color: #351a9f; }
body.espace .sp-marques a { color: inherit; }
body.espace :focus-visible { outline-color: #3a199a; }
body.espace input, body.espace select, body.espace textarea { border-color: #c1bde3; background: #f3f2fa; }
.espace-repere { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid #c1bde3; background: rgba(167, 139, 250, 0.12); color: #321aa2; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.espace-repere::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3a199a; box-shadow: 0 0 8px #3a199a; }

/* v2.19.0 : jours restants de l'essai */
.essai-jauge { margin: 6px 0 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--bordure-vive); background: rgba(167, 139, 250, 0.07); max-width: 520px; }
.essai-chiffre { display: flex; align-items: baseline; gap: 10px; }
.essai-chiffre b { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 44px; line-height: 1; color: #0f1f2e; }
.essai-chiffre span { color: var(--doux); font-weight: 600; }
.essai-barre { height: 8px; border-radius: 5px; background: rgba(15,31,46,0.08); overflow: hidden; margin: 12px 0 8px; }
.essai-barre i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #3a199a, #192599); transition: width .4s; }
.essai-barre[data-niveau=bientot] i { background: linear-gradient(90deg, #936d18, #8f6717); }
.essai-barre[data-niveau=critique] i { background: linear-gradient(90deg, #971919, #921818); }
body.espace .carte { background: linear-gradient(180deg, rgba(232,230,244,0.92), rgba(243,242,250,0.9)); border-color: rgba(167, 139, 250, 0.18); }
body.espace .carte::before { background: linear-gradient(90deg, transparent, rgba(58,25,154,0.7), transparent); }
body.espace th { background: #f3f1f9; }
body.espace input:focus, body.espace select:focus, body.espace textarea:focus { border-color: #3a199a; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25); }
input[type=search] { width: 100%; padding: 12px 14px; border: 1px solid var(--bordure-vive); border-radius: 12px; background: rgba(247,249,252,0.7); font: inherit; color: var(--texte); }
body.espace input[type=search] { background: #f3f2fa; border-color: #c1bde3; }

/* ══ v2.20.0 : espace connecté indigo plus clair ; boutons principaux émeraude (lien avec le site public) ══ */
body.espace {
  --accent: #1d8760; --cyan: #1a35a1; --bordure: #333071; --bordure-vive: #322e77; --doux: #241aa1; --pale: #30298b; --texte: #321ba5;
  --carte: rgba(58,53,150,0.78); --surface: #c8c7e7; --fond: #cfceea;
  --ombre: 0 30px 70px -40px rgba(223,222,241,0.9), 0 1px 0 rgba(15,31,46,0.06) inset;
  background:
    radial-gradient(1000px 560px at 88% -10%, rgba(165, 180, 252, 0.32), transparent 62%),
    radial-gradient(820px 480px at -5% 8%, rgba(52, 211, 153, 0.10), transparent 60%),
    linear-gradient(rgba(15,31,46,0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(15,31,46,0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #c1bfe4, #cccbe9 55%, #d6d4ed);
  background-attachment: fixed;
}
body.espace .entete { background: rgba(189,187,226,0.9); border-image: linear-gradient(90deg, #1d8760, #177e8e 35%, #1a309d 70%, #351a9f) 1; }
body.espace .carte { background: linear-gradient(180deg, rgba(46,43,116,0.82), rgba(192,190,227,0.82)); border-color: rgba(199, 210, 254, 0.22); }
body.espace .carte::before { background: linear-gradient(90deg, transparent, rgba(53,26,159,0.8), transparent); }
body.espace th { background: #c6c4e6; color: #1b39a3; }
body.espace td { border-bottom-color: rgba(199, 210, 254, 0.16); }
body.espace input, body.espace select, body.espace textarea, body.espace input[type=search] { background: #d0cfea; border-color: #322e77; color: #0f1f2e; }
body.espace input::placeholder { color: #30298b; }
body.espace .btn { border-color: #2f2a7f; background: rgba(15,31,46,0.07); color: #321ba5; }
body.espace .btn.principal { background: linear-gradient(135deg, #1d8760, #177e8e); border-color: #199c60; color: #f7f9fc; box-shadow: 0 10px 28px -10px rgba(28,173,125,0.9); }
body.espace .btn.principal:hover { color: #f7f9fc; }
body.espace .onglets a[aria-current=page]::after { background: linear-gradient(90deg, #1d8760, #177e8e); box-shadow: 0 0 12px rgba(23,126,142,0.7); }
body.espace a { color: #1a35a1; }
body.espace .aide, body.espace .sous { color: #241aa1; }
body.espace .espace-repere { border-color: #2f2a7f; background: rgba(15,31,46,0.10); color: #321ba5; }
body.espace .espace-repere::before { background: #1d8760; box-shadow: 0 0 8px #1d8760; }
body.espace .essai-jauge { background: rgba(15,31,46,0.07); }

/* ══ v2.20.0 : passage du site public à l'espace connecté ══
 * Les pages de connexion font le pont : le côté marque garde l'émeraude du site, le côté formulaire prend déjà
 * l'indigo de l'espace connecté. Les pages s'enchaînent par un fondu, et le logo reste en place (View Transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.sp-marques { view-transition-name: marque; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
body.passerelle {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 100% 100%, rgba(165, 180, 252, 0.28), transparent 62%),
    linear-gradient(rgba(15,31,46,0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(15,31,46,0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(115deg, #f7f9fc 0%, #f7f9fc 32%, #dfdff1 72%, #c8c7e7 100%);
  background-attachment: fixed;
}
body.passerelle .entete { background: linear-gradient(90deg, rgba(247,249,252,0.9), rgba(210,209,235,0.88)); border-image: linear-gradient(90deg, #1d8760, #177e8e 45%, #1a309d) 1; }
body.passerelle .auth-form .carte { background: linear-gradient(180deg, rgba(189,187,226,0.82), rgba(207,206,234,0.85)); border-color: rgba(199, 210, 254, 0.24); box-shadow: 0 40px 90px -40px rgba(24,27,149,0.75); }
body.passerelle .auth-form .carte::before { background: linear-gradient(90deg, transparent, rgba(53,26,159,0.8), transparent); }
body.passerelle .auth-form input { background: #d0cfea; border-color: #322e77; }
body.passerelle .auth-form .sous, body.passerelle .auth-form .aide { color: #241aa1; }
body.passerelle .auth-form a { color: #1a35a1; }

/* ══ v2.28.0 · « Grille lumineuse » (pages de compte, de connexion, d'aide et console) ══
   Site public : papier bleuté et émeraude. Espace connecté : papier lavande et indigo, même clarté. */
:root { --texte: #0d1b2a; --doux: #41566e; --pale: #64788e; --bordure: #e1e9f2; --bordure-vive: #c9d8e8; --carte: #ffffff; --surface: #ffffff;
  --ombre: 0 1px 2px rgba(13,27,42,.04), 0 16px 36px -26px rgba(13,27,42,.30); }
body { color: var(--texte); background: radial-gradient(900px 500px at 90% -10%, rgba(99,102,241,.09), transparent 60%), radial-gradient(800px 460px at 0 0, rgba(16,185,129,.09), transparent 60%), #f6f9fc; }
h1, h2, h3, label { color: #0d1b2a; }
.carte { background: #fff; border: 1px solid var(--bordure); box-shadow: var(--ombre); backdrop-filter: none; }
.carte::before { display: none; }
input, select, textarea { background: #fff; border: 1px solid #d3deea; color: #0d1b2a; }
input:focus, select:focus, textarea:focus { border-color: #0e9f76; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.btn { background: #fff; border: 1px solid #d6e1ec; color: #0d1b2a; }
.btn.principal { border: 0; color: #fff; background: linear-gradient(135deg, #047a5a 0%, #0e7490 60%, #4338ca 130%); box-shadow: 0 12px 28px -14px rgba(4,122,90,.7); }
.btn.principal:hover { color: #fff; filter: brightness(1.06); }
a { color: #047a5a; }
.entete { background: rgba(255,255,255,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(13,27,42,.07); border-image: none; }
.entete nav a { color: #41566e; }
.pied, .pied a { color: #41566e; }
th { background: #f3f6fa; color: #2b3f55; }
td { border-bottom-color: #edf2f7; }

/* Connexion, inscription, mot de passe : le formulaire flotte sur la grille, bord lumineux */
body.passerelle { background: radial-gradient(900px 520px at 85% 10%, rgba(99,102,241,.12), transparent 60%), radial-gradient(800px 480px at 5% 0, rgba(16,185,129,.12), transparent 60%), #f6f9fc; }
body.passerelle .entete { background: rgba(255,255,255,.78); border-image: none; }
body.passerelle .auth-form .carte { position: relative; background: rgba(255,255,255,.92); border: 1px solid transparent; box-shadow: 0 40px 90px -45px rgba(30,41,99,.5); }
body.passerelle .auth-form .carte::before { display: block; content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: linear-gradient(130deg, #10b981, #06b6d4, #6366f1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; height: auto; }
body.passerelle .auth-form input { background: #fff; border-color: #d3deea; }
body.passerelle .auth-form .sous, body.passerelle .auth-form .aide { color: #41566e; }
body.passerelle .auth-form a { color: #047a5a; }
.auth-titre span { background: linear-gradient(95deg, #059669, #0891b2 50%, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Espace connecté (compte, console) : lavande clair, indigo pour les repères */
body.espace { color: #0d1b2a; background: radial-gradient(900px 500px at 90% -10%, rgba(99,102,241,.12), transparent 60%), radial-gradient(700px 420px at 0 0, rgba(16,185,129,.07), transparent 60%), #f5f6fd; }
body.espace .entete { background: rgba(255,255,255,.82); border-bottom: 1px solid #e3e5f6; border-image: none; box-shadow: 0 8px 30px -24px rgba(49,46,129,.45); }
body.espace .entete::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #10b981, #06b6d4 35%, #6366f1 70%, #a78bfa); opacity: .7; }
body.espace .carte { background: #fff; border: 1px solid #e3e5f6; box-shadow: 0 1px 2px rgba(30,27,75,.04), 0 18px 40px -28px rgba(49,46,129,.35); }
body.espace .carte::before { display: none; }
body.espace th { background: #f4f5fd; color: #312e81; }
body.espace td { border-bottom-color: #eef0fa; color: #1e293b; }
body.espace input, body.espace select, body.espace textarea, body.espace input[type=search] { background: #fff; border-color: #d9dcf2; color: #0d1b2a; }
body.espace input::placeholder { color: #8a93b0; }
body.espace input:focus, body.espace select:focus, body.espace textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
body.espace .btn { background: #fff; border: 1px solid #d9dcf2; color: #312e81; }
body.espace .btn:hover { border-color: #a5b4fc; box-shadow: 0 6px 18px -10px rgba(79,70,229,.45); }
body.espace .btn.principal { border: 0; color: #fff; background: linear-gradient(135deg, #047a5a, #0e7490 55%, #4338ca); }
body.espace .btn.danger { color: #b91c1c; border-color: #f5c2c2; }
body.espace a { color: #4338ca; }
body.espace .aide, body.espace .sous { color: #4b5578; }
body.espace .onglets a { color: #475569; }
body.espace .onglets a[aria-current=page] { color: #1e1b4b; }
body.espace .onglets a[aria-current=page]::after { background: linear-gradient(90deg, #10b981, #6366f1); box-shadow: none; }
body.espace .espace-repere { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; }
body.espace .espace-repere::before { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
body.espace .essai-jauge { background: #eef0fa; }
body.espace .pastille.ok, .pastille.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.onglets { border-bottom-color: #e3e5f6 !important; }
.pied { border-top-color: #e1e9f2 !important; }

/* ══ v2.29.0 · « Ardoise » : ni trop sombre ni trop clair ══ */
body { background: radial-gradient(900px 500px at 90% -10%, rgba(99,102,241,.12), transparent 60%), radial-gradient(800px 460px at 0 0, rgba(16,185,129,.10), transparent 60%), #d3dde8; }
.carte { background: #edf2f7; border-color: #b9c8d7; }
input, select, textarea { background: #f6f9fb; border-color: #aebfd0; }
.btn { background: #edf2f7; border-color: #aebfd0; }
.entete { background: rgba(33,50,69,.92); border-bottom: 1px solid rgba(255,255,255,.08); }
.entete .sp-nom { color: #f4f8fb; }
.entete .sp-nom span { background: linear-gradient(135deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.entete a.sp-par { color: #b8c8d8; } .entete .sp-par b { color: #dbe7f3; } .entete .sp-par b span { color: #6ee7b7; }
.entete nav a { color: #d3dfeb; } .entete nav a:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.entete .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #f4f8fb; }
.entete span, .entete .qui { color: #c9d6e3; }
th { background: #dde5ee; }
/* Connexion et inscription : panneau d'ardoise à gauche, formulaire adouci à droite */
body.passerelle { background: radial-gradient(800px 480px at 85% 10%, rgba(99,102,241,.30), transparent 60%), radial-gradient(700px 420px at 5% 0, rgba(16,185,129,.24), transparent 60%), linear-gradient(160deg, #25384c, #2c3f69); }
body.passerelle .entete { background: rgba(28,43,60,.75); }
body.passerelle .auth-cote, body.passerelle .auth-cote li { color: #cbd8e5; }
body.passerelle .auth-titre, body.passerelle .auth-cote li b { color: #f4f8fb; }
body.passerelle .auth-titre span { background: linear-gradient(95deg, #6ee7b7, #67e8f9 50%, #a5b4fc); -webkit-background-clip: text; background-clip: text; }
body.passerelle .auth-eti { color: #6ee7b7; }
body.passerelle .auth-cote li .i { color: #6ee7b7; background: rgba(110,231,183,.12); }
body.passerelle .auth-form .carte { background: rgba(237,242,247,.97); }
body.passerelle .pied, body.passerelle .pied a { color: #cbd8e5; }
/* Espace connecté : indigo moyen pour l'en-tête, lavande grisé pour la page */
body.espace { background: radial-gradient(900px 500px at 90% -10%, rgba(99,102,241,.18), transparent 60%), #d8dbec; }
body.espace .entete { background: linear-gradient(90deg, #353189, #3f3a9a); border-bottom: 0; }
body.espace .entete a, body.espace .entete nav a { color: #e0e7ff; }
body.espace .espace-repere { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
body.espace .carte, body.espace .kpi { background: #f0f1f9; border-color: #c3c7e6; }
body.espace input, body.espace select, body.espace textarea, body.espace input[type=search] { background: #f7f8fc; border-color: #bfc4e4; }
body.espace .btn { background: #f0f1f9; border-color: #bfc4e4; }
body.espace .entete .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
body.espace th { background: #e2e4f4; }
body.espace .pied, body.espace .pied a { color: #3b3f6b; }
body.passerelle .pied a, body.passerelle .pied { color: #d3dfeb; }
body.espace .entete span, body.espace .entete .qui { color: #e0e7ff; }
