/* 
--------------------------------------------------
LES EXCELLENCES — Style principal du site officiel
Auteur     : Aïssa Belkoussa – Creative Aïssa
Projet     : LES EXCELLENCES (https://lesexcellences.com)
Version    : V1.0.0
--------------------------------------------------
*/


/* =============================== */
/* === PARALLAX LAYER === */
.site-3d {
    perspective: 2000px;
    transform-style: preserve-3d;
}
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.scroll-parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
}
.parallax-layer {
    will-change: transform;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
    z-index: 0;
    position: relative;
}
.parallax-stars {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -5;
    width: 100%;
    height: 100vh;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1.2" fill="white"/><circle cx="80" cy="40" r="1.5" fill="white"/><circle cx="300" cy="120" r="1" fill="white"/><circle cx="200" cy="90" r="1.3" fill="white"/><circle cx="160" cy="160" r="1.7" fill="white"/></svg>') repeat;
    background-size: contain;
    animation: starScroll 60s linear infinite;
    pointer-events: none;
    opacity: 0.25;
}

/* =============================== */
/* Header */
header {
    padding: 3rem 2.5rem;
    padding-top: 150px;
    text-align: left;
    overflow: hidden;
}

header::before {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, #6e00ff22 0%, #111122 40%, #000000 100%);
    background-size: 300% 300%;
    animation: bgPulse 20s ease-in-out infinite;
    z-index: 1;
}

header::after {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    pointer-events: none;
}

header h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--pink), var(--sky), var(--sky-light), var(--blue-accent), var(--rose), var(--rose-light));
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 8s ease infinite;
}
header p {
    font-size: var(--font-size-lg);
    background: linear-gradient(202.5deg, var(--pink), var(--sky), var(--sky-light), var(--blue-accent), var(--rose), var(--rose-light));
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 8s ease infinite;
}
.scroll-down-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 60px;
    border: 2px solid var(--pink-fuchsia);
    border-radius: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    transition: border 0.3s ease;
    z-index: 10;
}
.scroll-down-btn:hover {
    border-color: var(--cyan-electrical);
}
.scroll-down-btn span {
    display: block;
    width: 6px;
    height: 6px;
    background: linear-gradient(180deg, var(--cyan-electrical), var(--cyan-electrical), var(--cyan));
    border-radius: 50%;
    animation: scrollPulse 1.6s infinite;
}

/* =============================== */
/* ------------------------------- */
/* Main */
main {
    flex: 1;
}

