/* ================= VARIABLES ================= */
:root {
    --couleur-principale: #1972d2; /* Ton fameux bleu ! */
    --couleur-principale-hover: #145aab; /* Un bleu un peu plus foncé pour les survols */
    --fond-page: #f8f9fa;
    --texte-principal: #333;
    --texte-secondaire: #666;
    --blanc: #fff;
    --fond-footer: #222;
    --bouton-sombre: #333;
    --bouton-sombre-hover: #555;
}

/* ================= RESET DE BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--fond-page);
    color: var(--texte-principal);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER (PARFAITEMENT CENTRÉ) ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--blanc);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left {
    flex: 1; /* Prend un tiers de l'espace */
    display: flex;
    justify-content: flex-start;
}

.header-center {
    flex: 1; /* Prend un tiers de l'espace au milieu ! */
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1; /* Prend un tiers de l'espace */
    display: flex;
    justify-content: flex-end;
}

.logo-placeholder {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--couleur-principale);
}

nav a {
    margin: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--couleur-principale);
}

.header-right a {
    font-size: 1.2rem;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.header-right a:hover {
    opacity: 1;
}

/* ================= HERO SECTION (VERSION FORCE RÉGLEMENTAIRE 👮‍♂️🔥) ================= */
.hero {
    text-align: left;
    padding: 120px 20px;
    max-width: 1200px; /* J'élargis un peu pour laisser respirer le texte géant */
    margin: 0 auto;
}

.gigantexte {
    /* ON GARDE L'EFFET GÉANT ADAPTATIF */
    /* clamp(TailleMin, TailleIdéaleEn%Ecran, TailleMax) */
    font-size: clamp(3.2rem, 8.5vw, 8.5rem); /* Ajusté pour pas que ça casse sur mobile */
    font-weight: 900;
    line-height: 0.95; /* Super serré pour un look ultra moderne */
    letter-spacing: -4px; /* Encore plus collé, c'est magnifique ! */
}

/* C'EST ICI QUE LA MAGIE OPÈRE POUR TES LIGNES !!! 👇 */
.gigantexte .highlight {
    /* FORCE LE TEXTE À RESTER SUR UNE SEULE LIGNE, JAMAIS DE RETOUR AUTOMATIQUE */
    white-space: nowrap; 
    
    /* Pour s'assurer que ça prenne bien en compte le nowrap */
    display: inline-block; 

    /* Ton dégradé de bleu magnifique */
    color: var(--couleur-principale);
    background: linear-gradient(90deg, var(--couleur-principale), #4fa3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Petit ajustement pour la première ligne aussi, pour être sûr */
.gigantexte::first-line {
    white-space: nowrap;
}

/* ================= SECTIONS & CARTES HORIZONTALES ================= */
.section-content {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.section-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--couleur-principale);
    padding-left: 10px;
}

/* LA CARTE MAGIQUE */
.horizontal-card {
    display: flex;
    align-items: center;
    background: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    cursor: pointer;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.card-content {
    flex-grow: 1;
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--texte-secondaire);
    font-size: 0.95rem;
}

.card-action {
    padding: 20px;
}

.btn-lire {
    background-color: var(--couleur-principale);
    color: var(--blanc);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-lire:hover {
    background-color: var(--couleur-principale-hover);
}

/* ================= MESSAGE QUAND LA BDD EST VIDE ================= */
.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--blanc);
    border-radius: 10px;
    color: var(--texte-secondaire);
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

/* ================= BOUTONS SECONDAIRES ================= */
.btn-container {
    text-align: center;
    margin-top: 10px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--bouton-sombre);
    color: var(--blanc);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--bouton-sombre-hover);
}

/* ================= FOOTER & ICÔNES RÉSEAUX ================= */
footer {
    background-color: var(--fond-footer);
    color: var(--blanc);
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social a {
    margin: 0 15px;
    color: #888; /* Le fameux gris stylé ! */
    font-size: 1.8rem; /* Bien gros pour qu'on les voie */
    transition: color 0.3s, transform 0.3s; /* Animation fluide */
    display: inline-block;
}

.footer-social a:hover {
    color: var(--couleur-principale); /* Devient bleu au survol ! */
    transform: scale(1.15); /* Petit effet de zoom de malade 🔥 */
}

.footer-contact a {
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--couleur-principale);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #aaa;
}