

/*************************/
/*         BASE          */
/*************************/

body {
    font-family: Quicksand, arial, helvetica, sans-serif;
    font-weight:500;
    margin: 0;
    background: #FAFBFC;
}

.container {
    max-width: 550px;
    margin: 20px auto;
}

hr {
    border: none;
    border-top:2px solid #dfdfdf;
    margin: 20px 0;
}


.progression {
    width: 100%;
    max-width: 661px;
    height: auto;
    margin: 20px 0;
}

.mentions {
    font-size: 13px;
    text-align: center;
    color: grey;
    margin-top: 20px;
}

.mentions a {
    text-decoration: underline;
    color: grey;
}


/*************************/
/*       FORMULAIRE      */
/*************************/

.form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    color: black;
    text-align: left;
    margin: 25px 20px 0;
    box-sizing: border-box;
    box-shadow: 0px 5px 16px 0px rgba(0, 0, 0, 0.15);}

@media (max-width: 600px) {
    .form {
        margin: 20px 15px;
        padding: 25px;
    }
}

h2 {
    font-size: 30px;
    margin: 20px 0 40px 0;
    color: #be4a8c;
    text-align: center;
}
a {
    color: #33788c;
}

.field {
    margin-bottom: 10px;
}

label {
    font-weight: bold;
    display: block;
    margin: 15px 0 5px;
    font-size: 16px;
    color:#33788c;
}

.subtitle {
    color:#33788c;
    font-weight: bold;
    margin: 0 0 20px;
}
.required {
    color: #FF0000;
}

button[type="submit"] {
    display: block;
    margin: 12px auto 0;
    cursor: pointer;
    font-family: Quicksand, arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #be4a8c !important;
    border: 0;
    border-radius: 20px;
    color: #fff;
    padding: 10px 20px;
}


/*************************/
/*        CHAMPS         */
/*************************/

input[type="text"],
input[type="email"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    color: #000 !important;
    background: white;
    font-family: inherit;
}

textarea {
    resize: none;
}

.errorlist {
    color: #ed2525;
    font-size: 16px;
    font-weight: bold;
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}


/*************************/
/*    RADIOS & CASES     */
/*************************/

.radio-group {
    margin-bottom: 10px;
}

.field-offre{
    margin-bottom: 40px;
}

.radio-group legend,
.checkbox-group legend {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.radio-group legend {
    color: #33788c;
}

.radio-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.radio-row input[type="radio"],
.radio-row input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #33788c;
}

.radio-row label {
    font-weight: 500;
    margin: 0;
    color: inherit;
    cursor: pointer;
}

.shipping .radio-row, 
.payment .radio-row {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
    padding: 18px 10px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.shipping .radio-row label::before,
.payment .radio-row label::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 4px;
}


/*************************/
/*        TEXTES         */
/*************************/

.intro {
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 500;
    color: #33788c;
    border-left: 2px solid #33788c;
    padding-left: 15px;
}

.highlight {
    font-weight: bold;
    background: #edf7fc;
    padding: 0 5px;
}

.note {
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
}

.step-4 .note {
    margin: 1em 0 20px;
}

.information {
    padding: 20px;
    background: #edf7fc;
    font-size: 16px;
    line-height: 1.4;
}


.information strong {
    font-weight: bold;
}

.accordion {
    padding: 15px 20px;
}

.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color:#33788c;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid #33788c;
    border-bottom: 2px solid #33788c;
    transform: rotate(45deg);
}

.accordion[open] summary {
    margin-bottom: 10px;
}

.accordion[open] summary::after {
    transform: rotate(-135deg);
}


/***********************************/
/*    ETAPE 4 : OFFRE & CAUTION    */
/***********************************/

.field-offre .radio-row:has(input:checked),
.field-caution .radio-row:has(input:checked) {
    border-bottom-color: #be4a8c;
}

.field-offre .radio-row input[type="radio"],
.field-caution .radio-row input[type="radio"] {
    accent-color: #be4a8c;
    position: absolute;
    top: 15px;
    right: 15px;
}

.field-offre fieldset {
    display: flex;
    gap: 10px;
}

.field-offre .radio-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 4px;
    border-bottom: 5px solid transparent;
    padding: 30px 10px 20px 10px;
    margin: 15px 0 30px;
    cursor: pointer;
    position: relative;
    box-shadow:  0 2px 8px  rgba(0, 0, 0, 0.15);
}

