
.dad-masque {
    display: none !important;
}

body.page-conditions_generales,
body.page-politique_protection {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

body.page-conditions_generales .container,
body.page-politique_protection .container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.page-conditions_generales .header,
body.page-politique_protection .header {
    text-align: center;
    margin-bottom: 20px;
}

body.page-conditions_generales .header h1,
body.page-politique_protection .header h1 {
    font-size: 24px;
    font-weight: bold;
    text-decoration: underline;
}

body.page-draft .container {
    min-height: 70vh;
}

body.page-draft .modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.page-draft .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

body.page-draft .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

body.page-user_dashboard .form-check {
    display: flex;
    gap: 10px;
}

body.page-user_dashboard .form-check-input {
    cursor: pointer;
    margin-top: 5px;
}

.container.choix-demande {
    height: 70vh;
}

.sticky-onglets-sites {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #fff;
    padding-top: .25rem;
}

/* Le trait sous la rangée est posé une seule fois, par `.sticky-onglets-sites`
   (plus bas) : il était écrit ici aussi, sur le MÊME élément — deux
   déclarations pour un seul trait, dont une qui ne servait à rien. */
.barre-onglets-sites {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
}

.barre-onglets-sites .nav-tabs {
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 0;
    scrollbar-width: thin;
}

.barre-onglets-sites .nav-tabs .nav-link {
    white-space: nowrap;
}

.barre-onglets-sites .btn-ajouter-site {
    flex: 0 0 auto;
    margin-bottom: .35rem;
}

.bloc-carte-site {
    position: sticky;
    top: 3.5rem;
}

#siteTabsContent > .tab-pane {
    padding: .25rem;
}

.bloc-carte-edition {
    position: sticky;
    top: 0;
}

.carte-edition-demande {
    height: 50vh;
    min-height: 300px;
}

.dad-bloc-donnees {
    padding: .5rem .75rem 0;
}

.dad-bloc-donnees .card-text {
    margin-bottom: .5rem;
}

.dropdown-toggle:not(.no-pointer),
[data-role="type_demande_section"] .custom-checkbox,
[data-role="type_demande_section"] input[type="checkbox"],
[data-role="data_format_section"] .custom-checkbox,
[data-role="data_format_section"] input[type="checkbox"],
[data-role="data_format_horaire"] .custom-checkbox,
[data-role="data_format_horaire"] input[type="checkbox"] {
    cursor: pointer;
}

.fiche-compte-identite {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fiche-compte-initiales {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #46AFE8, #2096D7);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fiche-compte-identite > div {
    min-width: 0;
}

.fiche-compte-nom {
    font-weight: 600;
    line-height: 1.2;
}

.fiche-compte-email {
    font-size: 0.9rem;
    color: #2096D7;
    text-decoration: none;
    word-break: break-all;
}

.fiche-compte-email:hover {
    text-decoration: underline;
}

.fiche-compte-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 24px;
    margin: 0;
}

.fiche-compte-grille > div {
    min-width: 0;
}

.fiche-compte-grille dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 2px;
}

.fiche-compte-grille dd {
    margin: 0;
    word-break: break-word;
}

body.page-new_request h6,
body.page-formulaire_contrat h6 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

body.page-new_request h6.text-center,
body.page-formulaire_contrat h6.text-center {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
}

body.page-new_request h6.mb-2,
body.page-formulaire_contrat h6.mb-2 {
    margin-bottom: 1rem !important;
}

body.page-new_request hr:not(.dropdown-divider),
body.page-formulaire_contrat hr:not(.dropdown-divider) {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

body.page-new_request .alert hr,
body.page-formulaire_contrat .alert hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.icone-type::before {
    font-family: "bootstrap-icons";
    content: "\f45b";
}
.icone-type.type-meteo::before    { content: "\f2be"; }
.icone-type.type-rugosite::before { content: "\f3f8"; }
.icone-type.type-relief::before   { content: "\f45b"; }

.icone-type-coloree.type-meteo    { color: var(--bs-info, #0dcaf0); }
.icone-type-coloree.type-rugosite { color: var(--bs-success, #198754); }
.icone-type-coloree.type-relief   { color: var(--bs-warning, #ffc107); }

.dad-cases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    column-gap: 1rem;
    row-gap: .25rem;
}

.dad-choix-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    min-height: calc(1.5em + 0.75rem + 2px);
}

/* LES ONGLETS DE SITE DOIVENT SE VOIR COMME DES ONGLETS.
 *
 * Le contenu flottait sous la rangée sans rien pour le rattacher : on ne
 * distinguait pas ce qui appartenait à l'onglet ouvert de ce qui appartenait à
 * la demande. Le volet reçoit donc le cadre que la rangée laisse ouvert — deux
 * côtés et un fond —, exactement ce que fait Bootstrap quand on le lui demande,
 * et ce que le bloc de pollution de fond fait déjà côté client.
 *
 * Le fond est légèrement plus clair que la carte : c'est ce décalage, plus que
 * le trait, qui dit « ceci est dans l'onglet ».
 *
 * LA TEINTE EST ÉCRITE UNE FOIS, dans `--dad-onglet-fond`. L'onglet actif doit
 * peindre exactement le même fond que son volet pour effacer le trait entre
 * eux : deux valeurs écrites séparément auraient fini par diverger, et le
 * raccord se serait vu. */
.dad-onglets-sites-contenu {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-top: 0;
    border-radius: 0 0 .5rem .5rem;
    background-color: var(--dad-onglet-fond);
    padding: 1rem 1rem .5rem;
}

/* La rangée pose ses onglets SUR le cadre : l'onglet actif efface le trait
 * sous lui, ce qui relie visuellement le titre à son contenu. */
.sticky-onglets-sites {
    margin-bottom: 0;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.sticky-onglets-sites .nav-link {
    border-radius: .35rem .35rem 0 0;
}

.sticky-onglets-sites .nav-link.active {
    background-color: var(--dad-onglet-fond);
    border-bottom-color: var(--dad-onglet-fond);
    font-weight: 600;
}

/* Le tableau dont la source est à l'écran se signale : sans repère, cliquer
 * l'un puis l'autre ne se voit que sur la carte, à l'autre bout de l'écran. */

