/* =======================
   Variables & Base
   ======================= */
:root {
    --ap-text: #1a1a1a;
    --ap-muted: #6b7280;
    --ap-primary: #3d2cd0; /* violet foncé */
    --ap-primary-2: #6b58ff; /* violet clair */
    --ap-green: #22c55e; /* vert icônes certifs */
    --ap-surface: #ffffff;
    --ap-alt: #f6f7fb; /* fond alterné */
    --ap-border: #e8eaf1;
    --ap-shadow: 0 10px 24px rgba(20,20,43,.06);
    --ap-radius: 16px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--ap-text);
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

/* =======================
   Hero
   ======================= */
.ap-hero {
    margin-top: 12px; /* petit espace au-dessus du bandeau */
    background: linear-gradient(180deg, var(--ap-primary) 0%, #4b39db 45%, var(--ap-primary-2) 100%);
    color: #fff;
    padding: 56px 0 60px;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--ap-shadow);
}

.ap-hero__inner {
    text-align: center
}

.ap-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .2px
}

.ap-hero p {
    margin: 0;
    font-size: 14px;
    opacity: .95
}

/* =======================
   Sections (alternance)
   ======================= */
.ap-section {
    padding: 48px 0;
    background: var(--ap-surface)
}

.ap-section--alt {
    background: var(--ap-alt)
}

.ap-section h3 {
    margin: 0 0 22px;
    text-align: center;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    font-weight: 800;
}

/* =======================
   Story
   ======================= */
.ap-story {
    padding: 40px 0
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 32px;
    align-items: start
}

.story-text h2 {
    margin: 0 0 14px;
    font-size: 22px
}

.story-text p {
    margin: 0 0 10px;
    color: var(--ap-muted);
    font-size: 20px
}

.ap-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px
}

    .ap-rating .stars svg {
        width: 18px;
        height: 18px;
        fill: #f59e0b
    }

.ap-rating__text {
    font-size: 12px;
    color: var(--ap-muted)
}

.media-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: var(--ap-shadow);
    overflow: hidden
}

    .media-card img {
        display: block;
        width: 100%;
        height: 280px;
        object-fit: cover
    }

/* =======================
   Stats
   ======================= */
.ap-stats h3 {
    margin-bottom: 24px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.stat-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: var(--ap-shadow);
    padding: 22px 18px;
    text-align: center
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #039ede;
    line-height: 1
}

.stat-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ap-muted)
}

/* =======================
   Valeurs (icônes centrées)
   ======================= */
.ap-values h3 {
    margin-bottom: 6px
}

.values-sub {
    margin: 0 0 22px;
    text-align: center;
    color: var(--ap-muted);
    font-size: 12px
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.value-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: var(--ap-shadow);
    padding: 22px 18px;
    text-align: center; /* centrage du contenu */
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px; /* centrage horizontal */
    display: grid;
    place-items: center;
    background: #fff; /* pas de pastille violette */
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

    .value-icon svg {
        width: 26px;
        height: 26px;
        fill: #2563eb
    }
/* bleu */

.value-card h4 {
    margin: 0 0 8px;
    font-size: 15px
}

.value-card p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 13px
}

/* =======================
   Badges / Certifications
   ======================= */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.badge-card {
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: var(--ap-shadow);
    padding: 24px 18px;
    text-align: center
}

.badge-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    background: #fff; /* fond blanc */
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

    .badge-icon svg {
        width: 26px;
        height: 26px;
        fill: var(--ap-green)
    }
/* vert */

.badge-card h4 {
    margin: 0 0 8px;
    font-size: 15px
}

.badge-card p {
    margin: 0;
    color: var(--ap-muted);
    font-size: 13px
}

/* =======================
   Responsive
   ======================= */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr
    }

    .media-card img {
        height: 240px
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .values-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .badges-grid {
        grid-template-columns: 1fr
    }
}

/* --- Entrée animée du bandeau A propos (comme le hero home) --- */
.hero-band.hero--simple.reveal-on-scroll .copy > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
/* Quand l’élément entre dans le viewport (classe ajoutée par app-reveal.js) */
.hero-band.hero--simple.reveal-on-scroll.is-visible .copy > * {
    opacity: 1;
    transform: none;
}
/* Stagger léger : titre, texte, boutons */
.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(1) {
    transition-delay: 60ms;
}

.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(2) {
    transition-delay: 160ms;
}

.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(3) {
    transition-delay: 260ms;
}

/* =========================================================
   AJOUT : Stagger des sections au scroll (pas de changement visuel)
   ========================================================= */
/* Histoire : texte puis image */
.story-grid > *:nth-child(1) {
    --reveal-delay: 0ms;
}

.story-grid > *:nth-child(2) {
    --reveal-delay: 140ms;
}

/* Stats : 4 cartes */
.stats-grid > .stat-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.stats-grid > .stat-card:nth-child(2) {
    --reveal-delay: 100ms;
}

.stats-grid > .stat-card:nth-child(3) {
    --reveal-delay: 200ms;
}

.stats-grid > .stat-card:nth-child(4) {
    --reveal-delay: 300ms;
}

/* Valeurs : 4 cartes */
.values-grid > .value-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.values-grid > .value-card:nth-child(2) {
    --reveal-delay: 120ms;
}

.values-grid > .value-card:nth-child(3) {
    --reveal-delay: 240ms;
}

.values-grid > .value-card:nth-child(4) {
    --reveal-delay: 360ms;
}

/* Badges : 3 cartes */
.badges-grid > .badge-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.badges-grid > .badge-card:nth-child(2) {
    --reveal-delay: 120ms;
}

.badges-grid > .badge-card:nth-child(3) {
    --reveal-delay: 240ms;
}

/* Accessibilité : on respecte la préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .story-grid > *, .stat-card, .value-card, .badge-card {
        --reveal-delay: 0ms !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
/* === Titre façon "home" (centré + lignes latérales) === */
.ap-title {
    position: relative;
    text-align: center;
    color: #136b7b; /* teinte teal comme l'accueil */
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 10px;
}

    .ap-title::before,
    .ap-title::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(36px, 7vw, 72px);
        height: 2px;
        background: #e5e7eb; /* gris clair des traits */
        border-radius: 2px;
    }

    .ap-title::before {
        left: 22px;
    }

    .ap-title::after {
        right: 22px;
    }

@media (max-width: 520px) {
    .ap-title::before,
    .ap-title::after {
        width: 32px;
        left: 14px;
        right: 14px;
    }
}
/* === Titres identiques à _Services === */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');

.services-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-family: 'Urbanist',sans-serif;
}

.services-title {
    font-size: 34px;
    font-weight: 700;
    color: #155e75; /* même teal que _Services */
    letter-spacing: .3px;
    position: relative;
    display: inline-block;
    padding: 0 24px;
}

    /* Traits gauche/droite */
    .services-title::before,
    .services-title::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 60px;
        height: 1.6px;
        background-color: rgba(0,0,0,.15);
        transform: translateY(-50%);
    }

    .services-title::before {
        left: -70px;
    }

    .services-title::after {
        right: -70px;
    }

    /* Dégradé doux sur le texte (même effet que _Services) */
    .services-title span {
        background: linear-gradient(90deg,#155e75,#1f6f93,#2592b0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textFade 1s ease forwards;
    }

@keyframes textFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Force le même gradient pour le hero et la cta */
.hero-band.g-violetBlue-04,
.cta.g-violetBlue-04 {
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) !important;
}
