.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
}

/* .navbar>* {
    flex: 1;
} */

.logo img {
    height: 40px;
}

.login{
    background: transparent;
}

.login:hover{
    text-decoration: underline;
    background: none;
    color: white;
    border: none;
    transform: none;
    box-shadow: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

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

.auth-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.auth-buttons a {
    text-decoration: none;
}

.hero-container{
    display: flex;
    justify-content: center;
}

.hero {
    height: 100vh;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: black;
    color: #fff;
    padding-left: 80px;
    padding-top: 0;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    margin-top: 120px; /* Conserver ta marge existante */
    position: absolute;
    inset: 0;
    /* L'image sera 105% de la taille du conteneur, puis centrée. */
    background: url('/static/img/index/background.png') center/90% no-repeat;
    z-index: 1;
}


.hero-content {
    max-width: 500px;
    margin-left: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    animation: headerFade 1.2s cubic-bezier(0.4,0,0.2,1);
    animation-delay: 0.3s;
    z-index: 2;
    margin-bottom: 30px;
}

@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 26px;
    letter-spacing: -1.5px;
    color: #f5f5f7;
    text-shadow: 0 2px 24px #2b1865;
}

.hero p {
    font-size: 1.35rem;
    color: #bfbfbf;
    margin-bottom: 44px;
    margin-top: 0;
    max-width: 300px;
}

.hero-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    margin-top: 0;
}

.hero-buttons .btn {
    background: linear-gradient(90deg, #9155fd 0%, #7e33ff 100%);
    color: #fff;
    border: none;
    border-radius: 23px;
    font-size: 1.18rem;
    font-weight: 500;
    padding: 14px 50px;
    box-shadow: 0 8px 36px 0 #823be0b8;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    margin-right: 0;
}

.hero-buttons .btn:hover {
    background: linear-gradient(90deg, #823be0 0%, #5200af 100%);
    transform: scale(1.04);
}

.hero-list {
    display: none; /* cacher la liste pour coller au design épuré */
}

@media (max-width: 900px) {
    .hero {
        padding-left: 20px;
    }
    .hero-content {
        max-width: 95vw;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}





.steps {
    background: linear-gradient(to bottom, black 0%, #0f0021 100%);
    padding: 100px 30px;
    color: #fff;
}

.steps-title {
    text-align: center;
    font-size: 2.8rem;
    text-shadow: 0 0 10px rgba(255, 77, 239, 0.4);
    margin-bottom: 10px;
}

.steps-subtitle {
    text-align: center;
    color: #cbb7ec;
    margin-bottom: 70px;
    font-size: 1.1rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
    position: relative;
    max-width: 850px;
    margin: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-color)88;
    z-index: 1;
}

.beginner {
    background: #5b2dff;
}

.intermediate {
    background: var(--primary-color);
}

.expert {
    background: #e82f8b;
}

.step-line {
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent 80%);
    z-index: 0;
}

.step-content {
    flex: 1;
    padding-left: 15px;
}

.step-content h3 {
    font-size: 1.4rem;
    margin: 5px 0 10px;
}

.step-content p {
    color: #cbb7ec;
    margin: 5px 0 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.step-content a {
    color: #7e33ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.step-content a:hover {
    text-decoration: underline;
}

.level-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
}




.info-section {
    background: #0f0021;
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: stretch;
}

.info-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
}

.info-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.info-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 32px;
    box-shadow: 0 1px 10px 0 #7b2ffeb8;
    /* padding: 24px; */
    max-width: 600px;
    aspect-ratio: 2/1;
    margin: 0 auto;
    background: url('/static/img/index/index_adapter.png') center/cover no-repeat;
    width: 100%;
    height: 100%;
}

.info-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-block p {
    color: #e0d6f3;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-lite{
    margin-top: auto;
    align-self: flex-start;
    color: white;
    margin-top: 8px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.btn-lite:hover {
    color: white;
    background-color: transparent;
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .info-wrapper {
        grid-template-columns: 1fr;
    }

    .info-left,
    .info-right {
        width: 100%;
    }

    .info-title {
        text-align: center;
        font-size: 2rem;
    }

    .info-right {
        text-align: center;
        margin-top: 30px;
    }

    .info-button {
        align-self: center;
    }
}


.guidance-modern {
    background: linear-gradient(to bottom, #0f0021 0%, black 100%);
    padding: 100px 20px;
    color: #fff;
    overflow: hidden;
}

.container-guidance {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guidance-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;      /* <-- important */
    align-items: stretch;
    overflow-x: auto;
    padding: 0 20px 20px 20px;        /* padding à gauche/droite pour l'espace visuel */
    scroll-snap-type: x mandatory;
}

@media (max-width: 1130px) {
   .guidance-grid {
    justify-content: flex-start;      /* <-- important */
}
    
}

/* STEP BLOCKS - carré, taille fixe */
.guidance-block {
    width: 320px;
    height: 320px;
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: linear-gradient(145deg, #2d1b4b, #3c1f61);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #2d1b4b;
}

/* .guidance-block:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 35px rgba(255, 77, 239, 0.15);
} */

/* Image + badge */
.guidance-img {
    position: relative;
    height: 45%;
}

.guidance-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guidance-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 90px;
    height: 35px;
    background: linear-gradient(135deg, #ff4def7a, #a832ff85);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--primary-color)99;
}

/* Content */
.guidance-content {
    padding: 15px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 55%;
}

.guidance-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 70px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 77, 239, 0.5);
}


.guidance-content h3 {
    font-size: 1.2rem;
    margin: 0;
}

.guidance-content p {
    font-size: 0.95rem;
    color: #d2c3e9;
    margin: 0;
    line-height: 1.4;
}

/* .guidance-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
    align-self: center;
} */

.guidance-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

/* .guidance-content a:hover {
    transform: scale(1.05);
} */

/* Arrows */
.guidance-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guidance-arrow svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
    transition: transform 0.3s ease;
}

