/* IBM Plex Sans (famille principale) */
@font-face {
    font-family: 'IBM_Plex_Sans';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IBM_Plex_Sans';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Alias pour conserver les styles existants sans tout réécrire */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Changa';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Changa';
    src: url('fonts/IBM_Plex_Sans/static/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.menu-toggle img {
    width: 40px;
    height: 40px;
}

body {
    background: url('photo/photo-presta/background_tracte_fbjets.png') center/cover no-repeat;
    background-color: #0B2847;
    font-family: Changa, sans-serif;
}

h1, h2, h3 {
    font-family: Roboto, sans-serif;
    color: #FFFFFF;
}

/* Style pour l'image en haut à droite */
.image-top-right {
    position: absolute;
    top: 4px;
    right: 12px;
    z-index: 220;
    pointer-events: none;
}

.top-right-image {
    width: 150px;
    height: auto;
    display: block;
}

#titre_accueill {
    text-align: center;
    font-family: Roboto, sans-serif;
    color: #D4AF37;
}

#sous_titre {
    text-align: center;
    font-family: Roboto, sans-serif;
    color: #FFFFFF;
}

#village {
    text-align: center;
    font-family: Roboto, sans-serif;
    color: #FFFFFF;
}

/* Style pour la navigation horizontale */
.navigation {
    background: linear-gradient(to right, #1E3A8A, #4682B4);
    width: 100%;
    min-height: 72px;
    margin: 48px 0;
    padding: 0 20px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.navigation ul {
    list-style-type: none; /* Enlève les puces */
    padding: 0;
    margin: 0;
    display: flex; /* Affiche les éléments en ligne */
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.navigation li a {
    text-decoration: none; /* Enlève le soulignement */
    color: #FFFFFF; /* Blanc brillant pour le texte */
    font-family: 'Changa', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    padding: 0 10px;
    line-height: 72px;
    display: inline-block;
}

.navigation li a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none; /* Pas de soulignement */
    border-bottom: none;
}

/* Style du carrousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px auto;
    overflow: hidden;
}

#carouselsContainer {
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    padding: 0 10px;
}

.carousel-section {
    margin-bottom: 26px;
}

.carousel-title {
    text-align: center;
    color: #D4AF37;
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0; /* Supprime l'espace entre les slides */
}

.carousel-slide {
    min-width: 100%; /* Chaque slide prend toute la largeur du conteneur */
    opacity: 1; /* Toutes les slides sont visibles à 100% */
    transition: opacity 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Hauteur fixe pour uniformiser */
    object-fit: cover; /* Centre et coupe l'image si nécessaire */
    display: block;
}

/* Style des flèches */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: #000000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
    font-weight: bold;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Style du bouton "Se renseigner" */
.renseigner-container {
    text-align: center;
    margin-top: 20px;
}

.renseigner-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(90deg, #DC143C 0%, #D4AF37 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Changa', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.renseigner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

footer {
    background-color: #000000; /* Noir */
    padding: 20px 0; /* Espacement vertical */
    text-align: center; /* Centre le texte */
    margin-top: 40px; /* Espacement au-dessus du footer */
    border-top: 3px solid #D4AF37;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style pour le copyright */
.copyright {
    color: #ffffff; /* Blanc */
    font-family: 'Changa', sans-serif;
    font-size: 14px; /* Taille du texte */
    margin: 0; /* Enlève les marges par défaut */
}

/* ====================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ==================================== */

/* Tablettes et écrans moyens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 250;
        background-color: transparent;
    }

    .menu-toggle img {
        width: 40px;
        height: 40px;
    }

    .top-right-image {
        width: 110px;
    }

    #titre_accueill {
        margin-top: 60px;
        font-size: 28px;
    }

    #sous_titre {
        font-size: 18px;
    }

    #village {
        font-size: 16px;
    }

    .navigation {
        position: fixed;
        left: -300px;
        top: 96px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(to right, #1E3A8A, #4682B4);
        padding: 20px 0;
        border-radius: 0;
        margin: 0;
        transition: left 0.3s;
        z-index: 180;
        overflow-y: auto;
    }

    .navigation.active {
        left: 0;
    }

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

    .navigation li {
        width: 100%;
        padding: 0;
    }

    .navigation li a {
        padding: 15px 20px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .carousel-container {
        max-width: 100%;
        margin: 20px 0;
        padding: 0 10px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-title {
        font-size: 22px;
    }

    .carousel-arrow {
        padding: 8px 12px;
        font-size: 16px;
    }

    .renseigner-container {
        margin-top: 15px;
    }

    .renseigner-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Petits écrans - téléphones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .menu-toggle {
        top: 5px;
        left: 5px;
    }

    .menu-toggle img {
        width: 35px;
        height: 35px;
    }

    .top-right-image {
        width: 72px;
    }

    #titre_accueill {
        margin-top: 50px;
        font-size: 24px;
    }

    #sous_titre {
        font-size: 16px;
    }

    #village {
        font-size: 14px;
    }

    .navigation {
        width: 250px;
        top: 50px;
    }

    .navigation li a {
        font-size: 16px;
        padding: 12px 15px;
    }

    .carousel-container {
        max-width: 100%;
        margin: 15px 5px;
        padding: 0 5px;
    }

    .carousel-slide img {
        height: 250px;
    }

    .carousel-title {
        font-size: 18px;
    }

    .carousel-arrow {
        padding: 6px 10px;
        font-size: 14px;
    }

    .left-arrow {
        left: 5px;
    }

    .right-arrow {
        right: 5px;
    }

    .renseigner-container {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .renseigner-btn {
        display: block;
        width: 90%;
        max-width: 250px;
        padding: 12px 15px;
        margin: 0 auto;
        font-size: 14px;
    }
}
/* === Global responsive safety net === */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

input, select, textarea, button {
    max-width: 100%;
}

table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* === End global responsive safety net === */

/* === Flyer color theme override === */
:root {
    --flyer-blue-main: #1E3A8A;
    --flyer-blue-violet: #6A5ACD;
}

body,
h1, h2, h3, h4, h5, h6,
p,
a,
.title,
.main-text,
.content {
    color: var(--flyer-blue-main) !important;
}

#sous_titre,
#village,
h2.subtitle,
h3.subtitle,
h4.subtitle,
.subtitle,
.info-text,
.info-text-2,
.info-text-3,
.info-text-4,
.details,
.horaires,
.coordonnees,
.contact-card__eyebrow,
.contact-card__label {
    color: var(--flyer-blue-violet) !important;
}

a {
    text-decoration: none;
    border-bottom: 1px solid var(--flyer-blue-violet);
    transition: border-bottom 0.3s ease;
}

a:hover {
    border-bottom: 2px solid var(--flyer-blue-violet);
}
/* === End flyer color theme override === */

/* === Keep navigation text white === */
.navigation a,
.navigation li a,
.navbar a,
.navbar li a,
nav a {
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.navigation a:hover,
.navigation li a:hover,
.navbar a:hover,
.navbar li a:hover,
nav a:hover {
    color: rgba(255, 255, 255, 0.88) !important;
    border-bottom: none !important;
}
/* === End keep navigation text white === */

/* === Mobile hardening (final overrides) === */
@media (max-width: 768px) {
    #titre_accueill {
        padding: 0 56px;
        line-height: 1.2;
        word-break: break-word;
    }

    .navigation {
        width: min(280px, 88vw);
        top: 58px !important;
        height: calc(100dvh - 58px);
        padding: 12px 0;
        border-radius: 0 14px 14px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    .carousel-container {
        margin: 14px 8px;
        padding: 0 6px;
    }

    .carousel-slide img {
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    #titre_accueill {
        padding: 0 48px;
    }

    .navigation {
        width: min(250px, 90vw);
        top: 58px !important;
        height: calc(100dvh - 58px);
    }

    .carousel-slide img {
        aspect-ratio: 4 / 3;
    }
}
