/* ==========================================
   1. RÉINITIALISATION & VARIABLES GLOBALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    
}

:root {
    --bg-color: #0c0c0e;
    --bg-card: #16161a;
    --primary-color: #00e6ff; /* Bleu électrique / néon initial */
    --text-color: #ffffff;
    --text-muted: #a0a0a5;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ==========================================
   2. BARRE DE NAVIGATION (NAVBAR)
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%; 
    background-color: rgba(12, 12, 14, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

/* --- LOGO 3D ISOMÉTRIQUE AJUSTÉ --- */
.logo-3d-container {
    text-decoration: none;
    display: inline-block;
    perspective: 1000px;
    cursor: pointer;
}

.text-3d {
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    transform: skew(60deg, 330deg) rotateX(45deg); 
}

.row-3d {
    display: flex;
    transform-style: preserve-3d;
}

.row-3d:last-child {
    margin-top: -10px; 
}

.letter {
    width: fit-content;
    height: fit-content;
    transform-style: preserve-3d;
    padding: 0 3px; 
    color: #8a8a93; 
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.letter span {
    display: block;
    font-family: 'Poppins', 'Franklin Gothic Medium', sans-serif;
    font-size: 32px; 
    font-weight: 200; 
    text-transform: uppercase;
    text-shadow: 
        -1px 1px 0px #020302, -2px 2px 0px #020302, -3px 3px 0px #020302, 
        -4px 4px 0px #020302, -5px 5px 0px #020302, -6px 6px 0px #020302, 
        -7px 7px 0px #020302, -8px 8px 1px #020302;
    transition: text-shadow 0.3s ease;
}

/* Survol harmonisé en rouge */
.letter:hover {
    color: #ff2a2a; 
}

.letter:hover span {
    text-shadow: 
        -1px 1px 0px #800000, 
        -2px 2px 0px #800000, 
        -3px 3px 0px #800000, 
        -4px 4px 0px #800000, 
        -5px 5px 0px #660000, 
        -6px 6px 0px #660000, 
        -7px 7px 0px #4d0000, 
        -8px 8px 10px rgba(255, 42, 42, 0.3);
}

/* --- LIENS DU MENU --- */
nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

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

.btn-nav {
    background: var(--primary-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

nav a.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}
/* ==========================================
   LAYOUT PERSONNAGES & CERCLE INTERACTIF
========================================== */

/* Conteneur principal qui aligne la gauche, le cercle et la droite */
.main-links-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  padding: 0 20px;
}

/* Personnages latéraux (Solfège / Gammes) */
.side-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 2;
}

.side-char:hover {
  transform: scale(1.08);
}

.side-img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

/* Conteneur du cercle (Centre) */
.circle-container {
  position: relative;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Liens des personnages disposés en cercle */
.char-link {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  /* Placement trigonométrique via la variable --angle */
  transform: rotate(var(--angle)) translate(180px) rotate(calc(-1 * var(--angle)));
  transition: transform 0.3s ease;
}

.char-link:hover {
  transform: rotate(var(--angle)) translate(180px) rotate(calc(-1 * var(--angle))) scale(1.15);
}

.char-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

/* Étiquettes sous les personnages */
.char-label {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #00e6ff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
}

/* Adaptabilité Mobile / Écrans réduits */
@media (max-width: 900px) {
  .main-links-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .circle-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .char-link {
    position: relative;
    transform: none !important;
  }
}

/* ==========================================
   EFFET LUMIÈRE / PROJECTEUR AU SURVOL (HOVER)
========================================== */
/* ==========================================
   EFFET PROJECTEUR + OPACITÉ
========================================== */

/* 1. État par défaut : légèrement assombri / semi-transparent */
.char-img, .side-img {
  opacity: 0.55; /* Légèrement effacé dans l'ombre */
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.char-label {
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* 2. État au survol (HOVER) : Entrée en pleine lumière */
.char-link:hover .char-img,
.side-char:hover .side-img {
  opacity: 1; /* Pleine visibilité */
  filter: drop-shadow(0 0 12px #00e6ff) 
          drop-shadow(0 0 25px rgba(0, 230, 255, 0.8)) 
          brightness(1.25);
  transform: scale(1.18);
}

.char-link:hover .char-label,
.side-char:hover .char-label {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 8px #00e6ff, 0 0 15px #00e6ff;
}
/* ==========================================
   EFFET PROJECTEUR / LUMIÈRE (SANS CASSER LE CERCLE)
========================================== */

/* Animation fluide sur les images uniquement */
.char-img, .side-img {
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

/* Entrée dans la lumière au survol (Projecteur Néon) */
.char-link:hover .char-img,
.side-char:hover .side-img {
  filter: drop-shadow(0 0 12px #00e6ff) 
          drop-shadow(0 0 25px rgba(0, 230, 255, 0.8)) 
          brightness(1.2);
  transform: scale(1.18);
}

/* Éclairage de l'étiquette au survol */
.char-link:hover .char-label,
.side-char:hover .char-label {
  color: #ffffff;
  text-shadow: 0 0 8px #00e6ff, 0 0 15px #00e6ff;
}
/* personnages */

  @media (max-width: 768px) {
  .main-links-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .circle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    transform: none !important;
  }
  
  .char-link {
    position: relative !important;
    transform: none !important;
  }
}
/* ==========================================
   3. PAGES ACCUEIL & EN-TÊTES (HERO)
   ========================================== */
   section p, section h1{
    letter-spacing: 2px !important; /* <--- Applique vos 1.5px d'espacement pour que tout respire */
    line-height: 1; /* Donne un peu d'air entre les lignes si le texte passe sur 2 lignes */
    margin: 10px;
   }
   .section-controle{
    max-width: 1050px !important;
    margin-top: -50px;
    margin-left: 263px;
   }
   
.hero {
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('../Images/tuto.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 0 20px;
    overflow: hidden;
    
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.6) 100%),
                linear-gradient(to top, var(--bg-color) 5%, transparent 40%);
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: #f0f0f5;
    max-width: 650px;
    margin: 0 auto 35px auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.4);
}

.tutos-hero {
    background: linear-gradient(rgba(12, 12, 14, 0.8), #0c0c0e), 
                radial-gradient(circle at bottom, rgba(0, 230, 255, 0.1), transparent);
    padding: 60px 8% 20px 8%;
    text-align: center;
    border-bottom: 1px solid #16161a;
}

.tutos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.tutos-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================
   4. BARRE DE RECHERCHE & FILTRES HORIZONTALE
   ========================================== */
.search-filter-container {
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 40px 8% 20px 8%;
}

.filter-form {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.filter-group.search-box {
    flex: 2; 
    min-width: 250px;
    position: relative;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.input-field, .select-field {
    background-color: var(--bg-color);
    border: 1px solid #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.input-field:focus, .select-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 230, 255, 0.2);
}

.btn-search {
    position: absolute;
    right: 5px;
    bottom: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s;
}

.btn-search:hover {
    color: var(--primary-color);
}

.btn-filter-submit {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 11px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 47px; 
}

.btn-filter-submit:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.3);
}

/* ==========================================
   5. SECTIONS DE CONTENU, GRILLES & CARTES
   ========================================== */
.section-container {
    padding: 60px 8% 80px 8%;
}

.section-container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}
/* Alignement propre du texte dans les cartes de tuto */
.tuto-card-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: left; /* Annule le text-align: center hérité de .section-container p */
    flex-grow: 1;
}

.bg-dark-alt {
    background-color: #121214;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
/* --- Cartes Boutique --- */
/* --- Cartes Générales --- */
.card {
    background-color: var(--bg-card);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid #222; /* Bordure sombre discrète pour être identique aux cartes du haut */
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
    /* Disposition Flexbox centrée */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centre le contenu horizontalement */
    text-align: center;     /* Centre le texte */
    
    /* Ajout d'ombres internes (inset) pour marquer les plis */
    box-shadow: 
        inset 2px 2px 8px rgba(255, 255, 255, 0.07),
        inset -3px -3px 10px rgba(0, 0, 0, 0.4),
        0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    width: 100%; /* S'adapte parfaitement à la grille responsive sans dépasser */
}

/* 2. Permettre au texte de prendre tout l'espace disponible */
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Marge de sécurité sous le paragraphe */
    flex-grow: 1;        /* Pousse le bouton vers le bas */
}

/* 3. Ajuster le bouton pour qu'il reste calé en bas */
.card .btn, 
.card button, 
.card a.btn {
    margin-top: auto;   /* Sécurité supplémentaire d'ancrage en bas */
}
/* Survol de la carte : élévation + lueur */
.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 
                0 0 15px rgba(212, 175, 55, 0.25); /* Lueur dorée/lumineuse */
}

/* Animation et style de l'icône */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) translateY(-3px); /* L'icône grossit et remonte légèrement */
    color: var(--primary-color);
}

