/* ============================================
   🎨 PARAMÈTRES DE COULEURS - MODIFIER ICI
   ============================================ */
:root {
    /* FONDS - Change ces valeurs pour tester ! */
    --bg-primary: #f5f5f5;      /* Fond principal des sections */
    --bg-secondary: #ffffff;    /* Fond alternatif */
    --bg-dark: #1A1A2E;         /* Fond sombre (hero, footer) */

    /* Couleurs identité IDIoTsLab */
    --primary-orange: #ed681a;
    --primary-blue: #01294D;
    --accent-yellow: #F7B801;

    /* Nuances dérivées pour cohérence */
    --orange-light: #ff8947;
    --orange-dark: #c55515;
    --blue-light: #023e73;
    --blue-lighter: #0a5799;

    /* Texte */
    --text-dark: #2C2C2C;
    --text-light: #F5F5F5;
}

/* ============================================
   Exemples de palettes à tester :

   CLAIR (actuel) :
   --bg-primary: #f5f5f5;
   --bg-secondary: #ffffff;

   GRIS DOUX :
   --bg-primary: #e8e8e8;
   --bg-secondary: #f0f0f0;

   DARK MODE :
   --bg-primary: #0f1419;
   --bg-secondary: #1a1f28;
   --text-dark: #e8eaed;

   BEIGE/CRÈME :
   --bg-primary: #f8f4ed;
   --bg-secondary: #fefbf5;
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
}

/* ============================================
   🎯 BARRE DE PROGRESSION VERTICALE
   ============================================ */
.scroll-progress-container {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60vh;
    background: rgba(1, 41, 77, 0.15);
    border-radius: 10px;
    z-index: 999;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.scroll-progress-container:hover {
    width: 6px;
    background: rgba(1, 41, 77, 0.25);
}

.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        to bottom,
        var(--primary-orange) 0%,
        var(--accent-yellow) 50%,
        var(--primary-orange) 100%
    );
    border-radius: 10px;
    transition: height 0.1s ease-out;
    box-shadow: 0 0 15px rgba(237, 104, 26, 0.5);
}

.progress-sections {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
}

.progress-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.progress-dot:hover {
    width: 16px;
    height: 16px;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(237, 104, 26, 0.6);
}

.progress-dot.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 12px rgba(237, 104, 26, 0.8);
}

.progress-dot-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 41, 77, 0.95);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, right 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-orange);
}

.progress-dot:hover .progress-dot-label {
    opacity: 1;
    right: 30px;
}

/* Responsive - barre de progression */
@media (max-width: 1024px) {
    .scroll-progress-container {
        right: 15px;
        width: 3px;
        height: 50vh;
    }

    .progress-dot {
        width: 10px;
        height: 10px;
    }

    .progress-dot.active {
        width: 12px;
        height: 12px;
    }

    .progress-dot-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .scroll-progress-container {
        right: 10px;
        height: 40vh;
    }

    .progress-dot-label {
        display: none;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

nav.visible {
    transform: translateY(0);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 30px;
    width: auto;
    transition: transform 0.3s, filter 0.3s;
}

nav .logo:hover .nav-logo {
    transform: scale(1.1) rotate(360deg);
    filter: brightness(1.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-orange);
    border-radius: 50%;
    opacity: 0.1;
    top: -250px;
    right: -250px;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

/* Section Commune */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-orange);
}

/* Valeurs Section - Disposition orbitale */
.values {
    background: var(--bg-secondary);
    padding: 8rem 2rem;
}

.orbital-values {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo central */
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo-circle {
    width: 180px;
    height: 180px;
    background: transparent; /* Enlève le gradient car tu as l'image */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(237, 104, 26, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
    overflow: hidden; /* Pour que l'image reste dans le cercle */
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit le cercle sans déformation */
    border-radius: 50%;
}

/* Garde l'ancienne classe si besoin, mais masque le texte */
.logo-text {
    display: none; /* Cache le texte puisqu'on a l'image */
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(237, 104, 26, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 50px rgba(237, 104, 26, 0.6);
        transform: scale(1.05);
    }
}

/* Lignes de connexion */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Container pour chaque valeur en orbite */
.value-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
}

/* Positionnement circulaire des 3 valeurs */
.value-orbit-1 {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-320px) rotate(0deg);
}

.value-orbit-2 {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-320px) rotate(-120deg);
}

.value-orbit-3 {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-320px) rotate(-240deg);
}

/* Carte de valeur orbitale */
.value-card-orbital {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-card-orbital:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(237, 104, 26, 0.3);
    border-color: var(--primary-orange);
}

