/* styles-mobile.css */

/* Styles communs */

 html {
            scroll-behavior: smooth;
        }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: small;
    background-color: #333;
    color: #fff;
}

/* Préchargeur */
#preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #333; /* Couleur correcte */
    z-index: 2000;
    opacity: 1;
    transition: opacity 2s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

#preloader-logo {
    width: 300px;
    height: 300px;
    background-image: url('../images/logoAP.png'); /* Chemin correct */
    background-size: cover;
    background-position: center;
    position: relative;
    top: 10px;
}

#preloader-logo::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: rgba(51, 51, 51, 0.4);
    z-index: 1001;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border: 1px solid transparent;
    transition: background-color 0.8s ease-in-out;
    transition: border-color 5s ease-in-out;
}

header.scrolled {
    background-color: #333;
    border-bottom: solid 1px #fff;
}

/* Reservation container */
#reservation-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}


#reservation-button {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 10px 5px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    order: 1;
}

#reservation-button .button-text-full {
    display: none; /* Masquer le texte abrégé */
}

#reservation-button .button-text-short {
    display: inline; /* Masquer le texte abrégé */
}


#takeaway-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
    margin-left: 10px;
    order: 3;
    background-color: transparent;
    border: none;
    padding: 0px 0px;
}

#takeaway-button .button-text {
    display: none;
}

#takeaway-button .button-icon {
    width: 30px;
    height: 30px;
    display: inline-block;

}

#phone-number {
    
    align-items: center;
    order: 2;
}

#phone-number a {
    text-decoration: none;
    margin-right: -10px;
}

#phone-number i {
    margin-right: -5px;
    font-size: 24px;
    color: #fff;
    
}
#phone-number .fas {
    display: inline-block;
}

#phone-number .phone-text {
    display: none;
}

#instagram-link {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 5px;
    order: 4;
}

#instagram-link img, #ubereats-link img {
    height: 30px;
    width: auto;
    cursor: pointer;
}

#ubereats-link {
    display: flex;
    align-items: center;
    margin-left: 5px;
    order: 5;
    margin-right: 0;
}

/* Menu toggle */
#menu-toggle {
    position: fixed;
    top: 10px;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
}

#menu-toggle::before,
#menu-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

#menu-toggle::before {
    top: 50%;
    transform: translateY(-50%);
}

#menu-toggle::after {
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

#menu-toggle.open::before {
    transform: translateY(-50%) rotate(45deg);
}

#menu-toggle.open::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Menu */
#menu {
    position: fixed;
    left: -300px;
    top: 0px;
    padding-top: 50px;
    width: 300px;
    height: calc(100% - 50px);
    background: #333;
    transition: 0.5s ease-in-out;
    z-index: 1000;
}

#menu.open {
    left: 0;
}

#menu ul {
    padding: 20px 0 0 0;
    list-style: none;
    margin: 0;
}

#menu ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

/* Sections */
section {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
    max-width: 100%;
    overflow-x: hidden;
}

/* Section Accueil fixe */
#accueil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh; /* Assurez-vous que la hauteur de la section couvre toute la hauteur de la fenêtre */
    z-index: -1; 
    background-color: #333; /* Ajoutez une couleur de fond pour éviter que le contenu en dessous soit visible */
}

#scrollmasque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0); /* Gris avec transparence de 100% */
    z-index: 2; 
    transition: background-color 4s ease;
}

#scrollmasque.scrolled {
    background-color: rgba(51, 51, 51, 1); /* Gris sans transparence */
    transition: background-color 0,5s out;
}

#apropos, #reserver, #contact {
    background-color: rgba(51, 51, 51, 0);
}

/* Ajustement des autres sections pour qu'elles commencent après la section d'accueil */
#apropos {
    margin-top: 65vh; /* Ajustez cette valeur si nécessaire pour éviter le chevauchement */
}

#scroll-to-top {
    bottom: 135px; /* Ajustez selon le besoin */
    font-size: 12px; /* Réduit la taille du texte pour les petits écrans */
    z-index: 1;
    width: 100vw;
}

#scroll-to-top i {
    font-size: 24px; /* Réduit la taille de l'icône pour les petits écrans */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Ombre de texte pour l'icône */
}

#scroll-to-top span {
    display: block;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9); /* Ombre de texte */
}

.slideshow-container {
    position: relative;
    width: 100vw;
    height: 55vh;
    overflow: hidden;
    z-index:0;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out;
    object-fit: cover;
}

.slideshow-image.active {
    opacity: 1;
    animation: zoomEffect 9s linear forwards;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Logo et texte à propos */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 300px;
    height: auto;
}

.text-horaire {
    width: 100%;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    margin:-10px;
}

.text-apropos {
visibility: hidden;
    width: 100%;
    height: 0px; /* pour cacher la div en plus du hidden */
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.text-contact {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 20px;
}