*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow: #ffd53b;
    --yellow-strong: #ffca1a;
    --blue: #0059a8;
    --blue-dark: #003c73;
    --white: #fdf7eb;
    --text-dark: #102034;
    --shadow-soft: 0 18px 40px rgba(0, 40, 90, 0.75);
    --radius-xl: 28px;
    --transition-fast: 200ms ease-out;
}

html, body {
    height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Background image modifiable : remplace background.jpg par ton image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--blue);
    background-image: url("background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-layer {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 60, 115, 0.9), rgba(0, 40, 90, 0.9));
    z-index: -1;
}

.page-wrapper {
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 18px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top-right buttons */

.top-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: var(--yellow);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--yellow-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(0, 60, 115, 0.96);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(0, 60, 115, 1);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Hero */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    width: 100%;
    max-width: 820px;
    padding: 22px 24px 20px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(255, 213, 59, 0.12), rgba(0, 60, 115, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */

.logo-block {
    margin-bottom: 14px;
}

.logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 32px;
    background: var(--yellow);
    border: 4px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-circle:hover {
    transform: scale(1.05);
}

/* Texte */

.text-block {
    max-width: 720px;
    text-align: left;
}

.text-block h1 {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.text-block p {
    font-size: 13px;
    line-height: 1.6;
    color: #f7f2e6;
    margin-bottom: 7px;
}

.text-block .intro {
    font-size: 14px;
}

.text-block .highlight {
    margin-top: 2px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(255, 213, 59, 0.08);
    border: 1px solid rgba(255, 213, 59, 0.55);
    color: #ffe9a6;
    font-weight: 500;
}

/* Footer */

.main-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.legal-link a {
    font-size: 11px;
    color: #f7f2e6;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.legal-link a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Responsive */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 12px 12px 10px;
    }

    .top-buttons {
        gap: 6px;
        flex-wrap: wrap;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero-inner {
        padding: 18px 14px 16px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
        border-radius: 26px;
    }

    .text-block h1 {
        font-size: 20px;
    }

    .text-block p {
        font-size: 12px;
    }
}
