@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --background: #050505;

    --foreground: #ffffff;
    --primary: #FE5516;

    --primary-foreground: #ffffff;
    --card: #E8D9BB;
    --card-foreground: #0d0d0d;
    --muted: #E8D9BB;
    --muted-foreground: #333333;
    --border: #262626;
    --accent: #E8D9BB;

    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(232, 217, 187, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}


html {
    font-size: 16px;
    /* Bloquer tout débordement horizontal, source de décalage sur mobile */
    overflow-x: hidden;
}

@media (max-width: 1600px) {
    html {
        font-size: 15px;
    }


}

@media (max-width: 1440px) {
    html {
        font-size: 14.5px;
    }


}

@media (max-width: 1280px) {
    html {
        font-size: 14px;
    }


}

@media (max-width: 1024px) {
    html {
        font-size: 13px;
    }


}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }


}

@media (max-width: 640px) {
    html {
        font-size: 13px;
    }

    /* Amélioration de la lisibilité sur mobile */
    .member-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .member-card .font-display {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }

    .member-card .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .member-card .form-input {
        font-size: 0.9rem !important;
        height: 3rem !important;
        padding: 0.75rem !important;
    }

    /* Correction des textes d'aide spécifiques */
    .member-card div[style*="text-align: center"] {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }

    .member-card div[style*="text-align: center"] span {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }

    /* Photo preview mobile */
    .member-card [style*="width: 100px"] {
        width: 80px !important;
        height: 80px !important;
    }

    .member-card [style*="width: 2.5rem"] {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.8rem !important;
    }

    /* Bouton supprimer mobile */
    .member-card .remove-member {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Message de succès mobile */
    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] {
        padding: 0.75rem !important;
        margin-top: 0.75rem !important;
    }

    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:first-child {
        font-size: 0.7rem !important;
    }

    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:last-child {
        font-size: 0.6rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    /* Corrections spécifiques pour petits mobiles */
    .member-card div[style*="text-align: center"] {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .member-card div[style*="text-align: center"] span {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .member-card .form-label {
        font-size: 0.85rem !important;
    }

    .member-card .form-input {
        font-size: 0.95rem !important;
    }

    /* Message de succès pour très petits écrans */
    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:first-child {
        font-size: 0.75rem !important;
    }

    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:last-child {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 11px;
    }

    /* Corrections spécifiques pour très petits écrans */
    .member-card div[style*="text-align: center"] {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .member-card div[style*="text-align: center"] span {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .member-card .form-label {
        font-size: 0.9rem !important;
    }

    .member-card .form-input {
        font-size: 1rem !important;
    }

    /* Message de succès pour très petits écrans */
    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:first-child {
        font-size: 0.8rem !important;
    }

    .member-card [style*="background: rgba(254, 85, 22, 0.05)"] div[style*="flex: 1"] div:last-child {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Stabiliser le scroll sur iOS */
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
    max-width: 100vw;
}


.font-display {
    font-family: 'Oswald', sans-serif;
}

.font-body {
    font-family: 'Space Grotesk', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
}


@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes liquid-shine {
    to {
        background-position: 200% center;
    }
}

@keyframes particles-float {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}

@keyframes smoke-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(100px, 50px) scale(1.2);
        opacity: 0.5;
    }

    66% {
        transform: translate(-50px, 100px) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease forwards;
}

.animate-pulse-subtle {
    animation: pulse-subtle 4s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-count-up {
    animation: count-up 0.8s ease-out forwards;
}

@keyframes step-enter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-enter {
    animation: step-enter 0.5s ease-out forwards;
}


.smoke-bg {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%), var(--background);
    position: relative;
    overflow: hidden;
}

.smoke-bg::before,
.smoke-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 85, 22, 0.12), transparent 70%);
    animation: smoke-drift 12s ease-in-out infinite;
    pointer-events: none;
    filter: blur(40px);
    z-index: 1;
}

.smoke-bg::before {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.smoke-bg::after {
    bottom: -10%;
    right: -10%;
    animation-delay: 6s;
    width: 600px;
    height: 600px;
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(254, 85, 22, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    box-shadow: 0 0 15px rgba(254, 85, 22, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease,
        width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        background-color 0.3s,
        border-color 0.3s,
        margin 0.3s;
}


.particles-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(254, 85, 22, 0.2) 1px, transparent 0);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    pointer-events: none;
    animation: particles-float 25s linear infinite;
    z-index: 2;
}


.navbar-glass {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid transparent;
}

.navbar-glass.scrolled {
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(254, 85, 22, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .navbar-glass {
        padding: 1rem 1.5rem;
    }

    .nav-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


.liquid-glass-orange {
    background: linear-gradient(135deg,
            rgba(254, 85, 22, 0.7) 0%,
            rgba(254, 85, 22, 1) 50%,
            rgba(254, 85, 22, 0.7) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-shine 3s linear infinite;
    text-shadow: 0 0 30px rgba(254, 85, 22, 0.3);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    position: relative;
    display: inline-block;
}

.hero-title-excell {
    font-size: clamp(2rem, 10vw, 7rem);
    letter-spacing: 0.15em;
    font-weight: 900;
    margin-top: 1.5rem;
    line-height: 1;
    transition: all 0.5s ease;
}

@media (max-width: 640px) {
    .hero-title-excell {
        margin-top: 0.5rem;
        font-size: clamp(1.8rem, 12vw, 3.5rem);
        letter-spacing: 0.1em;
    }
}


.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(254, 85, 22, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}


.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}


.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(254, 85, 22, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-label {
    font-size: 0.65rem;
    color: rgba(232, 217, 187, 1);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
}


.category-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover {
    border-color: rgba(254, 85, 22, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.category-card.active {
    border-color: var(--primary);
    background: rgba(254, 85, 22, 0.08);
    box-shadow: 0 15px 40px rgba(254, 85, 22, 0.15);
}

.category-card input[type="radio"] {
    accent-color: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
}


.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-video {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-design {
    background: rgba(232, 217, 187, 0.1);
    color: var(--accent);
    border: 1px solid rgba(232, 217, 187, 0.3);
}


.recap-ticket {
    background: var(--accent);
    color: #050505;
    padding: 3rem;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.recap-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.recap-row span:first-child {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}


.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background: black;
    padding-top: 100px;

}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent, black);
    z-index: 2;
}



.stat-value {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}


.section-intro {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.section-line {
    height: 2px;
    width: 50px;
    background: var(--primary);
    margin: 2rem auto;
}


footer {
    padding: 5rem 2rem;
    background: black;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: white;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-family: 'Oswald', sans-serif;
}


@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .member-card-grid {
        grid-template-columns: 1fr !important;
    }
}


.mobile-menu {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}




@media (max-width: 1440px) {
    .section-intro {
        padding: 6rem 2rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    .hero-content {
        transform: scale(0.92);
        margin-top: 3rem;
    }
}


@media (max-width: 1280px) {
    .section-intro {
        padding: 6rem 1.5rem;
    }


    .nav-link {
        letter-spacing: 0.15em;
        font-size: 0.7rem;
    }


    .form-container {
        padding: 0 1rem;
    }

    .recap-ticket {
        padding: 2rem;
    }
}


@media (max-width: 1024px) {
    .hero {
        min-height: 100svh;
    }

    .section-intro {
        padding: 5rem 1.5rem;
    }

    footer {
        padding: 3.5rem 1.5rem;
    }


    .custom-cursor,
    .custom-cursor-outline {
        display: none;
    }
}


@media (max-width: 768px) {


    .hide-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-menu-btn i {
        width: 5.5rem !important;
        height: 5.5rem !important;
        stroke-width: 2px;
    }

    .nav-container img {
        height: 65px !important;
    }

    .nav-container>div:nth-child(2) {
        justify-self: start !important;
        margin-left: 0 !important;
    }

    .nav-container {
        grid-template-columns: 1fr auto !important;
        gap: 1rem !important;
        padding-left: 0 !important;
    }

    .navbar-glass {
        padding-left: 0.5rem !important;
    }


    .hero {
        min-height: 100svh;
        padding: 2rem 1rem;
    }

    /* --- SWAP LOGO NAVBAR : LOGO.png → LOGO1.png sur mobile --- */
    .nav-logo-desktop {
        display: none !important;
    }

    .nav-logo-mobile {
        display: block !important;
    }

    /* --- SWAP TEXTE → LOGO.png dans le hero sur mobile --- */
    .hero-celebration-text {
        display: none !important;
    }

    .hero-celebration-logo-mobile {
        display: block !important;
        margin: 0 auto 0.5rem auto;
    }

    .hero-stats {
        gap: 1rem !important;
    }



    .section-intro {
        padding: 4rem 1rem;
    }


    footer {
        padding: 3rem 1rem;
    }

    footer>div>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }


    .custom-cursor,
    .custom-cursor-outline {
        display: none;
    }


    .admin-table {
        font-size: 0.75rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 1rem;
    }
}


@media (max-width: 640px) {


    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }


    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }


    .form-container {
        max-width: 100% !important;
        padding: 0 1rem;
    }

    .recap-ticket {
        padding: 1.5rem 1.25rem;
    }

    .recap-row {
        font-size: 0.75rem;
    }


    footer>div>div:first-child {
        grid-template-columns: 1fr !important;
    }


    .stat-card-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Correction background-attachment:fixed sur mobile (non supporté iOS/Android) */
    body[style*="background-attachment"],
    .registration-section,
    .creative-talents-section {
        background-attachment: scroll !important;
    }
}


@media (max-width: 480px) {


    .hero-title-excell {
        font-size: clamp(1.6rem, 14vw, 3rem) !important;
        letter-spacing: 0.05em !important;
        margin-top: 0.5rem !important;
    }


    .hero-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 0.5rem !important;
    }


    .navbar-glass {
        padding: 0.75rem 1rem;
    }

    .navbar-glass.scrolled {
        padding: 0.6rem 1rem;
    }

    /* Ajustement pour aligner parfaitement le logo avec le bouton hamburger */
    .nav-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }


    .section-intro {
        padding: 3rem 0.75rem;
    }


    .member-grid-2col {
        grid-template-columns: 1fr !important;
    }


    footer {
        padding: 2.5rem 0.75rem;
    }

    .copyright-text {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }


    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Correction background-attachment:fixed sur très petits écrans */
    body {
        background-attachment: scroll !important;
    }

    /* Bloquer les débordements sur mobile */
    * {
        max-width: 100%;
    }

    img,
    video {
        max-width: 100%;
    }

    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5) {
        display: none;
    }


}


@media (max-width: 375px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .stat-value {
        font-size: 2rem;
    }

    .btn-primary {
        font-size: 0.7rem;
        padding: 0.75rem 1rem;
    }

    .recap-ticket {
        padding: 1rem;
    }
}


@media (min-width: 1920px) {
    html {
        font-size: 17px;
    }

    .section-intro {
        padding: 12rem 3rem;
    }

    footer {
        padding: 6rem 3rem;
    }
}


@media (max-height: 800px) and (min-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .section-intro {
        padding: 6rem 2rem;
    }
}

@media (max-height: 640px) {
    .hero {
        min-height: 100vh;
    }

    .section-intro {
        padding: 4rem 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}


@supports (padding: max(0px)) {
    .navbar-glass {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }
}

/* ============================================
   CORRECTIFS MOBILES — OVERFLOW & SCROLL
   ============================================ */
@media (max-width: 768px) {

    /* Blocage absolu de tout debordement horizontal */
    html,
    body,
    main {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Supprimer les effets décoratifs qui sortent du viewport */
    .effet-gauche,
    .effet-droit {
        display: none !important;
    }

    /* Les blobs du smoke-bg peuvent créer un scroll */
    .smoke-bg::before,
    .smoke-bg::after {
        display: none;
    }

    /* Contenir les sections à risque */
    .registration-section,
    .creative-talents-section,
    .hero-video-container,
    .hero {
        overflow: hidden;
        max-width: 100vw;
    }

    /* Footer : forcer 1 colonne */
    footer>div>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Stabilisation scroll touch iOS/Android */
@media (max-width: 1024px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .navbar-glass,
    .mobile-menu {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Corrections supplémentaires pour mobile */
@media (max-width: 768px) {

    /* Correction des overflow horizontaux sur mobile */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Correction pour les tableaux sur mobile */
    .admin-table {
        font-size: 0.7rem !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem !important;
        white-space: nowrap !important;
    }

    .admin-table td:nth-child(5) {
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    /* Amélioration du scroll sur mobile */
    * {
        -webkit-overflow-scrolling: touch !important;
    }

    /* Correction du hero sur mobile */
    .hero-section {
        min-height: 100vh !important;
        overflow: hidden !important;
    }

    /* Vidéo mobile activée par défaut, JS gérera le fallback si besoin */
    .hero-video {
        display: block !important;
        opacity: 0.5;
    }

    .mobile-video-fallback {
        display: block !important;
    }

    /* Fallback vidéo */
    .video-fallback {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-fallback-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    /* Particules réactivées mais plus discrètes sur mobile */
    .particles-overlay {
        display: block !important;
        opacity: 0.1;
    }

    .hero-overlay-dark,
    .hero-overlay-gradient {
        opacity: 0.7 !important;
    }

    /* Stabiliser les animations sur mobile */
    .hero-content {
        transform: none !important;
        will-change: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
    }

    /* Optimisation spécifique pour la section ESMA CREATIVE TALENTS */
    .creative-talents-section .reveal {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
        transition: none !important;
    }

    .creative-talents-section h2,
    .creative-talents-section p,
    .creative-talents-section div[style*="height: 2px"] {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
    }

    /* Désactiver complètement les animations de scroll sur mobile */
    .creative-talents-section * {
        animation: none !important;
        transition: none !important;
    }

    /* Menu mobile amélioré */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 9999 !important;
    }
}