/* ============================================================
   Feuille de style unique — cedric-chabrely.fr
   Approche mobile-first, puis adaptations pour les écrans larges.
   ============================================================ */

/* ---- Variables de couleurs et de typographie ---- */
:root {
    --bleu-marque: #00aaef;
    --bleu-fonce: #0c6f9c;
    --texte-principal: #13212e;
    --texte-secondaire: #5b6873;
    --fond-page: #ffffff;
    --fond-activites: #f4fafe;
    --fond-cartes-stats: #f3f7fa;
    --bordure: #e2e6ea;

    --police: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --rayon: 12px;
}

/* ---- Réinitialisation légère ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--police);
    color: var(--texte-principal);
    background-color: var(--fond-page);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

a {
    color: var(--bleu-fonce);
}

/* ---- Titres : graisse 500, pas de gras lourd ---- */
h1, h2, h3 {
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
}

/* ---- Focus clavier visible ---- */
a:focus-visible,
.bouton:focus-visible {
    outline: 3px solid var(--bleu-marque);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   1) Bandeau « qui je suis »
   ============================================================ */
.bandeau {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2rem;
}

/* ---- Bloc d'identité : photo + texte ---- */
/* Base mobile : empilé et centré */
.identite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

/* Image ronde finie (liseré + ombre intégrés) : affichée telle quelle */
.bandeau__photo {
    display: block;
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

/* Bloc texte : centré en mobile, aligné à gauche dès l'affichage côte à côte */
.identite__texte {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.bandeau__titre {
    font-size: 30px;
    font-weight: 700;
    color: #0d1620;
    letter-spacing: -0.3px;
    margin: 0;
}

/* ---- Étiquettes : deux lignes, puce discrète, graisse normale ---- */
.etiquettes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.etiquette {
    font-size: 22px;
    font-weight: 500;
    color: #0d1620;
    line-height: 1.3;
}

/* Puce grise devant chaque spécialité */
.etiquette::before {
    content: "•";
    margin-right: 8px;
    color: #9aa6b2;
    font-weight: 400;
}

/* Dès l'écran moyen : photo à gauche, texte à droite aligné à gauche */
@media (min-width: 560px) {
    .identite {
        flex-direction: row;
    }

    .identite__texte {
        text-align: left;
    }

    .etiquettes {
        align-items: flex-start;
    }
}

.bandeau__presentation {
    color: #000000;
    font-size: 19px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 0.5px solid var(--bordure);
}

/* Sauts de ligne actifs uniquement sur grand écran (une phrase par ligne) */
@media (max-width: 599px) {
    .saut-pc {
        display: none;
    }
}

/* ---- Chiffres clés ---- */
.chiffres {
    display: grid;
    grid-template-columns: 1fr;
    gap: 27px;
    width: 100%;
    margin: 20px 0;
}

.chiffre {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 0.5px solid var(--bordure);
    border-radius: 12px;
    padding: 16px 18px;
}

.chiffre__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f6f6f6;
    color: var(--bleu-marque);
    flex-shrink: 0;
}

.chiffre__texte {
    display: flex;
    flex-direction: column;
}

.chiffre__valeur {
    font-size: 28px;
    font-weight: 700;
    color: #0d1620;
    line-height: 1.2;
    white-space: nowrap;
}

.chiffre__libelle {
    font-size: 13px;
    color: #3a4651;
}

/* ---- Réseaux sociaux ---- */
/* Icônes directement sur le fond blanc, sans bandeau ni filet */
.reseaux {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
}

/* Icônes sans pastille ronde */
.reseau {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu-marque);
    transition: color 0.15s ease;
}

/* Icônes agrandies (priment sur les attributs width/height du SVG) */
.reseau svg {
    width: 30px;
    height: 30px;
}

.reseau:not(.reseau--inactif):hover {
    color: var(--bleu-fonce);
}

/* Réseaux pas encore actifs : gris atténué */
.reseau--inactif {
    color: #b7bfc7;
    cursor: default;
}

/* ============================================================
   2) Section « Mes activités »
   ============================================================ */
.activites {
    background-color: #f6f6f6;
    border-top: 0.5px solid #e2e6ea;
    padding: 2.5rem 1.25rem 3rem;
}

.activites__contenu {
    max-width: 1200px;
    margin: 0 auto;
}

.activites__titre {
    font-size: 24px;
    font-weight: 700;
    color: #0d1620;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ---- Grille de cartes (1 colonne sur mobile) ---- */
.grille {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.carte {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    overflow: hidden;
}

.carte__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: var(--rayon);
    border-top-right-radius: var(--rayon);
}

.carte__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carte__corps {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.carte__titre {
    font-size: 18px;
    font-weight: 700;
    color: #0d1620;
    margin-bottom: 0.6rem;
}

.carte__texte {
    color: #1c2733;
    margin: 0 0 1.25rem;
}

/* ---- Bouton (aligné en bas de carte) ---- */
.bouton {
    display: inline-block;
    margin-top: auto;
    align-self: center;
    background-color: var(--bleu-marque);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

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

/* ============================================================
   Pied de page
   ============================================================ */
.pied-page {
    border-top: 0.5px solid #e2e6ea;
    background-color: #ffffff;
}

.pied-page__contenu {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.pied-page__copyright {
    margin: 0;
    color: #3a4651;
    font-size: 0.9rem;
}

.pied-page__liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pied-page__lien {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    text-decoration: none;
}

.pied-page__lien:hover {
    color: var(--bleu-fonce);
    text-decoration: underline;
}

/* ============================================================
   Pages de contenu juridique (mentions légales, etc.)
   ============================================================ */
.page-legale {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

.page-legale__retour {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--bleu-fonce);
    font-size: 0.9rem;
    text-decoration: none;
}

.page-legale__retour:hover {
    text-decoration: underline;
}

.page-legale__titre {
    font-size: 28px;
    font-weight: 700;
    color: #0d1620;
    margin-bottom: 1.25rem;
}

.page-legale__intro {
    color: var(--texte-secondaire);
    margin: 0 0 2rem;
}

.page-legale h2 {
    font-size: 19px;
    font-weight: 700;
    color: #0d1620;
    margin: 2rem 0 0.5rem;
}

.page-legale p {
    color: var(--texte-principal);
    margin: 0 0 1rem;
}

.page-legale a {
    color: var(--bleu-fonce);
    overflow-wrap: anywhere;
}

/* ============================================================
   Adaptations pour écrans larges
   ============================================================ */
@media (min-width: 640px) {
    /* Pied de page : copyright à gauche, lien à droite */
    .pied-page__contenu {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Chiffres clés et activités : 2 colonnes à partir de 600px */
@media (min-width: 600px) {
    .chiffres {
        grid-template-columns: repeat(2, 1fr);
    }

    .grille {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Chiffres clés : 4 colonnes sur une seule ligne à partir de 1000px */
@media (min-width: 1000px) {
    .chiffres {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grille d'activités : 4 colonnes sur une seule ligne à partir de 1000px */
@media (min-width: 1000px) {
    .grille {
        grid-template-columns: repeat(4, 1fr);
    }
}
