/* ========================================
   PAPYELEC - CSS PROFESSIONNEL BLANC
   Version Light Ultime - Couleurs personnalisables
   TAILLE RÉDUITE DE 10% POUR MEILLEURE LISIBILITÉ
======================================== */

/* ========================================
   VARIABLES DE COULEURS PERSONNALISABLES
   Modifiez ces valeurs selon vos préférences
======================================== */

:root {
    /* === COULEURS PRINCIPALES === */
    --color-primary: #3b82f6;           /* Bleu principal */
    --color-primary-dark: #1d4ed8;     /* Bleu foncé */
    --color-secondary: #10b981;        /* Vert succès */
    --color-accent: #8b5cf6;           /* Violet quiz */
    --color-warning: #f59e0b;          /* Orange calculateurs */
    --color-danger: #ef4444;           /* Rouge erreur */

    /* === COULEURS DE FOND === */
    --color-white: #ffffff;            /* Blanc pur */
    --color-gray-50: #f8fafc;          /* Gris très clair */
    --color-gray-100: #f1f5f9;         /* Gris clair */
    --color-gray-200: #e2e8f0;         /* Gris moyen clair */
    --color-gray-300: #cbd5e1;         /* Gris moyen */
    --color-gray-400: #94a3b8;         /* Gris */
    --color-gray-500: #64748b;         /* Gris foncé */
    --color-gray-600: #475569;         /* Gris très foncé */

    /* === COULEURS DE TEXTE === */
    --color-text-primary: #1f2937;     /* Texte principal */
    --color-text-secondary: #4b5563;   /* Texte secondaire */
    --color-text-muted: #6b7280;       /* Texte discret */
    --color-text-light: #9ca3af;       /* Texte clair */

    /* === COULEURS DE BORDURE === */
    --color-border-light: #e5e7eb;     /* Bordure claire */
    --color-border-medium: #d1d5db;    /* Bordure moyenne */
    --color-border-dark: #9ca3af;      /* Bordure foncée */

    /* === OMBRES === */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* === ESPACEMENTS RÉDUITS DE 10% === */
    --spacing-xs: 0.225rem;    /* ~3.6px */
    --spacing-sm: 0.45rem;     /* ~7.2px */
    --spacing-md: 0.9rem;      /* ~14.4px */
    --spacing-lg: 1.35rem;     /* ~21.6px */
    --spacing-xl: 1.8rem;      /* ~28.8px */
    --spacing-2xl: 2.7rem;     /* ~43.2px */
    --spacing-3xl: 3.6rem;     /* ~57.6px */

    /* === RAYONS DE BORDURE RÉDUITS === */
    --radius-sm: 0.34rem;     /* ~5.4px */
    --radius-md: 0.45rem;     /* ~7.2px */
    --radius-lg: 0.675rem;    /* ~10.8px */
    --radius-xl: 0.9rem;      /* ~14.4px */
    --radius-2xl: 1.35rem;    /* ~21.6px */
    --radius-full: 9999px;    /* Complètement rond */

    /* === TAILLES DE POLICE RÉDUITES === */
    --font-xs: 0.675rem;      /* ~10.8px */
    --font-sm: 0.89rem;      /* ~12.24px */
    --font-base: 1rem;      /* ~14.4px */
    --font-lg: 1.035rem;      /* ~16.56px */
    --font-xl: 1.17rem;       /* ~18.72px */
    --font-2xl: 1.35rem;      /* ~21.6px */
    --font-3xl: 1.71rem;      /* ~27.36px */
    --font-4xl: 2.025rem;     /* ~32.4px */
    --font-5xl: 2.7rem;       /* ~43.2px */
    --font-6xl: 3.15rem;      /* ~50.4px */

    /* === TRANSITIONS === */
    --transition-fast: all 0.15s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
	
}

/* ========================================
   RESET ET BASE
======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 14.4px; /* Réduit de 16px à 14.4px (-10%) */
	background-color:white;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   ANIMATIONS FLUIDES
======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); } /* Réduit de 20px à 18px */
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(27px); } /* Réduit de 30px à 27px */
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes boltGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 3.6px 10.8px rgba(59, 130, 246, 0.3); /* Réduit de 10% */
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 5.4px 18px rgba(59, 130, 246, 0.5); /* Réduit de 10% */
    }
}

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

@font-face {
  font-family: "NightDust";
  src: url("NightDust.woff2") format("woff2"),
       url("NightDust.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ========================================
   UTILITAIRES
======================================== */

.container {
    max-width: 1080px; /* Réduit de 1200px à 1080px */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hidden {
    display: none !important;
}

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

.main-content {
    min-height: 60vh;
	background-color:white;
}

/* ========================================
   HEADER PROFESSIONNEL
======================================== */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10.8px); /* Réduit de 12px */
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header-content {
	
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

/* === LOGO ANIMÉ === */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
  width: 60.3px;
  height: 50px;
  background: transparent;
}

.logo-icon:hover {
    animation: boltGlow 1s infinite;
}

.logo-bolt {
    color: var(--color-white);
    font-size: 1.1rem; /* Réduit de 1.5rem */
    z-index: 2;
    animation: boltPulse 2.5s infinite;
}

.logo-text {
    font-size: var(--font-4xl); /* 1.71rem au lieu de 1.75rem */
    font-weight: 1200;
    color: var(--color-text-primary);
    letter-spacing: -0.025em;
    margin: 0;
}

/* === NAVIGATION === */
.nav {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--color-gray-50);
    padding: var(--spacing-xs);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: var(--font-sm); /* Réduit */
    transition: var(--transition-normal);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-0.9px); /* Réduit de 1px */
}

