/* ============= GÉNÉRAL ============= */

 /*-- CSS SLIDER DES SLIDERS -->*/
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Hauteurs exactes des barres fixes */
:root {
    --top-bar-height: 120px;  /* top-bar */
    --menu-bar-height: 60px;  /* menu-bar */
}

/* Compense les barres fixes */
body {
    padding-top: calc(var(--top-bar-height) + var(--menu-bar-height));
}

/* ============= TOP-BAR ============= */
.top-bar {
    background-color: #f5e6d3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0; 
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar .logo img {
    height: 90px;
}

.top-bar .login a {
    text-decoration: none;
    color: #333;
    font-style: italic;
    font-size: 20px;
}

/* ============= MENU-BAR ============= */
.menu-bar {
    background-color: #e0d7c3;
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    height: var(--menu-bar-height);
    display: flex;
    align-items: center;
    z-index: 999;
}

.menu-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-container ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.menu-container ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 13px;
    transition: background 0.3s;
}

.menu-container ul li a:hover {
    background-color: #d1c4aa;
    border-radius: 4px;
}
/*css pour le slide*/
.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8fafc; /* couleur de fond harmonieuse pour les zones restantes */
    transition: height 0.5s ease; /* transition douce quand la hauteur change */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: auto; /* hauteur auto pour respecter le ratio */
    display: block;
    margin: 0 auto; /* centre l’image horizontalement */
    object-fit: contain; /* voit toute l’image sans recadrage */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}


 /*-- CSS SLIDER DES PROGRAMMES -->*/
.programmes-title {
    text-align: center;
    margin: 40px 0 20px;
}

.programmes-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

/* Slider horizontal programmes */
.programmes-slider {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programmes-container {
    display: flex;         
    overflow-x: auto;      
    gap: 20px; /* espace plus grand entre les images */
    scroll-behavior: smooth;
    padding: 20px 0;      /* plus d’espace au-dessus et en dessous */
}

.programmes-container::-webkit-scrollbar {
    display: none;
}

.programme-card {
    min-width: 300px; /* largeur plus grande */
    flex: 0 0 auto;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.programme-card img {
    width: 100%;
    height: 350px; /* hauteur plus grande */
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Flèches de navigation */
.programmes-slider button.prev,
.programmes-slider button.next {
    background-color: #e0d7c3;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.programmes-slider button:hover {
    background-color: #d1c4aa;
}

/*pied de page----------------------------*/
.bottom-bar {
    width: 100%;
    height: 150px; /* hauteur souhaitée */
    background-color: #A9A9A9; /* même beige que le header */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar p {
    font-weight: bold;
    color: #000; /* noir */
    margin: 0;
    font-size: 16px; /* tu peux ajuster la taille */
}

