/* =========================================================
   PÔLE MS — DESIGN
   Bleu / Vert / Orange
   ========================================================= */

:root {

    --bleu: #0756a8;
    --bleu-fonce: #063b73;
    --bleu-clair: #eaf4ff;

    --vert: #19a463;
    --vert-clair: #eaf9f1;

    --orange: #f28c28;
    --orange-clair: #fff3e5;

    --blanc: #ffffff;
    --fond: #f5f8fb;

    --texte: #18324b;
    --gris: #64748b;
    --gris-clair: #e2e8f0;

    --danger: #d93636;

    --ombre:
        0 12px 35px rgba(8, 55, 100, 0.10);

    --rayon: 18px;

}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--texte);

    background:
        var(--fond);

    line-height: 1.6;

}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


img {
    max-width: 100%;
    display: block;
}


.hidden {
    display: none !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {

    background:
        linear-gradient(
            135deg,
            var(--bleu-fonce),
            var(--bleu)
        );

    color: white;

    position: relative;

    overflow: hidden;

}


.header::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -80px;
    top: -100px;

    background:
        var(--orange);

    opacity: 0.15;

    transform: rotate(25deg);

}


.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 20px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 12px;
    text-align: center;
}




.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.logo-mark {

    width: 55px;
    height: 55px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    clip-path:
        polygon(
            50% 0%,
            100% 100%,
            0% 100%
        );

}


.logo-mark span {

    position: absolute;

    bottom: 8px;

    height: 10px;

}


.logo-blue {

    width: 34px;

    background: var(--bleu);

    left: 5px;

}


.logo-green {

    width: 28px;

    background: var(--vert);

    left: 14px;

}


.logo-orange {

    width: 20px;

    background: var(--orange);

    left: 22px;

}


.logo-text {

    display: flex;

    flex-direction: column;

}


.logo-text strong {

    font-size: 27px;

    line-height: 1;

    letter-spacing: 1px;

}


.logo-text span {

    font-size: 11px;

    letter-spacing: 1.5px;

    opacity: 0.85;

}


.header-text {

    text-align: center;

    width: 100%;

}



.baseline {

    margin: 0;

    font-weight: bold;

    font-size: 17px;

}


.location {

    margin: 3px 0 0;

    color: #cde6ff;

    font-size: 14px;

}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    min-height: 470px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 70px 20px;

    background:

        linear-gradient(
            rgba(4, 54, 105, 0.83),
            rgba(4, 54, 105, 0.83)
        ),

        url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=85")
        center / cover;

}


.hero-content {

    max-width: 800px;

    color: white;

}


.hero-badge,
.section-label {

    display: inline-block;

    color: var(--orange);

    font-weight: bold;

    letter-spacing: 1.5px;

    font-size: 13px;

    margin-bottom: 10px;

}


.hero h1 {

    margin:
        0
        0
        20px;

    font-size:
        clamp(
            36px,
            7vw,
            65px
        );

    line-height: 1.05;

}


.hero h1 span {

    display: block;

    color: #6ee7ae;

}


.hero p {

    max-width: 650px;

    margin:
        0
        auto
        28px;

    font-size: 18px;

    color: #e8f2ff;

}


/* =========================================================
   BOUTONS
   ========================================================= */

.primary-btn {

    border: none;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            #ffad54
        );

    color: white;

    font-weight: bold;

    padding:
        14px
        24px;

    border-radius: 12px;

    box-shadow:
        0 8px 20px
        rgba(242, 140, 40, 0.25);

    transition:
        0.2s ease;

}


.primary-btn:hover {

    transform:
        translateY(-2px);

}


.primary-btn:disabled {

    opacity: 0.6;

    cursor: wait;

}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {

    max-width: 1200px;

    margin:
        auto;

    padding:
        70px
        24px;

}


.section-heading {

    margin-bottom: 30px;

}


.section-heading.center {

    text-align: center;

}


.section-heading h2 {

    margin:
        0
        8px;

    font-size:
        clamp(
            28px,
            5vw,
            42px
        );

    color: var(--bleu-fonce);

}


.section-heading p {

    margin: 0;

    color: var(--gris);

}


/* =========================================================
   PRÉSENTATION
   ========================================================= */

.presentation {

    text-align: center;

    max-width: 900px;

}


.presentation p {

    color: var(--gris);

    font-size: 17px;

}


/* =========================================================
   SERVICES
   ========================================================= */

.services {

    max-width: 1300px;

}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                250px,
                1fr
            )
        );

    gap: 24px;

}


