/* RSP-455 : page d'attente du domaine principal. Page statique, indépendante de l'application Angular : les couleurs
   reprennent les jetons de src/variables.scss (cadre de marque), déclarés une fois ici en propriétés CSS. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('polices/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
    --marine: #001a70;            /* $app-color-primary */
    --marine-profond: #000f42;    /* $app-color-marque-profond */
    --marine-accent: #004d9b;     /* $app-color-marque-accent */
    --or: #ffc107;                /* $app-color-gold */
    --or-clair: #f5d67a;          /* signature de la bannière */
    --texte-sur-marine: #c9d1e6;  /* $app-color-text-on-navy */
    --blanc: #ffffff;
    --texte: #1f2430;
    --texte-attenue: #5b6475;
    --fond: #f4f6fb;              /* $app-color-grey-100 */
    --filet: #e2e4e4;             /* $app-color-grey-200 */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Page d'attente ---------- */
.attente {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: var(--blanc);
    background: radial-gradient(120% 80% at 50% 0%, var(--marine-accent) 0%, var(--marine) 45%, var(--marine-profond) 100%);
    border-top: 3px solid var(--or);
}

.attente-centre {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 64px 24px;
    text-align: center;
}

.marque {
    display: flex;
    align-items: center;
    gap: 20px;
}

.marque-embleme {
    width: 64px;
    height: 74px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

.marque-texte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.marque-mot {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.marque-signature {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--or-clair);
}

.message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 640px;
}

.message-etiquette {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--or);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--or);
}

.message-etiquette::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--or);
}

.message h1 {
    margin: 8px 0 0;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

.message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--texte-sur-marine);
    text-wrap: balance;
}

.attente-pied {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding: 24px;
    font-size: 13px;
    color: var(--texte-sur-marine);
}

.attente-pied a {
    color: var(--texte-sur-marine);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.attente-pied a:hover {
    color: var(--blanc);
}

/* ---------- Mentions légales ---------- */
.mentions {
    min-height: 100%;
    background: var(--fond);
    color: var(--texte);
}

.mentions-tete {
    background: var(--marine);
    border-bottom: 3px solid var(--or);
}

.mentions-tete a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--blanc);
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.mentions-tete img {
    width: 28px;
    height: 32px;
}

.mentions-corps {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

.mentions-corps h1 {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 700;
    color: var(--marine);
}

.mentions-bloc {
    padding: 24px 32px;
    background: var(--blanc);
    border: 1px solid var(--filet);
    border-radius: 16px;
}

.mentions-bloc + .mentions-bloc {
    margin-top: 16px;
}

.mentions-bloc h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--marine);
}

.mentions-bloc p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.mentions-bloc p + p {
    margin-top: 8px;
}

.mentions-retour {
    display: inline-block;
    margin-top: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--marine);
}

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
    .attente-centre {
        gap: 32px;
        padding: 48px 20px;
    }

    .marque {
        gap: 14px;
    }

    .marque-embleme {
        width: 46px;
        height: 53px;
    }

    .marque-mot {
        font-size: 36px;
    }

    .marque-signature {
        font-size: 10px;
    }

    .message h1 {
        font-size: 28px;
    }

    .message p {
        font-size: 16px;
    }

    .mentions-bloc {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .message-etiquette::before {
        animation: pulsation 2.4s ease-in-out infinite;
    }
}

@keyframes pulsation {
    50% {
        opacity: 0.35;
    }
}