.nav-link.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 3.6px 10.8px rgba(59, 130, 246, 0.3); /* Réduit */
}

.nav-link i {
    font-size: var(--font-base);
}

/* === ACTIONS HEADER === */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-gray-50);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--color-border-light);
    min-width: 252px; /* Réduit de 280px */
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2.7px rgba(59, 130, 246, 0.1); /* Réduit */
    background: var(--color-white);
}

.search-icon {
    color: var(--color-text-light);
    font-size: var(--font-sm);
    margin-right: var(--spacing-sm);
}

.search-input {
    border: none;
    background: transparent;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-sm);
    color: var(--color-text-primary);
    flex: 1;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-btn {
    width: 28.8px; /* Réduit de 32px */
    height: 28.8px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3.6px 7.2px rgba(59, 130, 246, 0.3); /* Réduit */
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #059669 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-sm);
    box-shadow: 0 3.6px 10.8px rgba(16, 185, 129, 0.3); /* Réduit */
    transition: var(--transition-normal);
}

.admin-btn:hover {
    transform: translateY(-1.8px); /* Réduit */
    box-shadow: 0 5.4px 14.4px rgba(16, 185, 129, 0.4); /* Réduit */
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
    max-width: 720px; /* Réduit de 800px */
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-size: var(--font-6xl); /* 3.15rem au lieu de 3.5rem */
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: var(--font-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-normal);
}

.badge:hover {
    transform: translateY(-1.8px); /* Réduit */
    box-shadow: var(--shadow-md);
}

.badge i {
    color: var(--color-secondary);
    font-size: var(--font-base);
}

/* === BOUTONS === */
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 450;
    font-size: var(--font-base);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 3.6px 14.4px rgba(59, 130, 246, 0.3); /* Réduit */
}

.btn--primary:hover {
    transform: translateY(-2.7px); /* Réduit */
    box-shadow: 0 7.2px 22.5px rgba(59, 130, 246, 0.4); /* Réduit */
}

.btn--secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    transform: translateY(-1.8px); /* Réduit */
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border-medium);
}

.btn--outline:hover {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   SECTIONS GÉNÉRALES
======================================== */

.section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 630px; /* Réduit de 700px */
    margin: 0 auto var(--spacing-2xl);
}

.section-title {
    font-size: var(--font-4xl); /* 2.025rem au lieu de 2.5rem */
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* ========================================
   STATISTIQUES
======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); /* Réduit de 220px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit de 4px */
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.stat-card:hover {
    transform: translateY(-7.2px); /* Réduit de 8px */
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.stat-icon {
    width: 57.6px; /* Réduit de 64px */
    height: 57.6px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.35rem; /* Réduit de 1.5rem */
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 3.6px 10.8px rgba(59, 130, 246, 0.3); /* Réduit */
}

.stat-number {
    font-size: var(--font-4xl); /* 2.025rem au lieu de 2.5rem */
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--font-base);
}

