/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.entete-interieur {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}

.logo-icone {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    color: #004080;
}

.entete-appel {
    display: inline-flex;
}

/* Accueil */
.banniere {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* hauteur de l'entête */
    background: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1770&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
}

.banniere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
    z-index: 0;
}

.banniere::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(0deg, #f5f7fb 0%, rgba(245, 247, 251, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.banniere-contenu {
    position: relative;
    z-index: 1;
    max-width: 920px;
    padding: 0 1.5rem;
}

.banniere h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banniere .accent {
    color: #2c89ff;
}

.banniere p {
    font-size: 1.2rem;
    max-width: 780px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.banniere-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bouton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.bouton-principal {
    background: linear-gradient(135deg, #004080, #2c89ff);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.bouton-secondaire {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    header {
        padding: 0.8rem 0;
    }

    .entete-interieur {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* Notre Histoire */
.histoire {
    padding: 4rem 2rem;
    background-color: #f5f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.histoire-entete {
    text-align: center;
    margin-bottom: 3rem;
}

.histoire-soustitre {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #2c89ff;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.histoire-entete h2 {
    color: #0f172a;
    font-size: clamp(2.75rem, 4vw, 3.5rem);
    margin: 0;
    line-height: 1.1;
}

.histoire-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.histoire-carte {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 137, 255, 0.2);
    border-radius: 22px;
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.histoire-carte-icone {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(0, 64, 128, 0.14);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.histoire-carte-contenu h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: #001529;
}

.histoire-carte-contenu p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.histoire-texte p {
    max-width: 540px;
    margin: 0 0 1.25rem;
    color: #475569;
    line-height: 1.75;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .histoire-grille {
        grid-template-columns: 1fr;
    }

    .histoire-carte {
        justify-content: center;
    }

    .histoire-texte {
        padding-top: 1rem;
    }
}

/* Qui sommes-nous */
.apropos {
    padding: 4rem 2rem;
    background-color: #001529;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f2f7ff;
}

.apropos-entete {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.apropos-entete h2 {
    color: #e6f3ff;
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.apropos-entete p {
    color: rgba(242, 247, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
}

.apropos-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.apropos-carte {
    background-color: #f8faff;
    border: 1px solid rgba(0, 64, 128, 0.12);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apropos-carte:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.apropos-icone {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 64, 128, 0.12);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #001529;
}

.apropos-carte h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #001529;
}

.apropos-carte p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Services */
.services {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-entete {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.services-entete h2 {
    color: #001529;
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.services-entete p {
    color: #5b6770;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
}

.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.carte {
    background-color: white;
    border: 1px solid rgba(0, 64, 128, 0.15);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.carte:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.carte.vedette {
    background-color: #001529;
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
}

.carte.vedette::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #2c89ff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(44, 137, 255, 0.25);
}

.carte-icone {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 64, 128, 0.07);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
}

.carte h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: inherit;
}

.carte ul {
    margin: 0;
    padding-left: 1rem;
    list-style: disc;
}

.carte li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: inherit;
}

.carte p {
    margin: 0;
    color: inherit;
    line-height: 1.6;
}


/* Contact */
.apparition {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.apparition.actif {
    opacity: 1;
    transform: translateY(0);
}

/* Page de contact */
.contact {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
}

.contact-entete {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.contact-entete h2 {
    margin-bottom: 0.5rem;
    color: #004080;
}

.contact-entete p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

.contact-interieur {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-infos {
    flex: 1 1 320px;
    display: grid;
    gap: 1rem;
}

.contact-carte {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}

.contact-carte .icone {
    font-size: 1.5rem;
    background: rgba(0, 64, 128, 0.1);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #004080;
}

.contact-carte h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.contact-carte p {
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.contact-formulaire {
    flex: 1 1 420px;
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-formulaire h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #111;
}

.contact-formulaire .formulaire-ligne {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-formulaire label {
    font-weight: 600;
    color: #333;
}

.contact-formulaire input,
.contact-formulaire textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #dfe2ea;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #2c3e50;
    background: #fff;
    outline: none;
}

.contact-formulaire textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-formulaire button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: #001529;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-formulaire button:hover {
    background: #002a4d;
}

@media (max-width: 900px) {
    .contact-interieur {
        flex-direction: column;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #001529;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}

footer strong {
    color: #fff;
}

/* ===== MENU HAMBURGER ===== */
.bascule-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

.bascule-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bascule-menu.ouvert span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bascule-menu.ouvert span:nth-child(2) {
    opacity: 0;
}

.bascule-menu.ouvert span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    /* Entête */
    .entete-interieur {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .logo {
        flex: 1;
    }

    .bascule-menu {
        display: flex;
        order: 3;
    }

    .bascule-langue {
        order: 2;
    }

    #main-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    #main-nav.ouvert {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    #main-nav ul li a {
        display: block;
        padding: 0.65rem 0;
        font-size: 1rem;
    }

    #main-nav .entete-appel {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Bannière d'accueil */
    .banniere {
        padding-top: 140px;
        min-height: 100svh;
    }

    .banniere h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .banniere p {
        font-size: 1rem;
    }

    .banniere-actions {
        flex-direction: column;
        align-items: center;
    }

    .banniere-actions .bouton {
        width: 100%;
        max-width: 320px;
    }

    /* Notre histoire */
    .histoire {
        padding: 3rem 1.25rem;
    }

    .histoire-carte {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem;
    }

    .histoire-carte-icone {
        margin: 0 auto;
    }

    /* À propos */
    .apropos {
        padding: 3rem 1.25rem;
    }

    .apropos-entete h2 {
        font-size: 2rem;
    }

    .apropos-cartes {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services {
        padding: 3rem 1.25rem;
    }

    .services-entete h2 {
        font-size: 2rem;
    }

    .cartes {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact {
        padding: 3rem 1.25rem;
    }

    .contact-entete h2 {
        font-size: 2rem;
    }

    .contact-formulaire {
        padding: 1.5rem;
    }

    /* Marge de défilement des sections */
    section {
        scroll-margin-top: 80px;
    }
}

