/* =======================================================
   VARIABLES GLOBALES (Style SaaS Premium)
   ======================================================= */
:root {
    /* Couleurs principales */
    --primary-color: #0F172A;      /* Noir/Ardoise profond pour les textes */
    --secondary-color: #4F46E5;    /* Indigo/Bleu moderne (couleur de l'action) */
    --secondary-hover: #4338CA;
    
    /* Couleurs de fond */
    --bg-main: #FFFFFF;            /* Blanc pur */
    --bg-light: rgba(248, 250, 252, 0.6); /* Laisse passer l'Aura */
    --bg-card: #FFFFFF;
    
    /* Effets Verre (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.75); 
    
    /* Textes et bordures */
    --text-muted: #192B36;         /* Gris pour les sous-titres */
    --border-color: #E2E8F0;       /* Bordures subtiles */
    
    /* Effets (Ombres Soft UI) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typographie */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =======================================================
   RESET & BASES
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #ffffff;
    
    /* L'AURA (0.15 d'opacité) */
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 55%), 
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.15) 0px, transparent 55%),
        radial-gradient(at 50% 50%, rgba(79, 70, 229, 0.08) 0px, transparent 70%);
    
    background-attachment: fixed; 
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =======================================================
   UTILITAIRES & TYPOGRAPHIE
   ======================================================= */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section-padding { padding: 12px 0; }

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em; 
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.highlight {
    color: var(--secondary-color);
}

/* =======================================================
   HEADER & NAVIGATION
   ======================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary-color);
}

.btn-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.btn-cart:hover {
    background-color: var(--border-color);
}

.cart-badge {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* État de départ : invisible et légèrement décalé vers le bas */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* État final : visible et à sa place */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optionnel : Effet de survol sur les cartes pour plus de vie */
.product-card, .club-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .club-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Conteneur de la vidéo avec effet glassmorphism */
.video-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

/* Style de la vidéo elle-même */
.video-player {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 9 / 12;
    background: #000;
    display: block; /* Évite les espaces vides sous la vidéo */
}

body {
  min-height: 100dvh;
  margin: 0;
  background-image: linear-gradient(
    90deg,
    hsla(210, 60%, 85%, 0.5),
    hsla(210, 60%, 90%, 0.5) 7%,
    hsla(210, 60%, 95%, 0.5) 7%,
    hsla(210, 0%, 100%, 0.5) 14%,
    hsla(210, 60%, 95%, 0.5) 14% 15.5%,
    hsla(210, 60%, 90%, 0.5) 15.5% 85%,
    hsla(210, 60%, 80%, 0.5) 85% 87%,
    hsla(210, 60%, 75%, 0.5) 87% 90%,
    hsla(210, 60%, 70%, 0.5) 90% 100%
  );
  background-size: 120px;
  background-position: left;
}

@media screen and (max-width: 600px) {
  body {
    background-size: 20%;
  }
}


/* =======================================================
   BOUTONS GLOBAUX
   ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #cbd5e1;
}



/* =======================================================
   SECTION HERO (Accueil)
   ======================================================= */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('images/FondHero3.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    padding: 30px 0 15px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--secondary-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* =======================================================
   SECTION CONCEPT / FEATURES
   ======================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 0px;
}

.feature-box {
    padding: 32px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =======================================================
   SECTION CLUBS (Page Accueil)
   ======================================================= */


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    align-items: start;
}

.services-grid .card {
    /*background: var(--glass-bg);*/
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px; 
    padding: 20px; 
    text-align: center;
    transition: 0.3s;
    height: fit-content;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.services-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: var(--bg-light);
    border-radius: 50%;
    padding: 15px;
}

.card-image-wrapper-plus {
    width: 50px;
    height: 50px;
    margin-bottom: 0px;
    padding: 0px;
}


.services-grid .card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.card-special {
    background-color: var(--bg-light);
    border: 2px dashed #cbd5e1;
    height: 100px
}

