/* ============================================================
   SPI L.A. Préventif - styles propres à la page Zones inondables.
   Le commun (en-tête, pied de page, boutons) est dans base.css
   ============================================================ */

/* Un bouton suit le chapô dans le bandeau de titre : on garde
   la respiration de 30px prévue par la maquette. */
.page-hero .lead { margin-bottom: 30px; }

/* La section qui suit le bandeau de titre est blanche : la vague
   doit l'être aussi pour que la jonction reste invisible. */
.hero-wave path { fill: var(--white); }

/* --- TYPES D'INONDATION --- */
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 45px; }
.type-card { border: 1px solid #eaeaea; border-radius: 14px; padding: 32px 28px; transition: var(--transition); }
.type-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); transform: translateY(-6px); }
.type-card i { font-size: 2.2rem; color: var(--secondary); margin-bottom: 18px; }
.type-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.type-card p { font-size: 0.95rem; }

/* --- ÉTAPES DE VÉRIFICATION --- */
.check-section { background: var(--bg-light); }
.check-list { max-width: 950px; margin: 20px auto 0; }
.check-row { display: flex; gap: 26px; background: var(--white); border: 1px solid #eaeaea; border-radius: 16px; padding: 34px; margin-bottom: 24px; box-shadow: var(--shadow); }
.check-row:last-child { margin-bottom: 0; }
.check-badge { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.check-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.check-body p { font-size: 0.98rem; margin-bottom: 14px; }
.check-body p:last-child { margin-bottom: 0; }
.check-tool { display: inline-flex; align-items: center; gap: 9px; background: rgba(1,146,239,0.1); color: var(--primary); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; padding: 10px 18px; border-radius: 50px; margin-top: 6px; }
.check-tool:hover { background: var(--secondary); color: var(--white); }
.check-tool i { font-size: 0.8rem; }

/* --- CODE COULEUR PPRI --- */
.zoning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.zone-card { border-radius: 14px; padding: 32px; border: 1px solid #eaeaea; background: var(--white); box-shadow: var(--shadow); }
.zone-chip { display: inline-flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 16px; border-radius: 50px; margin-bottom: 16px; color: var(--white); }
.zone-chip.red { background: #c0392b; }
.zone-chip.blue { background: var(--secondary); }
.zone-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.zone-card p { font-size: 0.96rem; margin-bottom: 12px; }
.zone-card ul li { display: flex; gap: 11px; font-size: 0.93rem; margin-bottom: 9px; }
.zone-card ul i { color: var(--secondary); margin-top: 5px; font-size: 0.8rem; }

/* --- ALERTE --- */
.alert-box { display: flex; gap: 18px; border-radius: 14px; padding: 26px 28px; margin-top: 35px; }
.alert-box.warn { background: #fdf1d6; border: 1px solid #f0d69a; }
.alert-box.warn i { color: #b8860b; }
.alert-box.warn h3 { color: #7a5206; }
.alert-box.warn p { color: #7a5206; }
.alert-box.info { background: #eaf4fd; border: 1px solid #b8dcf7; }
.alert-box.info i { color: var(--secondary); }
.alert-box i { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.alert-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.alert-box p { font-size: 0.96rem; margin: 0; }
.alert-box a { color: var(--secondary); text-decoration: underline; }

/* --- QUE FAIRE --- */
.actions-section { background: var(--bg-light); }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; margin-top: 45px; }
.action-card { background: var(--white); border: 1px solid #eaeaea; border-radius: 14px; padding: 34px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--secondary); }
.action-card .ac-num { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--secondary); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; }
.action-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.action-card p { font-size: 0.96rem; margin-bottom: 14px; }
.action-card ul li { display: flex; gap: 11px; font-size: 0.93rem; margin-bottom: 9px; }
.action-card ul i { color: var(--secondary); margin-top: 5px; font-size: 0.8rem; }

.actions-visual { margin-top: 45px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.actions-visual img { width: 100%; height: 400px; object-fit: cover; object-position: center; }

/* --- PAS-DE-CALAIS --- */
.local-section { background: linear-gradient(135deg, var(--primary), #012f6b); color: var(--white); }
.local-section .section-title { color: var(--white); }
.local-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 45px; align-items: center; }
.local-text p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.local-text strong { color: var(--white); }
.local-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--secondary); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 8px 18px; border-radius: 50px; margin-bottom: 20px; }
.local-visual img { border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.15); }

/* --- FAQ --- */
.faq-list { max-width: 900px; margin: 20px auto 0; }
.faq-item { border: 1px solid #e3e8e7; border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: var(--white); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--primary); display: flex; justify-content: space-between; align-items: center; gap: 18px; transition: var(--transition); }
.faq-q:hover { background: var(--bg-light); }
.faq-q i { color: var(--secondary); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 26px 24px; font-size: 0.97rem; }
.faq-a-inner p { margin-bottom: 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner a { color: var(--secondary); text-decoration: underline; }

/* --- BLOCS CROISÉS --- */
.cross-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cross-card { border-radius: 18px; padding: 45px 40px; }
.cross-card.blue { background: linear-gradient(135deg, var(--secondary), #017bc9); color: var(--white); }
.cross-card.light { background: var(--bg-light); border: 1px solid #eaeaea; }
.cross-card i.cross-icon { font-size: 2.4rem; margin-bottom: 18px; display: block; }
.cross-card.blue i.cross-icon { color: var(--white); }
.cross-card.light i.cross-icon { color: var(--secondary); }
.cross-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cross-card.blue h3 { color: var(--white); }
.cross-card p { margin-bottom: 24px; font-size: 1rem; }
.cross-card.blue p { color: rgba(255,255,255,0.92); }

/* --- CTA --- */
.cta-banner { background-color: var(--secondary); padding: 70px 0; text-align: center; color: var(--white); }
.cta-banner h2 { color: var(--white); margin-bottom: 22px; font-size: 2.4rem; }
.cta-banner p { font-size: 1.12rem; margin-bottom: 35px; max-width: 780px; margin-left: auto; margin-right: auto; font-weight: 600; }
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* --- SOURCES --- */
.sources { background: var(--bg-light); padding: 40px 0; font-size: 0.85rem; color: #8a949c; }
.sources h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text); }
.sources a { color: var(--secondary); text-decoration: underline; }
.sources li { margin-bottom: 6px; }

@media (max-width: 1024px) {
    .zoning-grid, .cross-grid, .local-wrap { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 1120px) {
    .cta-banner h2 { font-size: 1.8rem; }
    .check-row { flex-direction: column; gap: 18px; padding: 26px; }
}

    
/* --- Respiration photo dans les pages de contenu --- */
.photo-break { max-width: 900px; margin: 50px auto 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.photo-break img { width: 100%; height: 300px; object-fit: cover; display: block; }
.photo-break figcaption { background: var(--white); padding: 12px 20px; font-size: 0.88rem; font-style: italic; color: #5a6b7d; border-top: 3px solid var(--secondary); }
