/* ==========================================================================
   Variables globales
   ========================================================================== */
:root {
    /* Couleurs */
    --gradient-primary: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    --gradient-secondary: linear-gradient(180deg, #ffff00 0%, #00ff00 100%);
    --color-white: #fff;
    --color-text: #333;
    --color-text-light: #666;
    --color-error: #ff4444;
    
    /* Transitions */
    --transition-default: all 0.3s ease;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.25);
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
}

/* ==========================================================================
   Reset et styles de base
   ========================================================================== */
.corps {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container.my-4 {
    flex: 1;
    padding: 0 15px;
}

/* ==========================================================================
   Header et Navigation
   ========================================================================== */
.navbar {
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}



.nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: var(--transition-default);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-error);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-error);
    }

    .nav-links ul {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-links ul.active {
        left: 0;
    }

    .nav-links ul li {
        margin: 16px 0;
    }

    .card iframe,
    .card img {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .card-body {
        padding: 15px;
    }

    .card-text {
        font-size: 14px;
    }
}

/* Style pour le contenu principal */

.container.my-4 {
    flex: 1;
    padding: 0 15px; /* Ajouter un padding horizontal */
}
    
.card .col-md-4 {
    height: auto;
    max-height: 300px;
}
    
.card .col-md-8 {
    padding: 15px;
}
    
/* Ajuster l'iframe pour mobile */
iframe {
    width: 100%;
    height: 200px;
}
    
/* Réduire la marge supérieure des cartes */
.row.mb-4 {
    margin-top: 50px !important;
}

.container.my-4 {
    flex: 1;
}

/* Footer Styles */
footer {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    padding: 1.5rem 0;
    margin-top: auto;
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* Aligner à droite */
    min-height: 100%;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Aligner à gauche */
}

/* Adapter les couleurs du texte pour une meilleure lisibilité */
.footer-links h2,
.footer-links a,
.footer-social a {
    color: white;
}

/* ==========================================================================
   Dropdown (Desktop) animations et hover Déconnexion
   ========================================================================== */
@media (min-width: 992px) {
  /* Animation d'apparition du menu déroulant */
  .dropdown-menu {
    will-change: transform, opacity;
    transform-origin: top center;
  }
  .dropdown-menu.show {
    animation: dropdownFadeSlide 160ms ease-out both;
  }
  @keyframes dropdownFadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Transitions générales des items */
  .dropdown-item {
    transition: background-color 150ms ease, color 150ms ease, padding-left 150ms ease;
  }
  .dropdown-item:hover,
  .dropdown-item:focus {
    padding-left: 8px;
    background-color: rgba(0, 0, 0, 0.03);
  }

  /* Survol rouge pour Déconnexion */
  .dropdown-item.logout-item:hover,
  .dropdown-item.logout-item:focus {
    color: #dc3545; /* Bootstrap Danger */
    background-color: rgba(220, 53, 69, 0.10);
  }
}

/* ==========================================================================
   Inline Loader (barre de chargement locale)
   ========================================================================== */
.inline-loader {
  margin-bottom: 0.75rem;
}
.inline-loader .loader-label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}
.inline-loader .progress {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.08);
}
.inline-loader .progress-bar {
  background-color: #00aeff;
}

/* ==========================================================================
   Top Page Loader (barre en haut de la fenêtre)
   ========================================================================== */
.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 2000;
  background: transparent;
  pointer-events: none;
}
.top-loader .bar {
  width: 0%;
  height: 100%;
  background: #00aeff;
  box-shadow: 0 0 6px rgba(0, 174, 255, 0.5);
  transition: width 200ms ease;
}
.top-loader.hidden { display: none; }