/* Titre */
.card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--primary-color);
}


/* --- Grille Compacte (Tutos & Portfolio) --- */
.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
}
/* ==========================================
   PAGE LECTURE CINÉMA
   ========================================== */

/* Conteneur principal (les rideaux s'alignent sur cette boîte) */
.cinema-container {
    max-width: 1300px;
    margin: 50px auto;
    padding: 30px 40px; /* 30px en haut/bas, 40px sur les côtés */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    
}

/* Rideaux qui couvrent toute la hauteur (+30px en haut et en bas grâce au padding) */
.cinema-container::before,
.cinema-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    background: repeating-linear-gradient(
        90deg,
        #450a0a 0px,
        #991b1b 5px,
        #dc2626 7px,
        #991b1b 10px,
        #450a0a 15px
    );
}

.cinema-container::before {
    left: 0;
}

.cinema-container::after {
    right: 0;
}

/* L'encart rouge d'alerte (ou ton écran de test) */
.alert { 
    background: #ef4444; 
    color: white; 
    padding: 60px 20px; /* On augmente le padding haut/bas (60px au lieu de 20px) */
    height: 420px;  /* On lui fixe une hauteur minimale */
    border-radius: 8px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
}

/* Le fond bleu sombre autour */
/* Le fond bleu sombre (l'écran de cinéma) */
.container-cine { 
   width: 1200px; 
    margin: 20px auto; 
    background: #0f172a; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    position: relative;
    z-index: 1;
}
/* Style du titre cinéma */
.titre-cinema {
    position: absolute;
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-left: 40%;
    margin-bottom: 20px; /* Espace propre entre le titre et le haut de la vidéo */
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Le conteneur vidéo : il prend TOUTE la largeur et une belle hauteur */
.video-responsive {
    width: 100%;
    height: 600px; /* Force une grande hauteur d'écran */
    max-height: 70vh; /* S'adapte si l'écran de l'ordinateur est plus petit */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* L'iframe remplit à 100% le bloc */
.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Alertes & Expiration */
.expired-card {
    max-width: 800px; 
    width: 100%;
    margin: 0 auto;
}

.alert { 
    background: #ef4444; 
    color: white; 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
}

.btn { 
    display: inline-block; 
    background: #0284c7; 
    color: white; 
    padding: 12px 24px; 
    text-decoration: none; 
    border-radius: 6px; 
    margin-top: 15px; 
}
   /* ==========================================
   CONSTRUCTEUR DE GRANDE LARGEUR POUR LA BOUTIQUE
   ========================================== */

/* Libère le conteneur global pour qu'il prenne toute la largeur de l'écran */
.boutique-container {
    width: 100% !important;
    max-width: 1300px !important; /* <--- Donne l'espace nécessaire pour vos cartes */
    margin: 0 auto !important; /* Centre tout le bloc au milieu du site */
    padding: 40px 8% 80px 8%; /* Aligné sur vos marges d'origine */
    box-sizing: border-box;
    border: 2px solid #fff;
}

.tuto-card {
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
   
                background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid #222; /* Bordure sombre discrète pour être identique aux cartes du haut */


 /* Ajout d'ombres internes (inset) pour marquer les plis */
    box-shadow: 
        inset 2px 2px 8px rgba(255, 255, 255, 0.07),
        inset -3px -3px 10px rgba(0, 0, 0, 0.4),
        0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    width: 100%; /* S'adapte parfaitement à la grille responsive sans dépasser */

}

.tuto-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px -10px rgba(0, 230, 255, 0.3); /* <-- SÉCURISÉ ET FERMÉ PROPREMENT */
}
/* FIX SAFARI : Alignement et hauteur des filtres */
/* FIX ALIGNEMENT SAFARI & BRAVE */
.filter-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important; /* Caler le champ et le bouton sur la même ligne de bas */
    gap: 20px !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
}

