/* Style global pour le site */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa; /* Bleu clair */
    color: #333;
}

/* Header et logo interactif */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px; /* Espace supplémentaire pour le logo */
    height: 150px;
    position: relative;
    z-index: 2;
}

#logo {
    width: 200px;
    transition: transform 2s ease-in-out;
    animation: pulse 5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

/* Menu déroulant */
.menu-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
}

nav {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    background-color: #007bb5; /* Bleu vif */
    display: none;
    z-index: 999;
}

nav.visible {
    display: block;
    animation: slideDown 0.5s ease-in-out;
}

nav.hidden {
    display: none;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    padding: 10px;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    display: block;
    transition: background-color 0.3s ease-in-out;
}

nav ul li a:hover {
    background-color: #005e7c;
}

/* Positionnement du slogan avec une animation */
.slogan {
    position: absolute;
    top: 20px;
    left: -500px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff004f;
    transform: rotate(-15deg);
    animation: slideInOut 10s ease-in-out infinite; /* Durée augmentée à 10s pour plus de lenteur */
}

@keyframes slideInOut {
    0% {
        left: -500px;
    }
    40% {
        left: calc(30% - 200px); /* S'arrête avant le logo */
    }
    60% {
        left: calc(30% - 200px); /* Pause ici */
    }
    100% {
        left: -500px;
    }
}

/* Carrousel d'images (fixe avec 8 images visibles) */
.carousel-background {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-images {
    display: flex;
    width: calc(100% * 8); /* Ajuste pour le nombre total d'images */
    transition: transform 1s ease;
}

.carousel-images img {
    width: calc(100% / 8); /* Ajuste pour afficher 8 images */
    height: 500px;
    object-fit: cover;
}

/* Filtre grisâtre */
.carousel-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Filtre grisâtre */
    z-index: 1;
}

/* Centrage du texte sur la bannière */
.banner-text {
    position: absolute;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    text-transform: uppercase;
    animation: colorChange 5s infinite;
}

/* Animation pour changer la couleur du titre du blanc au bleu */
@keyframes colorChange {
    0% { color: white; }
    50% { color: #007bb5; }
    100% { color: white; }
}

/* Section Burgers */
#burgers {
    padding: 50px;
    text-align: center;
    background-color: #fff;
}

.title {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #333;
}

.black-text {
    color: black;
}

.colored-text {
    color: #007bb5; /* Bleu */
}

/* Liste des burgers */
.burger-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Pour être responsive */
    gap: 20px;
}

.burger-item {
    background-color: #f9f9f9;
    border: 2px solid #007bb5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.burger-item:hover {
    transform: scale(1.05);
}

.burger-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.burger-title {
    font-size: 1.8rem;
    color: #007bb5;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.burger-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-images img {
    max-width: 100%;
    max-height: 80vh; /* Limite la hauteur à 80% de la hauteur de la fenêtre */
    object-fit: contain; /* Maintient les proportions de l'image */
}

/* Lightbox Styles */
.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    box-sizing: border-box; /* S'assurer que les boutons restent dans la fenêtre */
    padding: 0 15px; /* Ajout d'un padding plus équilibré pour centrer les boutons */
}

.prev, .next {
    background-color: #007bb5;
    color: white;
    width: 40px; /* Largeur du bouton */
    height: 40px; /* Hauteur du bouton rétablie */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 50%; /* Pour que les boutons soient bien arrondis */
}
/* Ajustement pour que le bouton soit plus accessible sur les petits écrans */
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: #005e7c; /* Changement de couleur au survol */
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    .lightbox-controls {
        padding: 0 10px; /* Réduire encore le padding sur les petits écrans */
    }

    .prev, .next {
        width: 35px; /* Réduire la taille des boutons sur mobile */
        height: 35px;
    }
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Bouton fixe "Contactez-nous" toujours visible en bas à droite */
.button-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 15px 25px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #ff004f, #ff6f61); /* Gradient moderne */
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease; /* Transition douce */
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.75); /* Lueur douce */
    z-index: 1000; /* Toujours au-dessus du contenu */
}

/* Animation pulsing douce */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Effet pulsing */
.button-fixed {
    animation: pulse 2s infinite; /* Pulsing lent et doux */
}

/* Effet de bordure animé au survol */
.button-fixed:hover {
    background: linear-gradient(135deg, #e60045, #ff6f61); /* Changement de gradient au survol */
    box-shadow: 0 8px 20px rgba(255, 105, 180, 1); /* Effet de lueur augmenté au survol */
    transform: scale(1.05); /* Le bouton grandit légèrement au survol */
}

/* Brillance légère lors du survol */
.button-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.button-fixed:hover::before {
    opacity: 1; /* Brillance apparaissant lors du survol */
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-text {
        font-size: 2rem;
    }

    .burger-photo {
        height: 150px;
    }

    .burger-title {
        font-size: 1.5rem;
    }

    .burger-description {
        font-size: 0.9rem;
    }
}
/* Section histoire du hamburger */
.history-section {
    background-color: #e0f7fa; /* Bleu clair */
    padding: 50px;
    margin-top: 0px;
    border-radius: 10px;
}

.history-section h2 {
    text-align: center;
    color: #007bb5;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.history-section h3 {
    color: #ff007f; /* Rose vif */
    margin-top: 20px;
    font-size: 1.5rem;
}

.history-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 10px;
}
/* Masquer le slogan sur les écrans plus petits que 768px (version mobile) */
@media (max-width: 768px) {
    .slogan {
        display: none; /* Le slogan est masqué sur mobile */
    }
}
/* Animation pour faire apparaître progressivement les éléments */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Commence en bas */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Revient à la position d'origine */
    }
}

/* Par défaut, les éléments sont invisibles */
.history-section h2, .history-section h3, .history-section p {
    opacity: 0;
    transform: translateY(20px); /* Décalé vers le bas au départ */
    transition: opacity 1.5s ease, transform 1.5s ease; /* Transition douce */
}

/* Quand ils sont visibles dans le champ de vision */
.history-section h2.visible, .history-section h3.visible, .history-section p.visible {
    opacity: 1;
    transform: translateY(0); /* Repositionnement à l'état normal */
}
/* Section chat Crisp */
.chat-section {
    padding: 50px;
    text-align: center;
    background-color: #f0f0f0;
    max-width: 100vw;
}
/* Version mobile */
@media (max-width: 768px) {
    .button-fixed {
        bottom: 10px;
        left: 10px;
        padding: 10px 20px;
        font-size: 1rem;
        white-space: nowrap; /* Empêche les sauts de ligne */
        min-width: 280px; /* Ajuster la largeur minimale pour que le texte tienne sur une seule ligne */
    }
}
/* Bloquer le site à la taille de l'écran sur mobile */
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* Ajustements du titre H1 avec la classe .title sur mobile */
@media (max-width: 768px) {
    .title {
        font-size: 24px; /* Ajuste la taille de police pour mobile */
        text-align: center; /* Centre le texte */
        padding: 0 10px; /* Ajoute un peu de marge intérieure pour éviter les débordements */
        word-wrap: break-word; /* S'assure que les mots longs soient bien coupés si nécessaire */
    }
}
