
/* =========================================
   MIZAEL.FR — STYLE PRINCIPAL
   ========================================= */

:root {
    --fond: #091C20;
    --texte: #D7E7E4;
    --secondaire: #96BCB5;
    --accent: #68C9BA;
    --separateur: rgba(130, 190, 180, .22);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--fond);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;

    background: var(--fond);
    color: var(--texte);
    font-family: "Segoe UI", Arial, sans-serif;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* =========================================
   CANVAS DES ÉTINCELLES
   ========================================= */

#ciel-etincelles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;

    pointer-events: none;
    opacity: 0;

    transition: opacity .8s ease;
}

#ciel-etincelles.actif {
    opacity: 1;
}

/* =========================================
   EN-TÊTE ET LOGO
   ========================================= */

header {
    padding: 24px 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marque {
    display: flex;
    align-items: center;
    gap: 10px;
}

.identite {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-poisson {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;

    filter:
        drop-shadow(
            0 0 5px rgba(104, 201, 186, .15)
        );

    transition:
        transform .4s ease,
        filter .4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .logo-poisson:hover {
        transform: scale(1.10);

        filter:
            drop-shadow(
                0 0 10px rgba(104, 201, 186, .40)
            );
    }
}

/* =========================================
   INTERRUPTEUR DES ÉTINCELLES
   ========================================= */

.indicateur {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex-shrink: 0;

    padding: 0;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;

    /* Pas de point d'interrogation */
    cursor: pointer;
    outline-offset: 5px;
}

.indicateur:focus-visible {
    outline: 1px solid var(--accent);
    border-radius: 50%;
}

.symbole {
    width: 12px;
    height: 12px;

    border: 2px solid #83B8B0;
    border-radius: 50%;

    transition:
        background-color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

/* Survol et navigation clavier */

.indicateur:hover .symbole,
.indicateur:focus-visible .symbole {
    border-color: #B1F3E2;

    box-shadow:
        0 0 14px rgba(104, 201, 186, .45);

    transform: scale(1.15);
}

/* État activé */

.indicateur[aria-pressed="true"] .symbole {
    background: #B9FFF0;
    border-color: #B9FFF0;

    box-shadow:
        0 0 7px rgba(185, 255, 240, .90),
        0 0 20px rgba(104, 201, 186, .58),
        0 0 35px rgba(104, 201, 186, .24);
}

.indicateur[aria-pressed="true"]:hover .symbole {
    transform: scale(1.2);
}

/* Infobulle en verre dépoli */

.infobulle {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);

    width: max-content;
    max-width: min(300px, 75vw);
    padding: 12px 18px;

    color: #D7E7E4;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .2px;
    line-height: 1.5;
    text-align: center;

    background: rgba(12, 35, 40, .78);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(175, 230, 220, .25);
    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(8px, -50%);

    transition:
        opacity .3s ease,
        transform .3s ease,
        visibility .3s;
}

.indicateur:hover .infobulle,
.indicateur:focus-visible .infobulle {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* =========================================
   CONTENU CENTRAL
   ========================================= */

main {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 60px 24px;
}

/* =========================================
   CADRE EN VERRE DÉPOLI
   ========================================= */

.contenu {
    width: 100%;
    max-width: 760px;
    padding: 48px 56px;

    background: rgba(12, 35, 40, .38);

    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);

    border: 1px solid rgba(175, 230, 220, .22);
    border-radius: 28px;

    box-shadow:
        0 20px 65px rgba(0, 0, 0, .24),
        0 4px 18px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .12),
        inset 0 0 35px rgba(120, 210, 195, .035);

    transition:
        transform .6s cubic-bezier(.2, .8, .2, 1),
        background-color .6s ease,
        border-color .6s ease,
        box-shadow .6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .contenu:hover {
        transform: translateY(-7px) scale(1.008);

        background: rgba(18, 48, 52, .31);
        border-color: rgba(177, 243, 226, .52);

        box-shadow:
            0 30px 85px rgba(0, 0, 0, .30),
            0 0 45px rgba(90, 206, 188, .10),
            inset 0 1px 0 rgba(255, 255, 255, .22),
            inset 0 0 45px rgba(120, 210, 195, .055);
    }
}

/* =========================================
   TYPOGRAPHIE
   ========================================= */

.ligne-superieure {
    height: 1px;
    width: 180px;
    margin: 0 auto 40px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(115, 225, 208, .85),
        transparent
    );
}

h1 {
    color: #FFFFFF;
    font-size: clamp(48px, 8vw, 76px);
    font-weight: 300;
    letter-spacing: -2px;
    margin: 0;

    text-shadow:
        0 3px 24px rgba(0, 0, 0, .30);
}

.ligne {
    width: 52px;
    height: 2px;
    margin: 36px auto;

    background: var(--accent);

    box-shadow:
        0 0 16px rgba(104, 201, 186, .32);
}

.description {
    font-size: clamp(18px, 3vw, 23px);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.signature {
    color: var(--secondaire);
    font-size: 15px;
    letter-spacing: 1px;
    margin-top: 22px;
}

/* =========================================
   PIED DE PAGE
   ========================================= */

footer {
    margin: 0 6%;
    padding: 24px 0;

    border-top: 1px solid var(--separateur);

    text-align: center;
    color: #82ACA7;
    font-size: 12px;
}

/* =========================================
   PETITS ÉCRANS
   ========================================= */

@media (max-width: 600px) {

    header {
        padding: 20px 24px;
    }

    .marque {
        gap: 8px;
    }

    .logo-poisson {
        width: 32px;
        height: 32px;
    }

    main {
        padding: 48px 20px;
    }

    .contenu {
        padding: 36px 22px;
        border-radius: 22px;
    }

    .ligne-superieure {
        width: 140px;
        margin-bottom: 32px;
    }

    .signature {
        font-size: 13px;
    }

    .infobulle {
        max-width: 65vw;
        white-space: normal;
        padding: 10px 12px;
        font-size: 12px;
    }

    footer {
        margin: 0 24px;
    }
}

/* =========================================
   ACCESSIBILITÉ
   ========================================= */

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

    .contenu,
    .symbole,
    .infobulle,
    .logo-poisson,
    #ciel-etincelles {
        transition: none;
    }

    .contenu:hover,
    .logo-poisson:hover {
        transform: none;
    }
}
