/* Small devices such as phones (from 0 to 320px) */
@media only screen and (max-width: 40em) {
    .innerheader{
        width:100%;
        margin: 0px auto;
        margin-top: 66px;
        margin-bottom: 16px;
    }
    .logo-block {
        display: flex;
        justify-content: center;
    }
    .logo-block img{
        width: 298px;
        height: 66px;
    }
    .container{
        width:100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        margin: 0 auto;
        
    }
    .container h1 {
        font-family:"Helvetica W01 Light";
        font-weight: 100;
        font-size: 23px;
        display: flex;
        justify-content: center;
    }
    .block-cond{
        display: flex;
        padding: 5px 0px;
    }
    .block-cond input {
        outline: none;
        border: none;
    }
    .block-cond label {
        font-family:"Helvetica W01 Light";
        font-size: 20px;
    }
    #surname{
        display: block;
        border-bottom: 1px solid #000;
        height: 75px;
        font-size: 22px;
    }
    #surname:hover{
        border-bottom: 2px solid #000;
    }
    #name{
        display: block;
        border-bottom: 1px solid #000;
        height: 75px;
        font-size: 22px;
       
    }
    #name:hover{
        border-bottom: 2px solid #000;
    }
    .user-surname{
        display: block;
        width: auto;
        text-align: baseline;
        font-size: 22px;
        font-weight: bold;
    
        background-color: #f5f1f1;
     
    }
    .user-name{
        display: block;
        width: auto;
        text-align: baseline;
        font-size: 22px;
        font-weight: bold;
        background-color: #f5f1f1;
    }
    .block-cond-form{
        margin: 0 auto;
        font-size: 14px;
    }
    .form-block1{
        font-family: 'Cormorant Garamond', serif;
        font-size: 18px;
        padding-left: 10px;
        display: flex;
        height: auto;
        justify-content: space-between;
        flex-direction: column;
    }
    .form-block1 input{
        width: 320px;
        height: 2em;
    }
    .form-block2{
        font-family: 'Cormorant Garamond', serif;
        text-align: start;
        margin-top: 16px;
        font-size: 18px;
        padding-left: 10px;
        height: auto;
        line-height: 2em;
        width: 90%;
    }
    .form-block2 span{
        text-align: center;
    }
    .form-block3{
        height: 400px;
        display: flex;
        justify-content: center;
    }
    .form-block3 iframe{
        width: auto;
    }
    .form-block4{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
    }
    .form-block4 input {
        width: 173px;
        height: 36px;
        color: #FFF;
        background-color: #000;
        border-radius: 5px;
    }
    .form-block4 input:hover{
        background-color:#e94615;
        transition: all .4s ease
    }
    .invisible{
        visibility: hidden;
        height: 0;
        transition: all .6s ease-in-out;
    }

    .thanks{
        border: 1px solid #dcdcdc;
        height: 3em;
        padding-top: 1em;
        border-radius: 5px;
        background-color: aliceblue;
        text-align: center;
    }

}
/* Small devices such as large phones (640px and up) */
@media only screen and (min-width: 40em) {
    .innerheader{
        width:641px;
        margin: 85px auto;
    }
    .logo-block {
        display: flex;
        justify-content: center;
    }
    .logo-block img{
        width: 298px;
        height: 66px;
    }
    .container{
        width:641px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        margin: 0 auto;
        padding-top: 10px;
    }
    .container h1 {
        font-family:"Helvetica W01 Light";
        font-weight: 100;
        font-size: 23px;
        display: flex;
        justify-content: center;
    }
    .block-cond{
        display: flex;
        padding: 30px 0px;
    }
    .block-cond input {
        outline: none;
        border: none;
    }
    .block-cond label {
        font-family:"Helvetica W01 Light";
        font-size: 13px;
    }
    #surname{
        display: block;
        border-bottom: 1px solid #000;
        height: 27px;
    }
    #surname:hover{
        border-bottom: 2px solid #000;
    }
    #name{
        display: block;
        border-bottom: 1px solid #000;
        height: 27px;
    }
    #name:hover{
        border-bottom: 2px solid #000;
    }
    .user-surname{
        display: inline-block;
        width: 220px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
    }
    .user-name{
        display: inline-block;
        width: 220px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
    }
    .block-cond-form{
        margin: 0 auto;
        font-size: 14px;
    }
    .form-block1{
        font-family: 'Cormorant Garamond', serif;
        font-size: 16px;
        padding-left: 10px;
        display: flex;
        height: 65px;
        justify-content: space-between;
    }
    .form-block1 input{
        width: 284px
    }
    .form-block2{
        font-family: 'Cormorant Garamond', serif;
        font-size: 16px;
        padding-left: 10px;
        height: 55px;
        line-height: 1.75em;
    }
    .form-block3{
        height: 250px;
        display: flex;
        justify-content: center;
    }
    .form-block3 iframe{
        width: 600px;
    }
    .form-block4{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
    }
    .form-block4 input {
        width: 173px;
        height: 36px;
        color: #FFF;
        background-color: #000;
        border-radius: 5px;
    }
    .form-block4 input:hover{
        background-color:#e94615;
        transition: all .4s ease
    }
    .invisible{
        visibility: hidden;
        height: 0;
        transition: all .6s ease-in-out;
    }

    .thanks{
        border: 1px solid #dcdcdc;
        height: 3em;
        padding-top: 1em;
        border-radius: 5px;
        background-color: aliceblue;
        text-align: center;
    }

}

 /* Largest devices such as desktops (1024px and up) */
