/**
Fonts
 */

@font-face {
    font-family: 'leonidas';
    src: url('LeonidasScript_TB2.woff2') format('woff2');
}

@font-face {
    font-family: 'Ubuntu';
    font-weight: normal;
    src: url('Ubuntu-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Ubuntu-light';
    src: url('Ubuntu-Light.woff2') format('woff2');
}

/**
Design
 */
:root {
    --primary-color: #021F5B;
    --secondary-color: #A69557;
    --btn-color: #A69557;
    --base-color: #FFFFFF;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body{
    background-color: var(--primary-color);
    margin: 0;
}

/**
Layout — les classes utilitaires reprises du markup (container, row, col-12,
text-center) sont redéfinies ici : Bootstrap n'est pas chargé sur cette page.
 */
.container{
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
.row{
    display: flex;
    flex-wrap: wrap;
}
.col-12{
    width: 100%;
}
.text-center{
    text-align: center;
}

/* Rythme vertical calé sur la maquette 1920x1080, exprimé en vh pour rester
   proportionnel : 106px -> 9.8vh, 166px -> 15.4vh. Pas de centrage vertical,
   la maquette laisse volontairement du vide en bas (~276px). */
.waiting-page{
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    /* Le minimum en rem évite que le logo se colle au bord sur un écran bas. */
    padding: max(15vh, 3rem) 0 calc(17px + 4vh);
}
.waiting-page__main{
    display: flex;
    flex-direction: column;
    margin-top: 15.4vh;
    gap: 69px;
}

.h1{
    font-family: 'leonidas', sans-serif;
    font-size: 60px;
    color: var(--base-color);
    margin: 0 auto;
    width: fit-content;
}
.color-text{color: var(--base-color);}

.center-img img{
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 394px;
    height: auto;
    object-fit: contain;
}
.p{
    font-family: 'Ubuntu-light', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color: var(--base-color);
    margin: 0 auto;
    text-align: center;
    /* 29px d'interligne sur 25px de corps, comme la maquette. */
    line-height: 1.16;
}
/* Pas de max-height : le texte passe sur 3 lignes en mobile et serait rogné. */
.content-p{
    width: 100%;
    max-width: 658px;
    margin: 21px auto 0;
}
.end-page{
    width: 100%;
    height: 17px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
}
.btn-send{
    background-color: var(--btn-color);
    border: none;
    width: 173px;
    height: 54px;
    border-radius: 88px;
    padding: 10px 20px;
    font-family: 'Ubuntu-light', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--base-color);
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.style-input{
    max-width: 758px;
    max-height: 74px;
    margin: 0 auto;
    position: relative;
    background-color: var(--base-color);
    border-radius: 88px;
}
.input-email-custom{
    width: 100%;
    /* Réserve la place du bouton en absolu : le texte ne passe jamais dessous. */
    padding: 10px 205px 10px 30px;
    height: 74px;
    border: none;
    font-family: 'Ubuntu-light', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 88px;
}
.input-email-custom::placeholder{
    color: var(--primary-color);
    opacity: 1;
}
.input-email-custom:focus-visible{
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
}
.form-check-input {
    width: 1.3em;
    height: 1.3em;
    background-color: white;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    /* Sans ça, le flex de .form-check l'écrase en ovale sur label 2 lignes. */
    flex-shrink: 0;
}

.form-check-input:focus {
    outline: none;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: gray;
    border-color: gray;
}

.form-check-input:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.form-check-label {
    color: var(--base-color);
    font-family: 'Ubuntu-light', sans-serif;
    font-size: 11px;
    font-weight: 300;
    cursor: pointer;
}

.form-check{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}
@media (max-width: 767px) {
    /* Label sur 2 lignes : la puce s'aligne en haut plutôt qu'au milieu. */
    .form-check{
        align-items: flex-start;
        padding: 0 10px;
    }
}

/**
Retours de soumission
 */
.form-feedback{
    font-family: 'Ubuntu-light', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-align: center;
    margin: 0 auto 16px;
    max-width: 758px;
}
.form-feedback p{
    margin: 0 0 4px;
}
.form-feedback--success{
    color: var(--secondary-color);
}
.form-feedback--error{
    color: #FFB4B4;
}

/**
Responsive
 */
@media (max-width: 767px) {
    .h1{
        font-size: 40px;
        line-height: 1.1;
    }
    .p{
        font-size: 18px;
    }
    .waiting-page__main{
        gap: 28px;
    }
    /* Le bouton passe sous le champ : plus de positionnement absolu. */
    .style-input{
        max-height: none;
        border-radius: 32px;
        padding: 8px;
    }
    .input-email-custom{
        padding: 10px 20px;
        height: 56px;
        font-size: 16px;
        text-align: center;
    }
    .btn-send{
        position: static;
        transform: none;
        width: 100%;
        height: 48px;
    }
}

.mb-Space{
    margin-bottom: 100px;
}

@media (max-width: 468px) {
    .waiting-page{
        padding: max(9vh, 3rem) 0 calc(17px + 4vh);
    }
}