.input-field, 
.select-field {
    height: 47px !important; /* Mème hauteur que .btn-filter-submit */
    box-sizing: border-box !important; /* Inclusion des paddings dans la hauteur/largeur */
    padding: 0 16px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Ajustement spécifique du padding-right pour la flèche Safari */
.select-field {
    padding-right: 35px !important; /* Évite que le texte chevauche la flèche */
}


/* ===============================================
 Lecteurs YouTube et présentation photo dans les cartes Tutoriels
 =============================================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Contenu des cartes --- */
.tuto-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tuto-card-content h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #ffffff;
    
}

.tuto-card-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Ligne de séparation haute au-dessus des badges */
.tuto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #222; /* Corrigé : border-top au lieu de border-bottom */
}

/* Lien "Aller au tuto" dans les cartes */
.tuto-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.tuto-meta a:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 230, 255, 0.4);
}

.difficulty-level {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.diff-easy { 
    background-color: rgba(46, 204, 113, 0.15); 
    color: #2ecc71; 
}   
.diff-medium { 
    background-color: rgba(241, 196, 15, 0.15); 
    color: #f1c40f; 
} 
.diff-hard { 
    background-color: rgba(231, 77, 60, 0.273); 
    color: #e74c3c; 
}    

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.badge-new { 
    background-color: #00e6ff; 
    color: #000; 
}
.badge-hot { 
    background-color: #ff3366; 
    color: #fff; 
}
.badge-promo { 
    background-color: #ffcc00; 
    color: #000; 
}
/* Badge de prix épuré */
.badge-prix {
    display: inline-block;
    background-color: #5f6aff; 
    color: #ffffff;
    border-radius: 6px; 
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(95, 106, 255, 0.3);
}


/* ==========================================
   6. PORTFOLIO DE RÉALISATIONS (STYLE CINÉMA)
   ========================================== */
/* ==========================================
   FIX D'ALIGNEMENT POUR LA PAGE PRÉSENTATION
   ========================================== */
.tuto-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important; /* Largeur idéale des affiches */
    gap: 30px !important;
    width: 100%;
    max-width: 1100px; /* Aligne les cartes sur la même largeur que votre texte À Propos */
    margin: 40px auto 0 auto !important; /* Centre parfaitement le bloc au milieu de la page */
}

