/* --- Variables globales et Palette Modernisée & Chaleureuse --- */
:root {
    --couleur-bleu: #2563eb;      /* Un bleu moderne et lumineux (inspiré du logo) */
    --couleur-rouge: #dc2626;     /* Un rouge chaleureux et dynamique */
    --couleur-jaune: #f59e0b;     /* Un jaune ambré chaleureux */
    --couleur-texte: #1e293b;     /* Un gris ardoise très lisible */
    --couleur-fond: #ffffff;
    --couleur-fond-secondaire: #FAF6F0; /* Un fond crème chaleureux et enveloppant */
    --arrondi-global: 16px;       /* Des formes généreusement arrondies */
    --ombre-douce: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --ombre-flottante: 0 20px 35px -10px rgba(37, 99, 235, 0.1);
    --police-texte: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--police-texte);
    color: var(--couleur-texte);
    background-color: var(--couleur-fond);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- En-tête et Navigation (Header moderne et épuré) --- */
.header-asso {
    background-color: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(10px);              
    border-bottom: 3px solid var(--couleur-rouge); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-asso {
    max-height: 75px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-asso:hover {
    transform: scale(1.04);
}

.wp-block-navigation__container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.wp-block-navigation-item__content {
    text-decoration: none;
    color: #f8fafc; 
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.wp-block-navigation-item__content:hover {
    color: var(--couleur-jaune); 
}

/* --- Surcharge des blocs Gutenberg natifs --- */
.wp-block-group {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-block-heading {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--couleur-bleu); 
}

/* --- Boutons ultra-modernes & arrondis --- */
.wp-block-button__link {
    background: linear-gradient(135deg, var(--couleur-rouge), #b91c1c) !important; 
    color: #ffffff !important;
    border-radius: 50px !important; 
    padding: 14px 32px !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--couleur-bleu) !important;
    border: 2px solid var(--couleur-bleu) !important;
    box-shadow: none !important;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: var(--couleur-bleu) !important;
    color: #ffffff !important;
}

.wp-block-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Bloc Bannière (Cover) moderne --- */
.wp-block-cover {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wp-block-cover__background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.85)); 
    z-index: 1;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

/* --- Correction des blocs Colonnes et Grilles (Anti-chevauchement) --- */
.wp-block-columns {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; 
    align-items: stretch; 
}

.wp-block-column {
    flex: 1;
    min-width: 280px;
    background-color: var(--couleur-fond);
    padding: 2.5rem;
    border-radius: var(--arrondi-global) !important;
    box-shadow: var(--ombre-douce) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    margin: 0 !important; 
}

.wp-block-column:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-flottante) !important;
}

/* --- Utilitaires --- */
.has-small-font-size {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* --- Pied de page (Footer moderne) --- */
.footer-asso {
    background-color: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 4px solid var(--couleur-bleu);
}

.footer-asso a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-asso a:hover {
    color: var(--couleur-jaune);
}

/* --- Responsive fluide --- */
@media (max-width: 768px) {
    .wp-block-group {
        padding: 3rem 1.25rem;
    }
}