/* =========================================================
   PAGE D'INSCRIPTION CUSTOM — Style identique à authentication
   Scope : .page-customer-account#registration uniquement
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

body#registration {
    font-family: 'Cairo', sans-serif;
}

/* Masquer breadcrumb sur page inscription */
body#registration #breadcrumb_wrapper {
    display: none;
}

/* ---- Conteneur d'inscription : la vidéo est le fond de CE bloc uniquement ---- */
body#registration .register-container {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    border-radius: 0px;
}

/* ---- Fond vidéo : cantonné au .register-container, ne touche pas header/footer ---- */
body#registration .register-container .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

body#registration .register-container .video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

body#registration .register-container .video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

/* ---- Carte d'inscription (au-dessus de la vidéo) ---- */
body#registration .register-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 40px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

body#registration .register-header {
    text-align: center;
    margin-bottom: 25px;
}

body#registration .register-header .logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body#registration .register-header .logo i {
    font-size: 35px;
    color: #6B5D3F;
}

body#registration .register-header h1 {
    font-size: 24px;
    color: #6b5d3f;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body#registration .register-header p {
    font-size: 13px;
    color: #6b5d3f;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ---- Champs du formulaire (généré par le composant PrestaShop) ---- */
body#registration .register-form label,
body#registration .register-form .form-control-label {
    display: block;
    font-weight: 600;
    color: #6b5d3f;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body#registration .register-form .form-group {
    margin-bottom: 20px;
}

body#registration .register-form input.form-control,
body#registration .register-form input[type="email"],
body#registration .register-form input[type="password"],
body#registration .register-form input[type="text"],
body#registration .register-form select.form-control {
    width: 100%;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    color: #6b5d3f;
    height: auto;
}

body#registration .register-form input.form-control::placeholder {
    color: rgba(44, 44, 44, 0.5);
}

body#registration .register-form input.form-control:focus,
body#registration .register-form select.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Radio et checkbox */
body#registration .register-form .custom-radio,
body#registration .register-form .custom-checkbox {
    margin-bottom: 0px;
	    margin-right: 5px;
}

body#registration .register-form .custom-radio label,
body#registration .register-form .custom-checkbox label {
    font-size: 13px;
    cursor: pointer;
    margin: 0;
    color: #6b5d3f;
    font-weight: 400;
    text-transform: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body#registration .register-form input[type="radio"],
body#registration .register-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
}

/* ---- Bouton d'inscription ---- */
body#registration .register-form button[type="submit"],
body#registration .register-form .btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2D9B8E 0%, #25867b 100%);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

body#registration .register-form button[type="submit"]:hover,
body#registration .register-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 155, 142, 0.5);
    background: linear-gradient(135deg, #25867b 0%, #1f6e65 100%);
}

/* ---- Texte "Already have account" ---- */
body#registration .register-form > p {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b5d3f;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body#registration .register-form > p a {
    color: #2D9B8E;
    text-decoration: none;
    font-weight: 700;
}

body#registration .register-form > p a:hover {
    text-decoration: underline;
}

/* Messages d'erreur/succès */
body#registration .alert {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Liens */
body#registration .register-form a {
    color: #2D9B8E;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    body#registration .register-card {
        padding: 30px 25px;
    }

    body#registration .register-container {
        padding: 40px 20px 40px;
    }
}
/* =====================================
   Formulaire inscription 2 colonnes
===================================== */

@media (min-width: 769px) {

    body#registration .customer-fields-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }


    /* Chaque champ prend une colonne */
    body#registration .customer-fields-grid .form-group {
        width: 100%;
        margin-bottom: 20px;
    }


    /* Champs pleine largeur */
    body#registration .customer-fields-grid .form-group:has(input[type="checkbox"]),
    body#registration .customer-fields-grid .form-group:has(.custom-checkbox),
    body#registration .customer-fields-grid .form-group:has(.radio-inline) {
        grid-column: 1 / -1;
    }

}
@media (max-width:768px){

    body#registration .customer-fields-grid {
        display:block;
    }

}
/* Correction Titre / Civilité PrestaShop */
body#registration .customer-fields-grid .form-group:has(#field-id_gender) {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}


/* Label Titre */
body#registration .customer-fields-grid .form-group:has(#field-id_gender) > label {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 25px 0 0 !important;
}


/* Conteneur des radios */
body#registration .customer-fields-grid .form-group:has(#field-id_gender) > .col-md-9 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}


/* Radios */
body#registration .customer-fields-grid .form-group:has(#field-id_gender) .radio-inline {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 20px 0 0 !important;
    padding: 0 !important;
}


/* Le petit bloc vide de commentaire PrestaShop */
body#registration .customer-fields-grid .form-group:has(#field-id_gender) > .form-control-comment {
    display: none !important;
}
/* ===== Correction Titre / Civilité ===== */

body#registration #field-id_gender-1,
body#registration #field-id_gender-2 {
    width: auto !important;
}


/* La ligne complète du champ Titre */
body#registration .form-group:has(#field-id_gender-1) {
    display: flex !important;
    align-items: center !important;
    grid-column: 1 / -1 !important;
}


/* Label Titre */
body#registration .form-group:has(#field-id_gender-1) > .form-control-label {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 20px 0 0 !important;
}


/* Bloc contenant M / Mme */
body#registration .form-group:has(#field-id_gender-1) > .col-md-9 {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
}


/* Les deux options */
body#registration .form-group:has(#field-id_gender-1) .radio-inline {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 20px !important;
    margin-bottom: 0 !important;
}


/* Suppression du bloc vide à droite */
body#registration .form-group:has(#field-id_gender-1) .form-control-comment {
    display: none !important;
}
body#registration .form-control-comment {
    padding-top: 6px;
    padding-inline-start: 10px;
    display: inline-block;
    color: #6b5d3f;
    line-height: 20px;
}

/* ===== Amélioration du champ mot de passe ===== */

/* Conteneur du champ mot de passe */
body#registration .password-field-wrapper {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
}

/* Input mot de passe - prend plus d'espace */



/* ===== Style pour 'Optionnel' à côté du label ===== */

body#registration .optional-inline {
    display: inline-block !important;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
    letter-spacing: 0;
}

/* Masquer le bloc optionnel en bas pour birthday */
body#registration .form-group:has(.birthday-field-wrapper) .form-control-comment {
    display: none !important;
}

/* Forcer le label de date de naissance à afficher optionnel inline */
body#registration .form-group:has(.birthday-field-wrapper) .form-control-label {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Cibler le form-control-comment qui est sibling de col-md-9 contenant birthday */
body#registration .form-group .col-md-9:has(.birthday-field-wrapper) + .col-md-3.form-control-comment {
    display: none !important;
}

/* Alternative - cibler directement le form-control-comment du champ birthday */
body#registration .customer-fields-grid > .form-group:has(.birthday-field-wrapper) > .col-md-3.form-control-comment {
    display: none !important;
}

/* Réduire l'espace vide sous les checkboxes */
body#registration .form-group:has(input[type="checkbox"]) {
    margin-bottom: 15px !important;
}

body#registration .form-group:has(.custom-checkbox) {
    margin-bottom: 15px !important;
}

/* Réduire l'espace dans la colonne de commentaire pour les checkboxes */
body#registration .form-group:has(input[type="checkbox"]) .form-control-comment,
body#registration .form-group:has(.custom-checkbox) .form-control-comment {
    min-height: 0 !important;
    padding: 0 !important;
}