.tuto-grid-compact > a.cinema-card {
    display: flex !important;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #222;
    background-color: var(--bg-card);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}


/* Hauteur fixe de 320px pour vos affiches, parfaitement alignées */
.portfolio-img-box {
    position: relative;
    width: 100%;
    height: 320px; 
    overflow: hidden;
}
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Permet à l'image de remplir le cadre de 200px sans être déformée */
}


/* L'overlay avec un dégradé sombre élégant */
/* L'overlay avec un rembourrage (padding) ajusté */
.portfolio-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 15%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding: 35px 25px; /* <--- Augmenté à 35px en bas pour décoller le texte du bord */
    box-sizing: border-box;
    opacity: 0.9; 
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}



.portfolio-text-overlay {
    text-align: center;
    width: 100%;
    transform: translateY(10px); 
    transition: transform 0.4s ease;
}

.portfolio-text-overlay h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px !important; /* <--- Applique vos 1.5px d'espacement pour que tout respire */
    line-height: 1; /* Donne un peu d'air entre les lignes si le texte passe sur 2 lignes */
}

/* Cible le paragraphe pour l'éloigner du bouton */
.portfolio-text-overlay p {
    font-size: 0.85rem;
    color: #ccfffc; 
    margin-bottom: 25px !important; /* <--- Augmenté pour créer de l'espace avant le bouton */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 1.5px !important; /* <--- Applique vos 1.5px d'espacement pour que tout respire */
    line-height: 1.5; /* Donne un peu d'air entre les lignes si le texte passe sur 2 lignes */
}

