/* =========================================================
   SERVICES.CSS — pages Point relais & Transfert d'argent
   Complément de style.css : réutilise les variables existantes
   (--primary, --secondary, --radius-lg, --shadow-soft…)
   À charger APRÈS style.css.
   ========================================================= */

/* =========================
   HERO DE PAGE INTÉRIEURE
   ========================= */

.page-hero {
    position: relative;
    display: grid;
    place-items: center;
    text-align: left;
    color: #fff;
    padding: 7.5rem 0 5.5rem;
    overflow: hidden;
    /* Fond 100 % CSS : aucune image, aucune requête réseau.
       Assez sombre dès le premier pixel pour que le header fixe
       en texte blanc reste lisible avant tout scroll. */
    background: linear-gradient(135deg, var(--primary-dark) 0%, #17402a 42%, #111 100%);
}

/* Voile décoratif par défaut : halo vert, sans image.
   Conservé tel quel pour les heros qui restent 100 % CSS. */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 78% 18%, rgba(45, 122, 77, 0.45), transparent 58%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* =========================
   HERO AVEC PHOTO
   Exception ciblée : une seule image, uniquement dans le hero.
   Le modificateur évite de dégrader les heros restés sans photo.
   ========================= */

.page-hero--photo .page-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* repli dans la charte : aucune couleur étrangère avant chargement */
    background-color: var(--primary-dark);
}

/* La photo n'est plus qu'une texture : on lui retire sa colorimétrie propre
   et on l'assombrit. Il ne reste que la structure (formes, volumes). */
.page-hero--photo .page-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.85) contrast(1.05) brightness(0.5);
}

/* Voile sur photo : deux couches, teintées vert, jamais de noir pur.
   Le filtre ramène déjà le pixel le plus clair possible à un gris moyen ;
   sur ce pire cas, 0.58 d'opacité donne déjà 6.01:1 en texte blanc. */
.page-hero--photo .page-hero-overlay {
    background:
        /* verticale : sombre en haut pour le header fixe en texte blanc,
           sombre en bas pour amorcer la section suivante */
        linear-gradient(180deg,
            rgba(18, 48, 30, 0.74) 0,
            rgba(18, 48, 30, 0.30) 170px,
            rgba(18, 48, 30, 0.30) 58%,
            rgba(18, 48, 30, 0.82) 100%),
        /* horizontale : très opaque sous le texte, allégée à droite
           sans jamais descendre sous 0.58 */
        linear-gradient(90deg,
            rgba(34, 91, 56, 0.95) 0%,
            rgba(34, 91, 56, 0.90) 42%,
            rgba(34, 91, 56, 0.72) 74%,
            rgba(34, 91, 56, 0.58) 100%);
}


.page-hero .container {
    position: relative;
    z-index: 3;
    animation: fadeUp 0.7s ease-out;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.9rem;
    max-width: 20ch;
}

.page-hero .hero-subtitle {
    max-width: 52ch;
}

/* Fil d'Ariane */

.breadcrumb {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #dcdcdc;
    margin: 0 0 0.9rem;
}

.breadcrumb a {
    color: #dcdcdc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.breadcrumb a:hover {
    color: #fff;
}

/* =========================
   CARTE STATUT (élément signature)
   Chevauche le bas du hero.
   ========================= */

.status-section {
    padding-top: 0;
    position: relative;
    z-index: 5;
}

/* script.js applique un fondu d'apparition à toute .section. Ici la carte
   blanche chevauche le hero : pendant le fondu elle laissait voir l'image au
   travers. On la sort de l'animation, elle reste opaque de bout en bout. */
.status-section.reveal,
.status-section.reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
}

.status-card {
    position: relative;
    z-index: 10;
    margin-top: -3.5rem;
    /* fond plein : aucune transparence ne doit traverser la carte */
    background: var(--bg-light);
    opacity: 1;
    isolation: isolate;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}


.status-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    /* couleur pleine, opaque */
    background-color: #e9f3ed;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.status-strip[data-etat="ferme"] {
    background: #fdf4e1;
    color: #8a6100;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 0;
}

.status-item {
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #eeeeee;
}

.status-item dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}

.status-item dd {
    margin: 0;
    line-height: 1.5;
}

.status-item dd a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.status-item dd a:hover {
    text-decoration: underline;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #eeeeee;
}

.btn-outline {
    background-color: #fff;
    color: var(--primary-dark);
    border: 1px solid #d6d6d6;
}

.btn-outline:hover {
    background-color: var(--bg-alt);
    transform: translateY(-1px);
}

/* =========================
   CONTENU ÉDITORIAL
   ========================= */

.prose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    align-items: start;
}

.prose-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.prose-card h3 {
    margin: 0 0 0.7rem;
}

.prose-card p,
.prose-card li {
    color: var(--text-muted);
    line-height: 1.6;
}

.prose-card ul,
.prose-card ol {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
}

.prose-card li {
    margin-bottom: 0.45rem;
}

.prose-card > :last-child {
    margin-bottom: 0;
}

/* Étapes numérotées (envoi d'argent) */

.steps {
    list-style: none;
    counter-reset: etape;
    margin: 0;
    padding: 0;
}

.steps li {
    counter-increment: etape;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 0.9rem;
}

.steps li::before {
    content: counter(etape);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================
   FAQ
   ========================= */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.05rem 1.4rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    flex: none;
}

.faq-item[open] summary::after {
    content: "\2013";
}

.faq-item p {
    margin: 0;
    padding: 0 1.4rem 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================
   BANDEAU DE LIAISON
   ========================= */

.cross-link {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.cross-link h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.cross-link p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    max-width: 48ch;
}

.cross-link .btn {
    background: #fff;
    color: var(--primary-dark);
}

.cross-link .btn:hover {
    background: var(--secondary);
    color: #3a2c00;
}

/* =========================
   ACCESSIBILITÉ & RESPONSIVE
   ========================= */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

@media (max-width: 780px) {
    .page-hero {
        padding: 6.5rem 0 5rem;
    }

    .status-actions .btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
