/* =====================================================================
   Styles partagés — pages d'information publiques : « À propos »,
   « Faire une demande », « Textes réglementaires », « Nous contacter »,
   « Politique de confidentialité », « FAQ ».
   ===================================================================== */

/* Vidéo de présentation — conteneur responsive 16:9. */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
    background: #0e1a12;
    box-shadow: var(--shadow-md, 0 8px 40px rgba(0,0,0,.12));
}
.video-wrap video,
.video-wrap iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: rgba(255,255,255,.75); text-align: center; padding: 24px;
}
.video-fallback i { font-size: 40px; color: var(--or, #F5A623); }

/* Sous-titre de sous-section : plus petit que le titre de section principal. */
.section-title.section-title-sm {
    font-size: 20px;
}

/* Catégories du permis de construire (A à F) — légende compacte. */
.categorie-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.categorie-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: 14px;
    padding: 16px 18px;
}
.categorie-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(27,107,58,.1);
    color: var(--vert, #1B6B3A);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.categorie-card p { font-size: 13.5px; color: var(--texte-s, #5A6472); line-height: 1.6; margin: 0; }
@media (min-width: 768px) {
    .categorie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .categorie-grid { grid-template-columns: repeat(3, 1fr); }
}

/* « Faire une demande » — options se connecter / créer un compte. */
.gate-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.gate-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(27,107,58,.1); color: var(--vert, #1B6B3A);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 22px;
}
.gate-options {
    display: grid; grid-template-columns: 1fr; gap: 18px;
    margin-top: 36px; text-align: left;
}
.gate-card {
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 26px;
    display: flex; flex-direction: column; gap: 10px;
}
.gate-card i.gate-card-icon { font-size: 26px; color: var(--vert, #1B6B3A); }
.gate-card h3 { font-size: 17px; font-weight: 700; }
.gate-card p { font-size: 13.5px; color: var(--texte-s, #5A6472); line-height: 1.6; flex: 1; }
@media (min-width: 768px) {
    .gate-options { grid-template-columns: 1fr 1fr; }
}

/* FAQ — accordéon natif <details>/<summary>, aucun JS. */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 4px 22px;
}
.faq-item summary {
    padding: 18px 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--texte, #1A1A2E);
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons', sans-serif;
    margin-left: auto;
    color: var(--texte-s, #5A6472);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { font-size: 14px; color: var(--texte-s, #5A6472); line-height: 1.7; padding: 0 4px 20px; margin: 0; }

/* Contact — cartes de coordonnées. */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
.contact-card {
    background: var(--blanc, #fff);
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 26px;
    display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .info-icon { flex-shrink: 0; }
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--texte-s, #5A6472); line-height: 1.6; margin: 0; }
.contact-card a { color: var(--vert, #1B6B3A); font-weight: 600; }
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Textes réglementaires / politique de confidentialité — contenu long. */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc h2 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--texte, #1A1A2E); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { font-size: 14.5px; color: var(--texte-s, #5A6472); line-height: 1.8; margin-bottom: 12px; }
.legal-doc ul { padding-left: 20px; margin-bottom: 12px; }
.legal-doc li { font-size: 14.5px; color: var(--texte-s, #5A6472); line-height: 1.8; }
.legal-doc a { color: var(--vert, #1B6B3A); font-weight: 600; }

/* Carte de téléchargement d'un texte réglementaire (PDF). */
.doc-download-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(27,107,58,.06), rgba(245,166,35,.06));
    border: 1.5px solid var(--gris-b, #E8ECF0);
    border-radius: var(--r-lg, 20px);
    padding: 26px;
}
.doc-download-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--blanc, #fff);
    box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.doc-download-icon i { font-size: 26px; color: #C1272D; }
.doc-download-info { flex: 1 1 320px; min-width: 0; }
.doc-download-info h4 { font-size: 15px; font-weight: 700; color: var(--texte, #1A1A2E); margin-bottom: 6px; }
.doc-download-info p { font-size: 13.5px; color: var(--texte-s, #5A6472); line-height: 1.6; margin: 0; }
.doc-download-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

.doc-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--texte-s, #5A6472);
    margin-top: 16px;
}
.doc-note i { color: var(--or, #F5A623); margin-top: 1px; flex-shrink: 0; }

/* Mobile — carte de téléchargement empilée, boutons pleine largeur (cible tactile ~44px). */
@media (max-width: 600px) {
    .doc-download-card { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; }
    .doc-download-icon { width: 44px; height: 44px; }
    .doc-download-icon i { font-size: 20px; }
    .doc-download-actions { flex-direction: column; width: 100%; }
    .doc-download-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
}
