/* GLOBAL */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #faf7fb;
    color: #4a3f55;
}

/* BANNIÈRE */
.banner {
    width: 100%;
    height: auto;
    display: block;
}

/* MENU */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background: #e8dff1;
    padding: 14px 0;
    font-weight: 600;
}

.menu a {
    text-decoration: none;
    color: #4a3f55;
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.menu a.active,
.menu a:hover {
    background: #d7c7e8;
}

/* PAGE */
.page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    color: #5a4a6a;
}

h2 {
    color: #5a4a6a;
    margin-top: 30px;
}

p {
    line-height: 1.6;
}

/* SOUS-TITRE */
.sous-titre {
    text-align: center;
    font-size: 18px;
    color: #6a5a7a;
    margin-top: -10px;
    margin-bottom: 30px;
}

/* VISUELS */
.visuel-centre {
    text-align: center;
    margin-bottom: 30px;
}

.visuel-prestation {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}

/* FORMULAIRE CONTACT */
.contact-info {
    background: #f3ecf8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #c9b8d8;
    margin-top: 5px;
}

/* CHECKBOXES */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BOUTONS */
.btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #b79ad1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #a283c4;
}

.btn-centre {
    text-align: center;
    margin-top: 30px;
}

/* TARIFS */
.tarif {
    background: #f3ecf8;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 17px;
    color: #4a3f55;
}

/* BLOCS PRESTATIONS */
.prestation-bloc {
    background: #f3ecf8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    text-align: center;
}

/* AVERTISSEMENT */
.encadre-warning {
    background: #fff3f3;
    border-left: 5px solid #d88;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    color: #663;
    font-size: 15px;
}

/* ACCUEIL */
.bloc-accueil {
    background: #f3ecf8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 20px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* FOOTER */
.footer {
    background: #e8dff1;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 3px solid #d7c7e8;
}

.footer-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
    color: #4a3f55;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #5a4a6a;
    margin-bottom: 10px;
}

.footer-contact {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #4a3f55;
    font-weight: 600;
}

.footer-links a:hover {
    color: #7b6a8c;
}

.footer-copy {
    margin-top: 20px;
    font-size: 14px;
    color: #6a5a7a;
}

/* PAGE PROFIL */
.profil-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.profil-photo {
    width: 260px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #e8dff1;
}

.profil-texte {
    flex: 1;
    min-width: 260px;
}

.profil-texte h2 {
    color: #5a4a6a;
    margin-bottom: 10px;
}

.profil-texte p {
    margin-bottom: 15px;
}

.xp-liste li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Cases à cocher plus grandes */
.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
    width: 18px;
    height: 18px;
    transform: translateY(2px);
}

/* Groupes plus aérés */
.demandeur-group,
.motif-group,
.dispo-group {
    margin-bottom: 20px;
}

/* MOBILE */
@media (max-width: 600px) {

    .page {
        padding: 0 15px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profil-container {
        flex-direction: column;
        align-items: center;
    }

    input, textarea, select {
        font-size: 16px;
    }

    .btn {
        width: 100%;
    }
}

/* FOCUS */
input:focus, textarea:focus, select:focus {
    outline: 2px solid #b79ad1;
    box-shadow: 0 0 4px #d7c7e8;
}

/* BLOC BENEFICIAIRE */
.bloc-beneficiaire {
    background:#f7f2fb;
    border:1px solid #e2d7ef;
    padding:20px;
    border-radius:12px;
    margin-top:35px;
}

.note-benef {
    margin-top:-10px;
    color:#6a5a7a;
    font-size:15px;
}

/* Confirmation */
.confirm {
    display:none;
    background:#e8dff1;
    border-left:4px solid #b79ad1;
    padding:15px;
    border-radius:8px;
    margin-top:20px;
    color:#4a3f55;
    font-weight:600;
}

/* ============================
   IMPRESSION — VERSION FUSIONNÉE
============================ */
@media print {

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Garder la bannière centrée */
    .header {
        text-align: center !important;
        margin-bottom: 5mm !important;
    }

    .banner {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Masquer les éléments inutiles */
    .menu,
    .footer,
    .btn-centre,
    #confirmation-message,
    .footer-note {
        display: none !important;
    }

    /* Page compacte */
    .page {
        padding: 0 8mm !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* Titres réduits */
    h1 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    h2 {
        font-size: 14px !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }

    /* Champs réduits */
    label {
        font-size: 11px !important;
        margin-bottom: 1px !important;
    }

    input, textarea, select {
        font-size: 11px !important;
        padding: 4px !important;
        margin-bottom: 3px !important;
    }

    /* Grilles compactes */
    .checkbox-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px 6px !important;
    }

    /* Empêcher les coupures */
    .contact-form,
    .bloc-beneficiaire {
        page-break-inside: avoid !important;
    }
}
.visuel-prestation {
    transition: transform 0.2s ease;
}

.visuel-prestation:hover {
    transform: scale(1.03);
}
.service-card img {
    width: 100%;
    max-width: 180px;
    height: 180px;        /* FIXE LA HAUTEUR */
    object-fit: contain;  /* GARDE LES PROPORTIONS */
    margin: 0 auto 15px auto;
    display: block;
}
.service-card {
    background: #f3ecf8;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes fixes */
    gap: 30px;
    margin-top: 40px;
}

/* Mobile : 1 colonne */
@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
