@charset "UTF-8";
/*
Theme Name: La Multiprise FabLab
Theme URI: https://www.lamultiprise.fr
Description: Thème WordPress personnalisé pour le FabLab La Multiprise - Simple, moderne et facile à gérer
Author: FabLab La Multiprise
Author URI: https://www.lamultiprise.fr
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lamultiprise
Tags: fablab, responsive, custom-menu, custom-logo, featured-images
*/

/* ===================================
   POLICES PERSONNALISÉES
   =================================== */
@font-face {
    font-family: 'Malberg';
    src: url('fonts/malberg-trial_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Malberg';
    src: url('fonts/malberg-trial_heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   VARIABLES CSS - CHARTE GRAPHIQUE
   =================================== */
:root {
    /* Couleurs principales */
    --color-primary-blue: #0066CC;
    --color-primary-dark: #003D7A;
    --color-secondary-gray: #6B7280;
    --color-accent-orange: #f46e53;  /* Couleur Repair Café */
    --color-repair-cafe: #f46e53;     /* Couleur officielle Repair Café */
    
    /* Couleurs neutres */
    --color-white: #FFFFFF;
    --color-light-gray: #F3F4F6;
    --color-medium-gray: #9CA3AF;
    --color-dark-gray: #1F2937;
    --color-black: #111827;
    
    /* Typographie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Malberg', 'Poppins', sans-serif;  /* Police de marque FabLab */
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Tailles de conteneur */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===================================
   RESET ET BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark-gray);
    line-height: 1.6;
    background-color: var(--color-white);
}

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

a {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ===================================
   TYPOGRAPHIE
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   CONTENEUR
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    gap: 16px;
}

.site-logo img {
    height: 60px;
    width: auto;
}
.site-logo .site-name {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-navigation a {
    color: var(--color-dark-gray);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    display: inline-block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-primary-blue);
    color: var(--color-primary-blue);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all .2s;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    background: var(--color-primary-blue);
    color: #fff;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-brand);  /* Police Malberg pour le titre principal */
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary-blue);
}

.btn-secondary:hover {
    background-color: var(--color-light-gray);
}

/* ===================================
   SECTIONS
   =================================== */
.content-section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-orange);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-sm);
}

/* ===================================
   GRILLE - ÉVÉNEMENTS / PROJETS
   =================================== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.card-date {
    color: var(--color-medium-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.card-description {
    color: var(--color-secondary-gray);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--color-primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ===================================
   AGENDA
   =================================== */
.agenda-week {
    background-color: var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.agenda-week-title {
    font-size: 1.125rem;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-sm);
}

.agenda-image {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
}

/* ===================================
   HORAIRES
   =================================== */
.horaires-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.horaires-table th,
.horaires-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
    color: var(--color-dark-gray);  /* CORRECTION: Texte noir pour être visible */
}

.horaires-table th {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    font-weight: 600;
}

.horaires-table tr:last-child td {
    border-bottom: none;
}

.horaires-table .jour {
    font-weight: 600;
    color: var(--color-dark-gray);
}

.horaires-table .ferme {
    color: var(--color-medium-gray);
    font-style: italic;
}

/* ===================================
   CONTACT / INFO
   =================================== */
.info-box {
    background-color: var(--color-light-gray);
    border-left: 4px solid var(--color-primary-blue);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.info-box h3 {
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-sm);
}

.info-box p {
    margin-bottom: var(--spacing-xs);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-info svg,
.contact-info i {
    color: var(--color-primary-blue);
    font-size: 1.25rem;
}

/* ===================================
   RÉSEAUX SOCIAUX
   =================================== */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-accent-orange);
    transform: scale(1.1);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.footer-section a {
    color: var(--color-light-gray);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.footer-links a i {
    color: var(--color-primary-blue);
    width: 20px;
}

.footer-links a:hover {
    color: var(--color-primary-blue);
}

.social-links-footer {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-md);
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background-color: var(--color-primary-blue);
    transform: translateY(-3px);
}

.footer-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, #e55a2b 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.footer-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-credits {
    color: var(--color-medium-gray);
    font-size: 0.9rem;
}

.footer-credits p {
    margin: 8px 0;
}

.footer-credits a {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--color-white);
}

/* ===================================
   FORMULAIRES
   =================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-dark-gray);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary-blue);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===================================
   RESPONSIVE — Menu mobile (tablettes + téléphones)
   Breakpoint élevé à 1024px car 9 items de menu ne tiennent
   pas sur tablette en largeur paysage.
   =================================== */