/* ========================================
   CARTES TUTORIELS
======================================== */

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); /* Réduit de 350px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.tutorial-card {
    background: var(--color-white);
    border: 1px solid #2c68e7;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.tutorial-card:hover {
    transform: translateY(-7.2px); /* Réduit */
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.card-header {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.tutorial-level {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-level.débutant {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tutorial-level.intermédiaire {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tutorial-level.avancé {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tutorial-duration {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: 600;
}

.card-body {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.tutorial-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.tutorial-description {
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.tutorial-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
    gap: var(--spacing-sm);
}

.tutorial-category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tutorial-views {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: var(--font-xs);
    font-weight: 500;
}

/* ========================================
   CARTES QUIZ
======================================== */

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); /* Réduit de 320px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.quiz-card {
    background: var(--color-white);
    border: 1px solid #844cf2;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-accent), #7c3aed);
}

.quiz-card:hover {
    transform: translateY(-7.2px); /* Réduit */
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.quiz-icon {
    width: 57.6px; /* Réduit de 64px */
    height: 57.6px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #7c3aed 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.35rem; /* Réduit */
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 3.6px 10.8px rgba(139, 92, 246, 0.3); /* Réduit */
}

.quiz-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.quiz-description {
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.quiz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    font-weight: 600;
    gap: var(--spacing-sm);
}

/* ========================================
   CALCULATEURS
======================================== */

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Réduit de 380px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-1xl);
}

.calculator-card {
    background: var(--color-white);
    border: 1px solid #e48608;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-warning), #d97706);
}

.calculator-card:hover {
    transform: translateY(-4.5px); /* Réduit de 5px */
    box-shadow: var(--shadow-lg);
    border-color: var(--color-warning);
}



/* 2. Remplacement du carré orange de .calculator-icon */
/* 1. On vide l’ancien background */
.calculator-icon {
  background: none !important;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  position: relative;
}

/* 2. On injecte l’éclair bleu et le numéro */
.calculator-icon::before {
  content: "\26A1"; /* Code Unicode pour éclair */
  color: #3b82f6;   /* Bleu électrique */
  font-size: 2rem;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 3. On affiche le numéro en dessous de l’éclair */
.calculator-icon::after {
  content: attr(data-id);
  color: #1f2937;    /* Texte sombre */
  font-weight: bold;
  font-size: 1rem;
  position: absolute;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
}



.calculator-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.calculator-description {
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.calculator-inputs {
    margin-bottom: var(--spacing-lg);
}

.calculator-input, .calculator-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-base);
    background: var(--color-gray-50);
    color: var(--color-text-primary);
    outline: none;
    transition: var(--transition-normal);
}

.calculator-input:focus, .calculator-select:focus {
    border-color: var(--color-warning);
    box-shadow: 0 0 0 2.7px rgba(245, 158, 11, 0.1); /* Réduit */
    background: var(--color-white);
}

.calculator-result {
    padding: var(--spacing-lg);
    background: rgba(245, 158, 11, 0.05);
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: #92400e;
    text-align: center;
    font-size: var(--font-base);
    line-height: 1.6;
    display: none;
}

/* ========================================
   GLOSSAIRE
======================================== */

.glossary-search {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.glossary-search-input {
    width: 100%;
    max-width: 450px; /* Réduit de 500px */
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-base);
    background: var(--color-gray-50);
    color: var(--color-text-primary);
    outline: none;
    transition: var(--transition-normal);
}

.glossary-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2.7px rgba(59, 130, 246, 0.1); /* Réduit */
    background: var(--color-white);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(306px, 1fr)); /* Réduit de 340px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.glossary-card {
    background: var(--color-white);
    border: 1px solid #07a3c3;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glossary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.glossary-card:hover {
    transform: translateY(-4.5px); /* Réduit */
    box-shadow: var(--shadow-lg);
    border-color: #06b6d4;
}

.glossary-term {
    font-size: var(--font-xl);
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: var(--spacing-sm);
}

.glossary-definition {
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.glossary-example {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    font-style: italic;
    padding: var(--spacing-sm);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 3.6px solid #06b6d4; /* Réduit de 4px */
}

/* ========================================
   PAGES QUIZ DÉTAILLÉES
======================================== */

.quiz-page {
    max-width: 810px; /* Réduit de 900px */
    margin: 3rem auto 3rem auto;   /* AU LIEU DE margin: 0 auto; */
    animation: slideUp 0.6s ease-out;
}

.quiz-mistakes-list {
    margin-top: 2.5rem;
}
.quiz-mistake {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    font-size: 0.95em;
}


.quiz-header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-2xl);
    border: 1px solid var(--color-border-light);
    position: relative;
}

.quiz-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-accent), #7c3aed);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.quiz-progress-bar {
    background: rgba(255, 255, 255, 0.4);
    height: 7.2px; /* Réduit de 8px */
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.quiz-progress-fill {
    background: linear-gradient(90deg, var(--color-accent), #7c3aed);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.quiz-question-container {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--color-border-light);
}

.quiz-question {
    font-size: var(--font-2xl); /* 1.35rem au lieu de 1.5rem */
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
}

.quiz-answers {
    display: grid;
    gap: var(--spacing-md);
}

.quiz-answer {
    padding: var(--spacing-lg);
    background: var(--color-gray-50);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: var(--font-base);
    font-weight: 500;
    color: var(--color-text-primary);
}

.quiz-answer:hover {
    background: #e0e7ff;
    border-color: var(--color-accent);
    transform: translateX(7.2px); /* Réduit de 8px */
}

.quiz-answer.selected {
    background: #e0e7ff;
    border-color: var(--color-accent);
    color: #7c3aed;
}

.quiz-answer.correct {
    background: #dcfce7;
    border-color: var(--color-secondary);
    color: #15803d;
}

.quiz-answer.incorrect {
    background: #fef2f2;
    border-color: var(--color-danger);
    color: #dc2626;
}

.quiz-controls {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.quiz-result {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--color-border-light);
}

.quiz-score {
    font-size: var(--font-6xl); /* 3.15rem au lieu de 3.5rem */
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

.quiz-score.excellent { color: var(--color-secondary); }
.quiz-score.good { color: #ca8a04; }
.quiz-score.average { color: #ea580c; }
.quiz-score.poor { color: var(--color-danger); }

/* ========================================
   PAGES TUTORIELS DÉTAILLÉES
======================================== */

.tutorial-page {
    max-width: 900px; /* Réduit de 1000px */
    margin: 0 auto;
    animation: slideUp 0.6s ease-out;
}

.back-btn {
    margin: var(--spacing-xl) 0;
}

.tutorial-header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  /*  border-radius: var(--radius-2xl); */
    margin-bottom: var(--spacing-2xl);
    border: 1px solid var(--color-border-light);
    position: relative;
}

.tutorial-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.tutorial-progress {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tutorial-content {
 display: grid;
    gap: var(--spacing-xl);
}

.content-section {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
	  flex: 1;
  margin-bottom: 0;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.6px; /* Réduit */
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-2xl); /* 1.35rem au lieu de 1.5rem */
    font-weight: 700;
    color: var(--color-text-primary);
}

.content-section h2 i {
    color: var(--color-primary);
    font-size: var(--font-xl);
}

/* === LISTES === */
.prerequisites-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-md);
}

.prerequisites-list li {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-left: 5.4px solid var(--color-secondary); /* Réduit de 6px */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-sm);
    transition: var(--transition-normal);
}

.prerequisites-list li:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(7.2px); /* Réduit de 8px */
}

.prerequisites-list i {
    color: var(--color-secondary);
    font-size: var(--font-base);
}

