:root {
    color: #19342e;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f7f5;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(41, 156, 119, 0.16), transparent 34rem),
        linear-gradient(180deg, #f9fbfa 0%, #edf4f1 100%);
}

a {
    color: inherit;
}

.conteneur-messages-temporaires {
    position: fixed;
    z-index: 10;
    top: 1rem;
    right: 1rem;
    width: min(28rem, calc(100% - 2rem));
}

.message-temporaire {
    margin: 0 0 0.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid #cce5dc;
    border-radius: 0.65rem;
    color: #075f4c;
    background: #effaf6;
    box-shadow: 0 0.8rem 2rem rgba(28, 69, 59, 0.12);
}

.message-temporaire-erreur {
    border-color: #f2b8b5;
    color: #7a271a;
    background: #fff1f0;
}

.page-authentification {
    display: grid;
    min-height: 100vh;
    padding: 2rem 1rem;
    place-items: center;
}

.panneau-authentification {
    width: min(100%, 31rem);
    padding: 2rem;
    border: 1px solid #d7e2df;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(16, 63, 52, 0.09);
}

.marque-authentification {
    margin: 0 0 0.5rem;
    color: #0b6b56;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.panneau-authentification h1 {
    margin: 0;
    color: #18332c;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.introduction-authentification {
    margin: 0.7rem 0 1.5rem;
    color: #536862;
    line-height: 1.55;
}

.panneau-authentification form > div {
    margin-top: 1rem;
}

.panneau-authentification label {
    display: block;
    margin-bottom: 0.45rem;
    color: #263f38;
    font-weight: 650;
}

.panneau-authentification input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #aebfba;
    border-radius: 0.55rem;
    font: inherit;
}

.panneau-authentification input:focus {
    border-color: #0b6b56;
    outline: 3px solid rgba(11, 107, 86, 0.15);
}

.panneau-authentification .form-help {
    margin: 0.4rem 0 0;
    color: #647b75;
    font-size: 0.85rem;
    line-height: 1.45;
}

.panneau-authentification .form-error-message,
.panneau-authentification ul {
    color: #a11910;
}

.bouton-principal {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0.55rem;
    color: #fff;
    background: #0b6b56;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.bouton-principal:hover {
    background: #085746;
}

.lien-bouton {
    text-decoration: none;
}

.lien-retour {
    display: inline-block;
    margin-top: 1.2rem;
    color: #0b6b56;
    font-weight: 650;
}

.conteneur-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.barre-superieure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
}

.actions-barre-superieure {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.formulaire-deconnexion {
    margin: 0;
}

.bouton-secondaire {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #a9c5bc;
    border-radius: 0.6rem;
    color: #0b6b56;
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.bouton-secondaire:hover {
    border-color: #0b6b56;
    background: #fff;
}

.marque {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.symbole-marque {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.8rem;
    color: white;
    background: #0b6b56;
    box-shadow: 0 0.6rem 1.4rem rgba(11, 107, 86, 0.22);
}

.statut {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #cce5dc;
    border-radius: 999px;
    color: #0b6b56;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 700;
}

.statut::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #22a06b;
    content: "";
    box-shadow: 0 0 0 0.24rem rgba(34, 160, 107, 0.14);
}

.presentation {
    max-width: 780px;
    margin-bottom: 3rem;
}

.surtitre {
    margin: 0 0 0.85rem;
    color: #0b6b56;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin: 0;
    color: #17352e;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.chapeau {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: #56716a;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

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

.carte {
    min-height: 12rem;
    padding: 1.4rem;
    border: 1px solid rgba(27, 79, 66, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1.2rem 3rem rgba(28, 69, 59, 0.07);
    backdrop-filter: blur(0.8rem);
}

.numero-carte {
    color: #80a39a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.carte h2 {
    margin: 2.2rem 0 0.55rem;
    color: #20493f;
    font-size: 1.05rem;
}

.carte p {
    margin: 0;
    color: #6a817b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.pied-page {
    margin-top: 2.5rem;
    color: #718a83;
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .conteneur-page {
        width: min(100% - 1.25rem, 40rem);
        padding-top: 1rem;
    }

    .barre-superieure {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .grille-cartes {
        grid-template-columns: 1fr;
    }

    .carte {
        min-height: auto;
    }

    .carte h2 {
        margin-top: 1.4rem;
    }
}