.service-card {

    background: white;

    border-radius:
        var(--rayon);

    overflow: hidden;

    box-shadow:
        var(--ombre);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.service-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 18px 40px
        rgba(8, 55, 100, 0.15);

}


.service-image {

    height: 190px;

    position: relative;

    overflow: hidden;

}


.service-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;

}


.service-card:hover
.service-image img {

    transform:
        scale(1.06);

}


.service-number {

    position: absolute;

    top: 14px;
    left: 14px;

    background: white;

    color: var(--bleu);

    font-weight: bold;

    padding:
        5px
        10px;

    border-radius: 20px;

    font-size: 12px;

}


.service-content {

    padding: 22px;

}


.service-content h3 {

    margin:
        0
        8px;

    color:
        var(--bleu-fonce);

    font-size: 21px;

}


.service-content p {

    color:
        var(--gris);

    min-height: 82px;

}


.service-btn {

    width: 100%;

    border:
        2px solid
        var(--bleu);

    color:
        var(--bleu);

    background:
        white;

    padding:
        10px
        15px;

    border-radius:
        10px;

    font-weight:
        bold;

    transition:
        0.2s;

}


.service-btn:hover {

    background:
        var(--bleu);

    color:
        white;

}


/* =========================================================
   DEMANDE
   ========================================================= */

.request-section {

    max-width: 900px;

}


.step-box {

    background: white;

    border-radius:
        var(--rayon);

    padding:
        26px;

    margin-bottom:
        22px;

    box-shadow:
        var(--ombre);

}


.step-title {

    display: flex;

    gap: 15px;

    align-items: center;

    margin-bottom:
        20px;

}


.step-title > span {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        var(--bleu);

    color:
        white;

    font-weight:
        bold;

}


.step-title h3 {

    margin: 0;

    color:
        var(--bleu-fonce);

}


.step-title p {

    margin: 0;

    color:
        var(--gris);

    font-size:
        14px;

}


/* =========================================================
   SÉLECTION
   ========================================================= */

.selection-box {

    border-radius:
        12px;

    padding:
        15px;

    background:
        var(--vert-clair);

    border:
        1px solid
        #bcebd3;

    color:
        var(--vert);

    font-weight:
        bold;

}


.selection-box.empty {

    background:
        var(--fond);

    border-color:
        var(--gris-clair);

    color:
        var(--gris);

}


/* =========================================================
   BESOINS
   ========================================================= */

.needs-container {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}


.need-btn {

    border:
        2px solid
        var(--gris-clair);

    background:
        white;

    color:
        var(--texte);

    padding:
        10px
        15px;

    border-radius:
        30px;

    transition:
        0.2s;

}


.need-btn:hover {

    border-color:
        var(--vert);

    color:
        var(--vert);

}


.need-btn.selected {

    background:
        var(--vert);

    border-color:
        var(--vert);

    color:
        white;

}


.selected-list {

    margin-top:
        18px;

}


.selected-item {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 10px;

    padding:
        12px
        14px;

    background:
        var(--vert-clair);

    border-radius:
        10px;

    margin-bottom:
        8px;

}


.selection-actions {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

}


.edit-btn,
.delete-btn {

    border: none;

    padding:
        7px
        11px;

    border-radius:
        8px;

    font-size:
        13px;

    font-weight:
        bold;

}


.edit-btn {

    background:
        var(--orange-clair);

    color:
        #c96b08;

}


.delete-btn {

    background:
        #fff0f0;

    color:
        var(--danger);

}


/* =========================================================
   CHOIX DEMANDE
   ========================================================= */

.choice-buttons {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 15px;

}


.choice-btn {

    padding:
        18px;

    border:
        2px solid
        var(--gris-clair);

    background:
        white;

    color:
        var(--bleu-fonce);

    border-radius:
        13px;

    font-weight:
        bold;

}


.choice-btn:hover,
.choice-btn.active {

    border-color:
        var(--bleu);

    background:
        var(--bleu-clair);

    color:
        var(--bleu);

}


/* =========================================================
   FORMULAIRE
   ========================================================= */

label {

    display:
        block;

    margin:
        15px
        0
        6px;

    font-weight:
        bold;

    color:
        var(--bleu-fonce);

}


input,
textarea,
select {

    width:
        100%;

    padding:
        13px
        14px;

    border:
        1px solid
        var(--gris-clair);

    border-radius:
        10px;

    background:
        white;

    color:
        var(--texte);

    outline:
        none;

}


