/* Palette et réglages globaux */
:root {
    --bleu: #3A7CA5;          /* titres (contraste AA sur blanc) */
    --accent: #2A6E8F;        /* liens et boutons (AA sur blanc) */
    --accent-fonce: #235C78;  /* nav, slogan, survol (AA sur l'en-tête) */
    --texte: #333333;
    --fond: #F3F4F6;
    --carte: #FFFFFF;
    --bordure: #E0E0E0;
    --ombre: 0 .2rem .4rem rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--fond);
    color: var(--texte);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* En-tête */
header {
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #EAF2F8, #D6E6F0);
    text-align: center;
    border-bottom: 1px solid var(--bordure);
}

header img {
    width: 120px;
}

header h1 {
    margin: .6rem 0 .3rem;
    color: var(--bleu);
    font-size: 2em;
}

header p {
    margin: .3rem 0;
    color: var(--accent-fonce);
    font-weight: bold;
}

nav {
    margin-top: .6rem;
}

nav a {
    color: var(--accent-fonce);
    text-decoration: none;
    margin: 0 .9rem;
    font-weight: bold;
}

nav a:hover,
nav a:focus-visible {
    text-decoration: underline;
}

/* Liens dans le texte : couleur accessible + soulignement (pas seulement la couleur) */
section a,
footer a {
    color: var(--accent);
}

section a:hover,
footer a:hover {
    color: var(--accent-fonce);
}

/* Focus clavier visible sur tous les éléments interactifs */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-fonce);
    outline-offset: 2px;
}

/* Sections (cartes) */
section {
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    text-align: center;
    background-color: var(--carte);
    margin: 1rem;
    border-radius: .4rem;
    box-shadow: var(--ombre);
}

section h2 {
    color: var(--bleu);
    font-size: 1.8em;
    margin-bottom: .6rem;
}

section p {
    color: var(--texte);
    text-align: justify;
}

/* Bouton principal */
.btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: .7rem 1.4rem;
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color .2s;
}

.btn:hover {
    background-color: var(--accent-fonce);
}

/* Services */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.service-item {
    flex: 1 1 calc(50% - 1.2rem);
    background-color: var(--carte);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    text-align: left;
}

.service-item h3 {
    color: var(--bleu);
    font-size: 1.4em;
    margin-bottom: .6rem;
}

/* Contact */
.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.contact-item {
    flex: 1 1 calc(50% - 1.2rem);
    text-align: left;
}

/* Pied de page */
footer {
    width: 100%;
    padding: 1rem;
    background-color: var(--carte);
    text-align: center;
    border-top: 1px solid var(--bordure);
}

#a-213 {
    display: none;
    font-style: italic;
    margin-top: .6rem;
}

/* Mobile : passage en une colonne */
@media (max-width: 560px) {
    .service-item,
    .contact-item {
        flex: 1 1 100%;
    }

    section {
        padding: 1.4rem;
    }
}