.value-card-orbital .emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.value-card-orbital h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.value-card-orbital p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Animation d'apparition au scroll */
.value-orbit {
    opacity: 0;
    animation: orbit-appear 0.8s ease-out forwards;
}

.value-orbit-1 {
    animation-delay: 0.2s;
}

.value-orbit-2 {
    animation-delay: 0.4s;
}

.value-orbit-3 {
    animation-delay: 0.6s;
}

@keyframes orbit-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-200px) rotate(calc(-1 * var(--rotation))) scale(0.5);
    }
    to {
        opacity: 1;
    }
}

/* Comment Section */
.how {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.spaces-grid {
    display: grid;
    gap: 2rem;
}

.space-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-orange);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.space-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.space-card .space-size {
    font-weight: bold;
    color: var(--primary-orange);
}

/* What Section */
.what {
    background: var(--bg-secondary);
}

.what h3 {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--blue-lighter);
    font-size: 1.8rem;
}

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

.activity-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: background 0.3s;
}

.activity-item:hover {
    background: var(--accent-yellow);
    color: white;
}

.activity-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Carrousel moderne et dynamique */
.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, rgba(1, 41, 77, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 750px;
    background: transparent;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    color: var(--text-light);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(237, 104, 26, 0.15) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel-item .carousel-image {
    width: auto;
    height: 550px;
    max-width: 95%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
    filter: brightness(1.05) contrast(1.1);
}

.carousel-item h3 {
    color: var(--primary-orange);
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
    letter-spacing: 1px;
}

.carousel-item p {
    color: var(--text-light);
    max-width: 700px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    z-index: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Boutons de navigation du carrousel - Style moderne */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(237, 104, 26, 0.5);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(237, 104, 26, 0.6);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.carousel-nav {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(1, 41, 77, 0.4);
    margin: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-orange);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.carousel-dot:hover {
    transform: scale(1.3);
    background: rgba(237, 104, 26, 0.3);
}

.carousel-dot.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(237, 104, 26, 0.5);
}


/* Community Section */
.community {
    background: var(--bg-dark);
    color: var(--text-light);
}

.community h2 {
    color: var(--accent-yellow);
}

.community-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Carrousel de membres - Style infini moderne */
.members-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: visible;
}

.members-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.members-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.member-card {
    min-width: calc(33.333% - 1.33rem); /* 3 cartes visibles par défaut */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: var(--primary-orange);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(237, 104, 26, 0.3);
}

.member-card .avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 15px rgba(237, 104, 26, 0.4);
}

.member-card h4 {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.member-card h3 {
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.member-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Boutons de navigation du carrousel membres */
.members-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.members-carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.members-carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.members-carousel-button.prev {
    left: 20px;
}

.members-carousel-button.next {
    right: 20px;
}

.members-carousel-button::before {
    content: '';
}

.members-carousel-button.prev::before {
    content: '‹';
}

.members-carousel-button.next::before {
    content: '›';
}

/* Points de navigation */
.members-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.members-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.members-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.members-dot.active {
    background: var(--primary-orange);
    width: 30px;
    border-radius: 6px;
}

/* Autonomie Section */
.autonomie {
    background: var(--bg-secondary);
}

.autonomie-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.autonomie-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-option {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    font-weight: bold;
    color: var(--primary-blue);
}

.support-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-button:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 104, 26, 0.3);
}

.helloasso-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) saturate(100%);
    transition: filter 0.3s ease;
}

.support-button:hover .helloasso-logo {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Rejoins-nous Section */
.join {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-yellow) 100%);
    color: white;
    text-align: center;
}

.join h2 {
    color: white;
}

.join h2::after {
    background: white;
}

