/* --------------------------------------------------
   1. BASE & FORMULAIRE GLOBAL
-------------------------------------------------- */
.msante-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    font-family: "Inter", sans-serif;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 400px !important;
    height: auto !important;
    max-width: 100%;
}

.tel-mention {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 20px;
}

.tel-link {
    display: inline-block; /* plus logique maintenant qu'il n'y a plus de texte */
    text-decoration: none;
}

.tel {
    width: 200px; /* taille ajustable selon ton rendu */
    height: auto;
    display: block;
    margin: 10px auto 0;
}


/* --------------------------------------------------
   2. BLOCS & STRUCTURE
-------------------------------------------------- */
.form-block {
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 32px;
}

.ligne-flex,
.ligne-flex-2,
.ligne-date-duree {
    display: flex;
    gap: 20px;
}

.ligne-flex {
    margin-bottom: 25px;
}

.ligne-flex .champ,
.ligne-flex-2 .champ,
.ligne-date-duree .champ {
    flex: 1;
}

.full-width {
    margin-bottom: 25px;
}

.ligne-date-duree {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-top: 25px; /* ← ajoute l’espace manquant */
    margin-bottom: 25px;
}

@media (min-width: 901px) {
    .ligne-date-duree .champ {
        min-width: 0;
    }

    .ligne-date-duree input[type="date"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}
    /* Police spécifique pour le champ commentaire sur PC */
@media (min-width: 1024px) {
    #commentaire {
        font-family: "Arial", "Helvetica", sans-serif; /* ou la police que tu veux */
        font-size: 16px; /* optionnel */
        line-height: 1.5; /* optionnel */
    }
}

/* Ligne adresse : 3/1/2 */
.ligne-adresse {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    column-gap: 32px; /* même espacement horizontal que .form-grid */
    row-gap: 14px;
    margin-top: 18px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Espacement interne des champs */
.ligne-adresse .champ {
    display: flex;
    flex-direction: column;
    gap: 6px; /* espace entre label et input */
    padding-bottom: 6px;
    width: 100%;
    min-width: 0; /* indispensable pour empêcher le débordement */

}

/* Structure générique des champs */
.champ {
    display: flex;
    flex-direction: column;
    gap: 6px; /* espace entre label et input */
}

/* Mobile : tout en colonne */
@media (max-width: 600px) {
    .ligne-adresse {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------
   3. TITRES
-------------------------------------------------- */
.form-main-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #00acaa;
    margin-bottom: 20px;
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #008f8d;
    padding-left: 12px;
    border-left: 4px solid #00acaa;
}


/* --------------------------------------------------
   4. CHAMPS (input + select)
-------------------------------------------------- */
.msante-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-size: 15px;
}

.msante-form input,
.msante-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    color: #222;
    transition: all 0.25s ease;
}

.msante-form input:focus,
.msante-form select:focus {
    border-color: #00acaa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,172,170,0.20);
    outline: none;
}

::placeholder {
    color: #666;
}


/* --------------------------------------------------
   5. TEXTAREA
-------------------------------------------------- */
.msante-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    resize: vertical;
    color: #222;
    transition: all 0.25s ease;
    margin-bottom: 18px;
}

.msante-form textarea:focus {
    border-color: #00acaa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,172,170,0.20);
    outline: none;
}

.suggestions {
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.suggestions:empty {
    display: none;
}


/* --------------------------------------------------
   6. UNITÉS & LIGNES SPÉCIALES
-------------------------------------------------- */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-with-unit .unit {
    font-size: 15px;
    color: #444;
}


/* --------------------------------------------------
   7. BOUTON
-------------------------------------------------- */
.msante-form button {
    width: 100%;
    padding: 16px;
    background: #00acaa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.msante-form button:hover {
    background: #008f8d;
    transform: translateY(-1px);
}


/* --------------------------------------------------
   8. BANNIÈRE INSTALLATION (PWA)
-------------------------------------------------- */
.install-banner-inline {
    margin-top: 25px;
    background: #000000;
    border: 1px solid #000000;
    padding: 20px 22px;
    border-radius: 12px;
    text-align: center;
}

.install-text-inline {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 14px;
}

.install-banner-inline .install-btn-inline {
    background: #ffffff !important;
    color: #000000 !important;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.install-banner-inline .install-btn-inline:hover {
    background: #e6e6e6 !important;
}

.install-instructions {
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
}


/* --------------------------------------------------
   9. CHAMP DATE — harmonisation police
-------------------------------------------------- */
input[type="date"],
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    font-family: "Inter", sans-serif;
}


/* --------------------------------------------------
   10. RESPONSIVE MOBILE
-------------------------------------------------- */
@media (max-width: 900px) {

    .msante-form {
        padding: 25px;
        margin: 5px auto;
    }

    .logo {
        width: 200px !important;
    }

    .form-main-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.1;
        font-weight: 600;
    }

    .section-title {
        font-size: 14px;
        margin-top: 14px;
        margin-bottom: 6px;
        padding: 4px 6px;
        border-left-width: 3px;
    }

    .form-grid {
        display: block !important;
    }

    .form-grid > div {
        width: 100%;
        margin-bottom: 6px;
    }

    .ligne-flex {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .ligne-flex-2 {
        flex-direction: row !important;
        gap: 10px !important;
    }

    .msante-form label {
        margin-bottom: 1px;
        font-size: 12px;
        line-height: 1.1;
    }

    .msante-form input,
    .msante-form select,
    .msante-form textarea {
        padding: 7px;
        border-radius: 5px;
        font-size: 16px !important;
    }

    .input-with-unit {
        gap: 4px;
    }

    .input-with-unit .unit {
        font-size: 12px;
    }

    .msante-form button {
        margin-top: 14px;
        padding: 9px;
        font-size: 14px;
        border-radius: 5px;
    }

    .form-block {
        background: none;
        box-shadow: none;
        padding: 0;
        margin-bottom: 16px;
        border-radius: 0;
    }

    .section-title {
        padding-left: 0;
        border-left: none;
        margin-bottom: 4px;
    }
}

/* --------------------------------------------------
   11. RGPD
-------------------------------------------------- */

.rgpd-mention {
    font-size: 0.85rem;
    color: #444;
    margin: 20px 0;
}

.rgpd-mention a {
    color: #00acaa;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal */
.rgpd-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    padding: 20px;
}

.rgpd-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    line-height: 1.5;
}

.rgpd-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.rgpd-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #00acaa;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.rgpd-link:hover {
    color: #008f8d;
}


/* pièces jointes*/
#liste_fichiers {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fichier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
}

.remove-file {
    color: #d9534f; /* rouge élégant */
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
    line-height: 1;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.remove-file:hover {
    opacity: 0.6;
}