.portfolio-hover-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0; 
    transition: all 0.3s ease;
}

/* --- HOVER SUR LES CARTES LIÉES À LA GRILLE --- */
.tuto-grid-compact > a.tuto-card:hover {
    transform: translateY(-5px);
    border-color: #ffcc00 !important; /* Lueur dorée cinéma */
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.15) !important;
}

.tuto-grid-compact > a.tuto-card:hover .portfolio-img {
    transform: scale(1.05); 
}

.tuto-grid-compact > a.tuto-card:hover .portfolio-text-overlay {
    transform: translateY(0);
}

.tuto-grid-compact > a.tuto-card:hover .portfolio-hover-btn {
    opacity: 1;
}

.portfolio-hover-btn:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.6);
}

/* ==========================================
   7. PAGE PRÉSENTATION TEXTE (EDITORIAL CORRIGÉ)
   ========================================== */
.representation-solo {
    width: 100%;
    max-width: 850px; /* Brise l'étirement et fixe une largeur idéale */
    margin: 40px auto !important; /* Force le centrage parfait horizontal */
    padding: 0 20px;
    box-sizing: border-box;
}

.about-story {
    width: 100%; /* Votre excellente intuition : on définit la largeur */
    margin-bottom: 40px;
    text-align: left; /* Garde le texte aligné à gauche pour la lecture */
}

.about-story h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #fff;
    text-align: center; /* Seul le grand titre principal est centré */
}

.about-story h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    margin-top: 40px;
}

.about-story p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.3rem !important;
    color: #fff !important;
    font-weight: 300;
    line-height: 1.6;
}

/* Grand visuel de coupure lui aussi parfaitement centré */
.large-about-image {
    width: 100%;
    height: 450px;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
}

.large-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   BANNIÈRE DEs PAGES (HAUTEUR 250PX)
   ========================================== */
.contact-banner {
    height: 250px; /* Hauteur exacte demandée */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('../Images/tutomusical.jpg'); /* Reprend votre superbe image d'accueil */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

/* Filtre pour assombrir la photo derrière le titre de contact */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--bg-color));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.05rem;
    color: var(--primary-color); /* Texte en bleu électrique/néon */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-weight: 300;
}

/* Ajustement pour que le contenu des cartes de la boutique soit compact */
.tuto-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Force le bloc prix et bouton à s'aimanter proprement tout en bas de la carte */
.tuto-card-content .tuto-meta {
    margin-top: auto !important; 
    width: 100%;
}

.demo-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 15px 0;
    line-height: 1.4;
}

/* Style pour votre bouton Accéder au logiciel */
.btn-telecharger {
    margin-top: 5px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    width: 100%;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-telecharger:hover {
    background-color: var(--primary-color); /* Devient bleu électrique au survol */
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.4);
}

