
/* ==========================
   1. Styles generaux
   ========================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #243247;
    background-color: #f3f6fb;
}

h1, h2, h3 {
    line-height: 1.3;
}

h1 {
    color: #123b78;
}

h2 {
    color: #164a91;
}

a {
    color: inherit;
}


/* ==========================
   2. En-tete
   ========================== */

.entete {
    padding: 25px 30px;
    color: white;
    background-color: #102d59;
    border-bottom: 4px solid #1688e8;
}

.logo {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

.entete p {
    margin: 4px 0 0;
    color: #d5e5fa;
}


/* ==========================
   3. Disposition principale
   ========================== */

.conteneur {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: start;
}


/* ==========================
   4. Menu de navigation
   ========================== */

.navigation {
    padding: 20px;
    color: white;
    background-color: #164a91;
    border-radius: 8px;
}

.navigation h2 {
    margin-top: 0;
    color: white;
}

.navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation li {
    margin-bottom: 8px;
}

.navigation a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.navigation a:hover,
.navigation a:focus-visible,
.navigation a[aria-current="page"] {
    background-color: #287bd1;
    outline-offset: 3px;
}


/* ==========================
   5. Contenu de la page
   ========================== */

.contenu {
    min-width: 0;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(16, 45, 89, 0.07);
}

.contenu h1 {
    margin-top: 0;
}

.image-hero {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-texte {
    padding: 15px 0 25px;
}

.hero-texte h1 {
    font-size: 32px;
}

.presentation {
    margin-top: 20px;
}


/* ==========================
   6. Cartes et services
   ========================== */

.cartes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.carte,
.service {
    padding: 20px;
    background-color: #f0f5fc;
    border-left: 4px solid #1688e8;
    border-radius: 5px;
}

.carte h3,
.service h2 {
    margin-top: 0;
}

.carte p,
.service p {
    margin-bottom: 0;
}

.services {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.contact {
    margin-top: 30px;
    padding: 25px;
    background-color: #e5effc;
    border-radius: 8px;
}


/* ==========================
   7. Boutons
   ========================== */

.bouton {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    background-color: #164a91;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.bouton:hover,
.bouton:focus-visible {
    background-color: #0d2f60;
}


/* ==========================
   8. Pied de page
   ========================== */

.pied-page {
    padding: 25px 20px;
    color: #e0eafa;
    text-align: center;
    background-color: #102d59;
}

.pied-page p {
    margin: 5px 0;
}


/* ==========================
   8b. Formulaire, messages et sous-menu
   ========================== */

.formulaire {
    max-width: 600px;
    margin-top: 20px;
}

.champ {
    margin-bottom: 18px;
}

.champ label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.champ input,
.champ textarea {
    display: block;
    width: 100%;
    padding: 10px;
    font-family: inherit;
    font-size: 16px;
    color: #243247;
    border: 1px solid #9db4d3;
    border-radius: 5px;
}

.champ input:focus-visible,
.champ textarea:focus-visible {
    outline: 3px solid #1688e8;
    outline-offset: 1px;
}

button.bouton {
    border: none;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.erreurs {
    padding: 15px 15px 15px 35px;
    color: #7a1f1f;
    background-color: #fdeaea;
    border-left: 4px solid #c0392b;
    border-radius: 5px;
}

.recapitulatif {
    padding: 20px;
    background-color: #f0f5fc;
    border-left: 4px solid #1688e8;
    border-radius: 5px;
}

.recapitulatif dt {
    font-weight: bold;
    color: #164a91;
}

.recapitulatif dd {
    margin: 0 0 15px;
    overflow-wrap: anywhere;
}

.recapitulatif dd:last-child {
    margin-bottom: 0;
}

.navigation .sous-lien a {
    margin-left: 15px;
    font-size: 14px;
}


/* ==========================
   9. Adaptation mobile
   ========================== */

@media (max-width: 768px) {

    .entete {
        padding: 20px;
    }

    .logo {
        font-size: 26px;
    }

    .conteneur {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px auto;
        padding: 0 12px;
    }

    .navigation {
        padding: 15px;
    }

    .navigation h2 {
        margin-bottom: 10px;
    }

    .navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .navigation li {
        margin: 0;
    }

    .contenu {
        padding: 18px;
    }

    .hero-texte h1 {
        font-size: 26px;
    }

    .cartes {
        grid-template-columns: 1fr;
    }

    .image-hero {
        max-height: 260px;
    }

    .navigation .sous-lien a {
        margin-left: 0;
    }
}