@media (max-width: 1024px) {
    /* Header */
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: var(--spacing-sm);
        border-top: 1px solid #e5e7eb;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #f1f3f6;
    }
    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 14px 8px;
        font-size: 1rem;
        white-space: normal;
        border-radius: 0;
    }
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a,
    .main-navigation .current-menu-parent > a {
        background-color: var(--color-primary-blue);
        color: #fff;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    /* Grilles */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-2xl: 2rem;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   UTILITAIRES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ===================================
   ACCESSIBILITÉ
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 2px;
}

/* ===================================
   REPAIR CAFÉ SECTION
   =================================== */
.repair-cafe-section {
    background: linear-gradient(135deg, #f46e53 0%, #e85a42 100%);
    color: white;
}

.repair-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.repair-date-card {
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.repair-date-card:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* ===================================
   INFOLETTRES SECTION
   =================================== */
.infolettre-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.infolettre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 254, 0.15);
}

.infolettre-header {
    background: var(--color-primary-blue);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.infolettre-header .fa-file-pdf {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.infolettre-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

/* ===================================
   ADHÉSION SECTION
   =================================== */
.adhesion-section {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, #0000B8 100%);
    color: white;
}

.adhesion-avantage {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.adhesion-avantage:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.adhesion-avantage i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.adhesion-avantage h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.adhesion-avantage p {
    opacity: 0.9;
    margin: 0;
}

#haWidget {
    width: 100%;
    border: none;
    min-height: 700px;
    border-radius: 8px;
}

/* ===================================
   PARTENAIRES SECTION
   (styles consolidés plus bas dans le fichier — bloc "Accueil — bande de logos")
   =================================== */

/* ===================================
   RESPONSIVE - NOUVELLES SECTIONS
   =================================== */
@media (max-width: 768px) {
    .repair-dates-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .adhesion-avantage {
        padding: 1rem;
    }
    
    .adhesion-avantage i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .repair-dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   VIDÉO DE PRÉSENTATION (Accueil)
   Prévisualisation cliquable, compacte
   =================================== */
.lm-section-video {
    background: #fff;
    padding: 50px 0;
    text-align: center;
}

.lm-video-intro {
    max-width: 640px;
    margin: 0 auto 24px;
}
.lm-video-title {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--color-primary-dark, #003D7A);
    margin: 0 0 .4em;
    font-weight: 700;
}
.lm-video-lead {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.lm-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Preview (vignette cliquable) */
.lm-video-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    /* Fallback visuel si la vignette YouTube ne se charge pas */
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    outline: none;
    /* Reset des styles button natifs (le conteneur est un <button>) */
    border: 0;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    display: block;
}
.lm-video-preview:hover,
.lm-video-preview:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.lm-video-preview:focus-visible {
    outline: 3px solid var(--color-primary-blue, #0066CC);
    outline-offset: 3px;
}

.lm-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .2s;
}
.lm-video-preview:hover .lm-video-thumb {
    filter: brightness(.85);
}

/* Bouton play centré */
.lm-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform .2s;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.lm-video-preview:hover .lm-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Iframe injectée au clic */
.lm-video-preview iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.lm-video-playing {
    cursor: default;
}
.lm-video-playing:hover { transform: none; }

/* Format classique 16:9 — MAX 560px (compact) */
.lm-video-preview.lm-video-classic {
    max-width: 560px;
    aspect-ratio: 16 / 9;
}

/* Format Short 9:16 (vertical) — MAX 280px (compact) */
.lm-video-preview.lm-video-short {
    max-width: 280px;
    aspect-ratio: 9 / 16;
}

/* Fallback aspect-ratio pour vieux navigateurs */
@supports not (aspect-ratio: 1) {
    .lm-video-preview.lm-video-classic { padding-bottom: 56.25%; height: 0; }
    .lm-video-preview.lm-video-short   { padding-bottom: 177.78%; height: 0; }
}

/* Mobile */
@media (max-width: 480px) {
    .lm-section-video { padding: 36px 0; }
    .lm-video-preview.lm-video-short { max-width: 240px; }
    .lm-video-preview.lm-video-classic { max-width: 100%; }
    .lm-video-play svg { width: 56px; height: auto; }
}

/* ===================================
   Accueil — Présentation avec équipements
   =================================== */
.presentation-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}
.presentation-texte { line-height: 1.7; color: #333; }
.presentation-texte p { margin: 0 0 1em; }
.presentation-equipements {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border-left: 3px solid var(--color-primary-blue);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.presentation-equipements h3 {
    margin: 0 0 .8em;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}
.presentation-equipements ul {
    margin: 0;
    padding-left: 1.2em;
    color: #333;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .presentation-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===================================
   Accueil — Infolettres en grille
   =================================== */
.lm-infolettres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}
.lm-infolettre-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1d2327;
    transition: all .15s;
}
.lm-infolettre-item:hover {
    border-color: var(--color-primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    color: var(--color-primary-dark);
}
.lm-infolettre-item i {
    font-size: 1.8rem;
    color: #d63638;
    flex-shrink: 0;
}
.lm-infolettre-item strong {
    display: block;
    font-size: .95rem;
    line-height: 1.3;
}
.lm-infolettre-item span {
    display: block;
    font-size: .8rem;
    color: #666;
    margin-top: 2px;
}

/* ===================================
   Accueil — Partenaires
   =================================== */
/* Accueil — bande de logos partenaires (sobre, alignés) */
.partenaires-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.partenaire-card {
    background: transparent;
    padding: 0;
    border: none;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partenaire-link { text-decoration: none; display: block; line-height: 0; }
.partenaire-link:hover .partenaire-card img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);
}
.partenaire-card img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: .85;
    transition: filter .2s, opacity .2s, transform .2s;
}
@media (max-width: 768px) {
    .partenaires-grid { gap: 24px 32px; }
    .partenaire-card img { max-height: 40px; max-width: 100px; }
}
@media (max-width: 480px) {
    .partenaires-grid { gap: 18px 24px; }
    .partenaire-card img { max-height: 34px; max-width: 80px; }
}

/* ===================================
   BLOG — listing des articles
   =================================== */
.site-blog .blog-hero {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.site-blog .blog-hero h1 {
    color: #fff;
    margin: 0 0 .5em;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.site-blog .blog-hero .lead {
    color: #fff;
    opacity: .95;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.blog-grid-section {
    padding: 48px 0;
    background: var(--color-light-gray);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}
.blog-card-body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-date {
    font-size: .85rem;
    color: #666;
    margin: 0 0 .5em;
}
.blog-card-date i {
    color: var(--color-primary-blue);
    margin-right: 4px;
}
.blog-card-title {
    margin: 0 0 .6em;
    font-size: 1.15rem;
    line-height: 1.3;
}
.blog-card-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--color-primary-blue);
}
.blog-card-excerpt {
    color: #444;
    font-size: .95rem;
    line-height: 1.55;
    flex-grow: 1;
    margin: 0 0 1em;
}
.blog-card-link {
    align-self: flex-start;
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}
.blog-card-link:hover {
    text-decoration: underline;
}
.blog-pagination {
    text-align: center;
    margin-top: 36px;
}

/* ===================================
   BLOG — "en construction"
   =================================== */
.blog-wip {
    padding: 80px 0;
    background: var(--color-light-gray);
    min-height: 60vh;
}
.blog-wip-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    text-align: center;
}
.blog-wip-icon {
    font-size: 4rem;
    color: var(--color-primary-blue);
    margin-bottom: 16px;
    opacity: .85;
}
.blog-wip h1 {
    color: var(--color-primary-dark);
    margin: 0 0 .6em;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.blog-wip-lead {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1em;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.blog-wip-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
}
.blog-wip-actions .btn {
    text-decoration: none;
}
.blog-wip-hint {
    font-size: .9rem;
    color: #666;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.blog-wip-hint a {
    color: var(--color-primary-blue);
    font-weight: 600;
}

@media (max-width: 560px) {
    .blog-wip { padding: 48px 0; }
    .blog-wip-card { padding: 32px 20px; }
    .blog-wip-actions .btn { width: 100%; justify-content: center; }
}

/* ===================================
   HelloAsso — placeholder de chargement (skeleton)
   Masqué automatiquement quand l'iframe est chargée.
   =================================== */
.ha-widget-container {
    position: relative;
    min-height: 520px;
    background: #fff;
    border-radius: 8px;
}
.ha-widget-iframe {
    width: 100%;
    border: none;
    min-height: 500px;
    display: block;
    position: relative;
    z-index: 2;
    background: transparent;
}
.ha-widget-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 24px 22px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Skeleton blocks */
.ha-skel {
    background: linear-gradient(90deg, #eef0f3 0%, #f8f9fa 50%, #eef0f3 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: ha-shimmer 1.4s infinite linear;
}
@keyframes ha-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}
.ha-skel-header { height: 28px; width: 60%; margin-bottom: 20px; }
.ha-skel-line   { height: 14px; width: 100%; margin-bottom: 10px; }
.ha-skel-line.short { width: 70%; }
.ha-skel-block  { height: 80px; width: 100%; margin: 18px 0; }
.ha-skel-button {
    height: 44px; width: 180px; margin-top: 22px;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 50%, #dbeafe 100%);
    background-size: 200% 100%;
    border-radius: 6px;
}
.ha-widget-loading-text {
    text-align: center;
    color: #555;
    font-size: .9rem;
    margin-top: 24px;
}
.ha-widget-loading-text i {
    margin-right: 6px;
    color: var(--color-primary-blue);
}

/* Logo : styles supplémentaires pour la chaîne de fallback */
.site-name-fallback {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}
.custom-logo-link { text-decoration: none; display: inline-block; line-height: 0; }

/* ===================================
   PAGE PARTENAIRES — bande de logos compacte
   =================================== */
.page-partenaires .part-hero {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 56px 0 40px;
    text-align: center;
}
.page-partenaires .part-hero h1 { color: #fff; margin: 0 0 .4em; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-partenaires .part-hero .lead { color: #fff; opacity: .95; max-width: 640px; margin: 0 auto; }

.part-section-title {
    text-align: center;
    color: var(--color-primary-dark);
    font-size: clamp(1.2rem, 2.6vw, 1.4rem);
    margin: 0 0 2rem;
    font-weight: 600;
}

/* ==============================
   BANDE DE LOGOS (horizontale)
   Logos petits, alignés, sur une ou deux lignes max.
   ============================== */
.part-carousel-section {
    padding: 48px 0;
    background: #fff;
}
.part-carousel {
    /* Conteneur : flex wrap pour passer à la ligne si trop étroit */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.part-carousel-track {
    /* Plus d'animation : on affiche tout proprement, fini le carrousel défilant */
    display: contents;
}
.part-carousel-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.part-carousel-item a { display: block; line-height: 0; }
.part-carousel-logo {
    max-height: 50px;          /* petit format, pro, uniforme */
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: .85;
    transition: filter .2s, opacity .2s, transform .2s;
}
.part-carousel-item a:hover .part-carousel-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);
}
.part-carousel-hint {
    text-align: center;
    color: #666;
    font-size: .85rem;
    margin: 32px 0 0;
}
.part-carousel-hint i { color: var(--color-primary-blue); margin-right: 4px; }

/* GRILLE complète en dessous (avec noms) */
.part-grid-section {
    padding: 48px 0;
    background: var(--color-light-gray);
}
.part-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.part-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.part-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--color-primary-blue);
}
.part-item-link,
.part-item-nolink {
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    text-decoration: none;
    color: #1d2327;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-height: 150px;
    justify-content: center;
}
.part-item-link { cursor: pointer; }
.part-logo {
    max-height: 55px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}
.part-logo-placeholder {
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 1.4rem;
}
.part-name {
    font-weight: 600;
    font-size: .88rem;
    color: var(--color-primary-dark);
    line-height: 1.3;
}
.part-item-visit {
    font-size: .75rem;
    color: var(--color-primary-blue);
    margin-top: auto;
}
.part-item-visit i { margin-right: 4px; }

/* CTA bas de page */
.part-cta {
    padding: 48px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.part-cta h2 { color: var(--color-primary-dark); margin: 0 0 .5em; }
.part-cta p { color: #555; margin: 0 0 1.5em; max-width: 560px; margin-left: auto; margin-right: auto; }

/* État vide */
.part-empty-section { padding: 60px 0; background: var(--color-light-gray); }
.part-empty-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}
.part-empty-card i {
    font-size: 3rem;
    color: var(--color-primary-blue);
    margin-bottom: 16px;
    opacity: .7;
}
.part-empty-card h2 {
    margin: 0 0 .5em;
    color: var(--color-primary-dark);
    font-size: 1.4rem;
}
.part-empty-card p { color: #555; margin: 0 0 .5em; }

@media (max-width: 768px) {
    .part-carousel { gap: 28px 36px; }
    .part-carousel-logo { max-height: 42px; max-width: 100px; }
}
@media (max-width: 480px) {
    .part-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .part-item-link, .part-item-nolink { padding: 14px 10px; min-height: 130px; }
    .part-logo { max-height: 44px; max-width: 110px; }
    .part-carousel { gap: 20px 28px; }
    .part-carousel-logo { max-height: 36px; max-width: 80px; }
}