.contact-info {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Icônes réseaux sociaux */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
    background: white;
    color: var(--primary-orange);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.calendar-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    min-height: 400px;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--accent-yellow);
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .orbital-values {
        height: 700px;
    }

    .value-orbit {
        width: 240px;
        height: 240px;
    }

    .value-orbit-1 {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-280px) rotate(0deg);
    }

    .value-orbit-2 {
        transform: translate(-50%, -50%) rotate(120deg) translateY(-280px) rotate(-120deg);
    }

    .value-orbit-3 {
        transform: translate(-50%, -50%) rotate(240deg) translateY(-280px) rotate(-240deg);
    }

    .logo-circle {
        width: 150px;
        height: 150px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .member-card {
        min-width: calc(50% - 1rem); /* 2 cartes sur tablette */
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }

    .social-icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 2rem;
        gap: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .carousel-item {
        height: 450px;
        padding: 2rem 1rem;
    }

    .carousel-item .carousel-image {
        height: 250px;
    }

    .carousel-item h3 {
        font-size: 1.6rem;
    }

    .carousel-item p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

    .orbital-values {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .center-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 3rem;
    }

    .value-orbit {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 400px;
        height: auto;
        transform: none !important;
        margin: 0 auto;
    }

    .connection-lines {
        display: none;
    }

    .value-card-orbital {
        height: auto;
    }

    .members-carousel-track {
        gap: 0; /* Supprime le gap sur mobile pour centrage parfait */
    }

    .member-card {
        min-width: 100%; /* 1 carte sur mobile */
        margin: 0; /* Supprime les marges */
    }

    .members-carousel-wrapper {
        padding: 1.5rem 0; /* Réduit le padding vertical */
    }

    .members-carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .members-carousel-button.prev {
        left: 10px;
    }

    .members-carousel-button.next {
        right: 10px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .value-card-orbital {
        padding: 1.5rem;
    }

    .value-card-orbital .emoji {
        font-size: 3rem;
    }

    .value-card-orbital h3 {
        font-size: 1.4rem;
    }

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

    .social-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

}

/* ============================================
   🎮 EVENT MODAL STYLES
   ============================================ */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.event-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(135deg, #E5E5E5 0%, #FFFFFF 50%, #D9D9D9 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 10001;
    animation: modal-slide-up 0.4s ease-out;
}

@keyframes modal-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: #1A3A52;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-modal-close:hover {
    background: #FF8C00;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Modal Dice Decorations */
.modal-dice {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    pointer-events: none;
    animation: float-modal-dice 4s ease-in-out infinite;
    color: #5B4E9B;
}

.modal-dice-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.modal-dice-2 {
    bottom: 20px;
    right: 20px;
    animation-delay: 2s;
}

@keyframes float-modal-dice {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Modal Header */
.event-modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    position: relative;
}

.event-modal-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.event-modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.modal-title-aprem {
    display: block;
    color: #1A3A52;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.modal-title-jeux {
    display: block;
    color: #FF8C00;
    font-size: 3rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(255, 140, 0, 0.3);
}

.modal-title-societe {
    display: block;
    color: #5B4E9B;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* Modal Body */
.event-modal-body {
    padding: 1rem 2rem 2rem;
}

.event-date-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #FF8C00 0%, #FF9500 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.date-badge-icon {
    font-size: 2.5rem;
}

.date-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.date-badge-text strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.date-badge-text span {
    font-size: 1rem;
    opacity: 0.95;
}

.event-description {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border-left: 4px solid #FF8C00;
}

.event-description p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.event-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #E5E5E5;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.highlight-icon {
    font-size: 1.5rem;
}

.event-location {
    background: #5B4E9B;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.event-location p {
    margin: 0.3rem 0;
}

.event-location strong {
    font-size: 1.1rem;
}

/* Modal Footer */
.event-modal-footer {
    background: linear-gradient(135deg, #1A3A52 0%, #0D2A3E 100%);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 0 0 25px 25px;
}

.event-modal-cta {
    display: block;
    background: linear-gradient(135deg, #FF8C00 0%, #FF9500 100%);
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.event-modal-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
}

.event-modal-link {
    display: block;
    color: #FF8C00;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.event-modal-link:hover {
    color: #FF9500;
    transform: translateX(5px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .event-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .event-modal-header {
        padding: 1.5rem 1.5rem 0.8rem;
    }

    .event-modal-logo {
        width: 60px;
    }

    .event-modal-title {
        font-size: 2rem;
    }

    .modal-title-aprem {
        font-size: 1rem;
    }

    .modal-title-jeux {
        font-size: 2.2rem;
    }

    .modal-title-societe {
        font-size: 1.4rem;
    }

    .event-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    .event-date-badge {
        padding: 1rem;
    }

    .date-badge-icon {
        font-size: 2rem;
    }

    .date-badge-text strong {
        font-size: 1rem;
    }

    .date-badge-text span {
        font-size: 0.9rem;
    }

    .event-highlights {
        grid-template-columns: 1fr;
    }

    .event-modal-footer {
        padding: 1.2rem 1.5rem;
    }

    .event-modal-cta {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .modal-dice {
        font-size: 2rem;
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .event-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }

    .event-modal-title {
        font-size: 1.6rem;
    }

    .modal-title-jeux {
        font-size: 1.8rem;
    }

    .modal-title-societe {
        font-size: 1.2rem;
    }
}
