/* ==========================================================================
   HERO DE PAGE — photo + voile bleu nuit, accents or
   Feuille partagée (page « Demande de prêt », page « Calculatrice »).

   Markup attendu :
     <section class="page-hero" style="background-image:url('…');">
       <div class="container page-hero-contenu text-center">
         <h1>…</h1>
         <p class="page-hero-sous">…</p>
         <div class="page-hero-actions">
           <a class="page-hero-bouton page-hero-bouton--or">…</a>
           <a class="page-hero-bouton page-hero-bouton--ligne">…</a>
         </div>
         <ul class="page-hero-preuves">
           <li><i class="bi bi-…"></i><span>…</span></li>
         </ul>
       </div>
     </section>

   ⚠️ `assets/css/style.css` impose `section { padding: 80px 0 }` : le hero doit
   donc remettre `padding: 0` et porter son rythme via `.page-hero-contenu`.
   ========================================================================== */

/* Défilement doux : les boutons du hero pointent vers une ancre de la page */
html {
    scroll-behavior: smooth;
}

.page-hero {
    position: relative;
    padding: 0;
    background-color: #001F3F;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 20, 40, 0.78) 0%,
            rgba(0, 31, 63, 0.90) 100%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero-contenu {
    /* padding vertical uniquement : la gouttière horizontale vient de .container */
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Les titres des JSON peuvent porter une couleur en dur : la charte décide */
.page-hero h1 span,
.page-hero h1 strong {
    color: #d4af37;
}

.page-hero-sous {
    max-width: 620px;
    margin: 0 auto 1.9rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2.1rem;
}

.page-hero-bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.page-hero-bouton--or {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #001F3F;
}

.page-hero-bouton--or:visited {
    color: #001F3F;
}

.page-hero-bouton--or:hover,
.page-hero-bouton--or:focus {
    background-color: transparent;
    border-color: #d4af37;
    color: #d4af37;
}

.page-hero-bouton--ligne {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.page-hero-bouton--ligne:visited {
    color: #ffffff;
}

.page-hero-bouton--ligne:hover,
.page-hero-bouton--ligne:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #001F3F;
}

.page-hero-preuves {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.page-hero-preuves li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero-preuves i {
    color: #d4af37;
    font-size: 0.95rem;
}

/* Filet de sécurité AOS : le hero ne doit jamais rester masqué */
.page-hero [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 767px) {
    .page-hero-contenu {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero-bouton {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
    }

    .page-hero-preuves li {
        font-size: 0.72rem;
        padding: 0.35rem 0.8rem;
    }
}