.icon-plus {
    font-size: 2rem;
    color: var(--text-muted);
}

.card-special p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Base de la carte (Transparence neutre) */
.club-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.club-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Gradients 100% Couleurs Clubs (Alpha 0.1 à 0.3) */
.card-psg { background: linear-gradient(135deg, rgba(0, 30, 66, 0.1), rgba(0, 30, 66, 0.3)); }
.card-om { background: linear-gradient(135deg, rgba(47, 174, 224, 0.1), rgba(47, 174, 224, 0.3)); }
.card-ol, .card-losc, .card-asm, .card-lfc, .card-bayern { background: linear-gradient(135deg, rgba(226, 14, 23, 0.1), rgba(226, 14, 23, 0.3)); }
.card-barca { background: linear-gradient(135deg, rgba(0, 77, 152, 0.2), rgba(165, 0, 68, 0.3)); }
.card-real { background: linear-gradient(135deg, rgba(254, 190, 16, 0.1), rgba(254, 190, 16, 0.3)); }
.card-japon { background: linear-gradient(135deg, rgba(0, 0, 139, 0.1), rgba(0, 0, 139, 0.3)); }
.card-bresil { background: linear-gradient(135deg, rgba(254, 221, 0, 0.2), rgba(0, 151, 57, 0.3)); }
.card-arsenal { background: linear-gradient(135deg, rgba(239, 1, 7, 0.1), rgba(239, 1, 7, 0.3)); }
.card-mu { background: linear-gradient(135deg, rgba(51, 51, 51, 0.15), rgba(218, 41, 28, 0.3)); }
.card-chelsea { background: linear-gradient(135deg, rgba(3, 70, 148, 0.1), rgba(3, 70, 148, 0.3)); }
.card-aston { background: linear-gradient(135deg, rgba(149, 191, 229, 0.2), rgba(103, 14, 54, 0.3)); }
.card-mc { background: linear-gradient(135deg, rgba(108, 171, 221, 0.15), rgba(108, 171, 221, 0.3)); }
.card-tottenham { background: linear-gradient(135deg, rgba(19, 34, 87, 0.1), rgba(19, 34, 87, 0.3)); }
.card-newcastle, .card-juventus { background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)); }
.card-atm { background: linear-gradient(135deg, rgba(203, 53, 36, 0.1), rgba(203, 53, 36, 0.3)); }
.card-milan { background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(251, 9, 11, 0.3)); }
.card-napoli { background: linear-gradient(135deg, rgba(18, 160, 215, 0.1), rgba(18, 160, 215, 0.3)); }
.card-roma { background: linear-gradient(135deg, rgba(142, 31, 47, 0.2), rgba(240, 188, 66, 0.3)); }
.card-inter { background: linear-gradient(135deg, rgba(0, 102, 178, 0.2), rgba(0, 0, 0, 0.3)); }
.card-bvb { background: linear-gradient(135deg, rgba(253, 225, 0, 0.2), rgba(0, 0, 0, 0.3)); }
.card-france { background: linear-gradient(135deg, rgba(0, 35, 149, 0.1), rgba(237, 41, 57, 0.25)); }
.card-espagne { background: linear-gradient(135deg, rgba(170, 21, 27, 0.1), rgba(255, 185, 0, 0.25)); }
.card-argentine { background: linear-gradient(135deg, rgba(117, 170, 219, 0.25), rgba(255, 255, 255, 0.15)); }
.card-angleterre { background: linear-gradient(135deg, rgba(0, 0, 64, 0.15), rgba(206, 17, 36, 0.25)); }
.card-portugal { background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(0, 102, 0, 0.25)); }
.card-pays-bas { background: linear-gradient(135deg, rgba(255, 75, 0, 0.25), rgba(0, 0, 0, 0.15)); }
.card-maroc { background: linear-gradient(135deg, rgba(193, 39, 45, 0.15), rgba(0, 98, 51, 0.25)); }
.card-belgique { background: linear-gradient(135deg, rgba(227, 6, 19, 0.15), rgba(255, 205, 0, 0.2)); }
.card-allemagne { background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(255, 204, 0, 0.25)); }
.card-croatie { background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 255, 255, 0.15)); }
.card-italie { background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(255, 255, 255, 0.15)); }
.card-colombie { background: linear-gradient(135deg, rgba(255, 205, 0, 0.25), rgba(0, 48, 135, 0.2)); }
.card-senegal { background: linear-gradient(135deg, rgba(0, 133, 63, 0.15), rgba(253, 239, 66, 0.25)); }
.card-mexique { background: linear-gradient(135deg, rgba(0, 104, 71, 0.2), rgba(206, 17, 38, 0.25)); }
.card-usa { background: linear-gradient(135deg, rgba(0, 35, 95, 0.2), rgba(191, 10, 48, 0.25)); }
.card-uruguay { background: linear-gradient(135deg, rgba(0, 167, 225, 0.2), rgba(255, 255, 255, 0.15)); }
.card-suisse { background: linear-gradient(135deg, rgba(213, 43, 30, 0.15), rgba(160, 0, 0, 0.25)); }

