/* 
    Saumur Volleyball - Style Global
    Couleurs extraites du logo :
    - Bleu Marine : #1a2b56
    - Orange : #f7941d
    - Cyan : #00a1c1
    - Blanc : #ffffff
*/

:root {
    --primary-color: #1a2b56;
    --secondary-color: #f7941d;
    --accent-color: #00a1c1;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.90)),
        url('../img/volley-pattern.svg');
    background-attachment: fixed;
    background-size: 400px 400px;
    background-position: center top;
    background-repeat: repeat;
}

/* Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.wide-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-container img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Social Icons in Header */
.social-header {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.social-header a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-header a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- Hero avec image optimisée --- */
.hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    min-height: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero.has-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    min-height: unset;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(14, 24, 48, 0.30), rgba(14, 24, 48, 0.52));
    z-index: 0;
}

.hero-content,
.hero-news-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
}

/* Hero News Spécifique */
.hero-news {
    min-height: unset;
}

.hero-kicker {
    display: inline-block;
    background: rgba(247, 148, 29, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-news-content h2 {
    font-size: 3.5rem;
    margin: 1rem 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-news-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto;
    line-height: 1.8;
}

.hero-news-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary-outline {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid white;
    transition: var(--transition);
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem 0;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .social-header {
        display: none;
    }

    .hero,
    .hero.has-media,
    .hero-news {
        aspect-ratio: 3 / 4;
        min-height: unset;
        padding: 0 1rem;
    }

    .hero-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #0e1830;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-news-content h1,
    .hero-news-content h2 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .match-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Styles Matchs & Classement --- */
.match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.match-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
}

.match-card h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.match-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.match-score {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.match-date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- Carrousel Photo --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 43, 86, 0.7);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover { background: var(--primary-color); }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

/* --- Bouton CTA --- */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px;
    margin: 4rem 0;
}

.btn-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(247, 148, 29, 0.6);
}

/* --- Page Actualités --- */
.news-page {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.90)),
        url('../img/volley-pattern.svg');
    background-attachment: fixed;
    background-size: 400px 400px;
    background-position: center top;
    background-repeat: repeat;
}

.news-overview {
    background: linear-gradient(135deg, rgba(247, 148, 29, 0.08), rgba(0, 161, 193, 0.08));
    padding: 3rem 0;
}

.news-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.news-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-stat-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-stat-icon.facebook {
    color: #1877f2;
}

.news-stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-stat-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Social Hub --- */
.social-hub-section {
    padding: 4rem 0;
}

.social-title h2 {
    color: var(--primary-color);
}

.social-title p {
    color: #666;
}

.social-feed-shell {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.social-switch {
    display: inline-flex;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 50px;
    margin: 2rem;
    position: relative;
    gap: 0;
}

.switch-pill {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50px;
    height: calc(100% - 16px);
    top: 8px;
    transition: all 0.3s ease;
    z-index: 0;
}

.social-switch[data-active="fb"] .switch-pill {
    width: calc(50% - 4px);
    left: 8px;
}

.social-switch[data-active="insta"] .switch-pill {
    width: calc(50% - 4px);
    left: calc(50% + 4px);
}

.switch-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 50px;
}

.switch-btn.active {
    color: white;
}

.switch-btn i {
    margin-right: 8px;
}

.feed-content {
    display: none;
    animation: fadeIn 0.5s;
}

.feed-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2.5rem;
}

.feed-layout-full {
    display: block;
    padding: 1.5rem 0;
}

.feed-main-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
}

.feed-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.feed-card-head h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0 0 0;
}

.feed-card-head a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.feed-card-head a:hover {
    color: var(--primary-color);
}

.feed-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.feed-label.facebook {
    background: #e7f3ff;
    color: #1877f2;
}

.feed-label.instagram {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.15), rgba(220, 39, 67, 0.15));
    color: #dc2743;
}

.facebook-frame {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-frame-large {
    background: white;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-main-card-full {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
}

.facebook-plugin-wrapper {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.facebook-plugin-wrapper .fb-page {
    width: 100% !important;
}

.instagram-intro {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.instagram-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.insta-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insta-post:hover img {
    transform: scale(1.05);
}

.insta-post.tall {
    grid-row: span 2;
}

.insta-post.wide {
    grid-column: span 2;
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay strong {
    font-size: 0.95rem;
    display: block;
}

.insta-overlay small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.feed-side-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
}

.feed-side-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feed-side-card p {
    color: #666;
    margin-bottom: 1rem;
}

.feed-side-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feed-side-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: #666;
    position: relative;
}

.feed-side-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.insta-cta {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.08), rgba(220, 39, 67, 0.08));
}

@media (max-width: 768px) {
    .feed-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .insta-post.tall,
    .insta-post.wide {
        grid-column: auto;
        grid-row: auto;
    }
    
    .hero-news-content h2 {
        font-size: 2rem;
    }
    
    .hero-news-actions {
        flex-direction: column;
    }
}


/* --- Page Partenaires --- */
.partners-section {
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.partner-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.partner-logo-wrapper {
    background: linear-gradient(135deg, rgba(26, 43, 86, 0.05), rgba(0, 161, 193, 0.05));
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.partner-logo {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.partner-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.partner-category {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.partner-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.partner-links {
    display: flex;
    gap: 1rem;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
}

.partner-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.partners-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.partners-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.partners-cta p {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-logo-wrapper {
        min-height: 150px;
    }
}


/* --- Section Blog --- */
.blog-section {
    padding: 4rem 0;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.90)),
        url('../img/volley-pattern.svg');
    background-attachment: fixed;
    background-size: 400px 400px;
    background-position: center top;
    background-repeat: repeat;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--accent-color);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    flex: 1;
}

.blog-card-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.blog-card-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Skeleton Loading */
.blog-card-skeleton {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: pulse 2s infinite;
}

.skeleton-image {
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    margin: 12px;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content h3 {
        font-size: 1.1rem;
    }
}


/* --- Onglets Actualités --- */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Blog en Colonne --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-item {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
    padding: 1.5rem;
}

.blog-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateX(5px);
}

.blog-item-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-item-image img {
    transform: scale(1.05);
}

.blog-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-item-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 0.8rem;
}

.blog-item-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-item-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-item-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

/* --- Facebook Feed Card --- */
.feed-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feed-card-head {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.feed-card-head h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.facebook-plugin-wrapper {
    padding: 1rem;
    background: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .blog-item-image {
        width: 100%;
        height: 200px;
    }
    
    .tabs-container {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* --- Corrections images responsive globales --- */
img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .carousel-slide img {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .blog-card-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-card-image img {
        height: 100%;
        object-fit: cover;
    }

    .blog-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-item-image img {
        height: 100%;
        object-fit: cover;
    }
}
@media (max-width:768px){
  .hero.has-media{
    aspect-ratio: 16 / 9;
    min-height: unset;
  }

  .hero-media img{
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center;
  }
}