/* Style global pour le site */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffe6f2;
    color: #333;
}

/* Logo centré avec animation de pulsation */
/* Centrage universel du logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    position: relative;
    margin: 50px auto; /* Ajoute une marge de 50px en haut et en bas */
}

#logo {
    width: 200px; /* Taille par défaut du logo */
    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);
    }
}

/* Bouton du menu (☰) */
.menu-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
}

/* Menu déroulant */
nav {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    background-color: #ff004f;
    display: none;
    z-index: 999;
    padding: 10px;
}

nav.visible {
    display: block;
    animation: slideDown 0.5s ease-in-out;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

nav ul li {
    padding: 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    display: block;
    transition: background-color 0.3s ease-in-out;
}

nav ul li a:hover {
    background-color: #ff6f61;
}

/* Animation pour le menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bannière avec carrousel d'images de fond */
.carousel-background {
    position: relative;
    width: 100%;
    height: 625px;
    overflow: hidden;
}

.carousel-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-background img.active {
    opacity: 1;
}

/* Centrage du texte sur la bannière */
.banner-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Style pour le titre "Le goût authentique de l’Amérique" */
.banner-title {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.banner-title:hover {
    color: #ff004f;
}

/* Style pour le sous-titre "Chez vous avec 60's Diner" */
.banner-subtitle {
    font-size: 2rem;
    color: #ff004f;
    margin-top: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 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;
    }
}

/* Accueil Section */
#accueil h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

#accueil h1:hover {
    color: #ff004f;
}

.black-text {
    color: black;
}

.colored-text {
    color: #ff004f;
    font-weight: bold;
}

/* Mots-clés en gras uniquement */
p.large-text strong {
    font-weight: bold;
}

/* Texte sous le titre */
.large-text {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Centrer les drapeaux américains sous le titre */
.american-flags {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.flag {
    width: 50px;
    margin: 0 10px;
}

/* Carrousel de photos */
.carousel {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    animation: scroll 30s linear infinite;
}

.carousel-images img {
    width: auto;
    max-height: 500px;
    object-fit: cover;
    margin-right: 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 12));
    }
}

/* Histoire des Food Trucks */
#histoire {
    background-color: #fff;
    padding: 50px;
    text-align: center;
}

/* Style dynamique pour le titre "L'Histoire des Food Trucks" */
.dynamic-title {
    font-size: 3rem;
    color: #333;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.dynamic-title:hover {
    color: #ff004f;
}

/* Timeline : trois carrés bleus de taille égale et alignement des images */
.timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.timeline-item {
    background-color: #b3e5fc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.large-text {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: normal;
}

.timeline-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Style des titres des carrés bleus */
.hover-title {
    color: #ff004f;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hover-title:hover {
    color: #333;
}

/* Légende sous la photo "Aujourd'hui" */
.img-container {
    position: relative;
}

.photo-legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    font-style: italic;
    text-align: center;
}


/* 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) {
    .logo-container {
        width: 100px;
    }

    #accueil img {
        width: 100%;
    }

    #histoire img {
        width: 100%;
    }

    .timeline-item {
        padding: 10px;
    }

    .carousel {
        max-width: 90%;
    }

    .carousel-images img {
        max-width: 150px;
        height: 250px;
    }
}
/* Media Query pour les écrans jusqu'à 750px de largeur */
@media (max-width: 750px) {

    /* Supprimer les trois drapeaux américains */
    .american-flags {
        display: none;
    }

    /* Supprimer le slogan */
    .slogan {
        display: none;
    }

    /* Centrer le logo */
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    #logo {
        width: 150px; /* Taille ajustée du logo */
        margin: 0 auto;
    }

    /* Conserver l'alignement vertical des trois carrés bleus */
    .timeline {
        flex-direction: column;
    }

    .timeline-item {
        width: 100%; /* Chaque carré prend la largeur complète */
        margin-bottom: 20px;
    }

    /* Ajuster la taille du texte */
    .large-text {
        font-size: 1rem;
        padding: 15px;
    }

    /* Centrer le bouton Contactez-nous et l'ajuster */
    .button-fixed {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}
/* Section de l'histoire des Food Trucks */
.food-truck-history {
    background-color: #b3e5fc; /* Fond bleu clair */
    padding: 50px;
    margin-top: 50px; /* Espacement par rapport aux cadres bleus */
    border-radius: 10px;
    color: #333; /* Couleur du texte général */
}

.food-truck-history h3 {
    color: #ff007f; /* Sous-titres en rose vif */
    margin-top: 20px;
    font-size: 1.5rem;
}

.food-truck-history p, .food-truck-history ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.food-truck-history ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Ajout pour la version mobile */
@media (max-width: 768px) {
    /* Ajustement de la hauteur du diaporama */
    .carousel-background {
        height: 400px; /* Hauteur fixe pour bien accueillir le texte sans disproportion */
    }

    /* Ajustement des images pour qu'elles remplissent toute la hauteur du diaporama */
    .carousel-background img {
        object-fit: cover; /* S'assurer que l'image couvre toute la hauteur */
        width: 100%; /* Assurer que l'image prenne toute la largeur */
        height: 100%; /* Assurer que l'image prenne toute la hauteur sans laisser d'espace */
    }

    /* Ajustement du texte pour ne pas être disproportionné */
    .banner-title {
        font-size: 2rem; /* Ajustement de la taille du texte pour s'adapter à la hauteur */
    }

    .banner-subtitle {
        font-size: 1.2rem; /* Taille du sous-titre ajustée */
    }
}
/* Titre en deux lignes pour la version mobile */
@media (max-width: 768px) {
    .title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .title span {
        display: block;
    }

    .colored-text {
        font-size: 2rem; /* Ajuster la taille pour 60's Diner en dessous */
    }
}

/* Apparition progressive du texte */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Commence légèrement en dessous */
    transition: opacity 2s ease-out, transform 2s ease-out; /* Transition douce */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Se positionne correctement une fois visible */
}
/* Section chat Crisp */
.chat-section {
    padding: 50px;
    text-align: center;
    background-color: #f0f0f0;
    max-width: 100vw;
}
/* Afficher les drapeaux en mode horizontal pour les écrans supérieurs à 750px */
@media (min-width: 751px) {
    .american-flags {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row; /* Alignement horizontal des drapeaux */
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .american-flags .flag {
        width: 50px; /* Taille des drapeaux pour les grands écrans */
        margin: 0 10px; /* Espacement entre les drapeaux */
    }
	 body {
        overflow-x: hidden; /* Empêche tout défilement horizontal */
    }
}