input:focus,
textarea:focus,
select:focus {

    border-color:
        var(--bleu);

    box-shadow:
        0 0 0 3px
        rgba(
            7,
            86,
            168,
            0.10
        );

}


textarea {

    resize:
        vertical;

}


/* =========================================================
   CALENDRIER
   ========================================================= */

.selection-control {

    width: 100%;

    display:
        flex;

    align-items:
        center;

    gap: 10px;

    border:
        1px solid
        var(--gris-clair);

    background:
        white;

    padding:
        14px;

    border-radius:
        10px;

    color:
        var(--texte);

    text-align:
        left;

}


.calendar-container {

    margin-top:
        15px;

    padding:
        18px;

    background:
        var(--fond);

    border-radius:
        14px;

}


.calendar-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        15px;

}


.calendar-header button {

    border:
        none;

    background:
        var(--bleu);

    color:
        white;

    width:
        38px;

    height:
        38px;

    border-radius:
        50%;

    font-size:
        24px;

}


.weekdays,
.calendar-days {

    display:
        grid;

    grid-template-columns:
        repeat(
            7,
            1fr
        );

    gap:
        5px;

}


.weekdays {

    margin-bottom:
        5px;

}


.weekdays span {

    text-align:
        center;

    font-size:
        12px;

    color:
        var(--gris);

    font-weight:
        bold;

}


.calendar-day {

    aspect-ratio:
        1;

    border:
        none;

    background:
        white;

    border-radius:
        8px;

    color:
        var(--texte);

}


.calendar-day:hover {

    background:
        var(--bleu-clair);

}


.calendar-day.selected {

    background:
        var(--orange);

    color:
        white;

    font-weight:
        bold;

}


.calendar-day.disabled {

    opacity:
        0.3;

    cursor:
        not-allowed;

}


.calendar-confirm {

    width:
        100%;

    margin-top:
        15px;

}


/* =========================================================
   RDV
   ========================================================= */

.appointment-field {

    margin-top:
        18px;

}


.appointment-summary {

    margin-top:
        18px;

    padding:
        18px;

    border-radius:
        12px;

    background:
        var(--vert-clair);

    border:
        1px solid
        #bcebd3;

}


.appointment-summary p {

    font-size:
        18px;

    font-weight:
        bold;

    color:
        var(--vert);

}


/* =========================================================
   RÉCAPITULATIF
   ========================================================= */

.client-summary {

    margin-top:
        25px;

    padding:
        20px;

    border-radius:
        14px;

    background:
        linear-gradient(
            135deg,
            var(--bleu-clair),
            #ffffff
        );

    border-left:
        5px solid
        var(--bleu);

}


.client-summary h4 {

    margin-top:
        0;

    color:
        var(--bleu-fonce);

}


.client-summary p {

    margin:
        8px 0;

}


.summary-need {

    display:
        inline-block;

    margin:
        4px;

    padding:
        5px
        9px;

    background:
        white;

    border-radius:
        20px;

    font-size:
        13px;

}


.submit-btn {

    width:
        100%;

    margin-top:
        25px;

    font-size:
        17px;

}


/* =========================================================
   CONFIRMATION
   ========================================================= */

.confirmation-box {

    text-align:
        center;

    background:
        white;

    border-radius:
        var(--rayon);

    padding:
        45px
        25px;

    box-shadow:
        var(--ombre);

}


.confirmation-icon {

    width:
        70px;

    height:
        70px;

    margin:
        auto
        auto
        18px;

    border-radius:
        50%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--vert);

    color:
        white;

    font-size:
        35px;

    font-weight:
        bold;

}


.confirmation-box h2 {

    color:
        var(--vert);

}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {

    max-width:
        1000px;

}


.contact-card {

    text-align:
        center;

    padding:
        45px
        25px;

    background:
        linear-gradient(
            135deg,
            var(--bleu-fonce),
            var(--bleu)
        );

    color:
        white;

    border-radius:
        25px;

    box-shadow:
        var(--ombre);

}


.contact-card h2 {

    font-size:
        32px;

    margin:
        0
        10px;

}


.contact-card p {

    color:
        #dcecff;

}


.contact-buttons {

    display:
        flex;

    justify-content:
        center;

    gap:
        12px;

    flex-wrap:
        wrap;

    margin-top:
        25px;

}


.contact-btn {

    display:
        inline-block;

    text-decoration:
        none;

    padding:
        13px
        22px;

    border-radius:
        10px;

    background:
        white;

    color:
        var(--bleu);

    font-weight:
        bold;

}