@media only screen and (min-width: 64em) {
    .innerheader{
        width:641px;
        margin: 85px auto;
    }
    .logo-block {
        display: flex;
        justify-content: center;
    }
    .logo-block img{
        width: 298px;
        height: 66px;
    }
    .container{
        width:641px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        margin: 0 auto;
        padding-top: 10px;
    }
    .container h1 {
        font-family:"Helvetica W01 Light";
        font-weight: 100;
        font-size: 23px;
        display: flex;
        justify-content: center;
    }
    .block-cond{
        display: flex;
        padding: 30px 0px;
    }
    .block-cond input {
        outline: none;
        border: none;
    }
    .block-cond label {
        font-family:"Helvetica W01 Light";
        font-size: 13px;
    }
    #surname{
        display: block;
        border-bottom: 1px solid #000;
        height: 27px;
    }
    #surname:hover{
        border-bottom: 2px solid #000;
    }
    #name{
        display: block;
        border-bottom: 1px solid #000;
        height: 27px;
    }
    #name:hover{
        border-bottom: 2px solid #000;
    }
    .user-surname{
        display: inline-block;
        width: 220px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
    }
    .user-name{
        display: inline-block;
        width: 220px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
    }
    .block-cond-form{
        margin: 0 auto;
        font-size: 14px;
    }
    .form-block1{
        font-family: 'Cormorant Garamond', serif;
        font-size: 16px;
        padding-left: 10px;
        display: flex;
        height: 65px;
        justify-content: space-between;
    }
    .form-block1 input{
        width: 284px
    }
    .form-block2{
        font-family: 'Cormorant Garamond', serif;
        font-size: 16px;
        padding-left: 10px;
        height: 55px;
        line-height: 1.75em;
    }
    .form-block3{
        height: 250px;
        display: flex;
        justify-content: center;
    }
    .form-block3 iframe{
        width: 600px;
    }
    .form-block4{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
    }
    .form-block4 input {
        width: 173px;
        height: 36px;
        color: #FFF;
        background-color: #000;
        border-radius: 5px;
    }
    .form-block4 input:hover{
        background-color:#e94615;
        transition: all .4s ease
    }
    .invisible{
        visibility: hidden;
        height: 0;
        transition: visibility .2s ease-in;
    }

    .thanks{
        border: 1px solid #dcdcdc;
        height: 3em;
        padding-top: 1em;
        border-radius: 5px;
        background-color: aliceblue;
        text-align: center;
    }
}
/**************************************************************************
 * BOUTON DE PAIEMENT PAYPAL (lien hébergé « No-Code Checkout »)
 * Ajouté lors du passage au site statique : remplace le bouton rendu par
 * l'ancien SDK PayPal dans #paypal-button-container.
 * Déclaré HORS media queries : ces règles valent pour toutes les tailles
 * d'écran (les blocs plus haut sont dupliqués par résolution).
 **************************************************************************/
.btn_paypal{
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
/* Quand .btn_paypal porte aussi .invisible (avant acceptation des CGV),
 * le display:flex ci-dessus l'emporterait sur le height:0 de .invisible ;
 * on force donc explicitement le masquage complet dans ce cas. */
.btn_paypal.invisible{
    display: none;
}
.paypal-link{
    display: inline-block;
    padding: 12px 32px;
    color: #FFF;
    background-color: #000;          /* même charte que le bouton « Accepter » */
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color .4s ease;
}
.paypal-link:hover{
    background-color: #e94615;       /* orange maison au survol */
}
/* État inactif (CGV non acceptées) : grisé et inerte à la souris.
 * pointer-events:none ne bloque PAS le clavier ni l'ouverture via menu
 * contextuel : le blocage réel est doublé en JavaScript (aria-disabled). */
.paypal-link--off{
    background-color: #b5b5b5;
    pointer-events: none;
    cursor: default;
}
/**************************************************************************
 * BLOC DE REDIRECTION (pages de montant sans acceptation des CGV)
 * Page épurée : plus de message ni de bouton, seul un lien de secours
 * discret subsiste. Les classes .paypal-link / .paypal-link--off plus haut
 * restent utilisées par geoloc.html (tunnel CGV) : ne pas y toucher.
 **************************************************************************/
.container .paiement-redirect-bloc{
    width: 100%;               /* enfant d'un conteneur flex : pleine largeur */
    text-align: center;        /* centre le lien inline-block qu'il contient  */
    padding: 40px 0;
}
/* Lien de secours discret : simple texte souligné, petit et gris —
 * volontairement effacé, il ne sert que si JavaScript est désactivé.
 * Sélecteur préfixé par .container + états :link/:visited couverts :
 * la règle bat le bleu par défaut du navigateur dans tous les états,
 * même si une règle a{} générique venait s'ajouter un jour.              */
.container .paiement-fallback-link,
.container .paiement-fallback-link:link,
.container .paiement-fallback-link:visited{
    display: inline-block;
    margin-top: 24px;
    font-family: "Helvetica W01 Light";
    font-size: 13px;
    color: #767676;
    text-decoration: underline;
}
.container .paiement-fallback-link:hover{
    color: #444;
}
/* Titre des pages de redirection : « Chargement de la page de paiement »
 * est plus long que les anciens titres ; en display:flex (règle générale
 * .container h1), le texte ne passe pas à la ligne et déborde sur mobile.
 * La classe .titre-redirect n'existe QUE sur les 10 pages de montant —
 * geoloc.html (tunnel CGV) garde son rendu d'origine. Sélecteur
 * .container h1.titre-redirect : plus spécifique que .container h1,
 * il gagne quelle que soit leur position dans le fichier.               */
.container h1.titre-redirect{
    display: block;
    text-align: center;
    overflow-wrap: break-word;
    padding: 0 12px;
}
