/*
 Theme Name: Salon de l'Algérie
 Theme URI: https://salondelalgerie.com/
 Author: CAFAF
 Author URI: https://salondelalgerie.com/
 Description: Thème WordPress pour le Salon de l’Algérie à Lyon, Splendeur & Gastronomie. Conversion des pages statiques avec header/footer communs, Tailwind via CDN, Ionicons, et templates front-page/page.
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: salon-algerie
 Tags: tailwind, responsive, event, culture, gastronomie, salon, algerie
*/

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* GLobal */
/* Dégradé vert-bleu */
.bg-gradient-green-blue {
    background: linear-gradient(90deg, #1a5276 0%, #2F6234 100%);
}

/* ##################################### GLOBAL ##################################### */
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    outline: none;
}

:root {
    --light-blue: #1a5276;
    --light-green: #2F6234;
    --light-red: #c0392b;
    --light: f1f1f1;
    --text: 333;
}

body {
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--light);
}
.slide-in-from-left {
    animation: slidein 2s ease-in-out;
	text-transform: uppercase;
	font-size: 0.8rem;
}
/* #####################################* NAVIGATION *######################################### */

span#navbar-logo,
h1, h2, h3 h4{
    font-family: 'PT Sans', sans-serif;
}

h2 {
    font-weight: 500;
    font-size: 2rem!important;
}

h1 {
    font-weight: 500;
    font-size: 2rem;
}

.navigation-principal.active {
    border-bottom: 1px solid var(--light);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

#mobile-menu-button {
    font-size: 1.9rem;
    color: var(--light);
    transition: 0.2s ease-in-out;
}

/* ################################# HERO- SECTION #################################### */

/* Custom CSS for video background hero */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay with custom gradient using #2F6234 and #1a5276 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #2f6234a4, #1a53769d 70%);
    /* fallback for browsers that don't support gradients */
    /* background: rgba(47,98,52,0.7); */
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
}

.scroll-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

/* ################################ Parallaxe Section ################################### */

.parallaxe-container {
    position: relative;
    /* rajouter un ovelay */
    background: url('images/alger_monument_des_marthyrs.jpg');

    background-attachment: fixed;
    background-size: cover;
    /* background-position: center; */
    height: 600px;
    /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}



.parallaxe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.486); /* Voile noir semi-transparent */
    z-index: 1;
}

.parallaxe-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ################################ * Animations * ################################### */


.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* ################################ * CAROUSSEL PARTENAIRES * ################################### */

.animate-scroll {
    animation: scroll 30s linear infinite;
    width: calc(180px * 7);
    /* Doublez le nombre de logos pour l'effet de boucle */
}

.partners-carousel:hover .animate-scroll {
    animation-play-state: paused;
}

/* Styles personnalisés pour la section Splendeur & Gastronomie */

/* Effet de zoom sur les images au survol */
#splendeur-gastronomie .relative img {
    transition: transform 0.7s ease, opacity 0.7s ease;
}

#splendeur-gastronomie .relative:hover img {
    transform: scale(1.05);
}

/* Dégradé sur les images */
#splendeur-gastronomie .relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
}

#splendeur-gastronomie .relative:hover::after {
    opacity: 1;
}

#splendeur-gastronomie .animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Délai d'animation pour chaque carte */
#splendeur-gastronomie .delay-100 {
    animation-delay: 0.1s;
}

#splendeur-gastronomie .delay-200 {
    animation-delay: 0.2s;
}

/* Style du badge */
#splendeur-gastronomie .badge {
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

#splendeur-gastronomie .badge:hover {
    transform: translateY(-2px);
}

/* Effet au survol du lien */
#splendeur-gastronomie .group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Effet de zoom sur les logos partenaires */
.partners-carousel a {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partners-carousel img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partners-carousel a:hover {
    transform: scale(1.1);
}

.partners-carousel a:hover img {
    opacity: 1;
    transform: scale(1.1);
}
/* Page infos-pratiques */
/* FAQ buttons*/
#faq-section button {
	border:none;
	background-color: #fff;
}
#faq-section button span{
	font-size: 1.1rem;
}
/* ################################ * Bénévoles * ################################### */


#benevoles {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 600px;
}

#interet p > label {
  display: block;
  margin-bottom: -0.5rem; 
}
/* === Zone Domaines d'intérêt === */


/* ################################ * Partenaires * ################################### */
/* Champs texte, email, téléphone, textarea, select */

.wpcf7-form-control,
.wpcf7-input {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.wpcf7-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #2F6234; /* focus:ring-2 focus:ring-[#2F6234] */
}

/* Checkbox */
.wpcf7-checkbox {
    width: 1rem;  /* w-4 */
    height: 1rem; /* h-4 */
    border: 1px solid #d1d5db;
    border-radius: 0.25rem; /* rounded */
}

/* Bouton submit */
.wpcf7-submit {
    width: 100%;
    background-color: #2F6234;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    cursor: pointer;
}

.wpcf7-submit:hover {
    background-color: #1a5276;
}

.wpcf7-list-item-label {
    font-size: 0.8rem;
}
/* ################################ * Mobile menu * ################################### */
/* Styles pour le menu mobile */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
    z-index: 40;
}

#mobile-menu.hidden {
    display: none;
}

/* Style pour le menu mobile */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
    z-index: 40;
}

#mobile-menu.hidden {
    display: none;
}

/* Style pour le bouton burger */
#btn-burger {
    transition: transform 0.3s ease;
}

#btn-burger:active {
    transform: scale(0.95);
}

/* Ajustements pour le menu mobile */
@media (max-width: 767px) {
    .hero-section {
        margin-top: 60px; /* Pour éviter que le contenu ne soit caché sous le menu fixe */
    }
	#mobile-menu li a {
    color: #1a5276 !important;
	}
    
    /* Style pour les liens du menu mobile */
    #mobile-menu a {
        transition: all 0.2s ease;
    }
    
    #mobile-menu a:active {
        transform: translateX(5px);
    }
}

/* Style pour le footer */
footer a {
    transition: color 0.2s ease;
    color: #9ca3af;
}

/* Style pour les icônes de réseaux sociaux */
.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Style pour les liens du menu footer*/
.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a:hover {
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-menu {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #splendeur-gastronomie .order-1 {
        order: 1;
    }

    #splendeur-gastronomie .order-2 {
        order: 2;
    }

    #splendeur-gastronomie h3 {
        font-size: 1.5rem;
    }
}



/* ################################ * Keyframes * ################################### */
/* Animation des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 7));
    }

}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -5px, 0);
    }

    70% {
        transform: translate3d(0, -5px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Animation pour le menu déroulant */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/** Animation pour le slide in */
@keyframes slidein {
    
    from {
        margin-left: -50%;
        width: 100%;
    }
    to {
      margin-left: 0%;
      width: 100%;
    }
}