.whatsapp-btn {

    background:
        var(--vert);

    color:
        white;

}


.contact-phone {

    font-size:
        20px;

    font-weight:
        bold;

}


/* =========================================================
   MODAL
   ========================================================= */

.modal {

    position:
        fixed;

    inset:
        0;

    background:
        rgba(
            3,
            30,
            60,
            0.72
        );

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    z-index:
        1000;

}


.modal.active {

    display:
        flex;

}


.modal-content {

    width:
        min(
            100%,
            600px
        );

    max-height:
        90vh;

    overflow:
        auto;

    position:
        relative;

    background:
        white;

    border-radius:
        20px;

    padding:
        30px;

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.25
        );

}


.close-modal {

    position:
        absolute;

    top:
        12px;

    right:
        15px;

    border:
        none;

    background:
        var(--fond);

    width:
        38px;

    height:
        38px;

    border-radius:
        50%;

    font-size:
        25px;

}


.modal-content h2 {

    color:
        var(--bleu-fonce);

}


.modal-content li {

    margin-bottom:
        8px;

}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    text-align:
        center;

    padding:
        35px
        20px;

    background:
        #03294f;

    color:
        white;

}


.footer-logo {

    font-size:
        25px;

    font-weight:
        bold;

    color:
        white;

}


footer p {

    margin:
        5px;

    color:
        #bcd3e8;

}


.copyright {

    margin-top:
        18px !important;

    font-size:
        12px;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
    max-width: 700px
) {

    .header-inner {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .header-text {

        text-align:
            left;

    }


    .hero {

        min-height:
            420px;

        padding:
            55px
            20px;

    }


    .hero h1 {

        font-size:
            38px;

    }


    .hero p {

        font-size:
            16px;

    }


    .section {

        padding:
            50px
            18px;

    }


    .choice-buttons {

        grid-template-columns:
            1fr;

    }


    .step-box {

        padding:
            20px;

    }


    .service-image {

        height:
            210px;

    }


    .selected-item {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .calendar-day {

        font-size:
            13px;

    }

}
/* =========================================================
   LOGO PÔLE MS — LOGO DÉFINITIF
   ========================================================= */

.logo img {
    display: block;
    width: 220px;
    max-width: 75vw;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
.selection-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.edit-btn,
.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: bold;
    cursor: pointer;
}

.edit-btn {
    background: var(--bleu-clair);
    color: var(--bleu);
}

.delete-btn {
    background: #fff0f0;
    color: var(--danger);
}

.edit-btn:hover {
    background: var(--bleu);
    color: white;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
}

/* =========================================================
   INFORMATIONS JURIDIQUES
   Ajouté sans modifier les styles existants du site.
   ========================================================= */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 18px 0 8px;
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
}

.footer-legal a:hover {
    opacity: 0.8;
}

.legal-section {
    max-width: 1000px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.legal-card {
    background: #ffffff;
    border-radius: var(--rayon);
    padding: 30px;
    box-shadow: var(--ombre);
}

.legal-card h2 {
    margin: 0 0 22px;
    color: var(--bleu-fonce);
}

.legal-card h3 {
    margin: 22px 0 7px;
    color: var(--bleu-fonce);
    font-size: 18px;
}

.legal-card p {
    margin: 8px 0;
    color: var(--texte);
}

.legal-card a {
    color: var(--bleu);
}

@media (max-width: 600px) {
    .legal-card {
        padding: 22px 18px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 7px;
    }
}


/* =========================================================
   INFORMATIONS JURIDIQUES — FENÊTRE
   ========================================================= */

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
}

.footer-legal button {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.footer-legal button:hover {
    opacity: 0.75;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.legal-modal-card {
    position: relative;
    z-index: 1;
    width: min(850px, 100%);
    max-height: 88vh;
    overflow: hidden;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.legal-modal-content {
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px;
}

.legal-modal-content h2 {
    margin: 0 0 24px;
    color: var(--bleu-fonce);
}

.legal-modal-content h3 {
    margin: 24px 0 8px;
    color: var(--bleu-fonce);
}

.legal-modal-content p {
    color: var(--gris);
    margin: 8px 0;
}

.legal-modal-content a {
    color: var(--bleu);
}

.legal-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--fond);
    color: var(--bleu-fonce);
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 600px) {
    .legal-modal.active {
        padding: 10px;
    }

    .legal-modal-content {
        padding: 25px 20px;
    }

    .footer-legal {
        gap: 7px 14px;
    }
}