/* Texte pour fond sombre/coloré */
.club-card h3 {
    color: #0f172a;
    font-weight: 700;
}

/* Assurer que le texte reste bien lisible */
.club-card h3 {
    color: #1e293b;
    font-weight: 700;
    margin-top: 15px;
}

/* Ajustement pour que les textes restent lisibles */
.club-card h3 {
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* =======================================================
   GRILLE PRODUITS (Page Produits)
   ======================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card.hidden {
    display: none !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.product-image {
    overflow: hidden; /* Important : pour que le zoom ne dépasse pas du cadre */
    border-radius: 12px; /* Optionnel : pour des coins arrondis sur le cadre */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions sans déformer */
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    
    /* On garde ta transition avec l'effet de rebond (cubic-bezier) */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* L'effet de zoom au survol */
.product-image:hover img {
    transform: scale(1.15); /* Zoom de 15% pour bien remplir le cadre 1:1 */
}

.product-info {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    z-index: 2;
    background: transparent;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.btn-product {
    width: 100%;
    margin-top: auto; 
}

/* =======================================================
   PAGINATION
   ======================================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.page-btn.active-page {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* =======================================================
   LIGHTBOX (Zoom Image)
   ======================================================= */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =======================================================
   PAGE DÉTAIL PRODUIT
   ======================================================= */
.product-detail-container {
    display: flex;
    gap: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.product-detail-image {
    flex: 1;
    position: relative;
    /* On laisse le slider gérer ses propres ratios à l'intérieur */
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-price-large {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 15px 0;
}

.size-selection {
    margin: 25px 0;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.size-options input[type="radio"] {
    display: none; 
}

.size-options label {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    text-align: center;
    line-height: 48px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.size-options input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-selection {
    margin-bottom: 24px;
}

.qty-wrapper input {
    width: 70px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.qty-wrapper input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.btn-add-cart {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

/* =======================================================
   SLIDER D'IMAGES (Page Produit) - CORRECTIF 1:1
   ======================================================= */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Le ratio parfait pour les maillots */
    overflow: hidden; 
    border-radius: 12px;
    background-color: var(--bg-light);
}

.slider-wrapper {
    display: flex; 
    height: 100%; /* Important pour object-fit */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: transform;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; 
    display: block;
    cursor: pointer; /* Indique que c'est cliquable */
    transition: opacity 0.3s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0; 
    box-shadow: var(--shadow-sm);
}

.slider-container:hover .slider-btn {
    opacity: 1; 
}

.slider-btn:hover {
    background: white;
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1); 
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    opacity: 1;
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* =======================================================
   PANIER (Cart)
   ======================================================= */
.cart-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-qty-controls button {
    background: white;
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.cart-item-qty-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-item-qty-controls span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
}

.cart-summary {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.summary-line.total {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 16px;
    color: var(--primary-color);
}

.btn-clear {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 24px;
    cursor: pointer;
}

.btn-clear:hover {
    color: var(--primary-color);
}

/* =======================================================
   SECTION CONTACT / CTA
   ======================================================= */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    margin: 40px 24px; 
    border-radius: 24px;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #10B981; 
    color: white !important;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(16, 185, 129, 0.3);
}

/* =======================================================
   FOOTER OPTIMISÉ (Centré & Clean)
   ======================================================= */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content .brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

/* --- RESEAUX SOCIAUX --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-links a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-links a:hover img {
    transform: scale(1.1) rotate(-5deg);
    filter: brightness(0) invert(1); /* Pour qu'il devienne blanc */
}

/* --- LOGOS PAIEMENT SÉCURISÉS --- */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
    background: var(--glass-bg); 
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.payment-methods img {
    height: 48px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.payment-methods img:hover {
    transform: scale(1.1); 
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bestSellerSlider {
    width: 100%;
    padding: 40px 0 60px 0; /* Espace pour le zoom et la pagination */
    overflow: hidden; /* Empêche les bugs de défilement horizontal */
}

/* Animations de base pour tous les maillots */
.bestSellerSlider .swiper-slide {
    transition: all 0.4s ease;
    opacity: 0.5;
    transform: scale(0.85); /* Plus petit par défaut */
}

/* ---- SUR PC : 1 maillot central en surbrillance ---- */
@media (min-width: 768px) {
    .bestSellerSlider .swiper-slide-active,
    .bestSellerSlider .swiper-slide-next,
    .bestSellerSlider .swiper-slide-prev
     {
        width: 100%;
        opacity: 1;
        z-index: 2;
    }
    /* Cible tous les slides qui n'ont PAS la classe active */
.bestSellerSlider .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-prev) {
    transform: scale(0.7);
}
}

/* ---- SUR MOBILE : 2 maillots côte à côte en surbrillance ---- */
@media (max-width: 767px) {
    .bestSellerSlider .swiper-slide-active{
        width: 100%;
        opacity: 1;
    }
    .swiper-pagination{
        visibility: hidden;
    }
    .bestSellerSlider .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.8); /* Plus petit */
}
}

.bestSellerSlider .product-card {
    margin: 0;
    height: 100%;
}

/* =======================================================
   POPUP (MODAL) PERSONNALISÉE
   ======================================================= */
/* =======================================================
   POPUP (MODAL) PERSONNALISÉE
   ======================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(4px); 
    
    /* 🟢 LE SECRET POUR LE SCROLL */
    display: flex;
    align-items: flex-start; /* Au lieu de center */
    justify-content: center;
    overflow-y: auto; /* Permet de scroller le fond si la popup est géante */
    padding: 40px 20px; /* Laisse de l'espace en haut et en bas */
    
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    
    /* 🟢 LE SECRET POUR CENTRER TOUT EN POUVANT SCOLLER */
    margin: auto; 
    position: relative;
    
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* 🟢 LE NOUVEAU GROS BOUTON FERMER */
.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-close-modal:hover {
    background: #e2e8f0;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ... (Garde le reste de tes styles modal-icon, modal-actions, etc.) ... */

.modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: #ef4444; 
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* =======================================================
   ACCORDÉONS (Détails Produits)
   ======================================================= */
.product-accordion-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--secondary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 300px; 
    margin-bottom: 15px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); 
}

/* =======================================================
   G-TRANSLATE
   ======================================================= */
.gt_float_switcher .gt-selected {
    background-color: transparent!important;
}

.gt_float_switcher {
    background: none!important;
    font-size: 0!important;
}


/* --- BOUTON GUIDE DES TAILLES --- */
.btn-size-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 70, 229, 0.08); /* Fond bleu très léger */
    color: var(--secondary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 6px 12px;
    border-radius: 20px; /* Forme de pilule */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-size-guide:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* =======================================================
   MINIATURES (Thumbnails du Slider)
   ======================================================= */
.slider-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto; /* Permet de scroller si tu as beaucoup d'images */
    padding-bottom: 8px; /* Laisse de la place pour la barre de scroll */
    scrollbar-width: none; /* Cache la barre de scroll sur Firefox pour faire propre */
}

/* Cache la barre de scroll sur Chrome/Safari pour faire plus propre */
.slider-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent; /* Bordure invisible par défaut */
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--bg-light); /* Au cas où tes PNG sont transparents */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    border-color: #cbd5e1;
    transform: translateY(2px);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* --- ETAT ACTIF (Miniature sélectionnée) --- */
.thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    opacity: 1;
}

.thumbnail:not(.active) {
    opacity: 0.6; /* Rend les autres images légèrement transparentes */
}

/* =======================================================
   RESPONSIVE (Tablette & Mobile)
   ======================================================= */
.menu-checkbox, .menu-icon { display: none; }

/* --- Tablette --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }
    
    .product-detail-container {
        flex-direction: column;
        padding: 24px;
    }
}


/* --- Mobile --- */
@media (max-width: 768px) {
    /* Hero & Sections */
    .hero { padding: 20px 0 10px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.55rem;
    font-weight: 600; }
    .hero-buttons { flex-direction: column; }
    .hero {
    
    background-size:cover;
}
    
    .section-padding { padding: 10px 0; }
    .section-title { font-size: 2rem; }
    
    .cta-section {
        margin: 0;
        border-radius: 0;
        padding: 64px 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links, .payment-methods {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Menu Burger */
    .menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 20px 0;
    }

    .menu-checkbox:checked ~ .main-nav { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn-cart {
        justify-content: center;
        width: max-content;
        margin: 0 auto;
    }

    /* Clubs sur l'accueil */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .services-grid .card { padding: 16px; }
    .card-image-wrapper { width: 100px; height: 100px; }
    .services-grid .card h3 { font-size: 0.9rem; }

    /* Grille Produits */
    .products-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
        margin-top: 20px;
    }
    
    .product-card { border-radius: 12px; }
    .product-info { padding: 12px; }
    
    .product-info h3 {
        font-size: 0.9rem; 
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .price { font-size: 1.1rem; margin-bottom: 12px; }
    
    .btn-product {
        padding: 8px 12px;
        font-size: 0.85rem; 
    }
    
    .product-card:active .product-image img {
        transform: scale(1.1); 
    }

    /* Slider Mobile */
    .slider-btn { display: none; }

    /* Panier Mobile */
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-remove { align-self: flex-end; }
}
/* --- CONFIGURATION HEADER --- */
.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace le logo, le menu et le panier */
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 3; /* Force le bloc à être tout à droite sur PC */
}

/* --- AJUSTEMENTS PC (Desktop) --- */
@media (min-width: 768px) {
    .main-nav {
        margin-left: auto; /* Pousse le menu vers la droite, contre le panier */
    }

    .logo-text {
        font-size: 1.2rem; /* Tu peux ajuster la taille si c'est trop gros sur petit écran */
    }
    
    .menu-icon {
        display: none; /* Cache le burger sur PC */
    }

    .cart-badge {
        top: -5px;
        right: -8px;
    }
}

/* --- AJUSTEMENTS MOBILE --- */
@media (max-width: 767px) {
    .logo-text {
        display: block; /* On s'assure qu'il est bien visible */
        width: auto;    /* Largeur automatique */
        height: auto;   /* Hauteur automatique */
        font-size: 1.2rem; /* Tu peux ajuster la taille si c'est trop gros sur petit écran */
    }

    .flex-header {
        gap: 10px; /* On réduit un peu l'écart pour que tout rentre sur une ligne */
    }
    
    .cart-badge {
        top: -5px;
        right: -8px;
    }
}

/* Badge du panier */
.btn-cart {
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    background: #4F46E5;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}