/* === OUTILS ET MATÉRIEL === */
.tools-materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.items-list {
    display: grid;
    gap: var(--spacing-md);
}

.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-gray-50);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    gap: var(--spacing-md);
}

.item-card:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2.7px); /* Réduit de 3px */
    box-shadow: var(--shadow-md);
}

.item-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    font-size: var(--font-sm);
}

.item-info p {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}

.amazon-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: #ff9900;
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.amazon-btn:hover {
    background: #e88900;
    transform: translateY(-1.8px); /* Réduit */
    box-shadow: 0 1.8px 7.2px rgba(255, 153, 0, 0.3); /* Réduit */
}

.no-link {
    font-size: var(--font-xs);
    color: var(--color-text-light);
    font-style: italic;
    white-space: nowrap;
}

/* === ÉTAPES === */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    display: grid;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  padding: 1.2rem 2rem;
  background: #f3f9ff;
  border-radius: 10px;
  border: 1.5px solid #4f70b2;
  margin-bottom: 1.3rem;
  transition: background .15s;
}

.step-number {
    min-width: 35px;
    min-height: 35px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
        background: linear-gradient(128deg, #60b7ff 0%, #3e97e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.step-emoji {
  margin-left: 4px;
  margin-right: 8px;
  font-size: 1.55em;
  filter: drop-shadow(0 2px 2px rgba(59,130,246,0.12));
  vertical-align: middle;
}

.step-content {
  flex: 1;
  color: #212f44;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}


/* === SECTION SÉCURITÉ === */
.safety-section {
    background: rgba(239, 68, 68, 0.05);
    border: 3px solid rgba(239, 68, 68, 0.2);
    border-left: 7.2px solid var(--color-danger); /* Réduit de 8px */
}

.safety-section::before {
    background: var(--color-danger);
}

.safety-section h2 {
    color: #dc2626;
}

.safety-section h2 i {
    color: #dc2626;
}

.safety-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-md);
}

.safety-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    color: var(--color-text-primary);
}

.safety-item i {
    color: #dc2626;
    margin-top: 1.8px; /* Réduit de 2px */
    flex-shrink: 0;
    font-size: var(--font-base);
}

/* === SECTION CONCLUSION === */
.conclusion-section {
    background: rgba(16, 185, 129, 0.05);
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-left: 7.2px solid var(--color-secondary); /* Réduit */
}

.conclusion-section::before {
    background: var(--color-secondary);
}

.conclusion-section h2 {
    color: #059669;
}

.conclusion-section h2 i {
    color: #059669;
}

.conclusion-section p {
        font-weight: 700;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-primary);
}

/* === FOOTER TUTORIEL === */
.tutorial-footer {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    border-radius: var(--radius-2xl);
    text-align: center;
    border: 1px solid var(--color-border-light);
}

.tutorial-footer h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    font-size: var(--font-xl);
}

.footer-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ÉTATS VIDES (COMING SOON)
======================================== */

.coming-soon {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    max-width: 540px; /* Réduit de 600px */
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.coming-soon-icon {
    width: 72px; /* Réduit de 80px */
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.8rem; /* Réduit de 2rem */
    margin: 0 auto var(--spacing-xl);
    box-shadow: 0 3.6px 14.4px rgba(59, 130, 246, 0.3); /* Réduit */
}

.coming-soon h3 {
    font-size: var(--font-3xl); /* 1.71rem au lieu de 1.75rem */
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.coming-soon p {
    color: var(--color-text-secondary);
    font-size: var(--font-base);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.coming-soon ul {
    list-style: none;
    text-align: left;
    max-width: 360px; /* Réduit de 400px */
    margin: 0 auto var(--spacing-xl);
}

.coming-soon ul li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-sm);
}

.coming-soon ul li i {
    color: var(--color-secondary);
    font-size: var(--font-base);
}

/* ========================================
   FOOTER PROFESSIONNEL
======================================== */

.footer {
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-border-light);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(234px, 1fr)); /* Réduit de 260px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.help-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.help-card:hover {
    transform: translateY(-4.5px); /* Réduit de 5px */
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.help-icon {
    width: 57.6px; /* Réduit de 64px */
    height: 57.6px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.35rem; /* Réduit */
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 3.6px 10.8px rgba(59, 130, 246, 0.3); /* Réduit */
}

.help-card h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.help-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); /* Réduit de 220px */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    font-weight: 700;
	text-align:center;
    color: var(--color-text-primary);
    font-size: var(--font-base);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border-light);
}

