@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-VariableFont_wght.ttf');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-Italic-VariableFont_wght.ttf');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #0f1724;
    --muted: #94a3b8;
    --accent: #7c3aed;
    --primary: #275EFE;
    --primary-light: #7699FF;
    --dark: #1C212E;
    --grey-dark: #3F4656;
    --grey: #6C7486;
    --grey-light: #CDD9ED;
    --white: #FFF;
    --green: #16BF78;
    --sand: #DCB773;
    --sand-light: #EDD9A9;
}

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

html, body {
    height: 100%;
    font-family: 'Exo 2', sans-serif;
    color: #fff;
    line-height: 1.6;
    background-color: #071024;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER + FOOTER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(15px);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

footer {
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    left: 0;
    padding: 20px 40px;
    backdrop-filter: blur(15px);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* LOGO + BRAND */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(124,58,237,0.18);
}

.logo img {
    scale: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* NAVIGATION */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* CANVAS MODEL */
.model {
    z-index: 4;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-origin: center center;
}

/* SECTIONS */
section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    z-index: 2;
}

/* Loader model */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.progress-bar {
    width: 80%;
    max-width: 400px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #ffe600;
    transition: width 0.3s ease; /* animation fluide */
}

.btn, .mail {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffe600;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
    top : 20%;
}

.btn:hover , .mail:hover {
    background-color: #ffcc00;
}

.main {
    background: linear-gradient(to bottom right, rgb(80 50 126 / 60%), rgb(0 188 212 / 60%));
    padding: 100px 0;
    height: 100vh;
}

.main h1 {
    font-size: 5rem;
    font-weight: 900;
}

.main h1 span {
    color: #ffe600;
}
.main p {
    font-size: 1.2rem;
    margin: 20px 0;
}

/* Advantages */
.advantage {
    padding: 50px 0;
}

.advantage h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    width: 30%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.card h3 {
    color: #ffe600;
}

.modes:hover {
    color: #ffe600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* CTA */
.cta {
    background: linear-gradient(to right, rgb(80 50 126), rgb(0 188 212));
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Section Description */
.info {
    padding: 60px 20px;
    text-align: center;
}

.info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info p {
    text-align: justify;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Contact */
.contact {
    padding: 60px 20px;
    background: linear-gradient(to right, #2c7a7b, #4caf50);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.contact input,
.contact textarea{
    width: 90%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.contact .recaptcha{
    width: 90%;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.contact textarea {
    height: 120px;
    resize: none;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5% 0;
}

.social .button {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    width: 56px;
    height: 56px;
    border-radius: 50px;
    margin: 0 12px;
    overflow: hidden;
    color: black;
    box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 6px 20px rgba(0, 0, 0, 0.19);
    transition: all 0.3s ease-in-out;
}

.social .button:hover {
    width: 160px;
}

/* Variation Discord */
.social .button:nth-child(1):hover {
    background: linear-gradient(#19175c, #5865F2);
    color: #e0e3ff;
}

.social .button:nth-child(2):hover {
    background: linear-gradient(90deg,
    #F58529 0%,
    #FEDA77 25%,
    #DD2A7B 50%,
    #8134AF 75%,
    #515BD4 100%);
    color: white;
}

.social .button:nth-child(3):hover {
    background-color: #FF0033;
    color: white;
}

/* Icône */
.social .button .s-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0; /* ne se réduit jamais */
}

.social .button .s-icon svg {
    width: 28px;
    height: 28px;
}

.social .button span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.social .button:hover span {
    opacity: 1;
    transform: translateX(0);
}

.contact .mail {
    min-width: 140px;
    min-height: 50px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mail span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    --o: 1;
    opacity: var(--o);
    color: #1a1a1a;
    font-size: 16px;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    transition: opacity 0.3s ease;
    /* Corrections */
    white-space: nowrap;        /* empêche le retour à la ligne */
    display: inline-flex;       /* centre texte + icône */
    align-items: center;
    justify-content: center;
    gap: 6px;                   /* espace naturel entre texte et SVG */
}
.mail span.default {
    transition-delay: 0.3s;
}
.mail span.success {

    --offset: 16px;
    --o: 0;
}
.mail span.success svg {
    fill: none;
    width: 14px;
    height: 14px;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: var(--offset);
    transition: stroke-dashoffset 0.3s ease;
    flex-shrink: 0; /* NE PAS se faire écraser */
    margin: 0;      /* supprime l'ancien margin qui cassait l’alignement */
}
.mail:active {
    transform: scale(0.96);
}
.mail .lines {
    opacity: 0;
    position: absolute;
    height: 3px;
    border-radius: 2px;
    width: 6px;
    top: 50%;
    left: 100%;
    box-shadow: 15px 0 0 var(--white), 30px 0 0 var(--white), 45px 0 0 var(--white), 60px 0 0 var(--white), 75px 0 0 var(--white), 90px 0 0 var(--white), 105px 0 0 var(--white), 120px 0 0 var(--white), 135px 0 0 var(--white), 150px 0 0 var(--white), 165px 0 0 var(--white), 180px 0 0 var(--white), 195px 0 0 var(--white), 210px 0 0 var(--white), 225px 0 0 var(--white), 240px 0 0 var(--white), 255px 0 0 var(--white), 270px 0 0 var(--white), 285px 0 0 var(--white), 300px 0 0 var(--white), 315px 0 0 var(--white), 330px 0 0 var(--white);
}
.mail .back, .mail .box {
    --start: var(--white);
    --stop: var(--grey-light);
    border-radius: 2px;
    background: linear-gradient(var(--start), var(--stop));
    position: absolute;
}
.mail .plane {
    width: 160px;
    left: 100%;
    z-index: 1;
    top: -100%;
    position: absolute;
}

.mail .plane svg {
    scale: 0.6;
}

.mail .plane:before {
    top: 4px;
}
.mail .plane:after {
    --r: 90deg;
    bottom: 4px;
}

.mail .box {
    --start: var(--sand-light);
    --stop: var(--sand);
    width: 21px;
    height: 21px;
    right: 100%;
    top: 30%;
}
.mail .box:before, .mail .box:after {
    content: '';
    top: 10px;
    position: absolute;
    left: 0;
    right: 0;
}
.mail .box:before {
    height: 3px;
    margin-top: -1px;
    background: rgba(0, 0, 0, 0.315);
}
.mail .box:after {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}
.mail.animate .default {
    --o: 0;
    transition-delay: 0s;
}
.mail.animate .success {
    --offset: 0;
    --o: 1;
    transition-delay: 7s;
}
.mail.animate .success svg {
    transition-delay: 7.3s;
}
.mail.animate .plane {
    animation: plane 10s ease forwards;
}
.mail.animate .plane:before {
    animation: door1 2.4s ease forwards 0.3s;
}
.mail.animate .plane:after {
    animation: door2 2.4s ease forwards 0.6s;
}
.mail.animate .box {
    animation: box 10s ease forwards;
}
.mail.animate .lines {
    animation: lines 10s ease forwards;
}
@keyframes plane {
    10%, 30% {
        transform: translateX(-50%);
    }
    40% {
        transform: translateX(-104px);
    }
    60% {
        transform: translateX(-224px);
    }
    75%, 100% {
        transform: translateX(24px);
    }
}
@keyframes lines {
    0%, 30% {
        opacity: 0;
        transform: scaleY(0.7) translateX(0);
    }
    35%, 65% {
        opacity: 1;
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: scaleY(0.7) translateX(-400px);
    }
}
@keyframes box {
    8%, 10% {
        transform: translateX(40px);
        opacity: 1;
    }
    25% {
        transform: translateX(112px);
        opacity: 1;
    }
    26% {
        transform: translateX(112px);
        opacity: 0;
    }
    27%, 100% {
        transform: translateX(0px);
        opacity: 0;
    }
}

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

/* ----------- TABLETTES ----------- */
@media (max-width: 1040px) {

    header {
        padding: 15px 25px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    nav a {
        font-size: 0.95rem;
    }

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

    .main h1 {
        font-size: 3rem;
    }

    .main p {
        font-size: 1rem;
        margin: 20px 0;
    }

}

@media (max-width: 950px) {
    .title p{
        display: none;
    }
}
/* ----------- MOBILES (mode portrait) ----------- */
@media (max-width: 850px) {

    .title {
        display: none; /* cacher le grand titre sur mobile */
    }

    .main h1 {
        font-size: 2rem;
    }

    .main p {
        font-size: 0.9rem;
        margin: 20px 0;
    }

}

/* ----------- PETITS ÉCRANS ----------- */
@media (max-width: 480px) {

    header {
        padding: 10px 15px;
    }

    .brand div {
        font-size: 0.9rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        line-height: 1;
    }

    nav a {
        display: block;
        width: 100%;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
    }

    .main {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main p, .main h1 {
        width: 70%;
        text-align: center;
    }

    .cta {
        min-height: 30vh;
    }

    .g-recaptcha {
        transform: scale(0.7);
    }

}


.gradient-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width:100%;
    height: 100%;
}

.info::before, .advantage::before {
    content: "";
    background: none;
    backdrop-filter: blur(70px);
    -webkit-backdrop-filter: blur(70px);
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.info div, .advantage div{
    text-align: center;
    z-index: 1;
}

