@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --orange: #F15A24;
    --orange-hover: #d94d1a;
    --white: #ffffff;
    --gray: #8fa3b8;
    --gold: #FFD700;
    --j:#c9a84c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-image: linear-gradient(to right, #080c1d, #1d2341);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container {
    margin-top: 10px;
    margin-bottom: 40px;
    width: 80%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 23px;
    margin-top: 15px;
}

.logo img {
    width: 160px;
}

.content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch; 
    gap: 40px;
    padding: 0 10px;
}

.text {
    flex: 1;
    display: flex;             
    flex-direction: column;
    justify-content: center;
}

.content h2 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: 0.03em;
    word-spacing: 2px;
}

.content p {
    width: 100%;
    word-spacing: 2px;
    margin: 10px 0 15px 0;
    font-size: small;
    color: rgb(146, 145, 145);
    line-height: 1.5;
    font-weight: 500;
}

/* ── FORM CARD ── */
.form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    width: 100%;
}

.form-card input {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    font-family: 'Open Sans', sans-serif;
    padding: 0 16px;
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.form-card input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-card input:focus { border-color: var(--orange); }
.form-card input.error { border-color: #ff4444; }

.error-msg { color: #ff6b6b; font-size: 12px; margin: 6px 0 10px; display: none; }
.error-msg.show { display: block; }

.name-group {
  display: flex;
  gap: 10px; /* espace entre les deux champs */
}

.name-group input {
  flex: 1; /* chaque input prend la moitié de la largeur disponible */
  box-sizing: border-box;
}

.btn-main {
    width: 100%;
    height: 42px;
    background: var(--orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-main:hover { background: var(--orange-hover); }
.btn-main:active { transform: scale(0.98); }
.btn-main:disabled { background: #a0460f; cursor: not-allowed; }

.form-note { text-align: center; margin-top: 12px; color: rgba(255, 255, 255, 0.35); font-size: 12px; }

/* ── HERO IMAGE ── */
.hero-img-wrap {
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    min-height: 300px; 
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;  
    object-fit: cover;
    display: block;
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 12, 29, 0.653);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
    background-image: linear-gradient(to right, #080c1d, #1d2341);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 50px 40px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}
.modal-overlay.show .modal { transform: scale(1); }

.modal-check {
    width: 68px; height: 68px;
    background: #22c55e;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}

.modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; font-weight: 700;
    color: #fff; margin-bottom: 12px;
}

.modal p { color: var(--gray); font-size: 15px; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
    .content {
        flex-direction: column;
    }
    .hero-img-wrap {
        order: -1;
        width: 100%;
        min-height: unset;        
        aspect-ratio: 16/9;      
    }
    .container {
        width: 95%;
        margin-bottom: 40px;
    }
    .content h2 {
        font-size: 24px;
    }
}