/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #0b2a55;
}


/* =====================================================
   HEADER / TOP BANNER
===================================================== */
.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
    max-height: 75px;
}



/* Hamburger */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #0b2a55;
    margin-left: 15px;
}

/* Menu */
.menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    color: #0b2a55;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
}

/* underline hover/active */
.menu a.active::after,
.menu a:not(.lang-btn):hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #d40000;
}

/* Language button */
.lang-btn {
    background: #fff;
    border: 2px solid #0b2a55;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}

.lang-btn:hover {
    background: #d40000;
    color: #fff;
    border-color: #d40000;
}


/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    background: url('/images/tabaretIMG.png') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 50%;
    padding-left: 40px;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.hero-btn,
.hero-btn-red,
.hero-btn-white {
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.hero-btn {
    background: #0b2a55;
    color: #fff;
}

.hero-btn:hover {
    background: #d40000;
}

.hero-btn-red {
    background: #8a0000;
    color: #fff;
    width: 250px;
}

.hero-btn-red:hover {
    background: #b30000;
}

.hero-btn-white {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    width: 250px;
}

.hero-btn-white:hover {
    background: #000;
    color: #fff;
}


/* =====================================================
   LARGE BUTTON ROW
===================================================== */
.hero-buttons-section {
    background: #fff;
    padding: 20px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.hero-buttons-row {
    display: flex;
    gap: 15px;
}

.large-btn {
    flex: 1;
    background: #e0e0e0;
    color: #0b2a55;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.large-btn:hover {
    background: #d40000;
    color: #fff;
}

.large-btn img {
    width: 45px;
}


/* =====================================================
   PAGE CONTENT
===================================================== */
.page-content {
    min-height: 70vh;
    padding: 0;
}


/* =====================================================
   FOOTER
===================================================== */
.footer {
    width: 100%;
    margin-top: 40px;
}

/* ---------- CONTACT SECTION (WHITE) ---------- */
.footer-contact {
    background: #ffffff;
    padding: 35px 60px;
}

.footer-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-title-row h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.footer-title-row hr {
    flex: 1;
    border: none;
    border-top: 2px solid #cfd6df;
}

.footer-contact p {
    font-size: 15px;
    margin-bottom: 6px;
    color: #243447;
}

/* ---------- SOCIAL STRIP ---------- */
.footer-social {
    background: #f2f2f2;
    padding: 14px 60px;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
}

.footer-social img {
    width: 34px;
    height: 34px;
}

/* ---------- DARK BLUE LINKS STRIP ---------- */
.footer-links {
    background: linear-gradient(180deg,#34495e,#2c3e50);
    padding: 18px 20px;
    text-align: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 12px;
}

.footer-links span {
    color: rgba(255,255,255,0.5);
    margin: 0 6px;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* =====================================================
   LATEST NEWS SECTION
===================================================== */
.news-section {
    background: #ffffff;
    padding: 0px;
}

.news-container {
    max-width: 1200px;
    margin: auto;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.news-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0b2a55;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.news-header hr {
    flex: 1;
    border: none;
    border-top: 2px solid #cfd6df;
}

/* Grid */
.news-grid {
    display: flex;
    gap: 25px;
}

/* Card */
.news-card {
    flex: 1;
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 18px;
}

.news-date {
    font-size: 13px;
    color: #6b7280;
    display: block;
    margin-bottom: 6px;
}

.news-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #0b2a55;
}

.news-card p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.4;
}

.news-link {
    font-weight: bold;
    color: #d40000;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}


/* =====================================================
   CONTACT HERO
===================================================== */
.contact-hero {
    position: relative;
    background-image: url('/images/tabaretIMG.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
}

.contact-hero-overlay {
    width: 30%;
    text-align: left;
    padding: 20px;
    background: rgba(11, 42, 85, 0.7);
    color: #fff;
    border-radius: 8px;
}


/* =====================================================
   CONTACT CARDS
===================================================== */
.contact-cards-section {
    background: #fff;
    padding: 50px 20px;
}

.contact-cards-container {
    max-width: 1100px;
    margin: auto;
}

.contact-cards-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    flex: 1;
    background: #f8f9fb;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.contact-card h3 {
    color: #0b2a55;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-link,
.contact-card a {
    color: #d40000;
    font-weight: bold;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


/* =====================================================
   TEAM PAGE
===================================================== */
.team-section {
    background: #ffffff;
    padding: 50px 20px;
}

.team-container {
    max-width: 1100px;
    margin: auto;
}

.team-block {
    background: #f8f9fb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.team-block h3 {
    color: #0b2a55;
    margin-bottom: 15px;
}
/* Only on Comité page: make 2nd column text bigger */
.comite-page .team-table td:nth-child(2) {
    font-size: 14px;
    font-weight: normal;
}

/* ===== TABLE ===== */

.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.team-table th {
    background: #0b2a55;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

.team-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.team-table tr:hover {
    background: #eef2f7;
}

.team-table a {
    color: #d40000;
    font-weight: bold;
    text-decoration: none;
}


/* ===== NOTE ===== */

.team-note {
    margin-top: 15px;
    font-size: 13px;
    color: #555;
}

.editor-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-top:20px;
}

.editor-col {
    padding:20px;
}

.border-right {
    border-right:2px solid #ddd;
}

.json-editor textarea {
    width:100%;
    margin-bottom:10px;
    min-height:60px;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
    .contact-cards-grid {
        flex-direction: column;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        right: 40px;
        background: #fff;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 5px;
        z-index: 999;
    }

    .menu.show {
        display: flex;
    }

    .news-section {
        padding: 0px;
    }

    .news-grid {
        flex-direction: column;
    }

    .news-card img {
        height: 200px;
    }

    .hero {
        height: 50vh;
    }

    .hero-overlay {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons-row {
        flex-direction: column;
    }

    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .footer-contact,
    .footer-social {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .team-table {
        font-size: 13px;
    }

    .contact-hero {
        justify-content: center;
        padding-left: 0;
    }

    .contact-hero-overlay {
        width: 80%;
        text-align: center;
    }

    /* HERO */
    .hero {
        height: 50vh !important;
        background-position: center top !important;
    }

    .hero-overlay {
        width: 90% !important;
        padding: 15px !important;
        text-align: center !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-btn,
    .hero-btn-red,
    .hero-btn-white {
        width: 100% !important;
        margin-right: 0 !important;
    }

/* NEWS SLIDER */
.news-slider {
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
}

.news-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.news-card {
    flex: 0 0 30%;
    max-width: 30%;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-bottom: 10px;
}

.no-image {
    width: 100%;
    height: 120px;
    background: #eee;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
    padding: 5px;
}

.news-content h3 {
    margin: 5px 0;
    font-size: 1em;
}

.news-content p {
    font-size: 0.9em;
}

.news-content .news-date {
    font-size: 0.8em;
    color: #555;
}

.news-link {
    text-decoration: none;
    color: #800000;
    font-weight: bold;
}
}

/* --- Mobile --- */
@media(max-width:768px){
    .news-card {
        flex:0 0 90% !important; 
        max-width:90% !important;
        margin:0 auto;
    }

    .news-slider {
        padding-left: 5%;  
        padding-right: 5%;
        box-sizing: border-box;
    }

    .news-track {
        justify-content: flex-start;
    }

}
/* ===== MOBILE FIX ===== */

@media (max-width: 768px) {

    /* permet le scroll horizontal si nécessaire */
    .team-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* empêche les colonnes de s'écraser */
    .team-table {
        min-width: 700px; /* ajuste si nécessaire */
        font-size: 13px;
    }

    /* permet aux emails longs de se couper proprement */
    .team-table td:nth-child(3) a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* permet aux titres longs de se couper proprement */
    .team-table td:nth-child(1) a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

}

}
