﻿:root {
    --primary: #005baa;
    --secondary: #007acc;
    --bg: #f5f7fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background: var(--bg);
    color: #333;
    line-height: 1.6;
}

/* === HERO ================================================= */

header.hero {
    background-image: url('/images/ciel3.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

    header.hero h1 {
        font-size: 3rem;
        margin-bottom: .5rem;
        text-shadow: 0 2px 10px rgba(0,0,0,.3);
    }

    header.hero p {
        font-size: 1.3rem;
        max-width: 600px;
    }

/* === SECTIONS ============================================= */

.section {
    padding: 4rem 1rem;
    max-width: 1100px;
    margin: auto;
}

    .section h2 {
        color: var(--primary);
        margin-bottom: 1rem;
        font-size: 2rem;
        text-align: center;
    }

    .section p.lead {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

/* === FEATURES GRID ======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 2rem;
}

.feature {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transition: transform .3s ease,box-shadow .3s ease;
}

    .feature:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,.12);
    }

    .feature h3 {
        color: var(--secondary);
        margin-bottom: .6rem;
    }

/* === REVEAL ANIMATION ===================================== */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease,transform .6s ease;
}

.reveal {
    opacity: 1;
    transform: none;
}

/* === CTA ================================================== */
.cta {
    text-align: center;
    margin-top: 3rem;
}

    .cta a {
        display: inline-block;
        background: var(--secondary);
        color: #fff;
        padding: .9rem 2rem;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(0,0,0,.1);
        transition: background .3s ease,transform .3s ease;
    }

        .cta a:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }

/* === FOOTER =============================================== */
footer {
    background: #eee;
    padding: 1.5rem;
    text-align: center;
    font-size: .9rem;
}

    footer small {
        display: block;
    }

/* === SCROLL‑TOP BUTTON ==================================== */
.scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

    .scroll-top.show {
        opacity: 1;
        pointer-events: all;
    }


/* === MODAL =================================================== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    opacity: 0; /* caché par défaut      */
    pointer-events: none; /* ne bloque rien        */
    transition: opacity .3s ease;
}

    .modal.show {
        opacity: 1; /* visible               */
        pointer-events: auto; /* overlay capturable    */
    }

.modal-dialog {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    position: relative;
}



.close-btn {
    position: absolute;
    top: .6rem;
    right: .8rem;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #999;
    cursor: pointer;
}

.field {
    margin-bottom: 1rem;
}

    .field label {
        display: block;
        font-weight: 600;
        margin-bottom: .3rem;
    }

    .field input, .field textarea {
        width: 100%;
        padding: .6rem;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

.form-feedback {
    margin-top: .8rem;
    font-weight: 600;
}

    .form-feedback.ok {
        color: green;
    }

    .form-feedback.err {
        color: #c00;
    }

