:root {
    --yellow: #FFD700; /* Le jaune du logo */
    --dark-blue: #001F3F; /* Le bleu du logo */
    --white: #FFFFFF;
    --light-gray: #f4f4f4;
    --light-blue: #e6f0ff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark-blue);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ctext x='1' y='23' font-size='24'%3E%F0%9F%8D%B9%3C/text%3E%3C/svg%3E") 3 3, auto;
}

/* Grain façon affiche imprimée */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* --- Header & Hero --- */
header {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg stroke='%23D4A800' stroke-width='3' fill='none' opacity='0.25'%3E%3Ccircle cx='70' cy='70' r='9'/%3E%3Cpath d='M70 54v-8M70 86v8M54 70h-8M86 70h8M59 59l-6-6M81 81l6 6M59 81l-6 6M81 59l6-6'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--yellow) 0%, #FFDF00 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    border-bottom: 15px solid var(--dark-blue);
    color: var(--dark-blue);
}

.logo-container {
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    overflow: hidden;
    border: 5px solid var(--dark-blue);
}

.logo-container img {
    width: 90%;
}

.logo-placeholder {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Titre style affiche : blanc avec contour bleu (si supporté) */
@supports (-webkit-text-stroke: 2px black) {
    h1 {
        color: var(--white);
        -webkit-text-stroke: 3px var(--dark-blue);
        paint-order: stroke fill;
        text-shadow: 4px 4px 0 rgba(0, 31, 63, 0.3);
    }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* Animation d'entrée en cascade du hero */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoSwing {
    0%, 100% { transform: rotate(-2.5deg); }
    50%      { transform: rotate(2.5deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

header .logo-container,
header .subtitle,
header h1,
header > p,
header .btn,
header .hero-scroll {
    animation: heroFadeUp 0.7s ease-out both;
}

header .logo-container {
    animation: heroFadeUp 0.7s ease-out 0.1s both,
               logoSwing 5s ease-in-out 1.2s infinite;
}
header .subtitle       { animation-delay: 0.3s; }
header h1              { animation-delay: 0.45s; }
header > p             { animation-delay: 0.6s; }
header .btn            { animation-delay: 0.75s; }
header .hero-scroll    { animation-delay: 0.9s; }

.hero-scroll {
    display: inline-block;
    margin-top: 30px;
    color: var(--dark-blue);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll-arrow {
    display: inline-block;
    margin-left: 6px;
    animation: scrollBounce 1.6s ease-in-out infinite;
}

/* --- Section Concept --- */
.section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, #FFF3C4 100%);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
    border-bottom: 8px solid var(--yellow);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card i {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    color: var(--yellow);
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--yellow);
}

/* --- La Route (Timeline) --- */
#route {
    background: var(--dark-blue);
    color: var(--white);
}

#route h2::after { background: var(--yellow); }

.timeline {
    margin-top: 50px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px dashed var(--yellow);
    padding-left: 30px;
    counter-reset: step;
}

.stop {
    position: relative;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 22px;
    transition: transform 0.25s ease, background 0.25s ease;
    counter-increment: step;
}

.stop:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.1);
}

/* Pastille avec l'icône de l'étape */
.stop::before {
    content: attr(data-icon);
    position: absolute;
    left: -46px;
    top: 18px;
    width: 28px;
    height: 28px;
    background: var(--yellow);
    border: 3px solid var(--dark-blue);
    border-radius: 50%;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
}

/* Numéro de l'étape en filigrane */
.stop::after {
    content: counter(step);
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    opacity: 0.07;
    pointer-events: none;
}

/* Cartes alternées en zigzag (desktop) */
@media (min-width: 769px) {
    .stop:nth-child(even) {
        margin-left: 35px;
    }
}

.stop h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.stop .time {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark-blue);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    padding: 1px 10px;
    border-radius: 999px;
    margin-right: 8px;
}

.partner-link {
    display: inline-block;
    margin-top: 12px;
}

.partner-logo {
    display: block;
    height: 70px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 14px;
    border-radius: 10px;
    filter: grayscale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.3s ease;
}

.partner-link:hover .partner-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    filter: grayscale(0);
}

/* --- Formulaire --- */
.cta-section {
    background: linear-gradient(135deg, #FFF3B0 0%, var(--yellow) 45%, #FFDF00 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.btn {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 30px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: scale(1.05);
    background-color: #003366;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

footer {
    padding: 50px 20px;
    text-align: center;
    font-size: 0.95rem;
    background: var(--dark-blue);
    color: var(--white);
    border-top: 5px solid var(--yellow);
}

footer .footer-contact {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

footer a {
    color: var(--yellow);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dashed var(--yellow);
}

footer a:hover {
    background: var(--yellow);
    color: var(--dark-blue);
}

footer .footer-legal {
    opacity: 0.7;
}

/* Animation simple */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Champs de formulaire */
.form-email-input {
    padding: 15px;
    width: 250px;
    border-radius: 25px;
    border: none;
    margin-top: 20px;
    outline: none;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 480px;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.modal-body p {
    margin: 15px 0;
    line-height: 1.6;
}

.modal-body ul {
    text-align: left;
    margin: 15px auto;
    max-width: 300px;
}

.modal-mail-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFD700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

/* Styles inutilisés — conservés pour futur usage */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--yellow);
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--yellow);
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        width: 200px;
        height: 200px;
    }
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
}
