
html {
  scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ffcc00, #ff6f00);
    color: #333;
    padding-top: 70px;
    overflow-x: hidden;
}

header {
    background-color: #ffcc00;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0; 
    right: 0; 
    z-index: 1000; 
    width: 100%; 
}

.hero {
    background-color: #ffcc00;
    text-align: center;
    padding: 30px 20px; 
    border-bottom: 3px solid #ff6f00;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Sacramento', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-out;
    position: relative;
    top: -30px; 
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeIn 3s ease-out;
    position: relative;
    top: -20px; 
}

.cta-button {
    text-decoration: none;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
    top: -10px; 
}


.cta-button:hover {
    background-color: #ff6f00;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6f00;
}

section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff6f00;
}

#produits {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f8f8;
}

#produits h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ff6f00;
}

.produits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 200px; 
    padding: 0 10px;
}


.produit {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    width: 280px;
    text-align: center;
}

.produit:hover {
    transform: scale(1.05);
}

.produit img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ff6f00;
}


.produit-link {
    text-decoration: none; /* Supprime le soulignement par défaut */
    display: block; /* Permet au lien de couvrir toute la carte */
    border-radius: 10px; /* Arrondir les coins de la carte */
    overflow: hidden; /* Assure que les images et le contenu restent à l'intérieur de la carte */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation de transition */
}

.produit-link:hover {
    transform: scale(1.05); /* Agrandit légèrement la carte lors du survol */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Ajoute une ombre douce */
}

/* Style pour l'image du produit */
.produit-link img {
    width: 100%; /* L'image prend toute la largeur de la carte */
    height: auto; /* Laisser l'image garder ses proportions */
    border-bottom: 2px solid #ddd; /* Ligne séparatrice entre l'image et la description */
}

/* Style pour le texte du produit */
.produit-info {
    padding: 15px; /* Espacement interne */
    background-color: #fff; /* Fond blanc */
    text-align: center; /* Centrer le texte */
}

.produit-info h3 {
    font-size: 1.2rem; /* Taille de la police pour le titre */
    font-weight: bold; /* Mettre le titre en gras */
    margin: 10px 0; /* Espacement autour du titre */
    color: #333; /* Couleur du titre */
}

.produit-info p {
    font-size: 1rem; /* Taille de la police pour la description */
    color: #666; /* Couleur plus claire pour la description */
    margin: 0; /* Pas de marges pour la description */
}


.btn-voir-plus {
    text-decoration: none;
    background-color: #ff6f00;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-voir-plus:hover {
    background-color: #e65c00;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-button {
        font-size: 1.1rem;
    }

    .produit img {
        width: 150px;
        height: 150px;
    }

    form {
        width: 90%;
    }
}

.hero {
    background-color: #ffcc00;
    text-align: center;
    padding: 80px 20px;
    border-bottom: none;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}


.background-image {
    position: absolute;
    width: 180px;
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-img1 {
    background-image: url('images/carambar1.png');
    top: 10%;
    left: 10%;
}

.hero-img2 {
    background-image: url('images/carambar2.png');
    top: 15%;
    right: 10%;
	transform: rotate(3deg);
}

.hero-img3 {
    background-image: url('images/carambar3.png');
    bottom: 20%;
    left: 15%;
	transform: rotate(7deg);
}

.hero-img4 {
    background-image: url('images/carambar3.png');
    bottom: 10%;
    right: 10%;
	transform: rotate(30deg);
}

.hero-img5 {
    background-image: url('images/carambar2.png');
    top: 17%;
    left: 50%;
	transform: rotate(45deg);
}

.hero h1, .hero p, .cta-button {
    position: relative;
    z-index: 1;
}

.cta-button {
    text-decoration: none;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.cta-button:hover {
    background-color: #ff6f00;
}

.nav-button {
    background-color: #ff6f00;
    color: white;
    font-size: 2rem;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.3s;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.nav-button:hover {
    background-color: #e65c00;
}

.produit-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.produit {
    display: block;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.produit.show {
    opacity: 1;
    transform: scale(1);
}

.produit.hide {
    opacity: 0;
    transform: scale(0.8);
}


.produit img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.produit-info {
    text-align: center;
    margin-top: 10px;
}
#blagues {
    text-align: center;
    padding: 60px 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #ffcc00, #ff6f00);
    width: 100%;
    box-shadow: none;
    display: block;
    background-size: 100% 100%;
    border-radius: 10px;
    margin-bottom: 40px;
}

#blague-container {
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
}

#blague {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
    transition: transform 0.3s ease;
}

#generate-blague {
    background-color: #ff9900;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
    border-radius: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#generate-blague:hover {
    background-color: #ff7f00;
    transform: scale(1.1);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.2);
}

#generate-blague:active {
    transform: scale(1);
}

#like-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#like-button {
    background-color: #ff9900;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
    border-radius: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

#like-button:hover {
    background-color: #ff7f00;
    transform: scale(1.1);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.2);
}

#like-button:active {
    transform: scale(1);
}

#like-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