.guidance-arrow svg:hover {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1100px) {
    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .guidance-arrow svg {
        transform: rotate(90deg);
    }

    .guidance-arrow svg:hover {
        transform: rotate(90deg) translateY(5px);
    }
}



.about-us {
    position: relative;
    padding: 120px 0;
    background: black;
    overflow: hidden;
    /* Ajoute ton image de fond à droite */
    background-image: url('/static/img/index/about.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 55% auto; /* ou 55% 100% selon le rendu voulu */
    padding: 10px 0;
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: right;
}

.about-bg img {
    height: 100%;
    object-fit: cover;
    margin-right: 20px;
    /* filter: blur(25px);
    opacity: 0.2; */
}

.container-about {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-flex {
    display: flex;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
}

/* TEXT PART */
.about-text {
    flex: 0 1 45vw;
    max-width: 45vw;
    min-width: 300px;
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1; 
    margin-left: 30px;
}

.about-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.about-title {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 77, 239, 0.3);
}

.about-title span {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0c4ec;
    margin-bottom: 20px;
}

.about-btn {
    width: fit-content;
    padding-left: 0;
    border: none;
}

.about-btn:hover {
    text-decoration: underline;
    background-color: transparent;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
    }
    .about-text {
        max-width: 100vw;
        text-align: center;
        padding: 40px 30px;
    }
    .about-us {
        background-position: center 80px;
        background-size: cover;
    }
}

.contact-us {
    background: black;
    padding: 100px 20px;
    color: #fff;
}

.container-contact {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2.6rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 77, 239, 0.3);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #cbb7ec;
    margin-bottom: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background: #2d1c47;
    color: #fff;
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background: #2d1c47;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
}

/* Responsive */
@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero{
        height: 90vh;
    }

    .hero::before{
        background: url('/static/img/index/backgroud_phone.png') center/100% no-repeat;
        background-size: cover;
        background-position: center;
        filter: blur(14px);   /* Valeur ajustable */
        opacity: 0.62;   
        margin-top: 0;
        /* margin-bottom: 100px; */
    }

    .hero-content{
        margin-top: 30px;
        margin-bottom: 60px;
        padding: 5px;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: center;
    }

    .hero p,
    .hero-list li {
        font-size: 1.52em;
        text-align: center;
    }

    .steps,
    .guidance {
        flex-direction: column;
        align-items: center;
    }

    .step,
    .guide-item {
        width: 90%;
        margin-bottom: 20px;
    }

    .auth-buttons {
        display: flex;
    }

    .hero-buttons{
        align-items: center;
        justify-content: center;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 10px 25px;
    }

}

/* Pop-up messages en haut de l'écran */
.messages {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.alert {
    display: inline-block;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 24px #0002;
    padding: 16px 32px;
    margin: 0 auto 8px auto;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 5px solid #007bff;
    pointer-events: all;
    animation: fadeInOut 4s forwards;
}

.alert-success { border-left-color: #28a745; }
.alert-error, .alert-danger { border-left-color: #dc3545; }
.alert-warning { border-left-color: #ffc107; }

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-30px) scale(0.98);}
    10% { opacity: 1; transform: translateY(0) scale(1);}
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-30px) scale(0.98);}
}


/* NAVBAR RESPONSIVE IMPROVEMENTS */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.mobile-auth-buttons{
    display: none;
}

/* === GENERAL RESPONSIVE UTILITIES === */
* { box-sizing: border-box; }
body { overflow-x: hidden; }

@media (max-width: 768px) {
  .container, .container-guidance, .container-about, .container-contact {
    padding: 0 20px; max-width: 100%; overflow-x: hidden;
  }
}
@media (max-width: 480px) {
  .container, .container-guidance, .container-about, .container-contact {
    padding: 0 15px; max-width: 100%;
  }
}