/* ==========================================
   STYLE DE LA PAGE CONNEXION / ESPACE MEMBRE
   ========================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.login-box {
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px; /* Boîte de connexion compacte et centrée */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.login-box h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
    text-align: left;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: left !important;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.login-label {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #fff;
    text-decoration: underline;
}

/* Bouton principal de connexion style blanc/néon */
.btn-login {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
    background-color: var(--primary-color); /* Devient bleu électrique au survol */
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.5);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #222;
    padding-top: 20px;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.signup-link:hover {
    text-decoration: underline;
    color: #fff;
}
/* Zone de confirmation de suppression */
.delete-confirmation-box {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-label {
    font-size: 0.95rem;
    color: var(--text-muted, #ccc);
}

.delete-label strong {
    color: #ff3366;
}

.delete-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: var(--bg-card, #1e1e24);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.delete-input:focus {
    border-color: #ff3366;
}

/* État désactivé du bouton */
.btn-delete-disabled {
    background-color: #44222b !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

/* État actif du bouton */
.btn-delete-active {
    background-color: #ff3366 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    opacity: 1;
}
/* Page 404 */
/* ==========================================
   STYLE DE LA PAGE D'ERREUR 404 (FAUSSE NOTE)
   ========================================== */
.error-404-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.error-404-box {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse-error 2s infinite ease-in-out;
}

.error-404-box h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.error-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.error-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.btn-secondary-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================
   BANDEAU COOKIES CONFORME RGPD / CNIL
   ========================================== */
.cookie-banner-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Caché par défaut en bas */
    width: 90%;
    max-width: 600px;
    background-color: rgba(22, 22, 26, 0.98);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Classe injectée par JavaScript pour faire surgir le bandeau */
.cookie-banner-box.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Boutons d'action */
.cookie-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background-color: #ffffff;
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 230, 255, 0.4);
}

.btn-cookie-refuse {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #333;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cookie-refuse:hover {
    color: #fff;
    border-color: #ff3366;
}
/* Style du bouton rouge néon pour annuler la commande */
.btn-annuler-commande {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-annuler-commande:hover {
    background-color: rgba(255, 51, 102, 0.05);
    color: #ffffff;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}


/* Pied de page */
footer {
    text-align: center;
    padding: 40px;
    background-color: var(--bg-color);
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.9rem;
}
/* Style des liens légaux du footer */
.legal-links a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(0, 230, 255, 0.4);
}

/* ==========================================
   GRILLE DE TARIFS / ABONNEMENTS
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(0, 230, 255, 0.25);
}

/* Carte mise en avant (ex: Premium) */
.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 230, 255, 0.15);
    transform: translateY(-10px) scale(1.03);
}

.pricing-card.featured:hover {
    transform: translateY(-16px) scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: 30px;
    right: -34px;
    background: var(--primary-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 20px;
    color: var(--text-muted);
}

.pricing-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    color: #e0e0e5;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid #1f1f24;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.pricing-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-btn {
    display: block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.4);
}

.pricing-card.featured .pricing-btn {
    background: var(--primary-color);
    color: #000;
}

.pricing-card.featured .pricing-btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.4);
}

