/* =============================================
   Fichier : style.css
   Description : Styles principaux du site Idem Tech
   Auteur : Idem Tech
   Date : 2025
   Version : 2.0 - Avec mode clair/sombre et gestion RGPD
============================================= */

/* Importation de la police Inter depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   VARIABLES CSS POUR LE MODE CLAIR/SOMBRE
   Permettent de changer facilement les couleurs du thème
============================================= */

:root {
    /* Variables pour le mode sombre (par défaut) */
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Mode clair - Surcharge des variables */
body.light-theme {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #ffffff;
    --light: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* =============================================
   RESET CSS ET STYLES DE BASE
   Assure une cohérence entre navigateurs
============================================= */

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* =============================================
   BOUTON DE CHANGEMENT DE THÈME
   Permet de passer du mode sombre au mode clair
============================================= */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle .fa-moon {
    color: var(--text-primary);
}

.theme-toggle .fa-sun {
    color: #fbbf24;
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg);
}

body.light-theme .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(180deg);
}

body.light-theme .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* =============================================
   BANNIÈRE DE COOKIES (RGPD)
   Conforme au RGPD avec options de consentement
============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-right: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-cookie i {
    font-size: 0.8rem;
}

.btn-accept {
    background: var(--gradient-1);
    color: white;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-settings {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-settings:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* =============================================
   PANNEAU DE PARAMÈTRES DES COOKIES
   Permet de personnaliser les préférences de cookies
============================================= */

.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.settings-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.settings-options {
    margin-bottom: 2rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.option-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.option-toggle {
    position: relative;
}

.option-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 25px;
    background: var(--border-color);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.option-toggle input[type="checkbox"]:checked + .toggle-label {
    background: var(--gradient-1);
}

.option-toggle input[type="checkbox"]:checked + .toggle-label::after {
    transform: translateX(25px);
}

.settings-actions {
    text-align: center;
}

/* =============================================
   STYLES DE LA NAVIGATION - VERSION ULTRA-MODERNE
   Design graphique avec effets visuels avancés
============================================= */

.navbar-modern {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
    overflow: visible;
}

/* Logo avec effet holographique */
.holographic {
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-container i {
    font-size: 2rem;
    margin-right: 0.75rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 5s ease infinite;
    position: relative;
    z-index: 2;
}

.logo-container i::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
    animation: holographic-shift 5s ease infinite;
}

.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.7), transparent);
    animation: shimmer 2s infinite;
}

/* Bouton hamburger animé */
.hamburger-menu {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 8px;
}

.hamburger-menu span:nth-child(3) {
    top: 16px;
}

.navbar-toggler:not(.collapsed) .hamburger-menu span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.navbar-toggler:not(.collapsed) .hamburger-menu span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler:not(.collapsed) .hamburger-menu span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Liens de navigation avec effets graphiques */
.navbar-nav {
    position: relative;
}

.nav-item {
    position: relative;
    margin: 0 1rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 5;
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.nav-link span {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Effet de particules au survol */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 100px;
    height: 100px;
}

/* Indicateur animé */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator {
    width: 100%;
}

/* Effet de néon au survol */
.nav-link:hover {
    color: var(--text-primary) !important;
    transform: translateY(-3px);
}

.nav-link:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

/* Bouton d'action avec effet néon */
.nav-action {
    margin-left: 1rem;
}

.btn-neon {
    display: flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-neon i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-neon:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Particules flottantes dans le menu */
.nav-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.nav-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 60% 20%, rgba(245, 87, 108, 0.1) 0%, transparent 8%);
    background-size: 200px 200px;
    animation: particle-float 20s linear infinite;
}

/* Effet de lueur */
.nav-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-modern:hover .nav-glow {
    opacity: 1;
}

