/**
 * Fichier: css/style.css
 * Ajouté le: 2026-01-21 06:23:36
 */

/* ======================= VARIABLES GLOBALES ======================= */
/* Fichier style.css */
:root {
    /* Couleurs principales - plus vives */
    --primary-color: #4eced2;
    --primary-hover: #4e9696;
    --secondary-color: #4ECDC4;
    --secondary-hover: #3DBEB6;
    --accent-color: #6dff92;
    --accent-hover: #3dff47;
	--border-text-dark: 1px solid #ffffff;
    
    /* Arrière-plans */
    --background-light: #367575;
    --background-cream: url('../images/Back-shop-marbre.png');
    --background-card: url('../images/Back-shop-category-.png');
    --background-gradient: linear-gradient(135deg, #FF9A8B, #4e9696);
    
    /* Textes */
    --text-dark: #fff;
	--text-secondary: #fff;
	--text-tertiaire: #4e9696;
	--text-quatre: #fff;
	--text-cinq: #fff;
    --text-highlight: #4e9696;
    
    /* Badges */
    --badge-new: #4ECDC4;
    --badge-popular: #FF9A8B;
    --badge-promo: #6dff92;
    
    /* Effets */
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --card-glow: 0 0 15px rgba(255, 107, 107, 0.4);
}

/* ======================= RESET ET BASE ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-light);
    color: var(--text-tertiaire);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ======================= LAYOUT PRINCIPAL ======================= */
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.content {
    flex: 1;
    transition: margin-left 0.3s ease;
    margin-left: 0;
    min-height: calc(100vh - 60px);
}

.sidebar.open + .content {
    margin-left: 250px;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--text-tertiaire);
    box-sizing: border-box;
    flex: 1;
}


/* ======================= HEADER PRINCIPAL ======================= */
.main-header {
    background-color: var(--background-light);
    width: 100%;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-header {
    padding: 1rem 0;
    text-align: center;
    background: var(--background-light);
}

.logo-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.logo-header span {
    color: var(--primary-color);
}

/* Barre de navigation horizontale */
.main-nav {
    background-color: var(--background-cream);
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover:after {
    width: 80%;
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.main-nav a.active:after {
    width: 80%;
}

/* ======================= SIDEBAR MOBILE ======================= */
.tab {
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 1001;
    width: 80px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 35px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    display: none; /* Caché par défaut, affiché en mobile */
}

.tab:hover {
    background-color: var(--primary-hover);
}

.sidebar {
    background: linear-gradient(135deg, #4e9696, #4e9696);
    padding: 1.5rem 0.8rem;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -250px;
    color: white;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: left 0.3s ease;
    font-size: 0.9rem;
}

.sidebar.open {
    left: 0;
}

.sidebar h1 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.logo-container img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.button-group a {
    padding: 0.8em;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.button-group a i {
    width: 20px;
    text-align: center;
}

.button-group a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.button-group a.active {
    background-color: white;
    color: var(--primary-color);
    position: relative;
}

.button-group a.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* ======================= HERO SECTION ======================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)), 
                url('../images/commune-placeholder.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 7rem 1.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
	min-height: 500px;
}
.commerces-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.0)), url('../images/commerces-banner.jpg');
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================= BOUTONS ======================= */
.navigation-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    min-width: 70px;
    min-height: 38px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view:hover {
    background-color: var(--accent-hover);
    transform: translateX(3px);
}

/* ======================= CARTES DE MENU ======================= */
.menu-cards-section {
    padding: 2rem 0 4rem;
    background: var(--background-cream);
    position: relative;
}

.menu-cards-section h2, 
.shops-section h2,
.top-shops-section h2,
.events-section h2,
.promotions-section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
	
}



.menu-cards-section h2 span, 
.shops-section h2 span,
.top-shops-section h2 span,
.events-section h2 span,
.promotions-section h2 span {
    color: var(--primary-color);
}
.menu-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.menu-card {
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
    --card-color: var(--primary-color);
}

.menu-card:nth-child(2) {
    --card-color: var(--secondary-color);
}

.menu-card:nth-child(3) {
    --card-color: var(--accent-color);
}

.menu-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.menu-card:hover .menu-card-inner {
    transform: rotateY(180deg);
}

.menu-card-front, .menu-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-left: 4px solid var(--card-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Front side of card */
.menu-card-front {
    background: var(--background-card);
    color: var(--text-dark);
}

.menu-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    transition: none;
}

.menu-card:hover .menu-card-front::before {
    animation: shineSlide 1.4s ease-out forwards;
}