/* ------------------------------- */
/* Inscriptions */
#inscriptions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    min-height: 90vh;
}
.inscriptions-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    z-index: 5;
    padding: 2rem;
    animation: fadeInHero 2s ease 0.5s both;
}
.inscriptions-content h2 {
    font-weight: 650;
}
.inscription-options {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 800px;
    width: 100%;
    transition: all 0.5s ease;
    margin: 1.5rem auto;
    text-align: center;
    position: relative;
}
@media screen and (max-width: 768px) {
    .inscription-options {
        flex-wrap: wrap;
        justify-content: center;
    }
}
.cta-inscription {
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1;
    white-space: nowrap;
    flex: 1 1 50%; /* flex-grow, flex-shrink, flex-basis */
    max-width: 50%;
}
/* Quand on survole spécifiquement un bouton */
.inscription-options:has(.cta-inscription:hover) .cta-inscription:not(:hover) {
    flex: 0 0 0%;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    margin: 0;
    max-width: 0;
}
/* Le bouton survolé s'étend élégamment */
.cta-inscription:hover {
    flex: 1 1 100%;
    max-width: 100%;
    background-image: linear-gradient(135deg, var(--violet-electrical), var(--cyan-electrical), var(--pink-fuchsia), var(--violet-electrical));
    background-size: 400% 400%;
    animation: GradientFlow 6s ease infinite;
    color: var(--white);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.25),
                0 0 20px rgba(255, 0, 212, 0.2);
    z-index: 2;
    transform: scale(1.075);
}
/* === Responsive : TABLETTE / MOBILE === */
@media screen and (max-width: 1024px) {
    .cta-inscription {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .inscription-options {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cta-inscription {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .inscription-options:hover .cta-inscription:not(:hover) {
        flex: 0 0 0;
        max-width: 0;
        opacity: 0;
        padding: 0;
        margin: 0;
    }

    .cta-inscription:hover {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
    .cta-inscription {
        font-size: var(--font-size-sm);
        padding: 0.9rem 1.5rem;
        border-radius: var(--radius-sm);
    }
}

/* ------------------------------- */
/* === HERO WEB3 Section === */
.hero-section {
    min-width: 100%;
    width: fit-content;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}
.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(110, 0, 255, 0.2), rgba(0, 0, 0, 0.8));
    z-index: -2;
}
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--pink-fuchsia), var(--white));
    opacity: 0.08;
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}
.hero-content {
    max-width: 900px;
    z-index: 5;
    padding: 2rem;
    animation: fadeInHero 2s ease 0.5s both;
}
.hero-title {
    font-size: var(--font-fluid-xl);
    color: var(--violet-electrical);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(110, 0, 255, 0.2);
    margin-bottom: 1rem;
}
.hero-subtext {
    font-size: var(--font-size-md);
    color: var(--white);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.cta-scroll {
    background: linear-gradient(135deg, var(--violet-electrical), var(--gray-light), var(--pink-fuchsia), var(--violet-electrical));
    background-size: 500% 350%;
    animation: GradientFlow 8s ease infinite;
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px var(--violet);
}
.cta-scroll:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 212, 0.4);
}
.hero-carte {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: none;
}
.hero-carte.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}
.hero-initial {
    transition: opacity 0.4s ease;
}
.hero-initial.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ------------------------------- */
/* Carte de France */
#carte-france {
    background: var(--card-background);
    padding: 2rem;
    padding-bottom: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    text-align: center;
}
#carte-france h2 {
    font-size: var(--font-size-xl);
    color: var(--blue-dark);
    margin-bottom: 1rem;
}
#carte-france p {
    font-size: var(--font-size-xs);
    margin: 0%;
}
.carte-placeholder {
    width: 100%;
    height: 300px;
    background: var(--card-gradient);
    background-size: 200% 200%;
    animation: GradientFlow 8s ease infinite;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    color: var(--blue-dark);
    font-size: var(--font-size-md);
}
.svg-carte-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
}
.svg-france {
    width: 100%;
    max-width: 700px;
    transform: rotateX(15deg) rotateY(-10deg);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    filter: url(#shadow);
}
.region path {
    transition: all 0.3s ease;
    cursor: pointer;
}
.region path:hover {
    transform: scale(1.1);
    fill: var(--blue-hover);
    stroke-width: 2;
}

/* ------------------------------- */
/* ==== Section de Transition Web3 ==== */
.transition-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
    padding: 8rem 2rem;
    overflow: hidden;
    z-index: 5;
    isolation: isolate;
    background: radial-gradient(
        ellipse at center,
        #0b1d51 0%,         /* Bleu marine foncé (océan profond) */
        #0f3d91 25%,        /* Bleu océan intense */
        #1e90ff 50%,        /* Bleu azur (côte/lagon) */
        #87ceeb 70%,        /* Bleu ciel clair (atmosphère) */
        #ffffff 95%         /* Blanc lumineux (halo spatial) */
    );
    background-size: 300% 300%;
    animation: GradientFlow 16s ease infinite;
    box-shadow: 0 0 50px rgba(110, 0, 255, 0.2), 0 0 120px rgba(255, 0, 212, 0.25);
    will-change: background-position, transform;
}
/* Conteneur fluide */
.intro-flux-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: atmospherePulse 5s ease-in-out infinite;
}
/* Arrière-plan animé */
.flux-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet-electrical), var(--cyan-electrical), var(--pink-fuchsia), var(--violet-electrical));
    background-size: 400% 400%;
    animation: fluxBackgroundMove 16s ease infinite;
    opacity: 0.08;
    filter: blur(100px);
    z-index: -1;
}
/* Texte d’introduction */
.flux-text h3 {
    font-size: var(--font-fluid-xl);
    color: var(--cyan-electrical);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
}
.flux-text p {
    font-size: var(--font-size-lg);
    color: var(--white);
    opacity: 0.85;
    line-height: 1.6;
}
/* Petite ligne animée */
.flux-line {
    margin: 2rem auto 0;
    width: 140px;
    height: 3px;
    background: linear-gradient(to right, var(--cyan-electrical), var(--pink-fuchsia));
    animation: fluxLinePulse 2s ease-in-out infinite alternate;
    border-radius: 4px;
}