/* === NAVBAR === */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; position: relative; }
  .nav-links, .auth-buttons { display: none; }
  .mobile-menu-toggle { display: block; }
  .nav-links.mobile-active {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); padding: 20px; gap: 15px; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .nav-links.mobile-active li { width: 100%; text-align: center; }
  .nav-links.mobile-active li a {
    display: block; padding: 12px 0; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.mobile-active li:last-child a { border-bottom: none; }
  .mobile-auth-buttons {
    display: flex; flex-direction: column; gap: 10px; margin-top: 15px;
    padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-auth-buttons .btn {
    padding: 12px 20px; border-radius: 25px; text-align: center;
    font-size: 1rem; text-decoration: none; transition: all 0.3s ease;
  }
}
  
/* === HERO SECTION === */
@media (max-width: 768px) {
  .hero { padding: 0 20px; min-height: 500px; }
  .hero::before { background-size: cover; background-position: center; }
  .hero-content { margin-top: 60px; max-width: 100%; }
  .hero h1 { font-size: 3rem; line-height: 1.5; }
  .hero p { max-width: 100%; font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .hero { padding: 0 15px; min-height: 450px; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons .btn { padding: 12px 40px; font-size: 1.3rem; }
}

/* === STEPS SECTION === */
@media (max-width: 768px) {
  .steps { padding: 80px 20px; }
  .steps-title { font-size: 2.2rem; }
  .steps-container { max-width: 100%; }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; }
  .step-content { padding-left: 0; }
  .step-line { left: 25px; }
}
@media (max-width: 480px) {
  .steps { padding: 60px 15px; }
  .steps-title { font-size: 1.8rem; }
  .step-content h3 { font-size: 1.2rem; }
  .step-content p { font-size: 0.9rem; }
}

/* === INFO SECTION === */
@media (max-width: 768px) {
  .info-section { padding: 60px 20px; overflow-x: hidden; }
  .container { max-width: 100%; padding: 0 15px; }
  .info-wrapper { grid-template-columns: 1fr; gap: 2px; width: 100%; }
  .info-left, .info-right { width: 100%; max-width: 100%; }
  .info-image-container, .about-badge { display: none; }
  .info-left, .info-right { text-align: center; }
  .info-title { font-size: 2.3rem; }
  .btn-info, .about-btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .info-section { padding: 40px 15px; }
  .container { padding: 0 10px; }
  .info-title { font-size: 1.8rem; }
  .info-block h3 { font-size: 1rem; }
  .info-block p { font-size: 0.9rem; }
}

/* === GUIDANCE SECTION === */
@media (max-width: 768px) {
  .guidance-modern { padding: 80px 15px; }
  .guidance-title { font-size: 2.2rem; margin-bottom: 50px; }
  .guidance-grid { justify-content: flex-start; gap: 20px; padding: 0 10px 20px; }
  .guidance-block { min-width: 280px; width: 280px; height: 280px; }
}
@media (max-width: 480px) {
  .guidance-modern { padding: 60px 10px; }
  .guidance-title { font-size: 1.8rem; margin-bottom: 40px; }
  .guidance-grid { padding: 0 5px 20px; }
  .guidance-block { min-width: 250px; width: 250px; height: 250px; }
  .guidance-content { padding: 12px 15px 15px; }
  .guidance-content h3 { font-size: 1.1rem; }
  .guidance-content p { font-size: 0.9rem; }
}

/* === ABOUT SECTION === */
@media (max-width: 768px) {
  .about-us { padding: 60px 0; background-size: cover; background-position: center; }
  .about-flex { flex-direction: column; gap: 0; }
  .about-text {
    max-width: 100%; margin: 0 20px; padding: 30px 15px; text-align: center;
    backdrop-filter: blur(15px); background: rgba(0,0,0,0.3);
  }
  .about-bg { display: none; }
}
@media (max-width: 480px) {
  .about-us { padding: 10px 0; }
  .about-text { margin: 0 15px; padding: 25px 10px; }
  .about-title { font-size: 2rem; }
  .about-title span { font-size: 1rem; }
  .about-text p { font-size: 0.95rem; }
}

/* === CONTACT SECTION === */
@media (max-width: 768px) {
  .contact-us { padding: 60px 20px; }
  .contact-title { font-size: 2.2rem; }
  .form-group { flex-direction: column; gap: 15px; }
  .form-group input { width: 100%; }
}
@media (max-width: 480px) {
  .contact-us { padding: 30px 15px; }
  .contact-title { font-size: 1.8rem; }
  .contact-subtitle { font-size: 1rem; }
  .form-group input, textarea { padding: 12px 15px; font-size: 0.9rem; }
}

/* === MESSAGES === */
@media (max-width: 768px) {
  .messages { top: 80px; max-width: 95vw; min-width: 280px; }
  .alert { padding: 12px 20px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .messages { top: 70px; max-width: 98vw; min-width: 250px; }
  .alert { padding: 10px 16px; font-size: 0.9rem; }
}