@keyframes shineSlide {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.menu-card-icon {
    font-size: 3.5rem;
    color: var(--card-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-card-icon {
    transform: scale(1.1);
}

.menu-card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

/* Back side of card */
.menu-card-back {
    background: var(--card-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-back p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.menu-card-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

.menu-card-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ======================= MAGASINS ======================= */
.shops-section {
    padding: 3rem 0;
    background: var(--background-light);
}

.shop-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shop-category {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;

}

.shop-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    background: url('../images/Back-shop-marbre.png');
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.shop-category:nth-child(2) .category-header {
    border-bottom-color: var(--secondary-color);
}

.shop-category:nth-child(3) .category-header {
    border-bottom-color: var(--accent-color);
}

.shop-category:nth-child(4) .category-header {
    border-bottom-color: var(--primary-color);
}

.category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.shop-category:nth-child(2) .category-header i {
    color: var(--secondary-color);
}

.shop-category:nth-child(3) .category-header i {
    color: var(--accent-color);
}

.shop-category:nth-child(4) .category-header i {
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.shop-list {
    padding: 1rem;
}

.shop-list li {
    margin-bottom: 0.7rem;
}

.shop-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiaire);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.shop-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.shop-list li.see-all {
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.7rem;
}

.shop-list li.see-all a {
    color: var(--primary-color);
    font-weight: 600;
}

.shop-category:nth-child(2) .shop-list li a:hover,
.shop-category:nth-child(2) .shop-list li.see-all a {
    color: var(--secondary-color);
}

.shop-category:nth-child(3) .shop-list li a:hover,
.shop-category:nth-child(3) .shop-list li.see-all a {
    color: var(--accent-color);
}

/* ======================= CARTES DES MAGASINS ======================= */
.shop-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shop-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    height: 100%;
}

.shop-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.shop-card:nth-child(3) {
    border-left-color: var(--accent-color);
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    transition: none;
}

.shop-card:hover::before {
    animation: shineSlide 1.4s ease-out forwards;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.shop-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
	background: url('../images/Back-shop-marbre.png');
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.shop-card:hover .shop-image img {
    transform: scale(1.05);
}

.shop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-width: 0;
}

.shop-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-tertiaire);
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-card:hover .shop-name {
    color: var(--primary-color);
}

.shop-card:nth-child(2):hover .shop-name {
    color: var(--secondary-color);
}

.shop-card:nth-child(3):hover .shop-name {
    color: var(--accent-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    margin-left: 0.5rem;
}

.badge-new {
    background-color: var(--badge-new);
}

.badge-popular {
    background-color: var(--badge-popular);
}

.badge-promo {
    background-color: var(--badge-promo);
    color: var(--text-dark);
}

.shop-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    word-break: break-word;
}

.shop-details p {
    margin: 0;
    display: flex;
    align-items: flex-start; /* important pour l’alignement vertical */
    flex-wrap: wrap;
    line-height: 1.4;
}

.shop-details strong {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 70px; /* élargi pour éviter que le texte colle */
    display: inline-block;
    flex-shrink: 0;
}

.shop-card:nth-child(2) .shop-details strong {
    color: var(--secondary-color);
}

.shop-card:nth-child(3) .shop-details strong {
    color: var(--accent-color);
}

.shop-actions {
    text-align: center;
    margin-top: auto;
}


.see-all-shops {
    text-align: center;
    margin-top: 2rem;
}







/* ======================= SECTION ÉVÉNEMENTS ======================= */
.events-section {
    background: var(--background-cream);
    padding: 3rem 0;
    margin: 3rem 0;
    position: relative;
}

.events-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    width: 350px;
    max-width: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-image {
    height: 200px;
    overflow: hidden;
	background : url('../images/Back-shop-marbre-or.png');
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
	
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.event-description {
    color: var(--text-tertiaire);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ======================= SECTION PROMOTIONS ======================= */
.promotions-section {
    padding: 3rem 0;
    background: var(--background-light);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.promotion-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    transform: translateY(0);
    border: 2px dashed var(--accent-color);
    display: flex;
    flex-direction: column;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.promotion-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
    border-radius: 8px 8px 0 0;
}

.promotion-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promotion-card:hover .promotion-thumbnail img {
    transform: scale(1.05);
}

.promotion-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promotion-card:hover .promotion-discount {
    transform: scale(1.1) rotate(10deg);
}

.promotion-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-Tertiaire);
}

.promotion-shop {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.promotion-description {
    color: var(--text-tertiaire);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.promotion-period {
    font-size: 0.9rem;
    color: var(--text-tertiaire);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ======================= FOOTER ======================= */
.footer {
    background: url('../images/Back-shop-marbre.png');
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #367575;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ======================= MODAL ======================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 850px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.4s;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.modal-shop {
    padding: 1rem;
}

.modal-shop h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.modal-shop-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.modal-shop-image {
    flex: 1;
    min-width: 300px;
}

.modal-shop-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.modal-shop-details {
    flex: 2;
    min-width: 300px;
}

.modal-shop-details h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.modal-shop-description {
    margin: 1.5rem 0;
}

.modal-shop-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ======================= ANIMATIONS ======================= */
/* Animation de pulsation pour les badges */
.badge.pulse {
    animation: badgePulse 1s ease-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Effet de ripple au clic */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation d'entrée au défilement */
.to-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de révélation de texte */
.text-reveal {
    animation: revealText 1.5s forwards;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de distorsion du texte */
@keyframes textDistort {
    0% { letter-spacing: 2px; }
    100% { letter-spacing: 4px; }
}
/* ======================= RÈGLES MOBILE OPTIMISÉES POUR STYLE.CSS ======================= */
/* À ajouter à la fin du fichier style.css */

/* Optimisation globale pour petits écrans (320px - 480px) */
@media screen and (max-width: 480px) {
    /* Container principal - Mobile */
    .container {
        padding: 0.5rem;
        max-width: 100%;
    }
    
    /* Header et logo - Mobile optimisé */
    .logo-header {
        padding: 0.8rem 0.5rem;
    }
    
    .logo-header h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
        line-height: 1.2;
        margin: 0;
    }
    
    /* Navigation principale - Mobile */
    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .main-nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .main-nav li {
        flex-shrink: 0;
    }
    
    .main-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
        min-width: 60px;
        text-align: center;
    }
    
    /* Sidebar mobile - Optimisé */
    .tab {
        display: block;
        width: 70px;
        height: 32px;
        line-height: 32px;
        font-size: 0.8rem;
        top: 10px;
        left: 8px;
        border-radius: 4px;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
        padding: 1rem;
        background: linear-gradient(135deg, #4e9696, #4e9696);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .logo-container img {
        max-width: 150px;
        border-radius: 8px;
    }
    
    .button-group {
        gap: 0.5rem;
        padding: 0;
    }
    
    .button-group a {
        padding: 0.7rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Hero section - Mobile */
    .hero-section {
        padding: 3rem 1rem;
        min-height: 300px;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    /* Boutons - Mobile optimisé */
    .navigation-actions {
        gap: 0.8rem;
        margin: 1.5rem 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
        justify-content: center;
        border-radius: 25px;
    }
    
    .btn-view {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
        border-radius: 20px;
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    
    /* Sections principales - Mobile */
    .menu-cards-section,
    .shops-section,
    .top-shops-section,
    .events-section,
    .promotions-section {
        padding: 2rem 0.5rem;
    }
    
    .menu-cards-section h2,
    .shops-section h2,
    .top-shops-section h2,
    .events-section h2,
    .promotions-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        gap: 0.3rem;
        flex-direction: column;
        line-height: 1.3;
    }
    
    /* Cartes de menu - Mobile */
    .menu-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .menu-card {
        height: 180px;
        margin: 0 auto;
        max-width: 320px;
        width: 100%;
    }
    
    .menu-card-front,
    .menu-card-back {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .menu-card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .menu-card-front h3 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .menu-card-back p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .menu-card-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* Catégories de magasins - Mobile */
    .shop-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .shop-category {
        border-radius: 10px;
        max-width: 100%;
    }
    
    .category-header {
        padding: 1rem;
        gap: 0.8rem;
        flex-direction: column;
        text-align: center;
        border-bottom-width: 2px;
    }
    
    .category-header i {
        font-size: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .shop-list {
        padding: 0.8rem;
    }
    
    .shop-list li {
        margin-bottom: 0.5rem;
    }
    
    .shop-list li a {
        font-size: 0.85rem;
        gap: 0.4rem;
        padding: 0.3rem 0;
        justify-content: center;
        text-align: center;
    }
    
    .shop-list li.see-all {
        margin-top: 0.8rem;
        padding-top: 0.5rem;
    }
    
    /* Cartes des magasins - Mobile */
    .shop-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .shop-card {
        border-radius: 10px;
        margin-bottom: 0.8rem;
        border-left-width: 3px;
        max-width: 100%;
    }
    
    .shop-image {
        height: 150px;
    }
    
    .shop-info {
        padding: 1rem;
    }
    
    .shop-name {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        gap: 0.3rem;
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 12px;
        margin-left: 0;
        margin-top: 0.3rem;
        align-self: center;
    }
    
    .shop-details {
        gap: 0.4rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .shop-details p {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.2rem;
        line-height: 1.3;
    }
    
    .shop-details strong {
        margin-right: 0;
        min-width: auto;
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .shop-actions {
        margin-top: 1rem;
    }
    
    .see-all-shops {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    /* Événements - Mobile */
    .events-container {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
        align-items: center;
    }
    
    .event-card {
        width: 100%;
        max-width: 350px;
        border-radius: 10px;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-date {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .event-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding-top: 0.8rem;
    }
    
    .event-location {
        gap: 0.4rem;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    /* Promotions - Mobile */
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .promotion-card {
        border-radius: 10px;
        border-width: 1px;
        max-width: 100%;
    }
    
    .promotion-thumbnail {
        height: 150px;
        border-radius: 6px 6px 0 0;
    }
    
    .promotion-discount {
        top: 8px;
        right: 8px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .promotion-content {
        padding: 1rem;
    }
    
    .promotion-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .promotion-shop {
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .promotion-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .promotion-period {
        font-size: 0.8rem;
        padding-top: 0.8rem;
        gap: 0.3rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 2rem 0.5rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links h3,
    .footer-social h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links ul {
        gap: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }
    
    /* Modal - Mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
        border-radius: 8px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .close-modal {
        top: -10px;
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .modal-shop {
        padding: 0.5rem;
    }
    
    .modal-shop h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .modal-shop-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-shop-image,
    .modal-shop-details {
        min-width: 100%;
        flex: none;
    }
    
    .modal-shop-image img {
        border-radius: 6px;
    }
    
    .modal-shop-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .modal-shop-description {
        margin: 1rem 0;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .modal-shop-actions {
        gap: 0.8rem;
        margin-top: 1rem;
        flex-direction: column;
    }
    
    /* Améliorations tactiles générales */
    .btn-primary,
    .btn-secondary,
    .btn-view,
    .menu-card,
    .shop-card,
    .event-card,
    .promotion-card,
    .tab,
    .social-icon,
    .menu-card-btn,
    .close-modal {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Optimisation du scroll */
    .main-nav ul {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Suppression des effets 3D sur mobile pour les performances */
    .menu-card {
        perspective: none;
    }
    
    .menu-card:hover .menu-card-inner {
        transform: none;
    }
    
    .menu-card-inner {
        transform-style: flat;
    }
    
    .menu-card-back {
        transform: none;
        position: relative;
        display: none;
    }
    
    /* Affichage simplifié des cartes menu sur mobile */
    .menu-card-front {
        position: relative;
        display: flex;
    }
    
    /* Animation simplifiée pour mobile */
    .menu-card:hover .menu-card-front::before {
        animation: none;
    }
    
    .shop-card:hover::before {
        animation: none;
    }
    
    /* Ajustement des espacements pour très petits contenus */
    .content {
        min-height: auto;
    }
    
    .sidebar.open + .content {
        margin-left: 0;
    }
}

/* Optimisation pour très petits écrans (jusqu'à 360px) */
@media screen and (max-width: 360px) {
    .container {
        padding: 0.3rem;
    }
    
    .logo-header h1 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 2rem 0.8rem;
        min-height: 250px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .menu-cards-section h2,
    .shops-section h2,
    .top-shops-section h2,
    .events-section h2,
    .promotions-section h2 {
        font-size: 1.2rem;
    }
    
    .menu-card {
        height: 160px;
    }
    
    .menu-card-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .menu-card-front h3 {
        font-size: 1.2rem;
    }
    
    .shop-name {
        font-size: 1rem;
    }
    
    .shop-details {
        font-size: 0.8rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
    
    .promotion-title {
        font-size: 1rem;
    }
    
    .promotion-discount {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}

/* Optimisation pour écrans moyens en mode portrait (phablets) */
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
    .menu-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .menu-card {
        height: 160px;
    }
    
    .shop-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .shop-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .events-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .event-card {
        width: calc(50% - 0.75rem);
        min-width: 280px;
    }
    
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .navigation-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 140px;
    }
}

/* Optimisation pour écrans moyens en mode paysage */
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 200px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .menu-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-card {
        height: 140px;
    }
}

/* Règles spécifiques pour améliorer les performances sur mobile */
@media screen and (max-width: 768px) {
    /* Désactiver certaines animations coûteuses */
    .menu-card-inner,
    .shop-card,
    .event-card,
    .promotion-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Simplifier les transformations */
    .menu-card:hover,
    .shop-card:hover,
    .event-card:hover,
    .promotion-card:hover {
        transform: translateY(-2px);
    }
    
    /* Optimiser le rendu des images */
    .shop-image img,
    .event-image img,
    .promotion-thumbnail img {
        transform: none;
        transition: none;
    }
    
    .shop-card:hover .shop-image img,
    .event-card:hover .event-image img,
    .promotion-card:hover .promotion-thumbnail img {
        transform: none;
    }
}