/* =============================== */
/* ------------------------------- */
/* Footer */
footer {
    background-color: var(--blue-light);
    padding: 3rem 2rem;
    text-align: left;
    font-size: var(--font-size-sm);
}
footer a {
    color: var(--blue-accent);
    text-decoration: none;
}
.footer-container {
    max-width: 1400px;
    padding: 2rem 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* Top section */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    text-align: center;
}
.footer-logo .logo-img {
    height: 40px;
    width: auto;
}
.logo-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}
.footer-tagline {
    font-size: var(--font-size-xs);
    font-weight: 400;
    color: var(--gray-medium);
    margin-top: 0.25rem;
    letter-spacing: 0.03em;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.footer-socials img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.footer-socials a:hover img {
    filter: drop-shadow(0 0 4px var(--blue));
    transform: scale(1.1);
}
.footer-socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background-color: var(--blue);
    color: var(--white);
    transition: background-color 0.3s;
}
.footer-socials .social-icon:hover {
    background-color: var(--blue-hover);
}
/* Link grid section — responsive dynamique */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2.5vw, 3rem);
    padding-inline: clamp(1rem, 5vw, 4rem);
    text-align: left;
}
.footer-heading {
    font-size: var(--font-fluid-md);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
    letter-spacing: 0.04em;
}
.footer-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-grid li {
    margin-bottom: 0.5rem;
}
.footer-links-grid a {
    color: var(--blue-main);
    font-size: var(--font-size-sm);
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links-grid a:hover {
    color: var(--blue-main-hover);
    transform: translateX(4px);
}
.footer-links-grid > div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.footer-links-grid > div.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    opacity: 0.8;
    font-size: var(--font-size-xs);
    text-align: center;
    color: var(--gray-medium);
}
.footer-bottom a {
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}
.footer-contact {
    margin-top: 2rem;
    text-align: center;
}
.footer-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
    width: 100%;
}
.footer-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-medium);
    background: linear-gradient(145deg, var(--white), var(--gray-light));
    font-size: var(--font-size-md);
    color: var(--gray-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.footer-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 95, 163, 0.15);
}
.footer-form input[type="email"]:hover {
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(145deg, var(--white), var(--gray-light)), /* fond */
        linear-gradient(270deg, var(--blue-light), var(--neon-pink), var(--blue)); /* dégradé de bordure animé */
    animation: GradientFlow 2.5s infinite linear;
    background-size: 100% 100%, 300% 300%;
    background-position: center center, 0% 50%;
}
.footer-form button {
    background-color: var(--blue);
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: var(--font-size-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    width: fit-content;
    max-width: 100%;
    align-self: center;
    transition:
        background-color 300ms ease-in-out,
        transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
        width 400ms ease-in-out,
        padding 400ms ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.footer-form button:hover {
    background-image: linear-gradient(135deg, var(--violet-electrical), var(--cyan-electrical), var(--pink-fuchsia), var(--violet-electrical));
    background-size: 400% 400%;
    animation: GradientFlow 6s ease infinite;
    color: white;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.25),
                0 0 20px rgba(255, 0, 212, 0.2);
    transform: scaleX(1.05);
    width: 95%;
}
.footer-form button:active {
    transform: scale(0.98);
}
.footer-form .form-disclaimer {
    font-size: var(--font-size-xs);
    color: var(--gray-medium);
    margin-top: -0.6rem;
    text-align: center;
    max-width: 400px;
}
.form-disclaimer {
    font-size: var(--font-size-xs);
}
.form-feedback {
    font-size: var(--font-size-sm);
    margin-top: 0.5rem;
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}
/* Succès */
.form-feedback.success {
    color: var(--green);
    opacity: 1;
}
/* Erreur */
.form-feedback.error {
    color: var(--red);
    opacity: 1;
}

/* Responsive Footer Layout */
/* === 💻 Desktop ultralarge (≥1920px) === */
@media screen and (min-width: 1920px) {
    .footer-container {
        max-width: 1800px;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
/* === 🖥️ Desktop large (≥1440px) === */
@media screen and (min-width: 1440px) {
    .footer-container {
        max-width: 1600px;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* === 💻 Tablette & petits laptops (≤1024px) === */
@media screen and (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* === 📱 Tablette portrait / Téléphones larges (≤768px) === */
@media screen and (max-width: 768px) {
    .footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-heading,
    .logo-title {
        font-size: var(--font-size-md);
    }

    .footer-bottom {
        flex-direction: column;
    }
}
/* === 📱 Mobile (≤480px) === */
@media screen and (max-width: 480px) {
    .footer {
        padding: 2rem 1rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-socials {
        gap: 0.75rem;
    }

    .footer-socials .social-icon {
        height: 28px;
        width: 28px;
    }
}