 
/* ===== VARIABLES CSS COMMUNES ===== */
:root {
    --primary: #FEA347;
    --secondary: #800080;
    --accent: #410056;
    --background: #FAF9F6;
    --surface: #F5F5DC;
    --text-primary: #2E2E2E;
    --text-secondary: #410056;
    --highlight: #F4C2C2;
    --link: #1A237E;
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.2);
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 25px;
}

[data-theme="dark"] {
    --background: #1A1A1A;
    --surface: #2d2d2d;
    --text-primary: #E8E8E8;
    --text-secondary: #FEA347;
    --highlight: #4A4A4A;
    --link: #87CEEB;
    --shadow-light: 0 2px 10px rgba(255, 255, 255, 0.05);
    --shadow-medium: 0 5px 25px rgba(255, 255, 255, 0.1);
    --shadow-strong: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* ===== RESET & BASE ===== */
* {
    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-primary);
    background-color: var(--background);
    transition: all var(--transition-fast) ease;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

img, iframe, video, svg {
    max-width: 100%;
    height: auto;
}

.container, .section-content, .content {
    max-width: 100%;
    box-sizing: border-box;
}

#toast-container > .toast-success {
    background-color: var(--primary);
}

#toast-container > .toast-error {
    background-color: #d00000;
}

#toast-container.toast-top-right {
        top: 130px; /* Ajuste la hauteur ici */
    }
/* ===== LAYOUT COMMUN ===== */
.main-content {
    padding-top: 0px;
    min-height: calc(100vh - 60px);
}

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

/* ===== BREAKPOINTS AJUSTÉS POUR ZOOM 100% = VUE ORDINATEUR ===== */

/* Desktop étendu - barre latérale potentielle (ÉTAIT 1400-1599px) */
@media (min-width: 2800px) and (max-width: 3199px) {
  .container {
    max-width: 1200px;
    padding: 0 20px;
  }
  
  /* Conserver les proportions desktop standards */
  .hero-section {
    min-height: 75vh;
    padding: 100px 0 70px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Grand écran avec largeur réduite (ÉTAIT 1600-1799px) */
@media (min-width: 3200px) and (max-width: 3599px) {
  .container {
    max-width: 1300px;
    padding: 0 25px;
  }
  
  .hero-section {
    min-height: 78vh;
    padding: 110px 0 75px;
  }
  
  .hero-title {
    font-size: 3.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Grilles : conserver disposition */
  .services-grid,
  .features-grid,
  .articles-grid {
    gap: 1.8rem;
    max-width: 1300px;
  }
}

/* Écran très large (ÉTAIT 1800-2199px) */
@media (min-width: 3600px) and (max-width: 4399px) {
  .container {
    max-width: 1350px;
    padding: 0 28px;
  }
  
  .hero-section {
    min-height: 79vh;
    padding: 115px 0 80px;
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .services-grid,
  .features-grid,
  .articles-grid {
    gap: 1.9rem;
    max-width: 1350px;
  }
}

/* Écrans ultra-larges (ÉTAIT 2200-2499px) */
@media (min-width: 4400px) and (max-width: 4999px) {
  .container {
    max-width: 1500px;
    padding: 0 35px;
  }
  
  .hero-section {
    min-height: 82vh;
    padding: 125px 0 85px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.45rem;
  }
}

/* ===== ÉCRANS ÉNORMES - Seulement pour écrans physiques gigantesques ===== */
@media (min-width: 3840px) {
  /* Container proportionnel pour écrans 4K+ */
  .container {
    max-width: 1400px;
    padding: 0 30px;
  }
  
  /* Hero section : proportion conservée */
  .hero-section {
    min-height: 80vh;
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
    max-width: 750px;
  }
  
  /* Grilles : conserver le même nombre d'éléments par ligne */
  .services-grid,
  .features-grid,
  .articles-grid {
    gap: 2rem;
    max-width: 1400px;
  }
  
  /* Cards : légère augmentation */
  .card,
  .service-card,
  .feature-card {
    padding: 2rem;
  }
  
  /* Typographie générale : légères augmentations */
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.8rem; }
  h3 { font-size: 2.2rem; }
  
  p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

/* Écrans 8K et plus : augmentation proportionnelle */
@media (min-width: 5120px) {
  .container {
    max-width: 1800px;
    padding: 0 40px;
  }
  
  .hero-section {
    padding: 140px 0 100px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
    max-width: 900px;
  }
  
  .services-grid,
  .features-grid,
  .articles-grid {
    gap: 2.5rem;
    max-width: 1800px;
  }
  
  .card,
  .service-card,
  .feature-card {
    padding: 2.5rem;
  }
  
  h1 { font-size: 4.2rem; }
  h2 { font-size: 3.4rem; }
  h3 { font-size: 2.6rem; }
  
  p {
    font-size: 1.2rem;
    line-height: 1.7;
  }
}

/* ===== HERO SECTION COMMUNE ===== */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== SECTIONS COMMUNES ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.section-title.wht, .section-subtitle.wht{
    color: rgb(255, 255, 255);
}

/* ===== GRILLES COMMUNES ===== */
.grid {
    display: grid;
    gap: 40px;
    margin-top: 50px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ===== CARTES COMMUNES ===== */
.card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===== BOUTONS COMMUNS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(254, 163, 71, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    color: white;
}

.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(65, 0, 86, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
}

.btn-large:hover {
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== LISTES COMMUNES ===== */
.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ===== BADGES ET TAGS ===== */
.badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-primary {
    background: rgba(254, 163, 71, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.badge-info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

/* ===== SECTIONS CTA COMMUNES ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BACKGROUNDS ALTERNÉS ===== */
.bg-primary {
    background: var(--background);
}

.bg-secondary {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.bg-accent {
    background: var(--surface);
}

/* ===== ANIMATIONS COMMUNES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVITÉ COMMUNE ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 0px;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card {
        padding: 30px 20px;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 25px 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }

        

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-50 { margin-top: 50px; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

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