/* ==============================================================
   MON ÉCOLE EN LIGNE — VITRINE COMMERCIALE (version optimisée)
   Fichier : assets/css/vitrine.css
   - Règles à sélecteurs identiques fusionnées, déclarations communes factorisées
   - Valeurs normalisées (#fff, .5, 0), doublons supprimés, @media identiques regroupés
   - Ordre de cascade conservé : aucune règle déplacée au-delà d'une règle en conflit
   ============================================================== */

:root {
    --primary: #003066;
    --primary-dark: #001d40;
    --primary-light: #0b57a3;
    --primary-soft: #eaf2fc;
    --orange: #ff9900;
    --orange-hover: #e68a00;
    --orange-soft: #fff3df;
    --text: #17243a;
    --muted: #5a687d;
    --white: #fff;
    --background: #fff;
    --section: #f4f7fb;
    --border: #e2e9f2;
    --green: #16865b;
    --radius-sm: 10px;
    --radius-md: 17px;
    --radius-lg: 25px;
    --shadow-sm: 0 5px 18px rgba(0, 35, 78, .06);
    --shadow-md: 0 14px 35px rgba(0, 35, 78, .10);
    --shadow-lg: 0 25px 65px rgba(0, 25, 60, .16);
    --container: 1200px;
    --transition: .28s ease;
    --sidebar-width: 270px;
    --sidebar-top: 84px;
    --sidebar-primary: var(--primary, #003066);
    --sidebar-accent: var(--accent, #f59e0b);
    --sidebar-border: var(--border, #e3e9f2);
    --sidebar-bg: #ffffff;
    --sidebar-text: #26354a;
    --sidebar-muted: #77849a;
    --sidebar-hover: #f0f5fc;
    --sidebar-speed: 0.30s;
    --footer-height: 50px;
    --footer-bg: #252b35;
    --footer-text: #f1f5f9;
    --footer-muted: #aab4c3;
    --footer-blue: #3295ff;
    --footer-orange: #ff9f43;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
.sidebar-toggle,
.sidebar-footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-toggle,
.sidebar {
    position: fixed;
    border: 1px solid var(--sidebar-border);
}
.sidebar-toggle {
    top: calc(var(--sidebar-top) + 14px);
    left: 16px;
    z-index: 1300;
    width: 42px;
    height: 42px;
    color: var(--sidebar-primary);
    background: #fff;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 35, 80, .08);
    transition: left var(--sidebar-speed) ease, color var(--sidebar-speed) ease, background var(--sidebar-speed) ease, box-shadow var(--sidebar-speed) ease, transform var(--sidebar-speed) ease;
}
.sidebar-toggle:hover {
    color: #fff;
    background: var(--sidebar-primary);
    box-shadow: 0 5px 16px rgba(0, 48, 102, .18);
}
.sidebar-toggle:active {
    transform: scale(.94);
}
.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(245, 158, 11, .5);
    outline-offset: 3px;
}
.sidebar {
    top: var(--sidebar-top);
    left: 0;
    z-index: 100;
    width: var(--sidebar-width);
    height: calc(100vh);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    float: none;
    box-sizing: border-box;
    color: var(--sidebar-text);
    background: var(--sidebar-bg);
    border-left: none;
    border-top: 2px solid var(--sidebar-primary);
    border-radius: 0 0 0 0;
    box-shadow: 5px 0 18px rgba(0, 35, 80, .04);
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--sidebar-speed) cubic-bezier(.22, 1, .36, 1), visibility var(--sidebar-speed) ease;
    overflow: hidden;
    will-change: transform;
}
.sidebar:not(.is-open) {
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
}
.sidebar-header {
    min-height: 76px;
    padding: 16px 14px 16px 72px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff, #f5f8fd);
    border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sidebar-brand-icon,
.sidebar-link {
    display: flex;
    align-items: center;
    border-radius: 11px;
}
.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    justify-content: center;
    color: #fff;
    background: var(--sidebar-primary);
    box-shadow: 0 4px 12px rgba(0, 48, 102, .15);
}
.sidebar-brand-text {
    color: var(--sidebar-primary);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}
.sidebar-content {
    flex: 1;
    min-height: 0;
    padding: 20px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sidebar-content::-webkit-scrollbar {
    width: 5px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: #d9e1ed;
    border-radius: 10px;
}
.sidebar-section-title {
    margin: 0 10px 13px;
    color: var(--sidebar-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidebar-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidebar-link {
    gap: 12px;
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    box-sizing: border-box;
    color: var(--sidebar-text);
    background: transparent;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.sidebar-link > i {
    width: 21px;
    flex: 0 0 21px;
    text-align: center;
    color: var(--sidebar-primary);
    font-size: 15px;
    transition: color .2s ease, transform .2s ease;
}
.sidebar-link span {
    min-width: 0;
}
.sidebar-link:hover {
    color: var(--sidebar-primary);
    background: var(--sidebar-hover);
    border-color: #e2eaf6;
    transform: translateX(2px);
}
.sidebar-link:hover > i {
    color: var(--sidebar-accent);
    transform: scale(1.08);
}
.sidebar-separator {
    height: 1px;
    margin: 12px 8px !important;
    background: var(--sidebar-border);
}
.sidebar-footer {
    min-height: 58px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-muted);
    background: #f8faff;
    border-top: 1px solid var(--sidebar-border);
    font-size: 12px;
    font-weight: 600;
}
.sidebar-footer-icon {
    width: 30px;
    height: 30px;
    color: var(--sidebar-primary);
    background: #eaf1fc;
    border-radius: 9px;
}
.main-content {
    min-width: 0;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-speed) ease;
}
body.sidebar-collapsed .main-content {
    margin-left: 0;
}
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 285px;
        --sidebar-top: 80px;
    }
    .sidebar {
        width: min(var(--sidebar-width), 88vw);
        box-shadow: 5px 0 18px rgba(0, 35, 80, .08);
        height: calc(100vh);
    }
    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        top: calc(var(--sidebar-top) + 50px);
        left: 12px;
    }
    .sidebar-header {
        min-height: 72px;
        padding-left: 68px;
    }
    .sidebar-link {
        min-height: 47px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    :root {
        --sidebar-top: 115px;
    }
    .sidebar-toggle {
        top: calc(var(--sidebar-top) + 5px);
        left: 10px;
        width: 40px;
        height: 40px;
    }
    .sidebar {
        width: min(290px, 88vw);
        height: calc(100vh);
    }
    .sidebar-header {
        padding-left: 62px;
    }
    .sidebar-brand-text {
        font-size: 12px;
    }
    .sidebar-mobil-height {
        height: calc(100vh - 280px);
        overflow-x: auto;
    }
}
.dashboard-rectangles {
    --dash-bleu: #003066;
    --dash-bleu-clair: #0b57a3;
    --dash-orange: #ff9900;
    --dash-texte: #172b4d;
    --dash-muted: #718096;
    --dash-bordure: #e8edf5;
    width: min(100%, 1400px);
    margin: 28px auto 42px;
    padding: clamp(16px, 2.5vw, 32px);
    color: var(--dash-texte);
    font-family: inherit;
    box-sizing: border-box;
}
.dashboard-rectangles *,
.dashboard-rectangles *::before,
.dashboard-rectangles *::after {
    box-sizing: border-box;
}
.dashboard-rectangles-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.dashboard-surtitre,
.graphique-surtitre {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--dash-orange);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.dashboard-rectangles-entete h2 {
    margin: 0 0 7px;
    color: var(--dash-bleu);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
}
.dashboard-rectangles-entete p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .94rem;
}
.dashboard-badge-annee {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid #e1eaf6;
    border-radius: 999px;
    background: #f5f8fd;
    color: var(--dash-bleu);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-cartes,
.essai-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-cartes {
    display: grid;
    gap: 18px;
}
.dashboard-carte {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    min-height: 168px;
    padding: 23px 20px;
    overflow: hidden;
    border: 1px solid var(--dash-bordure);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(0, 48, 102, .055);
    color: inherit;
    text-decoration: none !important;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    animation: dashboard-arrivee .55s both;
}
.dashboard-carte:nth-child(2) {
    animation-delay: .05s;
}
.dashboard-carte:nth-child(3) {
    animation-delay: .10s;
}
.dashboard-carte:nth-child(4) {
    animation-delay: .15s;
}
.dashboard-carte:nth-child(5) {
    animation-delay: .20s;
}
.dashboard-carte:nth-child(6) {
    animation-delay: .25s;
}
.dashboard-carte::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--dash-bleu-clair);
    transform: scaleY(.15);
    transform-origin: top;
    transition: transform .3s ease;
}
.dashboard-carte:hover {
    transform: translateY(-6px);
    border-color: #cfdef2;
    box-shadow: 0 16px 35px rgba(0, 48, 102, .12);
    color: inherit;
}
.dashboard-carte:hover::before {
    transform: scaleY(1);
}
.carte-etudiants::before,
.carte-reussite::before {
    background: var(--dash-orange);
}
.carte-finances::before {
    background: linear-gradient(var(--dash-orange), var(--dash-bleu));
}
.carte-icone {
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #eaf2ff;
    color: var(--dash-bleu);
    font-size: 1.25rem;
}
.carte-etudiants .carte-icone,
.carte-reussite .carte-icone {
    background: #fff3df;
    color: #d98100;
}
.carte-finances .carte-icone {
    background: #eaf7f0;
    color: #178451;
}
.carte-contenu {
    flex: 1;
    min-width: 0;
}
.carte-libelle {
    display: block;
    margin: 1px 0 10px;
    color: var(--dash-muted);
    font-size: .86rem;
    font-weight: 650;
}
.carte-valeur {
    display: block;
    margin-bottom: 10px;
    color: var(--dash-bleu);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.carte-valeur-periode {
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    letter-spacing: -.02em;
}
.carte-note {
    display: block;
    margin-top: 8px;
    color: var(--dash-muted);
    font-size: .76rem;
    line-height: 1.45;
}
.carte-details {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}
.carte-details span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--dash-muted);
    font-size: .78rem;
}
.carte-details b {
    margin-left: auto;
    color: var(--dash-texte);
}
.carte-point-actif {
    color: #1eaa68;
    font-size: .55rem;
}
.carte-point-inactif {
    color: #a0a9b7;
    font-size: .55rem;
}
.carte-fleche {
    position: absolute;
    top: 17px;
    right: 17px;
    color: #a6b4c7;
    font-size: .78rem;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: .25s ease;
}
.dashboard-carte:hover .carte-fleche {
    opacity: 1;
    transform: translate(0, 0);
}
.carte-finance-ligne {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: .82rem;
}
.carte-finance-ligne span {
    color: var(--dash-muted);
}
.carte-finance-ligne strong {
    color: var(--dash-bleu);
    text-align: right;
    overflow-wrap: anywhere;
}
.mini-barre {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}
.mini-barre span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dash-orange), #ffc15e);
    transition: width .6s ease;
}
.dashboard-graphiques {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.dashboard-graphique {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--dash-bordure);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(0, 48, 102, .055);
    animation: dashboard-arrivee .65s both;
}
.graphique-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}
.graphique-entete h3 {
    margin: 0;
    color: var(--dash-bleu);
    font-size: 1.05rem;
    font-weight: 800;
}
.graphique-icone {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #eaf2ff;
    color: var(--dash-bleu);
}
.graphique-icone-orange {
    background: #fff3df;
    color: #d98100;
}
.graphique-canvas {
    position: relative;
    height: 280px;
    width: 100%;
}
.graphique-vide {
    display: grid;
    place-items: center;
    min-height: 160px;
    margin: 0;
    color: var(--dash-muted);
    font-size: .9rem;
    text-align: center;
}
@keyframes dashboard-arrivee {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1050px) {
    .dashboard-cartes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .dashboard-rectangles {
        margin-top: 12px;
        padding: 14px;
    }
    .dashboard-rectangles-entete {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-badge-annee {
        white-space: normal;
    }
    .dashboard-graphiques {
        grid-template-columns: 1fr;
    }
    .dashboard-graphique {
        padding: 18px;
    }
}
@media (max-width: 480px) {
    .dashboard-cartes {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .dashboard-carte {
        min-height: 145px;
        padding: 19px 16px;
        border-radius: 16px;
    }
    .carte-icone {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }
    .carte-valeur {
        font-size: 2rem;
    }
    .graphique-canvas {
        height: 240px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-rectangles *,
    .dashboard-rectangles *::before,
    .dashboard-rectangles *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
.sidebar-link {
    position: relative;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.sidebar-link.active {
    font-weight: 700;
    text-decoration: none;
}
.sidebar-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
}
.sidebar-link[aria-current="page"] {
    font-weight: 700;
}
.sidebar-link:not(.active)::after {
    content: none;
}
.container {
    display: flex;
    margin-left: 19.5%;
    align-items: center !important;
    align-content: center !important;
    justify-content: center;
    padding-top: 100px;
    overflow-y: auto;
    padding-bottom: 80px;
}

.historique-wrapper {
    width: 80%;
    padding: 10px 0;
    position: absolute;
    top: 90px;
    padding-bottom: 100px;
}
@media (max-width: 720px) {
    .container {
        margin-left: 0 !important;
        height: unset;
        padding-top: 110px;
    }
    .historique-wrapper {
        width: 100%;
        text-align: center;
    }
}
.historique-card,
.historique-form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--border, #e2e9f2);
}
.historique-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(0, 35, 78, .06));
}
.historique-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.historique-header h2 {
    color: var(--primary, #003066);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.historique-header h2 i {
    color: var(--orange, #f90);
}
.historique-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 450px;
}
.historique-form .input-group {
    flex: 1;
    min-width: 200px;
}
.historique-form input[type="text"] {
    padding: 10px 14px;
    font-size: .95rem;
    border-radius: var(--radius-sm, 8px);
    background: #fdfefe;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.historique-form input[type="text"]:focus {
    border-color: var(--primary-light, #0b57a3);
    box-shadow: 0 0 0 3px var(--primary-soft, #eaf2fc);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border, #e2e9f2);
}
.table-historique {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    white-space: nowrap;
}
.table-historique th {
    background-color: var(--primary, #003066);
    color: #fff;
    padding: 12px 15px;
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
}
.table-historique th.col-desc,
.table-historique td.col-desc {
    text-align: left;
    white-space: normal;
    word-break: break-word;
    min-width: 250px;
}
.table-historique td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border, #e2e9f2);
    color: var(--text, #17243a);
    font-size: .92rem;
    text-align: center;
}
.table-historique tr:last-child td {
    border-bottom: none;
}
.table-historique tr:hover td {
    background-color: var(--primary-soft, #eaf2fc);
}
.no-data {
    text-align: center;
    padding: 30px;
    color: var(--muted, #5a687d);
    font-style: italic;
}
@media (max-width: 768px) {
    .historique-card {
        padding: 15px;
    }
    .historique-header {
        flex-direction: column;
        align-items: stretch;
    }
    .historique-form {
        max-width: 100%;
    }
    .historique-form button {
        width: 100%;
    }
    .table-historique th,
    .table-historique td {
        padding: 10px;
        font-size: .85rem;
    }
}
.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    min-height: var(--footer-height);
    background: linear-gradient(115deg, #252b35, #303947, #252b35);
    color: var(--footer-text);
    border-top: 1px solid rgba(50, 149, 255, .45);
    box-shadow: 0 -5px 24px rgba(0, 0, 0, .13);
    overflow: hidden;
    animation: footerEntrance .8s ease-out both;
}
.footer-progress {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--footer-blue), #8bd4ff, var(--footer-orange), transparent);
    animation: footerLight 5s ease-in-out infinite;
}
.app-footer-inner,
.header-barre {
    align-items: center;
    justify-content: space-between;
}
.app-footer-inner {
    width: 100%;
    min-height: var(--footer-height);
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    padding: 10px 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.footer-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    background: linear-gradient(135deg, var(--footer-blue), #1764bd);
    box-shadow: 0 0 0 rgba(50, 149, 255, .3);
    animation: logoGlow 3s ease-in-out infinite;
    transition: transform .3s ease;
}
.footer-logo:hover {
    transform: rotate(-8deg) scale(1.1);
}
.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-brand-text strong {
    font-size: 14px;
    letter-spacing: .2px;
}
.footer-brand-text span {
    color: var(--footer-muted);
    font-size: 11px;
}
.footer-message,
.bouton {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-message {
    display: flex;
    gap: 9px;
    color: #dbe5f1;
    font-size: 12px;
}
.footer-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #42d392;
    box-shadow: 0 0 8px rgba(66, 211, 146, .7);
    animation: statusPulse 1.8s ease-in-out infinite;
}
.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: var(--footer-muted);
    font-size: 11px;
    text-align: right;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    color: #c6e3ff;
    background: rgba(50, 149, 255, .12);
    border: 1px solid rgba(50, 149, 255, .22);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.footer-badge:hover {
    background: rgba(50, 149, 255, .25);
    color: white;
    transform: translateY(-2px);
}
@keyframes footerEntrance {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes footerLight {
    0% {
        left: -35%;
    }
    60%, 100% {
        left: 110%;
    }
}
@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(50, 149, 255, .05);
    }
    50% {
        box-shadow: 0 0 15px 2px rgba(50, 149, 255, .25);
    }
}
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .55;
        transform: scale(.8);
    }
}
@media (max-width: 700px) {
    :root {
        --footer-height: 88px;
    }
    .app-footer-inner {
        min-height: var(--footer-height);
        padding: 10px 14px;
        gap: 8px;
    }
    .footer-brand {
        gap: 8px;
    }
    .footer-logo {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 16px;
    }
    .footer-brand-text strong {
        font-size: 12px;
    }
    .footer-brand-text span {
        font-size: 10px;
    }
    .footer-message {
        display: none;
    }
    .footer-copyright {
        font-size: 10px;
    }
}
@media (max-width: 380px) {
    :root {
        --footer-height: 82px;
    }
    .app-footer-inner {
        padding: 8px 10px;
    }
    .footer-brand-text span {
        max-width: 130px;
    }
    .footer-copyright {
        max-width: 145px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .app-footer,
    .footer-progress,
    .footer-logo,
    .footer-status-dot {
        animation: none !important;
    }
    .footer-logo,
    .footer-badge {
        transition: none !important;
    }
    .sidebar,
    .sidebar-toggle,
    .main-content,
    .sidebar-link,
    .sidebar-link > i {
        transition: none !important;
    }
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
a:hover {
    color: var(--primary-light);
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
h4 {
    margin: 0 0 16px;
    color: var(--primary);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
}
h1 {
    font-size: clamp(2.45rem, 5vw, 4.35rem);
}
h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}
h3 {
    font-size: 1.2rem;
}
p {
    margin: 0 0 16px;
    color: var(--muted);
}
::selection {
    color: #fff;
    background: var(--primary);
}
.conteneur {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}
.section {
    padding: 100px 0;
}
.section-teintee {
    background: radial-gradient(circle at 8% 8%, rgba(0, 48, 102, .035), transparent 30%), var(--section);
}
.entete-section {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}
.entete-section h2 {
    margin-bottom: 18px;
}
.section-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.85;
}
.surtitre,
.logo {
    align-items: center;
    display: inline-flex;
}
.surtitre {
    gap: 9px;
    margin: 0 0 18px;
    color: var(--primary-light);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}
.surtitre-clair {
    color: #ffd18a;
}
.lien-evitement {
    position: absolute;
    z-index: 2000;
    top: -100px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}
.lien-evitement:focus {
    top: 12px;
}
.site-header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(0, 48, 102, .08);
    box-shadow: 0 3px 18px rgba(0, 35, 78, .045);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.header-barre {
    display: flex;
    min-height: 84px;
    gap: 22px;
}
.logo {
    flex-shrink: 0;
    gap: 11px;
    color: var(--primary);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.logo:hover {
    color: var(--primary-light);
}
.logo-icone {
    display: grid;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--primary-light), var(--primary));
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 48, 102, .2);
    font-size: 1.35rem;
}
.logo-texte {
    display: flex;
    flex-direction: column;
}
.logo-texte small {
    margin-top: 4px;
    color: #728096;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 0;
}
.menu-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.menu-principal a {
    position: relative;
    padding: 11px 10px;
    color: #42516a;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}
.menu-principal a::after {
    position: absolute;
    right: 10px;
    bottom: 4px;
    left: 10px;
    height: 2px;
    background: var(--orange);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.menu-principal a:hover {
    color: var(--primary);
}
.menu-principal a:hover::after {
    transform: scaleX(1);
}
.bouton {
    display: inline-flex;
    min-height: 50px;
    gap: 10px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.35;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.bouton:hover {
    transform: translateY(-3px);
}
.bouton-principal {
    color: #17243a;
    background: linear-gradient(135deg, #ffb12e, var(--orange));
    box-shadow: 0 8px 20px rgba(255, 153, 0, .22);
}
.bouton-principal:hover {
    color: #17243a;
    background: linear-gradient(135deg, #ffc45c, var(--orange-hover));
    box-shadow: 0 12px 28px rgba(255, 153, 0, .3);
    filter: brightness(1.08);
}
.bouton-contour {
    color: var(--primary);
    background: #fff;
    border-color: rgba(0, 48, 102, .2);
}
.bouton-contour:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.bouton-secondaire {
    color: var(--primary);
    background: #fff;
    border-color: var(--border);
}
.bouton-secondaire:hover {
    color: var(--primary);
    border-color: rgba(0, 48, 102, .35);
    box-shadow: var(--shadow-sm);
}
.bouton-clair {
    color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-md);
}
.bouton-clair:hover {
    color: var(--primary);
    background: #fff5e5;
}
.bouton-large {
    width: 100%;
    min-height: 56px;
}
.bouton-entete {
    min-height: 44px;
    padding: 10px 16px;
    font-size: .86rem;
}
.hero,
.fonction {
    overflow: hidden;
    position: relative;
}
.hero {
    padding: 85px 0 0;
    background: radial-gradient(ellipse at 95% 10%, rgba(255, 153, 0, .13), transparent 28%), radial-gradient(ellipse at 0% 90%, rgba(34, 117, 207, .08), transparent 35%), linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.hero-decoration,
.carte-flottante {
    position: absolute;
    border: 1px solid rgba(0, 48, 102, .07);
}
.hero-decoration {
    border-radius: 50%;
    pointer-events: none;
}
.hero-decoration-1 {
    top: 45px;
    right: -150px;
    width: 430px;
    height: 430px;
}
.hero-decoration-2 {
    right: 13%;
    bottom: 105px;
    width: 180px;
    height: 180px;
    border-color: rgba(255, 153, 0, .14);
}
.hero-grille {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: 55px;
    padding-bottom: 75px;
}
.hero-texte {
    max-width: 650px;
}
.hero-texte h1 {
    margin-bottom: 24px;
}
.hero-texte h1 span {
    color: var(--primary-light);
}
.hero-description {
    max-width: 610px;
    margin-bottom: 29px;
    font-size: 1.07rem;
    line-height: 1.9;
}
.hero .surtitre {
    letter-spacing: .09em;
}
.pastille {
    width: 9px;
    height: 9px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 153, 0, .13);
}
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}
.hero-actions .bouton {
    min-height: 54px;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 18px;
    margin-top: 27px;
}
.hero-points span {
    color: #536176;
    font-size: .79rem;
    font-weight: 700;
}
.hero-points i {
    margin-right: 5px;
    color: var(--green);
}
.hero-visuel {
    position: relative;
    padding: 10px 8px 35px;
}
.hero-image {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background-color: #dce9f8;
    background-image: linear-gradient(145deg, rgba(0,48,102,.04), rgba(0,48,102,.2)), url("../img/hero.png");
    background-position: center;
    background-size: cover;
    border: 8px solid #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}
.hero-image::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 22px;
    content: "";
    pointer-events: none;
}
.carte-flottante {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 20px);
    padding: 14px 17px;
    background: rgba(255, 255, 255, .97);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}
.carte-flottante-haut {
    top: 40px;
    left: -22px;
}
.carte-flottante-bas {
    right: -15px;
    bottom: 57px;
}
.carte-flottante strong,
.carte-flottante small {
    display: block;
}
.carte-flottante strong {
    color: var(--primary);
    font-size: .88rem;
}
.carte-flottante small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}
.flottante-icone {
    display: grid;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 12px;
    font-size: 1.1rem;
}
.flottante-icone.bleu {
    color: var(--primary);
    background: var(--primary-soft);
}
.flottante-icone.orange {
    color: #8a5100;
    background: var(--orange-soft);
}
.hero-badge {
    position: absolute;
    right: 28px;
    bottom: 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #fff;
    background: var(--primary);
    border: 3px solid #fff;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.bandeau-confiance {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(0, 48, 102, .1);
}
.bandeau-confiance > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bandeau-confiance > div > i {
    color: var(--primary-light);
    font-size: 1.4rem;
}
.bandeau-confiance strong,
.bandeau-confiance small {
    display: block;
}
.bandeau-confiance strong {
    color: var(--primary);
    font-size: .86rem;
}
.bandeau-confiance small {
    color: var(--muted);
    font-size: .74rem;
}
.section-introduction {
    padding-top: 95px;
}
.intro-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 65px;
    margin-bottom: 48px;
}
.intro-texte h2 {
    max-width: 600px;
    margin-bottom: 0;
}
.intro-description p {
    line-height: 1.9;
}
.lien-avec-fleche {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}
.lien-avec-fleche i {
    color: var(--orange-hover);
    transition: transform var(--transition);
}
.lien-avec-fleche:hover i {
    transform: translateX(4px);
}
.grille-avantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.avantage,
.apercu,
.fonction,
.faq-item {
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.avantage,
.apercu {
    background: #fff;
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
}
.avantage {
    height: 100%;
    padding: 30px;
}
.avantage:hover,
.apercu:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.avantage-icone,
.fonction-icone {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 21px;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 16px;
    font-size: 1.45rem;
}
.avantage-icone.orange {
    color: #915700;
    background: var(--orange-soft);
}
.avantage-icone.verte {
    color: var(--green);
    background: #e7f7ef;
}
.avantage h3 {
    margin-bottom: 12px;
}
.avantage p {
    margin-bottom: 0;
    font-size: .94rem;
    line-height: 1.8;
}
.grille-fonctions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 21px;
}
.fonction {
    min-height: 250px;
    padding: 27px 24px;
    background: #fff;
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.fonction::after {
    position: absolute;
    right: -45px;
    bottom: -60px;
    width: 130px;
    height: 130px;
    background: var(--primary-soft);
    border-radius: 50%;
    content: "";
    opacity: 0;
    transition: opacity var(--transition);
}
.fonction:hover {
    border-color: rgba(0, 48, 102, .2);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.fonction:hover::after {
    opacity: .8;
}
.fonction-icone {
    width: 53px;
    height: 53px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}
.fonction:hover .fonction-icone {
    color: #fff;
    background: var(--primary);
    transform: rotate(-3deg);
}
.fonction h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}
.fonction p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: .88rem;
    line-height: 1.8;
}
.note-modules {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.note-modules > i {
    margin-top: 5px;
    color: var(--primary-light);
}
.note-modules p {
    margin: 0;
    font-size: .88rem;
}
.grille-apercus,
.etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grille-apercus {
    display: grid;
    gap: 25px;
}
.apercu {
    overflow: hidden;
    margin: 0;
}
.apercu-image {
    min-height: 245px;
    background-color: #e4ebf5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.apercu-1 {
    background-image: url("../img/apercu1.jpg");
}
.apercu-2 {
    background-image: url("../img/apercu2.jpg");
}
.apercu-3 {
    background-image: url("../img/apercu3.jpg");
}
.apercu figcaption {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 21px;
}
.apercu figcaption > span {
    display: grid;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 900;
}
.apercu figcaption strong,
.apercu figcaption small {
    display: block;
}
.apercu figcaption strong {
    color: var(--primary);
    font-size: .94rem;
}
.apercu figcaption small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.5;
}
.petite-note {
    margin: 20px 0 0;
    text-align: center;
    font-size: .82rem;
}
.section-bleue {
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 100% 0%, rgba(255, 153, 0, .15), transparent 30%), linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.contexte-grille {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 70px;
}
.contexte-visuel {
    min-height: 450px;
    background-color: #214d7d;
    background-image: linear-gradient(145deg, rgba(0,48,102,.08), rgba(0,29,64,.25)), url("../img/ecole.png");
    background-position: center;
    background-size: cover;
    border: 7px solid rgba(255, 255, 255, .15);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.contexte-texte h2 {
    color: #fff;
    margin-bottom: 20px;
}
.contexte-texte > p:not(.surtitre) {
    color: rgba(255, 255, 255, .76);
    line-height: 1.9;
}
.liste-avec-icones {
    display: grid;
    gap: 13px;
    margin: 25px 0 30px;
    padding: 0;
    list-style: none;
}
.liste-avec-icones li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255, 255, 255, .9);
    font-size: .92rem;
}
.liste-avec-icones i {
    margin-top: 5px;
    color: #ffbd52;
}
.etapes {
    display: grid;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.etapes li {
    min-height: 235px;
    padding: 29px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.etape-numero {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 23px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 14px;
    font-weight: 900;
}
.etapes li:nth-child(2) .etape-numero {
    color: var(--text);
    background: var(--orange);
}
.etapes li:nth-child(3) .etape-numero {
    color: var(--primary);
    background: var(--primary-soft);
}
.etapes h3 {
    margin-bottom: 12px;
}
.etapes p {
    margin: 0;
    font-size: .93rem;
    line-height: 1.8;
}
.abonnement-grille {
    display: grid;
    grid-template-columns: 1fr minmax(320px, .8fr);
    align-items: center;
    gap: 70px;
}
.abonnement-texte h2 {
    max-width: 650px;
    margin-bottom: 22px;
}
.abonnement-texte > p:not(.surtitre) {
    max-width: 620px;
    line-height: 1.9;
}
.avantages-abonnement {
    display: grid;
    gap: 12px;
    margin-top: 27px;
}
.avantages-abonnement p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #35455b;
    font-size: .94rem;
    font-weight: 700;
}
.avantages-abonnement i {
    margin-top: 5px;
    color: var(--green);
}
.carte-abonnement {
    padding: 36px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 55px rgba(0, 48, 102, .13);
}
.abonnement-etiquette {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 13px;
    color: #6d4300;
    background: var(--orange-soft);
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 900;
}
.carte-abonnement h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}
.abonnement-prix {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.2;
}
.abonnement-periode {
    font-size: .86rem;
    line-height: 1.7;
}
.separateur-abonnement {
    height: 1px;
    margin: 23px 0;
    background: var(--border);
}
.inclus-titre {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 900;
}
.carte-abonnement ul {
    display: grid;
    gap: 11px;
    margin: 0 0 27px;
    padding: 0;
    list-style: none;
}
.carte-abonnement li {
    display: flex;
    gap: 10px;
    color: #4b596e;
    font-size: .88rem;
}
.carte-abonnement li i {
    margin-top: 5px;
    color: var(--green);
}
.lien-contact-prix {
    display: block;
    margin-top: 17px;
    text-align: center;
    font-size: .84rem;
    font-weight: 800;
}
.faq-conteneur {
    max-width: 900px;
}
.faq-liste {
    display: grid;
    gap: 13px;
}
.faq-item {
    padding: 0 22px;
    background: #fff;
    border-radius: 13px;
}
.faq-item[open] {
    border-color: rgba(0, 48, 102, .25);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    color: var(--primary);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary i {
    color: var(--orange-hover);
    transition: transform var(--transition);
}
.faq-item[open] summary i {
    transform: rotate(45deg);
}
.faq-item > p {
    padding: 0 0 20px;
    margin: 0;
    font-size: .93rem;
    line-height: 1.85;
}
.appel-final {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: radial-gradient(circle at 90% 0%, rgba(255, 153, 0, .2), transparent 30%), linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
}
.appel-final::before,
.appel-final::after {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.appel-final::before {
    top: -130px;
    left: -80px;
}
.appel-final::after {
    right: -90px;
    bottom: -150px;
}
.appel-final-contenu {
    position: relative;
    z-index: 1;
}
.appel-icone {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 23px;
    place-items: center;
    color: var(--primary);
    background: var(--orange);
    border-radius: 18px;
    font-size: 1.45rem;
}
.appel-final h2 {
    max-width: 850px;
    margin: 0 auto 19px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}
.appel-final-contenu > p:not(.surtitre) {
    max-width: 650px;
    margin: 0 auto 29px;
    color: rgba(255, 255, 255, .76);
}
.appel-actions {
    justify-content: center;
}
.site-footer {
    padding: 65px 0 0;
    color: rgba(255, 255, 255, .75);
    background: #071b34;
}
.footer-grille {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr;
    gap: 55px;
    padding-bottom: 40px;
}
.logo-footer {
    color: #fff;
}
.logo-footer:hover {
    color: #fff;
}
.logo-footer .logo-texte small {
    color: rgba(255, 255, 255, .6);
}
.footer-marque > p {
    max-width: 390px;
    margin-top: 21px;
    color: rgba(255, 255, 255, .64);
    font-size: .92rem;
    line-height: 1.85;
}
.footer-titre {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}
.site-footer p:not(.footer-titre) {
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    line-height: 1.8;
}
.site-footer a {
    color: rgba(255, 255, 255, .76);
}
.site-footer a:hover {
    color: var(--orange);
}
.site-footer p i {
    width: 20px;
    margin-right: 6px;
    color: var(--orange);
}
.footer-bas {
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bas-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.footer-bas p {
    margin: 0;
    font-size: .82rem !important;
}
.footer-bas a {
    font-size: .82rem;
    font-weight: 800;
}
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-texte {
        animation: apparition .6s ease both;
    }
    .hero-visuel {
        animation: apparition .6s .12s ease both;
    }
    @keyframes apparition {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media (max-width: 1050px) {
    .pc {
        display: none;
    }
    .header-barre {
        gap: 12px;
    }
    .logo {
        font-size: .95rem;
    }
    .logo-icone {
        width: 41px;
        height: 41px;
    }
    .menu-principal a {
        padding-inline: 7px;
        font-size: .79rem;
    }
    .hero-grille {
        gap: 32px;
    }
    .hero-image {
        min-height: 370px;
    }
    .grille-fonctions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .contexte-grille {
        gap: 40px;
    }
    .abonnement-grille {
        gap: 40px;
    }
    .sidebar {
        width: 300px;
    }
}
@media (max-width: 850px) {
    .header-barre {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 10px;
    }
    .menu-principal {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .menu-principal a {
        flex-shrink: 0;
    }
    .hero-grille {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .hero-image {
        min-height: 330px;
    }
    .carte-flottante-haut {
        left: -8px;
    }
    .carte-flottante-bas {
        right: -5px;
    }
    .bandeau-confiance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .intro-grille {
        gap: 30px;
    }
    .grille-avantages {
        gap: 15px;
    }
    .avantage {
        padding: 23px;
    }
    .grille-fonctions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contexte-grille {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .contexte-visuel {
        min-height: 380px;
    }
    .abonnement-grille {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .carte-abonnement {
        padding: 27px;
    }
    .footer-grille {
        gap: 28px;
    }
    .sidebar {
        width: 300px;
    }
}
@media (max-width: 650px) {
    .conteneur {
        width: min(calc(100% - 32px), var(--container));
    }
    .section {
        padding: 70px 0;
    }
    .header-barre {
        min-height: 0;
    }
    .logo {
        max-width: calc(100% - 115px);
    }
    .logo-texte {
        font-size: .90rem;
    }
    .logo-texte small {
        font-size: .61rem;
    }
    .bouton-entete {
        min-height: 41px;
        padding: 9px 11px;
        font-size: .78rem;
    }
    .menu-principal {
        gap: 2px;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
    .menu-principal a {
        padding: 8px 10px;
        font-size: .82rem;
    }
    .hero {
        padding-top: 55px;
    }
    .hero-grille {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 50px;
    }
    .hero-texte h1 {
        font-size: clamp(2.25rem, 9vw, 3.35rem);
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-actions {
        align-items: stretch;
    }
    .hero-actions .bouton {
        width: 100%;
    }
    .hero-points {
        display: grid;
        gap: 8px;
    }
    .hero-visuel {
        padding: 0 3px 28px;
    }
    .hero-image {
        min-height: 300px;
        border-width: 5px;
        border-radius: 22px;
    }
    .carte-flottante {
        padding: 10px 12px;
    }
    .carte-flottante-haut {
        top: 20px;
        left: -2px;
    }
    .carte-flottante-bas {
        right: -2px;
        bottom: 40px;
    }
    .carte-flottante strong {
        font-size: .78rem;
    }
    .carte-flottante small {
        font-size: .66rem;
    }
    .flottante-icone {
        width: 36px;
        height: 36px;
    }
    .hero-badge {
        right: 10px;
        bottom: 0;
        font-size: .68rem;
    }
    .bandeau-confiance {
        gap: 18px 10px;
        padding-top: 23px;
        padding-bottom: 23px;
    }
    .bandeau-confiance > div {
        align-items: flex-start;
        gap: 9px;
    }
    .bandeau-confiance > div > i {
        font-size: 1.15rem;
    }
    .bandeau-confiance strong {
        font-size: .76rem;
    }
    .bandeau-confiance small {
        font-size: .68rem;
    }
    .intro-grille {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }
    .intro-texte h2 {
        font-size: 2rem;
    }
    .grille-avantages,
    .grille-apercus,
    .etapes,
    .abonnement-grille {
        grid-template-columns: 1fr;
    }
    .grille-avantages {
        gap: 15px;
    }
    .avantage {
        padding: 25px;
    }
    .entete-section {
        margin-bottom: 32px;
    }
    .grille-fonctions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .fonction {
        min-height: 0;
        padding: 25px;
    }
    .fonction-icone {
        margin-bottom: 16px;
    }
    .apercu-image {
        min-height: 220px;
    }
    .contexte-grille {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contexte-visuel {
        min-height: 280px;
    }
    .etapes {
        gap: 15px;
    }
    .etapes li {
        min-height: 0;
        padding: 25px;
    }
    .abonnement-grille {
        gap: 32px;
    }
    .carte-abonnement {
        padding: 27px 22px;
    }
    .appel-final {
        padding: 70px 0;
    }
    .appel-actions {
        gap: 12px;
    }
    .footer-grille {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 30px;
    }
    .site-footer {
        padding-top: 48px;
    }
    .footer-bas-interieur {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .sidebar {
        width: 250px;
    }
}
@media (max-width: 380px) {
    .conteneur {
        width: calc(100% - 24px);
    }
    .logo {
        gap: 7px;
    }
    .logo-icone {
        width: 35px;
        height: 35px;
        border-radius: 10px;
        font-size: 1.05rem;
    }
    .logo-texte {
        font-size: .82rem;
    }
    .bouton-entete {
        padding: 8px;
        font-size: .72rem;
    }
    .hero-texte h1 {
        font-size: 2.05rem;
    }
    .hero-image {
        min-height: 245px;
    }
    .bandeau-confiance {
        grid-template-columns: 1fr 1fr;
    }
    .fonction,
    .avantage {
        padding: 22px;
    }
    .carte-abonnement {
        padding: 23px 18px;
    }
    .sidebar {
        width: 250px;
    }
}
.bandeau-essai {
    background: #f90;
    color: #09274a;
    padding: 10px 0;
    text-align: center;
    font-size: .94rem;
    line-height: 1.5;
}
.bandeau-essai i {
    margin-right: 7px;
}
.bandeau-essai strong {
    font-weight: 800;
}
.hero-prix {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 13px;
    margin: 22px 0 4px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 48, 102, .1);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 30, 70, .06);
    width: fit-content;
    max-width: 100%;
}
.hero-prix-etiquette {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #087443;
    background: #e3f8ed;
    padding: 6px 9px;
    border-radius: 6px;
}
.hero-prix strong {
    font-size: 1.2rem;
    color: #003066;
}
.hero-prix>span:last-child {
    color: #45556b;
    font-size: .92rem;
}
.essai-points {
    display: grid;
    gap: 15px;
    margin-top: 32px;
}
.essai-points>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 35, 80, .04);
}
.essai-points i {
    font-size: 1.45rem;
    color: #f90;
}
.essai-points strong {
    color: #003066;
}
.essai-points span {
    font-size: .92rem;
    color: #64748b;
    line-height: 1.6;
}
.centrer {
    text-align: center;
}
.marge-haute {
    margin-top: 30px;
}
.petit-texte {
    font-size: .86rem;
    color: #64748b;
    margin-top: 12px;
}
.paiements-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.paiement-carte {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 25px 22px;
    box-shadow: 0 8px 28px rgba(0, 35, 80, .045);
}
.paiement-icone {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    color: #003066;
    border-radius: 13px;
    font-size: 1.35rem;
    margin-bottom: 15px;
}
.paiement-carte h3 {
    color: #003066;
    margin: 0 0 10px;
    font-size: 1.12rem;
}
.paiement-carte p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: .94rem;
}
.paiement-securite {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #f0dcae;
    background: #fff9e9;
    border-radius: 12px;
    color: #5d4a20;
    line-height: 1.7;
}
.paiement-securite>i {
    font-size: 1.4rem;
    margin-top: 3px;
    color: #a56b00;
}
.paiement-securite p {
    margin: 0;
}
.appel-prix-rappel {
    font-size: .95rem;
    font-weight: 700;
    margin-top: 17px !important;
}
.footer-offre {
    font-weight: 700;
    color: #ffbd52 !important;
}
@media (max-width: 900px) {
    .paiements-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .essai-points {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .paiements-grille {
        grid-template-columns: 1fr;
    }
    .hero-prix {
        align-items: flex-start;
        flex-direction: column;
    }
    .bandeau-essai {
        font-size: .84rem;
        padding: 9px 12px;
    }
}
body.login-body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(0, 48, 102, .05), transparent 40%), var(--section);
    margin: 0;
    padding: 20px;
}
.login-boite-moderne {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-boite-moderne h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--primary);
}
.login-boite-moderne h1 i {
    color: var(--orange);
}
.login-boite-moderne h2 {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 25px;
    font-weight: 600;
}
.form-groupe {
    margin-bottom: 20px;
}
.form-groupe label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
}
.form-groupe input[type="text"],
.form-groupe input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fdfefe;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-groupe input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.login-mdp-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.login-mdp-wrapper button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
}
.login-mdp-wrapper button:hover {
    color: var(--primary);
}
.login-erreur-msg {
    color: #d93838;
    background: #fde8e8;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.login-retour-lien {
    text-align: center;
    margin-top: 22px;
    font-size: .88rem;
}
.login-retour-lien a {
    font-weight: 700;
    color: var(--primary);
}
.header-infos-admin {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 700;
}
.badge-annee,
.badge-periode,
.temps-reel {
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: 8px;
}
.header-actions-utilisateur {
    display: flex;
    align-items: center;
    gap: 12px;
}
.utilisateur-connecte {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-name {
    font-size: .9rem;
    color: var(--text);
}
.notification-banner {
    background-color: var(--orange);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
}
.bouton-notification-ok {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}
.bouton-notification-ok:hover {
    background: var(--primary-light);
    color: #fff;
}
body.login-body,
.loader-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, .92);
    flex-direction: column;
    z-index: 9999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 900px) {
    .header-infos-admin {
        display: none;
    }
}
.active {
    background-color: #e2eaf6;
    border-radius: 12px;
}
.comptes-wrapper {
    width: 100%;
    padding: 10px 0;
}
.comptes-card,
.comptes-form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--border, #e2e9f2);
}
.comptes-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(0, 35, 78, .06));
    padding-bottom: 80px;
}
.comptes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.comptes-header h2,
.comptes-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comptes-header h2 {
    color: var(--primary, #003066);
    font-size: 1.4rem;
    font-weight: 800;
}
.comptes-header h2 i {
    color: var(--orange, #f90);
}
.comptes-form {
    flex-wrap: wrap;
    width: 100%;
    max-width: 450px;
}
.comptes-form .input-group {
    flex: 1;
    min-width: 200px;
}
.comptes-form input[type="text"] {
    padding: 10px 14px;
    font-size: .95rem;
    border-radius: var(--radius-sm, 8px);
    background: #fdfefe;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.comptes-form input[type="text"]:focus {
    border-color: var(--primary-light, #0b57a3);
    box-shadow: 0 0 0 3px var(--primary-soft, #eaf2fc);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border, #e2e9f2);
}
.table-comptes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    white-space: nowrap;
}
.table-comptes th {
    background-color: var(--primary, #003066);
    color: #fff;
    padding: 12px 15px;
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
}
.table-comptes td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border, #e2e9f2);
    color: var(--text, #17243a);
    font-size: .92rem;
    text-align: center;
}
.table-comptes tr:last-child td {
    border-bottom: none;
}
.table-comptes tr:hover td {
    background-color: var(--primary-soft, #eaf2fc);
}
.badge-pwd {
    font-family: monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--muted, #5a687d);
}
.badge-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    background: #eaf2fc;
    color: var(--primary, #003066);
}
.btn-supprimer,
.no-data-alert {
    font-weight: 600;
    border-radius: var(--radius-sm, 8px);
    color: #d93838;
    background: #fde8e8;
    border: 1px solid #f9c6c6;
}
.btn-supprimer {
    padding: 6px 12px;
    cursor: pointer;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
}
.btn-supprimer:hover {
    background: #d93838;
    color: #fff;
    border-color: #d93838;
}
.no-data-alert {
    text-align: center;
    padding: 30px;
}
@media (max-width: 768px) {
    .comptes-card {
        padding: 15px;
    }
    .comptes-header {
        flex-direction: column;
        align-items: stretch;
    }
    .comptes-form {
        max-width: 100%;
    }
    .comptes-form button {
        width: 100%;
    }
    .table-comptes th,
    .table-comptes td {
        padding: 10px;
        font-size: .85rem;
    }
}
.periode-wrapper,
.annee-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
}
.periode-wrapper {
    margin: 30px auto;
    padding: 0 15px;
}
.periode-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(0, 35, 78, .06));
    border: 1px solid var(--border, #e2e9f2);
}
.periode-header {
    margin-bottom: 25px;
    text-align: center;
}
.periode-header h2,
.annee-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.periode-header h2 {
    color: var(--primary, #003066);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    gap: 10px;
}
.periode-header h2 i {
    color: var(--orange, #f90);
}
.periode-soustitre {
    color: var(--muted, #5a687d);
    font-size: 1rem;
    margin: 0;
}
.periode-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.periode-form label {
    font-weight: 700;
    color: var(--primary, #003066);
    font-size: .95rem;
}
.periode-form input[type="number"],
input,
select {
    box-sizing: border-box;
    width: 100%;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.periode-form input[type="number"] {
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 1px solid var(--border, #e2e9f2);
    border-radius: var(--radius-sm, 8px);
    background: #fdfefe;
    color: var(--text, #17243a);
    text-align: center;
    font-weight: bold;
}
.periode-form input[type="number"]:focus {
    border-color: var(--primary-light, #0b57a3);
    box-shadow: 0 0 0 3px var(--primary-soft, #eaf2fc);
}
.form-actions {
    margin-top: 10px;
}
.form-actions button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    justify-content: center;
}
.periode-erreur {
    margin-top: 15px;
    padding: 12px;
    background: #fde8e8;
    border: 1px solid #f9c6c6;
    color: #d93838;
    font-weight: 600;
    font-size: .9rem;
}
@media (max-width: 768px) {
    .periode-card {
        padding: 20px;
    }
}
.annee-wrapper {
    margin: 30px auto;
    padding: 0 15px;
}
.annee-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(0, 35, 78, .06));
    border: 1px solid var(--border, #e2e9f2);
}
.annee-header {
    margin-bottom: 25px;
    text-align: center;
}
.annee-header h2 {
    color: var(--primary, #003066);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    gap: 10px;
}
.annee-header h2 i {
    color: var(--orange, #f90);
}
.annee-header p {
    color: var(--muted, #5a687d);
    font-size: .95rem;
    margin: 0;
}
.annee-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    gap: 8px;
}
.annee-form label {
    font-weight: 700;
    color: var(--primary, #003066);
    font-size: .95rem;
}
.annee-form select,
.annee-form input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border, #e2e9f2);
    border-radius: var(--radius-sm, 8px);
    background: #fdfefe;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-sizing: border-box;
    color: var(--text, #17243a);
}
.annee-form select:focus,
.annee-form input[type="number"]:focus {
    border-color: var(--primary-light, #0b57a3);
    box-shadow: 0 0 0 3px var(--primary-soft, #eaf2fc);
}
.form-actions {
    margin-top: 10px;
}
.form-actions button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    justify-content: center;
}
.modal-interne {
    width: 100%;
}
.modal-content-interne {
    position: relative;
    background: #fff;
    padding: 10px 0;
}
.modal-content-interne h3 {
    color: var(--primary, #003066);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-align: center;
}
.modal-annee-titre {
    text-align: center;
    color: var(--orange, #f90);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.close-box {
    text-align: right;
}
.close-btn {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--muted, #5a687d);
}
.close-btn:hover {
    color: var(--text, #17243a);
}
.periode-erreur,
.annee-erreur {
    text-align: center;
    border-radius: var(--radius-sm, 8px);
}
.annee-erreur {
    margin-top: 15px;
    padding: 12px;
    background: #fde8e8;
    border: 1px solid #f9c6c6;
    color: #d93838;
    font-weight: 600;
    font-size: .9rem;
}
@media (max-width: 768px) {
    .annee-card {
        padding: 20px;
    }
}
input,
select {
    padding: 11px 14px;
    font-size: .95rem;
    border: 1px solid var(--border, #e2e9f2);
    border-radius: var(--radius-sm, 8px);
    background: #fdfefe;
    color: var(--text, #17243a);
    text-align: center;
}
.button,
input[type="submit"] {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    text-align: center;
    font-size: .94rem;
    font-weight: 800;
    margin-top: 10px;
    line-height: 1.35;
    color: #17243a;
    background: linear-gradient(135deg, #ffb12e, var(--orange));
    box-shadow: 0 8px 20px rgba(255, 153, 0, .22);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.page-mot-de-passe .mot-de-passe-card h3 {
    margin: 0 0 8px;
    text-align: center;
}
.page-mot-de-passe .mot-de-passe-description {
    margin: 0 0 24px;
    text-align: center;
}
.page-mot-de-passe .champ-mot-de-passe {
    width: 100%;
    margin-bottom: 18px;
    text-align: left;
}
.page-mot-de-passe .champ-mot-de-passe label {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    text-align: left;
    font-weight: 600;
}
.page-mot-de-passe .input-avec-oeil {
    position: relative;
    width: 100%;
}
.page-mot-de-passe .input-avec-oeil input {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 12px 48px 12px 14px;
    margin: 0;
}
.page-mot-de-passe .bouton-oeil {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 5px;
}
.page-mot-de-passe .bouton-oeil:hover {
    background: rgba(128, 128, 128, .12);
}
.page-mot-de-passe .bouton-oeil:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.page-mot-de-passe .bouton-enregistrer {
    display: block;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}
.page-mot-de-passe .messages-mot-de-passe {
    margin-top: 18px;
    text-align: center;
    overflow-wrap: anywhere;
}
.page-mot-de-passe .message-erreur {
    color: #c62828;
    font-weight: 600;
    margin-top: 8px;
}
.page-mot-de-passe .message-succes {
    color: #238443;
    font-weight: 600;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .page-mot-de-passe {
        padding: 16px 10px;
    }
    .page-mot-de-passe .mot-de-passe-card {
        padding: 20px 16px;
    }
}
.liste-eleves-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    color: #263445;
    font-family: Arial, Helvetica, sans-serif;
}
.liste-eleves-page *,
.liste-eleves-page *::before,
.liste-eleves-page *::after {
    box-sizing: border-box;
}
.liste-eleves-titre {
    margin: 0 0 22px;
    color: #003066;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.4;
}
.liste-eleves-sous-titre {
    margin: -10px 0 20px;
    color: #667085;
    font-size: 14px;
}
.liste-eleves-recherche {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0 0 20px;
}
.liste-eleves-recherche input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #263445;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.liste-eleves-recherche input:focus {
    border-color: #003066;
    box-shadow: 0 0 0 3px rgba(0, 48, 102, .12);
}
.liste-eleves-recherche button {
    flex-shrink: 0;
    min-height: 45px;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: #003066;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.liste-eleves-recherche button:hover {
    background: #f90;
    color: #003066;
}
.liste-eleves-recherche button:active {
    transform: scale(.98);
}
.liste-eleves-compteur {
    margin: 0 0 12px;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}
.liste-eleves-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}
.liste-eleves-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
}
.liste-eleves-table thead {
    background: #003066;
    color: #fff;
}
.liste-eleves-table th,
.liste-eleves-table td {
    padding: 13px 11px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eaecf0;
    overflow-wrap: anywhere;
}
.liste-eleves-table th {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.liste-eleves-table td {
    color: #344054;
    font-size: 14px;
    line-height: 1.5;
}
.liste-eleves-table tbody tr {
    transition: background .2s;
}
.liste-eleves-table tbody tr:hover {
    background: #f5f8fc;
}
.liste-eleves-table tbody tr:last-child td {
    border-bottom: none;
}
.liste-eleves-table a {
    color: #003066;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.liste-eleves-table a:hover {
    color: #c77700;
    text-decoration: underline;
}
.liste-eleves-matricule {
    white-space: nowrap;
}
.liste-eleves-actions {
    width: 170px;
    min-width: 150px;
}
.liste-eleves-actions select {
    display: block;
    width: 100%;
    max-width: 200px;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    outline: none;
    background-color: #fff;
    color: #263445;
    font-size: 13px;
    cursor: pointer;
}
.liste-eleves-actions select:focus {
    border-color: #003066;
    box-shadow: 0 0 0 3px rgba(0, 48, 102, .10);
}
.liste-eleves-message {
    margin: 15px 0;
    padding: 16px;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    background: #f2f6fc;
    color: #003066;
    font-size: 14px;
    line-height: 1.6;
}
.liste-eleves-erreur {
    border-color: #fecdca;
    background: #fff0f0;
    color: #b42318;
}
[hidden] {
    display: none !important;
}
@media (max-width: 850px) {
    .liste-eleves-page {
        padding: 10px;
    }
    .liste-eleves-titre {
        margin-bottom: 18px;
        font-size: 23px;
    }
    .liste-eleves-recherche {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 18px;
    }
    .liste-eleves-recherche input {
        width: 100%;
        min-height: 46px;
        font-size: 16px;
    }
    .liste-eleves-recherche button {
        width: 100%;
        min-height: 45px;
        padding: 12px;
    }
    .liste-eleves-table-wrapper {
        overflow: visible;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .liste-eleves-table,
    .liste-eleves-table tbody {
        display: block;
        width: 100%;
    }
    .liste-eleves-table thead {
        display: none;
    }
    .liste-eleves-table tbody tr {
        display: block;
        width: 100%;
        margin: 0 0 15px;
        padding: 8px 14px;
        border: 1px solid #e0e6ee;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(16, 24, 40, .06);
        transition: box-shadow .2s;
    }
    .liste-eleves-table tbody tr:hover {
        background: #fff;
        box-shadow: 0 4px 13px rgba(16, 24, 40, .10);
    }
    .liste-eleves-table tbody td {
        display: grid;
        grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
        width: 100%;
        min-width: 0;
        padding: 11px 0;
        border-bottom: 1px solid #edf0f4;
        text-align: left;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .liste-eleves-table tbody td::before {
        content: attr(data-label);
        display: block;
        color: #667085;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .liste-eleves-table tbody td:last-child {
        border-bottom: none;
    }
    .liste-eleves-table tbody td.liste-eleves-matricule {
        white-space: normal;
    }
    .liste-eleves-table tbody td.liste-eleves-matricule a {
        overflow-wrap: anywhere;
    }
    .liste-eleves-table tbody td.liste-eleves-actions {
        width: 100%;
        min-width: 0;
    }
    .liste-eleves-actions select {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 43px;
        padding: 10px;
        font-size: 14px;
        white-space: normal;
    }
    .liste-eleves-compteur {
        font-size: 13px;
    }
    .liste-eleves-message {
        padding: 14px;
        font-size: 14px;
    }
}
@media (max-width: 380px) {
    .liste-eleves-page {
        padding: 8px;
    }
    .liste-eleves-titre {
        font-size: 21px;
    }
    .liste-eleves-table tbody tr {
        padding: 7px 10px;
        border-radius: 9px;
    }
    .liste-eleves-table tbody td {
        grid-template-columns: minmax(90px, 38%) minmax(0, 1fr);
        column-gap: 8px;
        padding: 10px 0;
        font-size: 13px;
    }
    .liste-eleves-table tbody td::before {
        font-size: 11px;
    }
    .liste-eleves-actions select {
        padding: 9px 6px;
        font-size: 12px;
    }
}
@media (min-width: 1200px) {
    .liste-eleves-page {
        padding: 20px;
    }
    .liste-eleves-table th,
    .liste-eleves-table td {
        padding: 14px 13px;
    }
}
.inscription-page {
    --inscription-bleu: var(--couleur-primaire, var(--primary-color, #003066));
    --inscription-orange: var(--couleur-accent, var(--accent-color, #ff9900));
    --inscription-texte: var(--couleur-texte, #263445);
    --inscription-bordure: #dce4ed;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    color: var(--inscription-texte);
    font-family: inherit;
    box-sizing: border-box;
}
.inscription-page *,
.inscription-page *::before,
.inscription-page *::after {
    box-sizing: border-box;
}
.inscription-entete {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.inscription-icone {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: var(--inscription-bleu);
    background: #edf3fa;
    border-radius: 14px;
    font-size: 23px;
}
.inscription-surTitre {
    margin: 0 0 4px;
    color: var(--inscription-bleu);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}
.inscription-titres h1 {
    margin: 0;
    color: var(--inscription-bleu);
    font-size: clamp(21px, 4vw, 30px);
    line-height: 1.2;
}
.inscription-titres > p:last-child {
    margin: 6px 0 0;
    color: #687789;
    font-size: 13px;
    line-height: 1.5;
}
.inscription-alerte {
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--inscription-bordure);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
}
.inscription-alerte-erreur {
    border-left: 4px solid #b42318;
}
.inscription-alerte ul {
    margin: 8px 0 0;
    padding-left: 22px;
}
.inscription-progression,
.inscription-section {
    background: #fff;
    margin-bottom: 12px;
    border: 1px solid var(--inscription-bordure);
}
.inscription-progression {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 15px;
    border-radius: 12px;
    color: var(--inscription-bleu);
    font-size: 13px;
    font-weight: 700;
}
.inscription-obligatoire {
    color: #6b7787;
    font-size: 11px;
    font-weight: 500;
}
.inscription-section {
    overflow: hidden;
    border-radius: 13px;
}
.inscription-section > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 13px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.inscription-section > summary::-webkit-details-marker {
    display: none;
}
.section-numero {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #edf3fa;
    color: var(--inscription-bleu);
    font-weight: 800;
}
.section-titre {
    flex: 1;
    gap: 4px;
}
.section-titre,
.champ {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.section-titre strong {
    color: var(--inscription-bleu);
    font-size: 14px;
}
.section-titre small {
    color: #718093;
    font-size: 12px;
    line-height: 1.4;
}
.section-chevron {
    color: #718093;
    font-size: 13px;
    transition: transform .2s ease;
}
.inscription-section[open] .section-chevron {
    transform: rotate(180deg);
}
.inscription-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 16px 13px;
    border-top: 1px solid #edf0f4;
}
.champ {
    gap: 7px;
}
.champ label {
    color: var(--inscription-texte);
    font-size: 13px;
    font-weight: 700;
}
.champ label span {
    color: #bd5b00;
}
.inscription-page input:not([type="file"]),
.inscription-page select,
.inscription-page textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #fff;
    color: var(--inscription-texte);
    font: inherit;
    font-size: 16px;
}
.inscription-page textarea {
    min-height: 90px;
    resize: vertical;
}
.inscription-page input:focus,
.inscription-page select:focus,
.inscription-page textarea:focus {
    border-color: var(--inscription-orange);
    outline: 3px solid rgb(255 153 0 / 16%);
}
.champ-photo {
    padding: 16px 13px;
}
.champ-photo input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px dashed #bac7d6;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 14px;
}
.champ-photo small {
    color: #6b7787;
    font-size: 12px;
}
#apercu-photo {
    display: block;
    width: 110px;
    height: 110px;
    margin-top: 10px;
    object-fit: cover;
    border: 1px solid var(--inscription-bordure);
    border-radius: 12px;
}
.inscription-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    margin-top: 8px;
    background: #fff;
}
.inscription-actions button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.bouton-secondaire {
    border-color: var(--inscription-bordure) !important;
    background: #fff;
    color: var(--inscription-bleu);
}
@media (min-width: 600px) {
    .inscription-page {
        padding: 22px;
    }
    .inscription-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 20px;
    }
    .champ-large {
        grid-column: 1 / -1;
    }
    .inscription-section > summary {
        padding: 15px 20px;
    }
    .champ-photo {
        padding: 20px;
    }
    .inscription-actions {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        padding: 12px 0;
        background: transparent;
    }
    .inscription-actions button {
        width: auto;
        min-width: 170px;
    }
}
@media (min-width: 900px) {
    .inscription-page {
        padding: 26px;
    }
    .inscription-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    .section-chevron {
        transition: none;
    }
}
.dossier-page {
    --dossier-blue: #003066;
    --dossier-orange: #ff9900;
    --dossier-bg: #f4f7fb;
    --dossier-border: #e1e7ef;
    --dossier-text: #263449;
    --dossier-muted: #66758a;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
    color: var(--dossier-text);
    box-sizing: border-box;
}
.dossier-page *,
.dossier-page *::before,
.dossier-page *::after {
    box-sizing: border-box;
}
.dossier-page h1,
.dossier-page h2,
.dossier-page h3,
.dossier-page p {
    margin-top: 0;
}
.dossier-page h1,
.dossier-page h2,
.dossier-page h3 {
    color: var(--dossier-blue);
}
.dossier-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
    margin-top: 10px;
}
.dossier-title h1 {
    margin-bottom: 5px;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.dossier-title p {
    margin-bottom: 0;
    color: var(--dossier-muted);
    font-size: 14px;
}
.dossier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dossier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 7px;
    border: 1px solid var(--dossier-border);
    border-radius: 9px;
    background: #fff;
    color: var(--dossier-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.dossier-btn:hover {
    background: #edf3fa;
    color: var(--dossier-blue);
}
.dossier-btn-primary {
    background: var(--dossier-blue);
    border-color: var(--dossier-blue);
    color: #fff;
}
.dossier-btn-primary:hover {
    background: #064781;
    color: #fff;
}
.dossier-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 10px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--dossier-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 48, 102, .06);
}
.dossier-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.dossier-photo {
    display: block;
    flex: 0 0 94px;
    width: 94px;
    height: 110px;
    padding: 3px;
    object-fit: cover;
    object-position: center;
    background: #fff;
    border: 2px solid var(--dossier-orange);
    border-radius: 12px;
    cursor: zoom-in;
}
.dossier-name {
    min-width: 0;
}
.dossier-name h2 {
    margin-bottom: 7px;
    font-size: clamp(19px, 3vw, 26px);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.dossier-name p {
    margin-bottom: 5px;
    color: var(--dossier-muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}
.dossier-id {
    font-weight: 800;
    color: var(--dossier-blue) !important;
}
.dossier-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 5px;
    border-radius: 20px;
    background: #edf3fa;
    color: var(--dossier-blue);
    font-size: 12px;
    font-weight: 800;
}
.dossier-status.status-abandon {
    background: #fff0ef;
    color: #a62e24;
}
.dossier-status.status-actif {
    background: #e8f7ee;
    color: #216e40;
}
.dossier-status.status-termine {
    background: #fff4df;
    color: #815100;
}
.dossier-quick-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.dossier-quick-card {
    padding: 7px;
    border: 1px solid var(--dossier-border);
    border-radius: 11px;
    background: var(--dossier-bg);
    min-width: 0;
}
.dossier-quick-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--dossier-muted);
    font-size: 12px;
}
.dossier-quick-card strong {
    display: block;
    color: var(--dossier-blue);
    font-size: 15px;
    overflow-wrap: anywhere;
}
.dossier-section {
    margin-bottom: 18px;
    padding: 9px;
    background: #fff;
    border: 1px solid var(--dossier-border);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0, 48, 102, .04);
    min-width: 0;
}
.dossier-section-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--dossier-border);
}
.dossier-section-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #edf3fa;
    color: var(--dossier-blue);
    font-size: 17px;
}
.dossier-section-header h2 {
    margin-bottom: 3px;
    font-size: 17px;
    font-weight: 800;
}
.dossier-section-header p {
    margin-bottom: 0;
    color: var(--dossier-muted);
    font-size: 12px;
}
.dossier-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.dossier-info-item {
    min-width: 0;
    padding: 6px 4px;
    border-bottom: 1px solid #edf0f5;
    overflow-wrap: anywhere;
}
.dossier-info-item:last-child {
    border-bottom: 0;
}
.dossier-info-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dossier-muted);
    font-size: 12px;
    font-weight: 600;
}
.dossier-info-value {
    display: block;
    color: var(--dossier-text);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.dossier-timeline {
    display: grid;
    gap: 12px;
}
.dossier-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 7px;
    border: 1px solid var(--dossier-border);
    border-radius: 10px;
    background: #fff;
}
.dossier-timeline-dot {
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
    margin-top: 4px;
    background: var(--dossier-orange);
    border: 2px solid #fff0d8;
    border-radius: 50%;
}
.dossier-timeline-content {
    min-width: 0;
}
.dossier-timeline-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dossier-blue);
    font-size: 14px;
}
.dossier-timeline-content span {
    color: var(--dossier-muted);
    font-size: 13px;
}
.dossier-empty {
    padding: 9px;
    border: 1px dashed var(--dossier-border);
    border-radius: 10px;
    color: var(--dossier-muted);
    text-align: center;
    font-size: 14px;
}
.dossier-alert {
    padding: 8px;
    margin-bottom: 18px;
    border: 1px solid #f0c4c1;
    border-radius: 12px;
    background: #fff4f3;
    color: #8d2821;
}
.dossier-alert h2 {
    color: #8d2821;
    font-size: 18px;
}
.dossier-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 9px;
    background: rgba(8, 20, 38, .88);
}
.dossier-modal.is-open {
    display: flex;
}
.dossier-modal img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.dossier-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--dossier-blue);
    font-size: 25px;
    cursor: pointer;
}
@media (min-width: 560px) {
    .dossier-page {
        padding: 10px;
    }
    .dossier-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .dossier-quick-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dossier-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }
    .dossier-info-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}
@media (min-width: 850px) {
    .dossier-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: center;
    }
    .dossier-quick-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dossier-info-grid.dossier-info-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dossier-info-grid.dossier-info-grid-3 .dossier-info-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #edf0f5;
    }
    .dossier-info-grid.dossier-info-grid-3 .dossier-info-item:last-child {
        border-bottom: 0;
    }
}
@media (max-width: 380px) {
    .dossier-page {
        padding: 5px;
    }
    .dossier-hero,
    .dossier-section {
        padding: 7px;
    }
    .dossier-photo {
        flex-basis: 76px;
        width: 76px;
        height: 90px;
    }
    .dossier-identity {
        gap: 11px;
    }
    .dossier-actions .dossier-btn {
        flex: 1 1 100%;
    }
}
@media print {
    .dossier-topbar,
    .dossier-actions,
    .dossier-modal {
        display: none !important;
    }
    .dossier-page {
        max-width: none;
        padding: 0;
    }
    .dossier-hero,
    .dossier-section {
        box-shadow: none;
        break-inside: avoid;
    }
    .dossier-section {
        margin-bottom: 10px;
    }
}


.acces-page {
    width: min(1100px, calc(100% - 28px));
    margin: 28px auto 60px;
}

.acces-entete,
.acces-carte,
.acces-module {
    background: #fff;
    border: 1px solid var(--border, #dce3ed);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 4px 16px rgba(0,0,0,.04));
}

.acces-entete {
    padding: 24px;
    margin-bottom: 18px;
}

.acces-titre {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.acces-icone {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--primary-soft, #eaf1ff);
    color: var(--primary, #003066);
    border-radius: 14px;
    font-size: 22px;
}

.acces-titre h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 4px;
}

.acces-titre p {
    margin: 0;
    color: var(--muted, #667085);
}

.acces-identite {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.acces-identite > div {
    padding: 12px 14px;
    background: var(--section, #f4f7fb);
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.acces-identite small {
    display: block;
    color: var(--muted, #667085);
}

.acces-identite strong {
    display: block;
    color: var(--primary, #003066);
}

.acces-outils {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
}

.acces-outils input[type="search"] {
    flex: 1;
    min-width: 190px;
    padding: 12px 14px;
    border: 1px solid var(--border, #dce3ed);
    border-radius: 10px;
}

.acces-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acces-bouton {
    border: 1px solid var(--border, #dce3ed);
    border-radius: 10px;
    background: #fff;
    color: var(--primary, #003066);
    padding: 10px 13px;
    font-weight: 700;
    cursor: pointer;
}

.acces-bouton:hover {
    background: var(--primary-soft, #eaf1ff);
}

.acces-module {
    margin-bottom: 14px;
    overflow: hidden;
}

.acces-module-entete {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
}

.acces-module-entete input {
    width: 21px;
    height: 21px;
    accent-color: var(--primary, #003066);
}

.acces-module-titre {
    flex: 1;
    min-width: 0;
}

.acces-module-titre strong {
    display: block;
    color: var(--primary, #003066);
}

.acces-module-titre small {
    color: var(--muted, #667085);
}

.acces-compteur {
    color: var(--muted, #667085);
    font-size: .86rem;
    white-space: nowrap;
}

.acces-sousliste {
    padding: 6px 16px 16px 49px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.acces-sousliste label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.acces-sousliste label:hover {
    background: var(--section, #f4f7fb);
}

.acces-sousliste input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary, #003066);
}

.acces-description {
    display: block;
    font-size: .82rem;
    color: var(--muted, #667085);
}

.acces-message {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.acces-ok {
    background: #e7f7ef;
    color: #12623e;
}

.acces-erreur {
    background: #fff0ef;
    color: #a32020;
}

.acces-info {
    background: var(--orange-soft, #fff4df);
    border: 1px solid #f4d7a5;
}

.acces-pied {
    position: sticky;
    bottom: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border, #dce3ed);
    border-radius: 14px;
    box-shadow: var(--shadow-md, 0 8px 25px rgba(0,0,0,.12));
}

.acces-pied p {
    margin: 0;
    font-size: .9rem;
}

.acces-enregistrer {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: var(--orange, #ffad32);
    color: #17243a;
    font-weight: 800;
    cursor: pointer;
}

.acces-enregistrer:hover {
    background: var(--orange-hover, #f49a16);
}

.acces-vide {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 650px) {
    .acces-page {
        width: calc(100% - 20px);
        margin-top: 12px;
    }

    .acces-entete {
        padding: 16px;
    }

    .acces-identite {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .acces-sousliste {
        grid-template-columns: 1fr;
        padding: 4px 12px 12px;
    }

    .acces-module-entete {
        padding: 13px 11px;
        gap: 9px;
    }

    .acces-compteur {
        font-size: .76rem;
    }

    .acces-outils {
        align-items: stretch;
    }

    .acces-outils input[type="search"] {
        flex-basis: 100%;
    }

    .acces-boutons button {
        flex: 1;
    }

    .acces-pied {
        align-items: stretch;
        flex-direction: column;
    }

    .acces-enregistrer {
        width: 100%;
        min-height: 46px;
    }
}
  /* Actions à droite du header */
        .actions-header {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-shrink: 0;
        }

        /* Bouton loupe */
        .bouton-recherche-header {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 44px;
            width: 44px;
            height: 44px;
            padding: 0;
            color: #003066;
            background: #fff;
            border: 1px solid #dce4ee;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            visibility: visible;
            opacity: 1;
            box-shadow: 0 2px 7px rgba(0, 48, 102, .08);
        }

        .bouton-recherche-header:hover,
        .bouton-recherche-header:focus-visible {
            color: #fff;
            background: #003066;
            outline: 2px solid #ff9900;
            outline-offset: 2px;
        }

        /* Zone de recherche */
        .zone-recherche-header {
            position: relative;
            z-index: 1000;
            width: min(760px, calc(100% - 24px));
            margin: 12px auto;
            padding: 14px;
            background: #fff;
            border: 1px solid #e0e6ef;
            border-top: 3px solid #ff9900;
            border-radius: 12px;
            box-shadow: 0 5px 22px rgba(0, 48, 102, .12);
        }

        .zone-recherche-header[hidden] {
            display: none !important;
        }

        #formRechercheHeader {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            min-height: 48px;
            box-sizing: border-box;
            padding: 5px 10px;
            background: #f5f8fc;
            border: 1px solid #d9e2ed;
            border-radius: 9px;
        }

        #formRechercheHeader > i {
            flex-shrink: 0;
            color: #003066;
            font-size: 17px;
        }

        #champRechercheHeader {
            flex: 1;
            width: 100%;
            min-width: 0;
            padding: 10px 0;
            color: #18324e;
            background: transparent;
            border: 0;
            outline: none;
            font: inherit;
            font-size: 16px;
        }

        #champRechercheHeader::placeholder {
            color: #718096;
        }

        #fermerRecherche {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 38px;
            width: 38px;
            height: 38px;
            padding: 0;
            color: #003066;
            background: #fff;
            border: 1px solid #dce4ee;
            border-radius: 8px;
            font-size: 19px;
            cursor: pointer;
        }

        #fermerRecherche:hover {
            color: #fff;
            background: #003066;
        }

        .recherche-indication {
            margin: 9px 2px 0;
            color: #66768a;
            font-size: 12px;
        }

        /* Messages AJAX */
        .ajax-message {
            margin: 16px 0;
            padding: 14px;
            color: #003066;
            background: #f3f7fc;
            border: 1px solid #dce6f2;
            border-radius: 10px;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .ajax-message.erreur {
            color: #9f2424;
            background: #fff4f4;
            border-color: #f0cccc;
        }

        .ajax-message.chargement {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

       

        @media (max-width: 768px) {
            .header-barre {
                gap: 8px;
            }

            .actions-header {
                gap: 6px;
            }

            .bouton-recherche-header {
                flex-basis: 40px;
                width: 40px;
                height: 40px;
                font-size: 17px;
            }

            .zone-recherche-header {
                width: calc(100% - 16px);
                margin: 8px auto;
                padding: 10px;
                border-radius: 10px;
            }

            #formRechercheHeader {
                gap: 8px;
                padding: 4px 8px;
            }

            #champRechercheHeader {
                font-size: 16px;
            }

            #container {
                overflow-wrap: anywhere;
            }
        }

        @media (max-width: 380px) {
            .logo-texte {
                max-width: 205px;
                overflow-wrap: anywhere;
            }

            .actions-header {
                gap: 5px;
            }

            .bouton-recherche-header {
                flex-basis: 38px;
                width: 38px;
                height: 38px;
            }
        }
           
    /* Container style comme bootstrap */
    .card { padding:18px; border-radius:8px; background:linear-gradient(180deg,#ffffff,#fbfdff); box-shadow:0 4px 12px rgba(16,24,40,0.04); }

    h1 { margin:0 0 10px 0; font-size:1.6rem; }
    p.lead { color:#555; margin:8px 0 18px 0; }

    /* Form controls like bootstrap */
    .form-row { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
    .form-group { flex:1 1 220px; display:flex; flex-direction:column; }
    label { font-weight:600; margin-bottom:6px; font-size:0.95rem; }
    input.form-control, select.form-control {
      padding:10px 12px; border-radius:6px; border:1px solid #d8dce9; font-size:0.95rem;
      transition: box-shadow .15s ease, border-color .15s ease;
    }
    input.form-control:focus, select.form-control:focus {
      outline:none; box-shadow:0 0 0 0.2rem rgba(0,123,255,0.12); border-color:#80bdff;
    }

    /* Buttons */
    .btn {
      display:inline-block; padding:10px 14px; border-radius:6px; font-weight:600; cursor:pointer; border:none;
      background:linear-gradient(180deg,#007bff,#0062d6); color:#fff; box-shadow:0 6px 14px rgba(3,102,214,0.18); transition: transform .12s ease, box-shadow .12s ease;
    }
    .btn:active { transform: translateY(1px); }
    .btn:focus { outline:none; box-shadow:0 0 0 0.25rem rgba(0,123,255,0.2); }

    /* Danger / message */
    .alert { padding:10px 12px; border-radius:6px; margin-top:12px; }
    .alert-danger { background:#fff0f0; border:1px solid #ffd6d6; color:#8a1f1f; }
    .alert-success { background:#f0fff6; border:1px solid #d4ffe4; color:#0b6b3a; }

    /* Petit style pour l'exclusion liste */
    .muted { color:#6b7280; font-size:0.9rem; }

    /* Animations */
    @keyframes fadeIn {
      from { opacity:0; transform: translateY(8px); }
      to { opacity:1; transform: translateY(0); }
    }
    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-8px); }
      60% { transform: translateY(-4px); }
    }
    .btn-bounce:hover { animation: bounce 0.9s; }

    /* Responsive */
    @media (max-width:640px) {
      .form-row { flex-direction:column; }
      .form-group{
        flex: unset !important;
      }
    }
    .compte-wrapper{
      padding-right: 10px;
    }

