/* =========================================
   1. WRAPPER & HEADER ACCUEIL
   ========================================= */
   
/* Bloque le balancement de la page sur mobile et gère la barre de statut */
html {
    background-color: var(--beige-bg); /* Couleur pour l'encoche caméra */
    overflow-x: hidden;
}

.home-top-wrapper {
    background-color: var(--beige-bg);
    border-radius: 0 0 80px 80px;
    overflow: hidden; /* Empêche le grand cercle marron de dépasser de la zone beige */
    position: relative; 
    padding-top: env(safe-area-inset-top);
}

body {
    overflow-x: hidden;
    width: 100%;
}
.home-top-wrapper {
    padding-top: env(safe-area-inset-top, 0px);
}
/* =========================================
   SURCHARGE NAVBAR
   ========================================= */

.main-header {
    background-color: var(--bg-color, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.nav-link-main:hover,
.nav-item-dropdown:hover .nav-link-main {
    background-color: var(--purple-light, #F8F2FB);
    color: var(--purple-text, #8A4BAF);
}

.search-wrapper:hover .search-input,
.search-input:focus {
    width: 200px;
    opacity: 1;
    padding: 8px 18px; 
    margin-right: 10px;
    background-color: var(--purple-light); 
}

/* =========================================
   2. HERO SECTION (BANNIÈRE & GÂTEAU)
   ========================================= */

/* Surlignage spécifique Marron pour le "Bienvenue" */
.highlight-brown::after {
    background-color: #E2CFBE !important;
}

.hero-image-container {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important; 
}

/* La forme ronde marron en arrière-plan */
.hero-shape-bg {
    position: absolute;
    top: 20%; 
    right: -45%; 
    width: 90%; 
    aspect-ratio: 1 / 1;
    background-color: #BA7D54;
    border-radius: 50%; 
    z-index: 0;
}

/* L'image du Saint-Honoré */
.hero-img {
    width: 100%;
    max-width: 350px; 
    height: auto;
    z-index: 1;
    transform: scale(1.15) translateX(-2%) rotate(-12deg);
    filter: drop-shadow(0 30px 25px rgba(0, 0, 0, 0.25)); 
}


/* =========================================
   3. CATÉGORIES DE RECETTES
   ========================================= */

/* Lien discret "Voir plus" */
.view-more-link {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.view-more-link:hover {
    color: var(--purple-text);
}


/* =========================================
   4. SUGGESTIONS
   ========================================= */

/* Fond global pour la section suggestions */
.suggestions-wrapper {
    background-color: var(--beige-bg);
    border-radius: 60px;
}


/* =========================================
   5. CARTES HORIZONTALES QUIZZ
   ========================================= */

.quiz-hz-card {
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.quiz-hz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.btn-quiz-play::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Nouvelles classes de fond pour l'alternance */
.quiz-bg-beige {
    background-color: #F0E3D8;
}
.quiz-bg-grey {
    background-color: #F6F4F3; /* Un gris très clair et chaud pour matcher l'image */
}

.quiz-hz-img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 35px;
}

.quiz-hz-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

/* Boutons Jouer (Alternance Violet / Blanc) */
.btn-quiz-play {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-quiz-play.purple { background-color: var(--purple-mid); color: #000; }
.btn-quiz-play.purple:hover { background-color: var(--purple-dark); color: white; }
.btn-quiz-play.white { background-color: #ffffff; color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-quiz-play.white:hover { background-color: var(--border-color); }


/* =========================================
   SYSTÈME DE SWIPE HORIZONTAL (MOBILE UNIQUEMENT POUR CATÉGORIES & SUGGESTIONS)
   ========================================= */
.mobile-swipe-row {
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.mobile-swipe-row::-webkit-scrollbar {
    display: none; 
}