#like-count {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-left: 10px;
}

@media screen and (max-width: 768px) {
    #generate-blague {
        font-size: 16px;
        padding: 10px 20px;
    }

    #like-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    #like-count {
        font-size: 14px;
    }
}


.hero-logo {
    width: 700px; 
    height: auto;
    margin-bottom: 30px; /* Espace sous l'image */
}



/* Style pour la section CTA */
.cta-section {
    background: linear-gradient(135deg, #ff9900, #ff6f00);
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-container h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    font-family: 'Sacramento', cursive;
}

.cta-container p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Bouton orange (principal) */
.cta-button-orange {
    background-color: #ff6f00;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid white;
}

.cta-button-orange:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton blanc (secondaire) */
.cta-button-blanc {
    background-color: white;
    color: #ff6f00;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #ff6f00;
}

.cta-button-blanc:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================= */
/* SECTION POINTS DE VENTE */
/* ============================================= */

.map-section {
    background-color: #fff8f0;
    padding: 60px 20px;
    text-align: center;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.map-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #f5e6d4;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    opacity: 0.9;
}

.map-pins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-pin {
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    transform: translate(-50%, -100%);
    transition: all 0.3s ease;
}

.map-pin:hover {
    transform: translate(-50%, -100%) scale(1.2);
}

.map-pin::after {
    content: attr(data-city);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6f00;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-pin:hover::after {
    opacity: 1;
}

.store-list-container {
    flex: 1;
    min-width: 300px;
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.store-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.store-logos img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s;
}

.store-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.store-finder {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.store-finder input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ffcc00;
    border-radius: 50px;
    font-size: 16px;
}

.store-finder button {
    background: #ff6f00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.store-finder button:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

/* ============================================= */
/* SECTION RECETTES */
/* ============================================= */

.recipes-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #fff, #fff8f0);
    text-align: center;
}

.section-subtitle {
    color: #ff6f00;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.recipe-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.recipe-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recipe-time, .recipe-difficulty {
    position: absolute;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.recipe-time {
    top: 15px;
    left: 15px;
    color: #ff6f00;
}

.recipe-difficulty {
    top: 15px;
    right: 15px;
    color: #333;
}

.recipe-content {
    padding: 20px;
    text-align: left;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px;
    color: #666;
    font-size: 14px;
}

.recipe-button {
    display: inline-block;
    background: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.recipe-button:hover {
    background: #ff6f00;
    color: white;
}

/* ============================================= */
/* SECTION ENGAGEMENTS */
/* ============================================= */

.engagements-section {
    padding: 80px 20px;
    background-color: #ff6f00;
    color: white;
    text-align: center;
}

.engagement-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.engagement-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.engagement-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.engagement-card h3 {
    color: #ff6f00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.engagement-card p {
    line-height: 1.6;
    color: #666;
}

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }
    
    .store-list-container {
        text-align: center;
    }
    
    .store-finder {
        flex-direction: column;
    }
    
    .engagement-card {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .recipe-carousel {
        gap: 15px;
    }
    
    .recipe-card {
        flex: 0 0 85%;
    }
}





/* Section Engagements */
.engagements-section {
    background-color: #fff8f0;
    padding: 80px 0;
    text-align: center;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.engagement-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.engagement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.engagement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffefd5;
    border-radius: 50%;
}

.engagement-icon img {
    width: 40px;
    height: 40px;
}

.engagement-card h3 {
    color: #ff6f00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.engagement-card p {
    color: #666;
    line-height: 1.6;
}

/* Section Recettes */
.recettes-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff, #fff8f0);
}

.recettes-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 30px 10px;
    scroll-snap-type: x mandatory;
    margin-top: 40px;
}

.recette-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recette-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.recette-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recette-difficulty, .recette-time {
    position: absolute;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.recette-difficulty {
    top: 15px;
    left: 15px;
    color: #ff6f00;
}

.recette-time {
    top: 15px;
    right: 15px;
    color: #333;
}

.recette-content {
    padding: 25px;
}

.recette-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.recette-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.recette-btn {
    display: inline-block;
    background: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.recette-btn:hover {
    background: #ff6f00;
    color: white;
}

/* Section Points de vente */
.points-vente-section {
    padding: 80px 0;
    background-color: #fff;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.map-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ff6f00;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
}

.map-point::after {
    content: attr(data-city);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6f00;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.map-point:hover::after {
    opacity: 1;
}

.stores-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.store-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.store-logos img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.store-logos img:hover {
    opacity: 1;
}

.store-finder {
    margin-top: 40px;
}

.store-finder h4 {
    margin-bottom: 15px;
    color: #333;
}

.store-finder form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.store-finder input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ffcc00;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.store-finder button {
    background: #ff6f00;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.store-finder button:hover {
    background: #e65c00;
}

/* Responsive */
@media (max-width: 768px) {
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    .stores-info {
        text-align: center;
    }
    
    .store-finder form {
        flex-direction: column;
    }
    
    .store-finder input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .store-finder button {
        border-radius: 30px;
        padding: 12px;
    }
}