/* =============================================
   STYLES DE LA SECTION HERO
   Section d'accueil avec effets visuels
============================================= */

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Mode clair - hero */
body.light-theme .hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: grid-move 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: float-badge 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.hero h1 span {
    background: var(--gradient-1);
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero h1 span::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -5px;
    bottom: -5px;
    background: var(--gradient-1);
    border-radius: 10px;
    opacity: 0.2;
    z-index: -1;
    filter: blur(10px);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.hero p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-modern {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline-modern {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* =============================================
   ÉLÉMENTS FLOTTANTS
   Éléments décoratifs animés en arrière-plan
============================================= */

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.floating-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-3);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.floating-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-4);
    top: 50%;
    right: 15%;
    animation-delay: 4s;
}

.floating-4 {
    width: 100px;
    height: 100px;
    background: var(--gradient-5);
    bottom: 30%;
    right: 30%;
    animation-delay: 1s;
}

/* =============================================
   STYLES DE LA SECTION SERVICES
   Présentation des trois services principaux
============================================= */

.services {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #c4b5fd;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.service-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.service-card-modern:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.service-header {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-icon-modern {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.service-card-modern:hover .service-icon-modern::before {
    left: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-body {
    padding: 2rem;
}

.service-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--accent);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.service-cta {
    display: flex;
    gap: 1rem;
}

.service-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.service-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.service-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.service-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   STYLES DE LA SECTION FEATURES
   Avantages et points forts de l'entreprise
============================================= */

.features {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon::before {
    left: 100%;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   STYLES DE LA SECTION CTA
   Call To Action pour inciter à l'action
============================================= */

.cta {
    padding: 5rem 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    display: inline-block;
}

.cta h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* =============================================
   STYLES DU FOOTER
   Pied de page avec informations et liens
============================================= */

footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-contact h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-item i {
    color: var(--accent);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

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

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =============================================
   STYLES DU MODAL
   Fenêtre popup pour le formulaire de contact
============================================= */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 2rem 1rem;
    cursor: move;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.modal-title i {
    margin-right: 0.75rem;
    background: var(--gradient-1);
    color: var(--text-primary); /* Fallback */
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem 2rem;
}

.btn-submit {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   STYLES DU BOUTON RETOUR EN HAUT
   Bouton flottant pour remonter en haut de page
============================================= */

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

/* =============================================
   STYLES RESPONSIVES
   Adaptation pour les écrans mobiles et tablettes
============================================= */

@media (max-width: 768px) {
    /* Bouton thème */
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    /* Bannière cookies */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-cookie {
        flex: 1;
        justify-content: center;
    }
    
    .settings-content {
        padding: 1.5rem;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Navigation */
    .nav-action {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .service-card-modern {
        margin-bottom: 2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links, .footer-contact {
        margin-top: 2rem;
    }
}
/* Styles pour la page d'événements */
.events-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.events-controls {
    margin-bottom: 2rem;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-meta span {
    display: flex;
    align-items: center;
}

.event-meta i {
    margin-right: 0.5rem;
}

.event-description {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-organizer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Styles pour le calendrier */
.calendar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
}

.calendar-day:hover {
    background: var(--primary);
    color: white;
}

.calendar-day.has-event {
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event:hover {
    background: var(--gradient-2);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    color: var(--text-tertiary);
}

.calendar-day.empty:hover {
    background: transparent;
    color: var(--text-tertiary);
}

.event-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
}

.event-indicator i {
    color: var(--accent);
}

/* Styles pour la modal d'événement */
.event-details-list h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.event-detail-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-item:last-child {
    border-bottom: none;
}

.event-detail-item h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.event-detail-item p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.event-detail-item i {
    margin-right: 0.5rem;
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .events-controls {
        text-align: center;
    }
    
    .events-controls .row > div {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 60px;
        font-size: 0.9rem;
    }
}
.carousel-caption {
  bottom: 20px;
  left: 10%;
  right: 10%;
}
.carousel-item img {
  max-height: 500px;
  object-fit: cover;
}