/* Image d'illustration en haut de carte */
.pricing-image {
    width: calc(100% + 50px);
    margin: -22px -25px 15px -25px;
    height: 320px;
    overflow: hidden;
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

/*=======================================================
.X pages des application
======================================================= */
 /* CSS interne dédié pour l'effet App Store Néon sans casser votre style.css */
        .app-launchpad {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            width: 100%;
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 5%;
            box-sizing: border-box;
            background: var(--bg-card); /* Utilise votre couleur de fond de carte */
            /* On injecte votre magnifique dégradé léger en fond */
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);

        }
        
        .app-module {
            background: #111113;
            border: 1px solid #222;
            border-radius: 20px;
            padding: 30px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid #222; /* Bordure sombre discrète pour être identique aux cartes du haut */


 /* Ajout d'ombres internes (inset) pour marquer les plis */
    box-shadow: 
        inset 2px 2px 8px rgba(255, 255, 255, 0.07),
        inset -3px -3px 10px rgba(0, 0, 0, 0.4),
        0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    width: 100%; /* S'adapte parfaitement à la grille responsive sans dépasser */

        }
        
        .app-module:hover {
            border-color: var(--primary-color);
            box-shadow: 0 0 25px rgba(0, 230, 255, 0.25);
            transform: translateY(-5px);
        }
        
        /* Effet de lueur néon en arrière-plan de chaque app */
        .app-module::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 230, 255, 0.03) 0%, transparent 70%);
            pointer-events: none;
        }

        .app-header-box {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .app-icon-neon {
            width: 70px;
            height: 70px;
            background: #000;
            border: 2px solid #333;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
            transition: border-color 0.3s;
        }

        .app-module:hover .app-icon-neon {
            border-color: var(--primary-color);
            text-shadow: 0 0 10px var(--primary-color);
        }

        .app-title-block h3 {
            color: #fff;
            font-size: 1.3rem;
            margin: 0 0 4px 0;
        }

        .app-category-tag {
            font-size: 0.75rem;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .app-desc-text {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 25px;
            flex-grow: 1;
        }

        /* Double boutons Store horizontaux épurés */
        .app-stores-flex {
            display: flex;
            gap: 12px;
            border-top: 1px solid #222;
            padding-top: 20px;
            margin-top: auto;
        }

        .btn-store-download {
            flex: 1;
            text-align: center;
            text-decoration: none;
            padding: 10px 5px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.3s;
        }

        .btn-apple {
            background: #222;
            color: #fff;
            border: 1px solid #333;
        }

        .btn-apple:hover {
            background: #fff;
            color: #000;
            border-color: #fff;
        }

        .btn-android {
            background: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
        }

        .btn-android:hover {
            background: var(--primary-color);
            color: #000;
            box-shadow: 0 0 15px rgba(0, 230, 255, 0.4);
        }


        /* Rend le bloc d'ancres de gauche "collant" au scroll */
.ancre{
    position: sticky; top: 10px; z-index: 100;
}
/* Décale le point d'arrêt des ancres sous le menu flottant */
[id] {
    scroll-margin-top: 180px;
}
        #ancre{
            position: absolute;
            width: 200px;
            height: auto;
            margin: 20px;
        }
        /* Style d'alignement parfait pour la colonne d'ancres */
    .btn-ancre {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Aligne le texte et l'icône à gauche */
            gap: 10px;                   /* Espace fixe entre l'émoji et le texte */
            width: 100%;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid #222;
            border-radius: 6px;
            color: #fff;
            text-decoration: none;
            font-size: 0.85rem;
            box-sizing: border-box;
            transition: background 0.2s, border-color 0.2s;
        }

    .btn-ancre:hover {
            background: rgba(0, 230, 255, 0.1);
            border-color: var(--primary-color);
            color: var(--primary-color);
}
/* ==========================================
   BOUTONS HERO (ÉVITE LA SUPERPOSITION)
   ========================================== */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.hero-buttons .btn-primary {
    width: 280px;
    max-width: 100%;
    text-align: center;
}

/* ==========================================
   MENU HAMBURGER (RESPONSIVE)
   ========================================== */

/* Bouton hamburger caché par défaut (desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background-color: var(--primary-color);
}

/* Animation en croix quand le menu est ouvert */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================
   MEDIA QUERY : MOBILE / TABLETTE
   ========================================== */
@media (max-width: 768px) {

    .hamburger-btn {
        display: flex;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(12, 12, 14, 0.98);
        border-left: 1px solid #222;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 100px 30px;
        box-sizing: border-box;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 150;
    }

    nav#main-nav.nav-open {
        right: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }

    nav#main-nav a {
        margin-left: 0;
        font-size: 1.1rem;
        width: 100%;
    }

    nav#main-nav a.btn-nav {
        text-align: center;
        margin-top: 10px;
    }
}