
/* =========================
   REGLAGES GENERAUX
   ========================= */

:root {
    --fond: #080b12;
    --surface: #111827;
    --bleu: #38bdf8;
    --vert: #a3e635;
    --texte: #f1f5f9;
    --texte-secondaire: #aab7c8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fond);
    color: var(--texte);
    line-height: 1.7;
}

/* =========================
   EN-TETE ET NAVIGATION
   ========================= */

.entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 7%;
    border-bottom: 1px solid #243044;
    background: #080b12;
}

.logo {
    color: var(--bleu);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: var(--vert);
}

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

.navigation a {
    color: var(--texte);
    text-decoration: none;
    transition: color 0.3s;
}

.navigation a:hover,
.navigation a.actif {
    color: var(--vert);
}

/* =========================
   PRESENTATION PRINCIPALE
   ========================= */

main {
    max-width: 1250px;
    margin: auto;
    padding: 45px 5%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    padding: 40px 0 65px;
}

.presentation {
    flex: 1;
}

.sous-titre {
    color: var(--vert);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.presentation h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 18px;
}

.nom {
    color: var(--bleu);
    text-shadow: 0 0 20px #38bdf822;
}

.presentation h2 {
    color: var(--vert);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.description {
    max-width: 650px;
    color: var(--texte-secondaire);
    margin-bottom: 25px;
}

/* =========================
   BOUTONS ET LIENS
   ========================= */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.bouton {
    display: inline-block;
    padding: 12px 20px;
    background: var(--vert);
    color: #080b12;
    border: 1px solid var(--vert);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.bouton:hover {
    background: var(--bleu);
    border-color: var(--bleu);
    transform: translateY(-2px);
}

.bouton.secondaire {
    background: transparent;
    color: var(--bleu);
    border-color: var(--bleu);
}

.bouton.secondaire:hover {
    background: var(--bleu);
    color: var(--fond);
}

.reseaux {
    color: var(--texte-secondaire);
}

.reseaux a {
    color: var(--bleu);
    text-decoration: none;
    font-weight: bold;
}

.reseaux a:hover {
    color: var(--vert);
}

/* =========================
   PHOTO ET LEGENDE
   ========================= */

.photo-profil {
    flex: 0 0 340px;
    max-width: 340px;
    text-align: center;
}

.photo-profil img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--bleu);
    border-radius: 18px;
    box-shadow: 0 0 30px #38bdf833;
}

.photo-profil figcaption {
    color: var(--vert);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* =========================
   CARTES DES DOMAINES
   ========================= */

.domaines {
    padding: 35px 0;
}

.domaines > h2 {
    color: var(--bleu);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

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

.carte {
    padding: 25px;
    background: var(--surface);
    border: 1px solid #243044;
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s;
}

.carte:hover {
    border-color: var(--vert);
    transform: translateY(-4px);
}

.carte h3 {
    color: var(--vert);
    margin-bottom: 10px;
}

.carte p {
    color: var(--texte-secondaire);
}

/* =========================
   PIED DE PAGE
   ========================= */

.pied-page {
    padding: 25px;
    border-top: 1px solid #243044;
    text-align: center;
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

/* =========================
   ADAPTATION AUX ECRANS
   ========================= */

@media screen and (max-width: 850px) {
    .entete {
        flex-direction: column;
        gap: 15px;
    }

    .navigation {
        justify-content: center;
        gap: 12px 20px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .photo-profil {
        flex-basis: auto;
        width: 100%;
        max-width: 300px;
    }

    .photo-profil img {
        height: 360px;
    }

    .actions {
        justify-content: center;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

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

@media screen and (max-width: 400px) {
    main {
        padding: 25px 15px;
    }

    .navigation {
        gap: 10px;
    }

    .navigation a {
        font-size: 0.9rem;
    }

    .bouton {
        width: 100%;
    }
}