.footer-links a:hover {
    color: #e0e0e0;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.footer-social ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.footer-social a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Couleurs spécifiques des réseaux sociaux */
.footer-social a .fa-twitch:hover {
    color: #6441a5;
}

.footer-social a .fa-bluesky:hover {
    color: #1DA1F2;
}

.footer-social a .fa-x-twitter:hover {
    color: #000000;
}

.footer-social a .fa-youtube:hover {
    color: #FF0000;
}

.footer-social a .fa-discord:hover {
    color: #7289DA;
}

.footer-social a:hover {
    color: #0d6efd;
}

.footer-links a {
    color: #212529;
    text-decoration: none;
}

.footer-links a:hover {
    color: #0d6efd;
}


/* Style des liens (sauf réseaux sociaux) */
.navbar-nav .nav-link,
.footer-links a {
    background: linear-gradient(180deg, #ffff00 0%, #00ff00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.footer-links a:hover {
    color: transparent;
}

.navbar-nav .nav-link::before,
.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffff00 0%, #00ff00 100%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.footer-links a:hover::before {
    width: 100%;
}

/* Sponsor Styles - Version consolidée */
.sponsor {
    margin: 1rem 0;
}

.sponsor h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.sponsor-img {
    max-width: 100px;  /* Taille encore plus réduite */
    width: 100%;
    height: auto;
}


/* Logo Header Style */
.logoHeader {
    max-width: 60px;  /* Taille réduite */
    height: auto;
    width: 100%;
    padding: 5px 0;  /* Petit espacement vertical */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.description-section {
    width: 100%;
    margin: 2rem auto;
}

.description-section .col-12 {
    width: 90%;
    margin: 0 auto;
}

.content-section {
    margin-top: auto;
}

/* Animation pour le titre et la description */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-title {
    margin: 0;
    position: relative;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0;
    font-size: 2.5rem;
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

/* Ajuster l'animation pour les écrans plus petits */
@media screen and (max-height: 600px) {
    .main-title, .description-section {
        animation-duration: 1s;
    }
}

@media screen and (max-height: 400px) {
    .main-title {
        font-size: 2rem;
    }
}

/* Ajuster l'espacement entre les cartes */
.col-12.mb-4 {
    margin-bottom: 1.5rem !important;  /* Réduit l'espace entre les cartes */
}

/* Dernier élément sans marge en bas */
.col-12.mb-4:last-child {
    margin-bottom: 0 !important;
}

/* Style des cartes mobiles */
.mobile-card {
    display: flex;
    flex-direction: row;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.mobile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #ffff00 0%, #00ff00 100%) border-box;
}

.card-img-container {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    padding: 1.5rem;
    background: #fff;
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {
    .mobile-card {
        flex-direction: column;
    }
    
    .card-img-container {
        flex: 0 0 100%;
        max-width: 100%;
        height: 200px;
    }
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.card-text {
    color: var(--color-text-light);
    line-height: 1.6;
}


.text-section .lead {
    color: #333;
    line-height: 1.8;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Style pour la zone de l'iframe */
.col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}
/* Style des images pour l'affichage PC */
@media screen and (min-width: 769px) {
    .card .col-md-4 {
        height: 300px;
        overflow: hidden;
    }

    .card .col-md-4 img,
    .card .col-md-4 iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card .row {
        display: flex;
        align-items: stretch;
    }

    .card .col-md-8 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px;
    }
}
    
.card .col-md-4 {
    height: auto;
    max-height: 300px;
}
    
.card .col-md-8 {
    padding: 15px;
}
    
/* Ajuster l'iframe pour mobile */
iframe {
    width: 100%;
    height: 200px;
}
    
/* Réduire la marge supérieure des cartes */
.row.mb-4 {
    margin-top: 50px !important;
}

.container.my-4 {
    flex: 1;
}

/* Footer Styles */
footer {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    padding: 1.5rem 0;
    margin-top: auto;
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* Aligner à droite */
    min-height: 100%;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Aligner à gauche */
}

/* Adapter les couleurs du texte pour une meilleure lisibilité */
.footer-links h2,
.footer-links a,
.footer-social a {
    color: white;
}

.footer-links a:hover {
    color: #e0e0e0;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.footer-social ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.footer-social a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Style des liens (sauf réseaux sociaux) */
.navbar-nav .nav-link,
.footer-links a {
    background: linear-gradient(180deg, #ffff00 0%, #00ff00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.footer-links a:hover {
    color: transparent;
}

.navbar-nav .nav-link::before,
.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffff00 0%, #00ff00 100%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.footer-links a:hover::before {
    width: 100%;
}

/* Sponsor Styles - Version consolidée */
.sponsor {
    margin: 1rem 0;
}

.sponsor h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.sponsor-img {
    max-width: 100px;  /* Taille encore plus réduite */
    width: 100%;
    height: auto;
}


/* Logo Header Style */
.logoHeader {
    max-width: 60px;  /* Taille réduite */
    height: auto;
    width: 100%;
    padding: 5px 0;  /* Petit espacement vertical */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.description-section {
    width: 100%;
    margin: 2rem auto;
}

.description-section .col-12 {
    width: 90%;
    margin: 0 auto;
}

.content-section {
    margin-top: auto;
}

/* Animation pour le titre et la description */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-title {
    margin: 0;
    position: relative;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0;
    font-size: 2.5rem;
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

/* Ajuster l'animation pour les écrans plus petits */
@media screen and (max-height: 600px) {
    .main-title, .description-section {
        animation-duration: 1s;
    }
}

@media screen and (max-height: 400px) {
    .main-title {
        font-size: 2rem;
    }
}

/* Ajuster l'espacement entre les cartes */
.col-12.mb-4 {
    margin-bottom: 1.5rem !important;  /* Réduit l'espace entre les cartes */
}

/* Dernier élément sans marge en bas */
.col-12.mb-4:last-child {
    margin-bottom: 0 !important;
}


/*Style pour la section de texte */
.text-section {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.text-section:hover {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #ffff00 0%, #00ff00 100%) border-box;
    transform: translateY(-5px);
}

.text-section .lead {
    color: #333;
    line-height: 1.8;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Style pour la zone de l'iframe */
.col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}
/* Style des images et iframes */
.card .col-md-4 {
    height: auto;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card iframe,
.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* Style spécifique pour le titre de la page About */
.about-title {
    height: auto !important;
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
}

.commission-section {
    padding: 5% 0;
}

.commission-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 10px 0;
    position: relative;
}

.commission-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
}

.commission-card {
    padding: 20px;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(0);
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #ffff00 0%, #00ff00 100%) border-box;
}

.commission-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.commission-card h3 {
    margin: 15px 0;
    font-size: 1.5rem;
}

.commission-card p {
    color: #666;
    line-height: 1.6;
}
.price-tag {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.commission-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.commission-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.commission-features li:last-child {
    border-bottom: none;
}

.feature-price {
    font-weight: bold;
    color: #ea00ff;
}

.warning-card {
    background-color: #fff;
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.1);
}

.warning-card h3 {
    color: #ff4444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-card ul li:last-child {
    border-bottom: none;
}


/* Styles pour la page 404 */
.error-page {
    padding: 100px 0;
}

.error-page h1 {
    font-size: 120px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.error-page h2 {
    color: #333;
    font-size: 36px;
}

.error-page .lead {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.error-page .btn-primary {
    background-color: #ff4444;
    border-color: #ff4444;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.error-page .btn-primary:hover {
    background-color: #ff6666;
    border-color: #ff6666;
    transform: scale(1.05);
}

.copyright {
    font-size: 1rem;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: 500;
}

.copyright p {
    margin: 0;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    background-clip: text;
    color: white;  /* Couleur de secours si le gradient ne fonctionne pas */
    font-weight: bold;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);  /* Ajoute une légère ombre pour plus de lisibilité */
}


/* Styles pour les cartes de réseaux sociaux */
.social-card {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 250px;
    position: relative;
    transform: translateY(0);
}

.social-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #ffff00 0%, #00ff00 100%) border-box;
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.social-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    width: 100%;
    padding: 10px 0;
    background-color: white;
    position: relative;
    z-index: 2;
}

.social-description {
    color: #666;
    margin: 15px 0;
    width: 100%;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.social-link:hover {
    transform: scale(1.05);
    color: white;
}

/* Style pour le lien actif dans la navigation */
.nav-link.active {
    color: white !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: white !important;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    overflow: hidden;
    padding: 0 17px;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    width: 220px;
    padding: 0 15px;
}

.scroll-to-top i {
    margin-right: 0;
    transition: margin-right 0.3s ease;
}

.scroll-to-top:hover i {
    margin-right: 10px;
}

.scroll-to-top::after {
    content: 'Revenir en début de page';
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 14px;
}

.scroll-to-top:hover::after {
    opacity: 1;
}

/* Animation pour l'expansion du bouton */
@keyframes buttonExpand {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.button-expanding {
    animation: buttonExpand 0.5s ease-out;
}

/* Animation pour l'apparition du formulaire */
@keyframes formExpand {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-expanding {
    animation: formExpand 0.5s ease-out forwards;
}

/* Style pour le bouton de fermeture */
.close-form-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-form-button:hover {
    transform: scale(1.1);
}

/* Style pour le bouton d'impression */
.print-form-button {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.print-form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.print-form-button:active {
    transform: translateY(1px);
}

.form-expanding {
    animation: formExpand 0.5s ease-out forwards;
}

/* Style pour le bouton de fermeture */
.close-form-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-form-button:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Utilitaires d'impression
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }

    #commission-form,
    #commission-form * {
        visibility: visible;
    }

    #commission-form {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-height: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .close-form-button,
    .print-form-button,
    button[type="submit"] {
        display: none !important;
    }
}

/* Style pour le bouton d'impression */
.print-form-button {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.print-form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.print-form-button:active {
    transform: translateY(1px);
}

/* Style pour la section du formulaire */
.commission-form-section {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style pour la section du formulaire de commission */
#commission-form {
    position: relative;
    background: white;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

#commission-form.form-deployed {
    opacity: 1;
    max-height: 2000px;
    border-image: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) 1;
    box-shadow: var(--shadow-md);
}

/* Boutons du formulaire */
.commission-button,
.print-form-button {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.commission-button {
    font-size: 1.2rem;
    padding: 12px 30px;
}

.commission-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.commission-button:active {
    transform: translateY(1px);
}

.close-form-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-default);
    z-index: 10;
}

/* Style pour les commissions en cours */
.current-commissions {
    margin: 4rem auto;
    padding: 2rem;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    max-width: 90%;
}

.current-commissions h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.commission-progress {
    padding: 1.5rem;
    margin: 1rem auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 800px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%) 1;
}

.commission-progress:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.commission-progress h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.commission-progress p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Style pour le message "aucune commission" */
.commission-progress.text-center h4 {
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.commission-progress.text-center p {
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

.commission-progress h4 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.progress {
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 12.5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    transition: width 0.6s ease;
    border-radius: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Page Loader Overlay */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.page-loader .loader-content {
    width: min(600px, 90%);
    text-align: center;
}

.page-loader .loader-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-loader .progress {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.page-loader .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ea00ff 0%, #00aeff 100%);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Bouton de connexion - gradient jaune/vert */
.btn-gradient-yg {
  background: var(--gradient-secondary);
  color: var(--color-white);
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.btn-gradient-yg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.05);
}

.btn-gradient-yg:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-gradient-yg:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* Modal de connexion - DA du site */
.login-modal .modal-content {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-primary) border-box;
}

.login-modal .modal-header {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.login-modal .modal-title {
  margin: 0;
  font-weight: 700;
}

.login-modal .btn-close {
  --bs-btn-close-bg: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e53935;
  opacity: 1;
  position: relative;
  margin-left: auto;
}

.login-modal .btn-close::before,
.login-modal .btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #ffffff;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
}

.login-modal .btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.login-modal .btn-close:hover {
  background-color: #d32f2f;
}

.login-modal .btn-close:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.35);
}

.login-logo {
  max-height: 32px;
  width: auto;
  display: inline-block;
}

.login-modal .form-label {
  color: var(--color-text);
}

.login-modal .form-control {
  border-radius: var(--border-radius);
  box-shadow: none;
}

.login-modal .modal-footer {
  border-top: none;
}

/* Dropdown utilisateur - DA du site */
.navbar .dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-primary) border-box;
  overflow: hidden;
}

.navbar .dropdown-item {
  color: var(--color-text);
  padding: 0.6rem 1rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.navbar .dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Assure un offset sous la navbar fixe pour le contenu */
.content-offset {
  /* Offset augmenté, et forcé pour éviter les overrides */
  padding-top: clamp(180px, 20vh, 280px) !important;
}
/* Badges pour types de commission */
.commission-tags {
  margin: 6px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #222;
}
/* variantes de couleur optionnelles si besoin plus tard */
.tag-pill.texture { border-color: #81ecec; color: #eaffff; }
.tag-pill.unity { border-color: #74b9ff; color: #eaf4ff; }
.tag-pill.blender { border-color: #fdcb6e; color: #fff7e6; }
.tag-pill.web { border-color: #55efc4; color: #eafff6; }