/* --- 1. CONFIGURATION & TYPO --- */
@font-face {
  font-family: 'GT Walsheim';
  /* Le "/" au début dit au navigateur : "Repars de la racine du serveur" */
  src: url("/fonts/GT-Walsheim-regular.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url("/fonts/GT-Walsheim-Bold.ttf") format("truetype");
  font-weight: bold;
}

:root {
    --ccb-yellow: #F8C11A;
    --ccb-dark: #151515;       /* Noir profond */
    --ccb-bg: #313131;         /* Gris anthracite */
    --white: #ffffff;
    --gray: #919191;
    --font-main: 'GT Walsheim', 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

/* --- 2. RESET & BASES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

a, button, .scroll-down-wrapper { 
    transition: all 0.3s ease-in-out; 
}

body {
    font-family: var(--font-main);
    background-color: var(--ccb-bg);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: var(--transition); }

img { max-width: 100%; height: auto; display: block; }

/* --- 3. LAYOUT --- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    /* On définit une largeur max raisonnable pour le desktop */
    max-width: 1200px; 
}

/* On ajuste la largeur max selon les paliers standards */
@media (min-width: 576px)  { .container { max-width: 540px;  } }
@media (min-width: 768px)  { .container { max-width: 720px;  } }
@media (min-width: 992px)  { .container { max-width: 960px;  } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Spécifique au Header pour qu'il prenne toute la hauteur */
#menu-principal .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.section-padding { padding: 60px 0; }

/* --- 4. NAVIGATION --- */
#menu-principal {
    background: var(--white);
    height: 75px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-menu {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 30px;
    align-items: center;
}

.header-menu--item span {
    font-weight: bold;
    font-size: 15px;
    /*text-transform: uppercase;*/
    color: #000;
    line-height: 40px;
}

.header-menu--item:hover span {
    color: var(--ccb-yellow);
}

/* --- 5. HERO SECTION --- */
#home-hero {
    position: relative;
    height: calc(100vh - 75px); /* Toute la hauteur moins le header */
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

/* L'image de fond avec l'effet de l'ancien site */
.ImgBackGround {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://pict.myclubplasma.be/CCLConfig/21_LaFerme_MathildeLaurent_0W2A9014.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 1);
    background-blend-mode: luminosity; /* L'effet noir et blanc stylisé */
    z-index: 1;
}

/* Centrage du contenu */
#home-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper {
    width: 100%;
    text-align: center;
    color: #fff;
}

#home-hero h1 {
    color: var(--ccb-yellow);
    font-family: 'GT Walsheim', sans-serif;
    font-weight: bold;
    font-size: clamp(24px, 5vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-description {
    font-family: 'GT Walsheim', sans-serif;
    font-weight: bold;
    max-width: 850px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

/* Flèche de scroll */
.scroll-down-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); /* Centrage horizontal parfait */
    text-align: center;
    text-decoration: none;
    color: #fff;
    z-index: 5;
}

/* EFFET AU SURVOL : La flèche monte un peu et devient légèrement transparente */
.scroll-down-wrapper:hover {
    opacity: 0.7;
    bottom: 40px; /* Elle remonte de 10px */
}

.scroll-text {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.fleche-retour {
    transform: rotate(90deg);
    width: 25px;
    margin: 0 auto;
}

/* Adaptation Mobile */
@media (max-width: 767px) {
    #home-hero {
        height: 70vh; /* Plus court sur mobile pour voir le contenu suivant */
    }
    .mobile-hero-logo {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
}

/* --- 6. CARTES & GRID --- */
.grid-appels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

.card-img-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img { transform: scale(1.08); }

.card-body {
    padding: 15px;
}

.card-tag {
    color: var(--ccb-yellow);
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-title {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-desc {
    font-size: 12px;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 7. SWIPER UTILS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.swiper-navigation { display: flex; gap: 10px; }
.swiper-button-prev-custom, .swiper-button-next-custom {
    width: 40px;
    height: 40px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
}
.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: var(--ccb-yellow);
    color: #000;
}
/* --- 1. RÉGLAGES PAR DÉFAUT (DESKTOP) --- */

/* On cache les icônes sur ordinateur */
.no-desktop { 
    display: none !important; 
}

/* On affiche le gros logo sur ordinateur */
.no-smartphone { 
    display: block; 
}

/* --- 2. RÉGLAGES MOBILE (ÉCRANS < 768px) --- */
@media screen and (max-width: 767px) {
    
    #menu-principal {
        position: fixed;
        bottom: 0;
        top: auto;
        background: #000;
        height: 70px;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }

    .header-menu {
        width: 100%;
        display: flex !important;
        justify-content: space-around;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    /* On cache le gros logo sur mobile */
    .no-smartphone {
        display: none !important;
    }

    /* ON AFFICHE LES ICÔNES SUR MOBILE */
    .no-desktop {
        display: flex !important;
        justify-content: center;
    }

    .header-menu--item span {
        color: var(--white);
        font-size: 9px;
        text-align: center;
        display: block;
    }

    /* Ajustements sections */
    .HomeHero { min-height: 50vh; }
    .section-padding { padding: 40px 0; }
}