.field-offre .radio-row label {
    flex: 1;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
    align-items: center;
    color: #be4a8c;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

.field-offre .radio-row label::after {
    display: block;
    width: 100%;
    height:30px;
    font-size: 13px;
    line-height: 1.2;
    position: absolute;
    bottom: -50px;
    left: 0;
    font-weight: bold;
    color: #545454;
}

.field-offre fieldset .radio-row:nth-child(2) label::after {
    content: "soit 18,99€/mois après crédit d'impôt";
}

.field-offre fieldset .radio-row:nth-child(3) label::after {
    content: "soit 24,99€/mois après crédit d'impôt";
}

.field-offre label[for="offre_wifi"]::before {
    content: '';
    display: block;
    width: 100%;
    height: 105px;
    background-image: url("wifi.svg");
    background-repeat: no-repeat;
    background-position-x: center;
    zoom: 170%;
}

.field-offre label[for="offre_4g"]::before {
    content: '';
    display: block;
    width: 100%;
    height: 105px;
    background-image: url("no_wifi.svg");
    background-repeat: no-repeat;
    background-position-x: center;
    zoom: 170%;
}

.field-caution fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.field-caution fieldset legend {
    width: 100%;
    margin-bottom: 40px;
}

.field-caution .radio-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 4px;
    border-bottom: 5px solid transparent;
    padding: 30px 10px 17px;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.field-caution .radio-row label {
    align-items: center;
    color: black;
    text-align: center;
    font-size: 17px;
    line-height: 1.2;
    font-weight: bold;
    cursor: pointer;
}

.field-caution fieldset .radio-row:nth-child(3) label::after {
    content: "(si vous gardez LiNote)";
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 500;
}

.field-caution fieldset .radio-row:nth-child(2) label::after {
    content: "Commande prioritaire";
    display: block;
    background: #4CAF50;
    color: white;
    padding: 8px 0px;
    border-radius: 50px;
    font-weight: bold;
    width: 100%;
    font-size: 15px;
    line-height: 1.2;
    position: absolute;
    top: -22px;
    left: 0;
}

.field-caution fieldset .radio-row:nth-child(2) label::before {
    content: '';
    display: block;
    width: 100%;
    height: 90px;
    margin-top: 10px;
    text-align: center;
    background-image: url("shipping.svg");
    background-repeat: no-repeat;
    background-position-x: center;
    zoom: 100%;
}

.field-caution fieldset .radio-row:nth-child(3) label::before {
    content: '';
    display: block;
    width: 100%;
    height: 90px;
    margin-top: 10px;
    text-align: center;
    background-image: url("waiting.svg");
    background-repeat: no-repeat;
    background-position-x: center;
    zoom: 100%;
}

/*  Etape 4 : conditions generales de vente  */


@media (max-width: 600px) {
    .field-offre fieldset,
    .field-caution fieldset {
        flex-direction: column;
    }

    .field-caution fieldset .radio-row:nth-child(2) {
        margin-top: 22px;
        margin-bottom: 15px;
    }

    .field-offre label[for="offre_wifi"]::before,
    .field-offre label[for="offre_4g"]::before,
    .field-caution fieldset .radio-row:nth-child(2) label::before,
    .field-caution fieldset .radio-row:nth-child(3) label::before {
        background-size: contain;
    }
}


/***********************************/
/*    ETAPE 6 : RECAPITULATIF      */
/***********************************/

.recap h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color:#33788c;
    border-bottom: 1px solid #33788c;
    padding-bottom: 5px;
    margin: 40px 0 0;
}

.recap .edit {
    font-size: 13px;
    background: #edf7fc;
    border-radius: 20px;
    color: #33788c;
    font-weight: bold;
    padding: 7px 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.recap .error {
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    color: #c0392b;
    font-weight: bold;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}


/*  Popup d'attente pendant la validation de la commande  */
.wait-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wait-popup .box {
    background: #fff;
    border-radius: 5px;
    max-width: 420px;
    width: calc(100% - 40px);
    padding: 30px;
    text-align: center;
}

.wait-popup h3 {
    color: #be4a8c;
    margin: 0 0 15px;
}

.wait-popup p {
    color: #333;
    font-size: 15px;
    margin: 0;
}

.wait-popup .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #eee;
    border-top-color: #be4a8c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/***********************************/
/*    ETAPE 7 : CONFIRMATION       */
/***********************************/
.confirmation h3{
    color:#33788c;
    margin:0 0 2px;
}
.confirmation p{
    margin: 0;
}

/*************************/
/*   CONTACT INFOS       */
/*************************/

.contact-info {
    font-size: 16px;
    color: white;
    margin-top: 20px;
    padding:20px;
    margin: 15px 20px 0;
    background: #33788c;
    border-radius: 10px;
}
@media (max-width: 600px) {
    .contact-info {
        margin: 15px 15px 0;
    }
}


/*************************/
/*   MENTION GOCARDLESS  */
/*************************/

.gc-footer {
    font-size: 13px;
    text-align: center;
    color: grey;
    margin-top: 20px;
}

.gc-footer a {
    color: grey;
    text-decoration: underline;
}