.footer-bottom-content {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.footer-bottom-content p {
    margin-bottom: var(--spacing-xs);
}

.footer-motto {
    font-weight: 600;
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .tutorial-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); /* Réduit de 300px */
    }

    .tools-materials-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); /* Réduit de 320px */
    }

    .glossary-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); /* Réduit de 300px */
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 2.7rem; /* Réduit de 3rem */
        --spacing-2xl: 1.8rem; /* Réduit de 2rem */
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .nav {
        order: -1;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-xs);
        min-width: max-content;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }

    .search-box {
        min-width: auto;
    }

    .hero h1 {
        font-size: var(--font-4xl); /* 2.025rem au lieu de 2.5rem */
    }

    .hero-subtitle {
        font-size: var(--font-base);
    }

    .section-title {
        font-size: var(--font-3xl); /* 1.71rem au lieu de 2rem */
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .glossary-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .tutorial-header {
        padding: var(--spacing-xl) var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .tutorial-page .tutorial-title {
        font-size: var(--font-2xl); /* 1.35rem au lieu de 1.5rem */
    }

    .content-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .content-section h2 {
        font-size: var(--font-xl); /* 1.17rem au lieu de 1.25rem */
    }

    .item-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-help {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .tutorial-progress {
        flex-direction: column;
        align-items: center;
    }

    .back-btn {
        margin: var(--spacing-md) 0;
    }

    .quiz-question-container {
        padding: var(--spacing-lg);
    }

    .quiz-question {
        font-size: var(--font-xl); /* 1.17rem au lieu de 1.25rem */
    }

    .hero-badges {
        gap: var(--spacing-sm);
    }

    .badge {
        font-size: var(--font-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero h1 {
        font-size: var(--font-3xl); /* 1.71rem au lieu de 2rem */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .glossary-search-input {
        font-size: var(--font-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .quiz-question-container {
        padding: var(--spacing-md);
    }

    .quiz-question {
        font-size: var(--font-lg); /* 1.035rem au lieu de 1.125rem */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .logo-text {
        font-size: var(--font-2xl); /* 1.35rem au lieu de 1.5rem */
    }

    .logo-icon {
        width: 37.8px; /* Réduit de 42px */
        height: 37.8px;
    }

    .logo-bolt {
        font-size: var(--font-lg); /* 1.035rem au lieu de 1.25rem */
    }
}

/* ========================================
   AMÉLIORATIONS ACCESSIBILITÉ
======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1.8px; /* Réduit de 2px */
}
/* Blog listing horizontal */
.blog-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-item {
    display: flex;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
}

.blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--color-shadow);
    border-color: #3b82f6;
}

.blog-item-image {
	right:3px;
    width: 200px;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-item-content {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.8rem;
}

.read-more {
    color: #3b82f6;
    font-weight: 600;
}

/* ========================================
   UTILITAIRES D'IMPRESSION
======================================== */

@media print {
    .header,
    .footer,
    .search-box,
    .admin-btn,
    .cta-buttons,
    .footer-actions {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        box-shadow: none !important;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

.night-mode-btn {
width: 36px;
height: 36px;
border: 1px solid var(--color-border-light);
background: var(--color-white);
color: var(--color-text-secondary);
border-radius: var(--radius-full);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition-normal);
box-shadow: var(--shadow-sm);
}

.night-mode-btn:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-md);
color: var(--color-primary);
}

body.night-mode {
  filter: invert(1) hue-rotate(180deg) contrast(1);
  background-color:white;
}

body.night-mode img,
body.night-mode video,
body.night-mode canvas,
body.night-mode svg:not(.keep-inverted),
body.night-mode .logo-icon,
body.night-mode .logo-bolt
body.night-mode .main-content {
  filter: invert(1) hue-rotate(180deg);
}


body.night-mode .footer {
  margin-top: 0 !important;
  border-top: 7px solid #ababff !important; /* bordure harmonisée */
}

body.night-mode .main-content {
  background: white !important;
}

/* Correction des espaces blancs en mode nuit */
body.night-mode .main-content {
  padding-top: 0 !important;
}

body.night-mode .section {
  margin-top: 0 !important;
}

body.night-mode .quiz-page {
	background-color:white !important; 
}








/* === AJOUT OBJECTIFS/PRÉREQUIS CÔTE À CÔTE === */
.objectives-prerequisites-container {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.objectives-prerequisites {
      display: flex;
      grid-template-columns: 1fr 1fr; /* Or adjust column sizes as needed */
    gap: var(--spacing-xl);
    
}

.objectives-prerequisites-container .content-section {
  flex: 1;
  margin-bottom: 0;
}


.titre-special {
  font-family: "MaPolice", sans-serif;
  font-size: 2rem;
}

.underlined {
  position: relative;
  display: inline-block; /* adapte la largeur au contenu */
}

.underlined::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;       /* ajustez l’espacement sous le texte */
  left: 50%;
  transform: translateX(-50%);
  width: 79%;            /* 40% de la largeur du texte */
  height: 2px;           /* épaisseur du tiret */
  background-color: #ff6b35; /* couleur du tiret */
  background-image: linear-gradient(to right, transparent 0%, /* début transparent */
                    #ff6b35 10%,              /* couleur à 10% */
                    #ff6b35 90%,              /* couleur jusqu’à 90% */
                    transparent 100%);        /* fin transparent */
}

.surligne {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.surligne::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;             /* Décalé légèrement sous le texte */
  width: 100%;
  height: 60%;
  background: rgba(255,220,60,0.7); /* couleur surligneur */
  border-radius: 14px 23px 19px 16px; /* arrondis irréguliers pour l'effet “coup” */
  z-index: -1;
  filter: blur(3px);        /* effet de flou/pinceau */
  opacity:0.8;
}

.only-mobile {
  display: none; /* Par défaut (PC) : masqué */
}

@media (max-width: 768px) {
  .only-mobile {
    display: block; /* Sur écrans ≤768px : affiché */
  }
}

/* Classe de l’élément à afficher uniquement sur PC */
.only-pc {
  display: block; /* Par défaut (PC) : affiché */
}

@media (max-width: 768px) {
  .only-pc {
    display: none !important; /* Sur écrans ≤768px (mobile) : masqué */
  }
}

@media (max-width: 768px) {
  /* 1. Le conteneur autour de recherche + toggle */
  .header .header-actions {
    position: relative;        /* Base pour l’absolu */
    display: flex;
    justify-content: center;   /* Centre la barre de recherche */
    align-items: center;
  }

  /* 2. Barre de recherche centrée */
  .search-box {
    width: 80%;                /* Ajuster selon besoin */
    max-width: 300px;
    min-width: 0;
  }

  /* 3. Bouton mode nuit collé à droite du conteneur */
  .night-mode-btn {
    position: absolute;        /* Hors du flux flex */
    right: 0;                  /* Bord droit du conteneur */
    top: 50%;
    transform: translateY(-50%);
  }
  
    .header .logo {
    margin: 0 auto;            /* Centre le logo */
  }

}

@media (max-width: 768px) {
  .nav {
    justify-content: flex-start !important;
  }
}


@media (max-width: 768px) {
  .night-mode-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    
    /* Supprime tout déplacement en active/focus */
  }
  .night-mode-btn:focus,
  .night-mode-btn:active {
    top: 50% !important;
    transform: translateY(-50%) !important;
    outline: none;      /* Évite l’outline qui décale */
    border: none;       /* Évite un border qui repousse */
  }
}









/* ========================================
NOUVEAU DESIGN MODERNE POUR LES STEPS
======================================== */

.steps-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-left: 6px solid #3b82f6;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number-modern {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
}

.step-number-modern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.step-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.step-content-modern {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-media {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.step-video {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.step-tips {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.step-tips::before {
    content: '💡';
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-size: 1.2rem;
}

.step-tips-content {
    margin-left: 2rem;
    color: #92400e;
    font-weight: 600;
    font-style: italic;
}

.step-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.step-warning::before {
    content: '⚠️';
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-size: 1.2rem;
}

.step-warning-content {
    margin-left: 2rem;
    color: #b91c1c;
    font-weight: 700;
}

/* ========================================
NOUVELLE CONCLUSION MODERNE ET DYNAMIQUE
======================================== */

.conclusion-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.conclusion-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%233b82f6;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%233b82f6;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="200" r="200" fill="url(%23a)"/><circle cx="800" cy="800" r="300" fill="url(%23a)"/></svg>');
    opacity: 0.7;
}

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

.conclusion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.conclusion-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.conclusion-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.conclusion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.conclusion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.conclusion-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.conclusion-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

.conclusion-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.conclusion-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.conclusion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.conclusion-stat {
    text-align: center;
    color: #cbd5e1;
}

.conclusion-stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #10b981;
    display: block;
}

.conclusion-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .step-modern {
        padding: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-number-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-title-modern {
        font-size: 1.1rem;
    }

    .conclusion-modern {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .conclusion-title {
        font-size: 1.5rem;
    }

    .conclusion-actions {
        flex-direction: column;
        align-items: center;
    }

    .conclusion-stats {
        gap: 1rem;
    }
}



/* ============================================
   AJOUTS CSS POUR TUTORIELS AVEC IMAGES
   À AJOUTER À LA FIN DE style.css
   NE PAS REMPLACER LE CSS EXISTANT!
   ============================================ */

/* ====== SCHÉMA DU TUTORIEL ====== */
.schema-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tutorial-schema-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tutorial-schema-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.tutorial-schema-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ====== IMAGES DANS LES ÉTAPES ====== */
.step-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    transition: box-shadow 0.3s ease;
}

.step-item:hover .step-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ====== ADMIN: UPLOAD D'IMAGES ====== */
.media-upload-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.media-upload-section.active {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.media-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-type-option input[type="radio"] {
    cursor: pointer;
}

.media-type-option label {
    cursor: pointer;
    font-weight: 500;
}

.upload-preview {
    margin-top: 1rem;
    text-align: center;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== MODE NUIT ====== */
body.night-mode .tutorial-schema-container {
    background: #1e293b;
}

body.night-mode .tutorial-schema-image,
body.night-mode .step-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.night-mode .schema-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-left-color: #38bdf8;
}

body.night-mode .media-upload-section {
    background: #1e293b;
    border-color: #475569;
}

body.night-mode .media-upload-section.active {
    border-color: #38bdf8;
    background: #1e3a5f;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .tutorial-schema-container {
        padding: 1rem;
    }

    .step-image {
        max-width: 100%;
    }

    .schema-section {
        padding: 1.5rem;
    }

    .media-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tutorial-schema-container {
        padding: 0.5rem;
    }

    .schema-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-schema-image,
.step-image {
    animation: fadeInImage 0.5s ease-out;
}

/* ====== ÉTATS DE CHARGEMENT ====== */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ====== ACCESSIBILITÉ ====== */
.tutorial-schema-image:focus,
.step-image:focus {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

/* ====== PRINT ====== */
@media print {
    .tutorial-schema-image,
    .step-image {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .schema-section {
        page-break-inside: avoid;
    }
}

/* ============================================
   PAPYELEC - CSS MODERNE POUR TUTORIELS
   À AJOUTER à la fin de style.css
   ============================================ */

/* ========== HERO TUTORIEL ========== */
.tutorial-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.tutorial-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.1);
}

.tutorial-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
}

.tutorial-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.tutorial-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.tutorial-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.tutorial-breadcrumb a:hover {
    opacity: 0.8;
}

.tutorial-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.tutorial-description {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tutorial-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.tutorial-level {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
}

.tutorial-level-débutant {
    background: #10b981;
}

.tutorial-level-intermédiaire {
    background: #f59e0b;
}

.tutorial-level-avancé {
    background: #ef4444;
}

/* ========== LAYOUT ========== */
.tutorial-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== SIDEBAR ========== */
.tutorial-sidebar {
    position: relative;
}

.tutorial-sidebar-sticky {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.tutorial-sidebar h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-nav {
    display: flex;
    flex-direction: column;
}

.tutorial-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.tutorial-nav a:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0ea5e9;
    transform: translateX(5px);
}

.tutorial-nav a i {
    width: 20px;
    text-align: center;
}

/* ========== SECTIONS ========== */
.tutorial-section {
    background: white;
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.tutorial-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.tutorial-section-header i {
    font-size: 1.5rem;
    color: #0ea5e9;
}

.tutorial-section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

/* ========== PRÉREQUIS ========== */
.tutorial-prerequisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.prerequisite-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    transition: all 0.3s;
}

.prerequisite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.prerequisite-card i {
    color: #0ea5e9;
    font-size: 1.2rem;
}

/* ========== OUTILS & MATÉRIAUX ========== */
.tutorial-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tutorial-item-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tutorial-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tutorial-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #0ea5e9;
}

.tutorial-item-card:hover::before {
    transform: scaleX(1);
}

.item-essential {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.item-essential::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.item-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.item-essential .item-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.tutorial-item-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.tutorial-item-card p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e0f2fe;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0369a1;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.amazon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.amazon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

/* ========== ÉTAPES ========== */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tutorial-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    position: relative;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, #0ea5e9 0%, #e2e8f0 100%);
}

.tutorial-step:last-child::before {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
}

.step-content {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
}

.step-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #1e293b;
}

.step-image-wrapper {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.step-image:hover {
    transform: scale(1.02);
}

.step-text {
    color: #334155;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 1rem 0;
}

.step-tips {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    color: #92400e;
}

.step-tips i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.step-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    color: #991b1b;
}

.step-warning i {
    color: #ef4444;
    margin-right: 0.5rem;
}

/* ========== SÉCURITÉ ========== */
.tutorial-safety-section {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.tutorial-safety-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.safety-intro {
    font-size: 1.1rem;
    color: #991b1b;
    margin-bottom: 1rem;
}

.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fef2f2;
    border-radius: 8px;
    color: #7f1d1d;
}

.safety-list li i {
    color: #ef4444;
    margin-top: 0.25rem;
}

/* ========== CONCLUSION ========== */
.tutorial-conclusion {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
}

.conclusion-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.conclusion-box p {
    color: #064e3b;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* ========== NAVIGATION ========== */
.tutorial-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .tutorial-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tutorial-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .tutorial-hero {
        min-height: 300px;
        margin: -1rem -1rem 2rem -1rem;
    }

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

    .tutorial-meta {
        gap: 1rem;
    }

    .tutorial-items-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-step {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .tutorial-step::before {
        left: 24px;
    }
}

@media (max-width: 480px) {
    .tutorial-hero-content {
        padding: 2rem 1rem;
    }

    .tutorial-title {
        font-size: 1.5rem;
    }

    .tutorial-description {
        font-size: 1rem;
    }

    .tutorial-content-wrapper {
        padding: 0 1rem;
    }

    .tutorial-section {
        padding: 1.5rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-section {
    animation: fadeInUp 0.5s ease-out;
}

/* ========== MODE NUIT ========== 
body.night-mode .tutorial-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}
*/


body.night-mode .tutorial-sidebar-sticky,
body.night-mode .tutorial-section,
body.night-mode .step-content,
body.night-mode .tutorial-item-card,
body.night-mode .tutorial-safety-box,
body.night-mode .conclusion-box {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .tutorial-section-header h2,
body.night-mode .tutorial-item-card h4,
body.night-mode .step-title {
    color: #f1f5f9;
}

body.night-mode .tutorial-nav a {
    color: #94a3b8;
}

body.night-mode .tutorial-nav a:hover {
    background: #334155;
    color: #38bdf8;
}

/* Section Schéma */
.tutorial-schema-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tutorial-schema-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.tutorial-schema-frame {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.tutorial-schema-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tutorial-schema-img:hover {
    transform: scale(1.02);
}


/* ========== SCHÉMA DU TUTORIEL RESPONSIVE ========== */
.tutorial-schema-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.tutorial-schema-img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 400px;        /* plafonne la hauteur */
  object-fit: contain;
  transition: transform 0.3s ease;
}
.tutorial-schema-img:hover {
  transform: scale(1.05);
}

/* ========== IMAGES D’ÉTAPES PLUS PETITES ET CENTRÉES ========== */
.step-image-wrapper {
  max-width: 300px;         /* largeur fixe */
  margin: 1.5rem auto;      /* centré horizontalement */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.step-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.step-image:hover {
  transform: scale(1.05);
}

/* ========== ADAPTATION MOBILE ========== */
@media (max-width: 768px) {
  .tutorial-schema-img {
    max-height: 250px;
  }
  .step-image-wrapper {
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* ========== OPTION : MODE GALERIE LÉGER ========== */
.tutorial-schema-frame:hover .tutorial-schema-img,
.step-image-wrapper:hover .step-image {
  cursor: zoom-in;
  filter: brightness(1.05);
}

/* ========== LÉGENDES & LIGNES DIRECTRICES ========== */
.tutorial-schema-section h2,
.tutorial-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}







/* ============================================
   PAPYELEC SQUARE - DESIGN MODERNE CARRÉ
   ============================================ */

body.papyelec-square {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f7fa;
  color: #0f172a;
}

.papyelec-square .tutorial-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ========== HEADER SIMPLE ========== */
.papyelec-square .tutorial-header {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.papyelec-square .tutorial-breadcrumb {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.papyelec-square .tutorial-breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

.papyelec-square .tutorial-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.7rem 0;
  letter-spacing: -0.02em;
}

.papyelec-square .tutorial-description {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.papyelec-square .tutorial-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.papyelec-square .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.papyelec-square .meta-level {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

/* ========== LAYOUT ========== */
.papyelec-square .tutorial-content-wrapper {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ========== SIDEBAR ========== */
.papyelec-square .tutorial-sidebar {
  position: sticky;
  top: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 1rem;
}

.papyelec-square .sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.papyelec-square .tutorial-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.papyelec-square .tutorial-nav a {
  padding: 0.5rem 0.7rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.papyelec-square .tutorial-nav a:hover {
  color: #3b82f6;
  background: #f8fafc;
  border-left-color: #3b82f6;
}

/* ========== SECTIONS ========== */
.papyelec-square .tutorial-section {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.papyelec-square .section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem 0;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #f1f5f9;
}

/* ========== PRÉREQUIS ========== */
.papyelec-square .prerequisites-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.papyelec-square .prerequisite-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f0f9ff;
  color: #0c4a6e;
  font-size: 0.9rem;
  border: 1px solid #bae6fd;
}

/* ========== RESSOURCES GRID ========== */
.papyelec-square .resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.papyelec-square .resource-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.papyelec-square .resource-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.papyelec-square .resource-item {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  position: relative;
}

.papyelec-square .resource-essential {
  background: #fffbeb;
  border-color: #fde68a;
}

.papyelec-square .essential-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #f59e0b;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.papyelec-square .resource-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.papyelec-square .resource-quantity {
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.papyelec-square .resource-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.papyelec-square .amazon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #ff9900;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.15s;
}

.papyelec-square .amazon-link:hover {
  background: #e88900;
}

/* ========== SCHÉMA ========== */
.papyelec-square .schema-container {
  text-align: center;
  background: #ffffff;
  padding: 1.5rem;
 /* border: 1px solid #e2e8f0; */
}

.papyelec-square .schema-image {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
}

/* ========== ÉTAPES ========== */
/* ========== ÉTAPES AMÉLIORÉES ========== */
.papyelec-square .steps-container {
  display: grid;
  gap: 1.5rem;
}

.papyelec-square .step-item {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.papyelec-square .step-number {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.papyelec-square .step-body {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1.5rem;
}

.papyelec-square .step-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.papyelec-square .step-title::before {
  content: '▸';
  color: #3b82f6;
  font-size: 1.3rem;
}

.papyelec-square .step-image {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.papyelec-square .step-text {
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;  /* Changé de 400 à 500 pour plus de gras */
  color: #1e293b;
  line-height: 1.8;
  letter-spacing: 0.01em;
}


/* Amélioration de la lisibilité du texte */
.papyelec-square .step-text p {
  margin: 0 0 0.8rem 0;
}

.papyelec-square .step-text strong {
  font-weight: 700;
  color: #0f172a;
}

.papyelec-square .step-text em {
  font-style: italic;
  color: #475569;
}

/* Listes dans les étapes */
.papyelec-square .step-text ul,
.papyelec-square .step-text ol {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
}

.papyelec-square .step-text li {
  margin: 0.4rem 0;
  line-height: 1.7;
}

.papyelec-square .step-tip {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #78350f;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.papyelec-square .step-tip i {
  color: #f59e0b;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.papyelec-square .step-warning {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7f1d1d;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.papyelec-square .step-warning i {
  color: #ef4444;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Effet hover sur les étapes */
.papyelec-square .step-item:hover .step-body {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Numérotation en cascade */
.papyelec-square .step-item:nth-child(1) .step-number { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.papyelec-square .step-item:nth-child(2) .step-number { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.papyelec-square .step-item:nth-child(3) .step-number { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
.papyelec-square .step-item:nth-child(4) .step-number { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.papyelec-square .step-item:nth-child(n+5) .step-number { background: linear-gradient(135deg, #1e3a8a, #1e293b); }


/* ========== SÉCURITÉ ========== */
.papyelec-square .section-safety {
  background: #fef2f2;
  border-color: #fecaca;
}

.papyelec-square .safety-items {
  display: grid;
  gap: 0.6rem;
}

.papyelec-square .safety-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: white;
  border-left: 3px solid #ef4444;
  font-size: 0.9rem;
  color: #7f1d1d;
}

.papyelec-square .safety-item i {
  color: #ef4444;
}

/* ========== CONCLUSION ========== */
.papyelec-square .section-conclusion {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* ========== NAVIGATION ========== */
.papyelec-square .tutorial-navigation {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.papyelec-square .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #64748b;
  color: white;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.papyelec-square .btn-back:hover {
  background: #475569;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .papyelec-square .tutorial-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .papyelec-square .tutorial-sidebar {
    position: relative;
    top: 0;
  }
  
  .papyelec-square .resources-grid {
    grid-template-columns: 1fr;
  }
}
