/* ============================================================
   action.css — ong_cade
   Page Notre Action
   ============================================================ */

/* ──────────────────────────────────────────────
   1. HERO
────────────────────────────────────────────── */
.action-hero {
    background: linear-gradient(155deg, #0F2547 0%, #1B3A6B 45%, #1A6B5A 100%);
    padding: 80px 0 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.action-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
    position: relative;
    z-index: 1;
}

.action-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,166,35,.18); border: 1px solid rgba(245,166,35,.4);
    color: #F5A623; padding: 6px 18px; border-radius: 20px;
    font-size: 12px; font-weight: 800; letter-spacing: .5px;
    margin-bottom: 22px; text-transform: uppercase;
}

.action-hero-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: #ffffff; margin-bottom: 18px; line-height: 1.15;
}

.action-hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,.78);
    line-height: 1.8; margin: 0;
}

.action-hero-wave { line-height: 0; }
.action-hero-wave svg { display: block; width: 100%; height: 55px; }

/* ──────────────────────────────────────────────
   2. STATISTIQUES
────────────────────────────────────────────── */
.action-stats {
    background: #ffffff;
    padding: 48px 0;
    border-bottom: 1px solid rgba(27,58,107,.07);
}

.action-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.action-stat-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 24px 20px;
    border-right: 1px solid rgba(27,58,107,.08);
    position: relative;
}

.action-stat-item:last-child { border-right: none; }

.action-stat-item::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 3px;
    background: #F5A623; border-radius: 0 0 3px 3px;
}

.action-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #EBF4FF; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #1B3A6B; margin-bottom: 12px;
}

.action-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem; font-weight: 700; color: #1B3A6B;
    line-height: 1; margin-bottom: 6px;
}

.action-stat-lbl {
    font-size: 14px; font-weight: bold; color: #111111;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 4px;
}

.action-stat-desc {
    font-size: 11px; color: #444; line-height: 1.5;
}

/* ──────────────────────────────────────────────
   3. SECTION TITLES COMMUNES
────────────────────────────────────────────── */
.section-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #1B3A6B; text-align: center;
    margin-bottom: 12px; line-height: 1.25;
}

.section-subtitle {
    font-size: 1rem; color: #444; text-align: center;
    line-height: 1.7; max-width: 600px;
    margin: 0 auto 48px;
}

/* ──────────────────────────────────────────────
   4. OBJECTIFS — grille 3x2
────────────────────────────────────────────── */
.action-objectifs { background: #ffffff; }

.action-objectifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.action-obj-card {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(27,58,107,.07);
    position: relative; overflow: hidden;
    transition: all 280ms ease;
    display: flex; flex-direction: column; gap: 10px;
}

.action-obj-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, #1B3A6B, #F5A623);
    transform: scaleX(0); transform-origin: left;
    transition: transform 300ms ease;
}

.action-obj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(27,58,107,.11);
    background: #ffffff;
}

.action-obj-card:hover::after { transform: scaleX(1); }

.action-obj-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #1B3A6B, #1B5EA7);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #ffffff;
    flex-shrink: 0;
    transition: transform 280ms ease;
}

.action-obj-card:hover .action-obj-icon { transform: scale(1.1) rotate(-5deg); }

.action-obj-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem; font-weight: 700;
    color: rgba(27,58,107,.07); line-height: 1;
    position: absolute; top: 20px; right: 24px;
    user-select: none;
}

.action-obj-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.05rem; font-weight: 700;
    color: #1B3A6B; margin: 0; line-height: 1.35;
}

.action-obj-text {
    font-size: 13.5px; color: #111111;
    line-height: 1.7; margin: 0;
}

/* ──────────────────────────────────────────────
   5. AXES D'INTERVENTION — sections alternées
────────────────────────────────────────────── */
.action-axes { background: #F0F4F8; }

.action-axes-list {
    display: flex; flex-direction: column; gap: 64px;
    margin-top: 8px;
}

.action-axe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}

.action-axe--reverse { direction: rtl; }
.action-axe--reverse > * { direction: ltr; }

/* Figure image */
.action-axe-figure {
    margin: 0; border-radius: 24px;
    overflow: hidden; position: relative;
    box-shadow: 0 20px 60px rgba(27,58,107,.14);
    aspect-ratio: 3/2;
}

.action-axe-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform 500ms ease;
}

.action-axe:hover .action-axe-img { transform: scale(1.04); }

/* Placeholder si image absente */
.action-axe-placeholder {
    width: 100%; height: 100%;
    min-height: 320px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 24px; position: relative; overflow: hidden;
}

.action-axe-icon-lg {
    width: 96px; height: 96px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; position: relative; z-index: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.action-axe-placeholder-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 9rem; font-weight: 700; line-height: 1;
    position: absolute; right: -10px; bottom: -20px;
    user-select: none; pointer-events: none;
}

/* Corps texte axe */
.action-axe-body {
    display: flex; flex-direction: column; gap: 14px;
}

.action-axe-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .6px; padding: 5px 14px; border-radius: 20px;
    align-self: flex-start;
}

.action-axe-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 700; margin: 0; line-height: 1.25;
}

.action-axe-text {
    font-size: 15px; color: #111111;
    line-height: 1.8; margin: 0;
}

.action-axe-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 800;
    text-decoration: none;
    transition: gap 200ms ease;
    align-self: flex-start;
}

.action-axe-link:hover { gap: 14px; }

/* ──────────────────────────────────────────────
   6. PROJETS EN LIEN
────────────────────────────────────────────── */
.action-projets { background: #ffffff; }

.action-projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.action-proj-card {
    background: #F8FAFC;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(27,58,107,.07);
    transition: all 260ms ease;
    display: flex; flex-direction: column;
}

.action-proj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(27,58,107,.12);
    background: #ffffff;
}

.action-proj-img {
    position: relative; overflow: hidden;
    aspect-ratio: 16/9;
}

.action-proj-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 400ms ease;
}

.action-proj-card:hover .action-proj-img img { transform: scale(1.05); }

.action-proj-placeholder {
    width: 100%; height: 100%; min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EBF4FF, #D0DCEA);
}

.action-proj-placeholder i { font-size: 48px; color: #111111; opacity: .5; }

.action-proj-status {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 800; color: #ffffff;
    letter-spacing: .3px;
}

.action-proj-body {
    padding: 22px 24px 26px;
    display: flex; flex-direction: column; gap: 8px; flex: 1;
}

.action-proj-region {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; color: #111111;
}

.action-proj-region i { color: #F5A623; }

.action-proj-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.4;
}

.action-proj-title a {
    color: #1B3A6B; text-decoration: none;
    transition: color 200ms ease;
}

.action-proj-title a:hover { color: #F5A623; }

.action-proj-excerpt {
    font-size: 13px; color: #111111; line-height: 1.65;
    margin: 0; flex: 1;
}

.action-proj-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 800; color: #1B5EA7;
    text-decoration: none; margin-top: auto;
    transition: gap 200ms ease;
}

.action-proj-link:hover { gap: 10px; }

.action-projets-footer { text-align: center; }

/* ──────────────────────────────────────────────
   7. CTA FINAL
────────────────────────────────────────────── */
.action-cta {
    background: linear-gradient(135deg, #0F2547 0%, #1B3A6B 60%, #1A6B5A 100%);
    padding: 80px 24px; text-align: center;
    position: relative; overflow: hidden;
}

.action-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.action-cta-inner {
    max-width: 640px; margin: 0 auto;
    position: relative; z-index: 1;
}

.action-cta-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffffff; margin-bottom: 14px; line-height: 1.25;
}

.action-cta-sub {
    font-size: 15px; color: rgba(255,255,255,.72);
    line-height: 1.75; margin-bottom: 36px;
}

.action-cta-btns {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}

/* ──────────────────────────────────────────────
   8. FADE-IN ANIMATIONS
────────────────────────────────────────────── */
.afade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 550ms ease, transform 550ms ease;
}

.afade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   9. RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .action-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .action-stat-item:nth-child(2) { border-right: none; }
    .action-stat-item:nth-child(1),
    .action-stat-item:nth-child(2) { border-bottom: 1px solid rgba(27,58,107,.08); }
}

@media (max-width: 991px) {
    .action-objectifs-grid { grid-template-columns: repeat(2, 1fr); }
    .action-axe,
    .action-axe--reverse {
        grid-template-columns: 1fr;
        direction: ltr; gap: 28px;
    }
    .action-projets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .action-objectifs-grid { grid-template-columns: 1fr; }
    .action-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .action-projets-grid { grid-template-columns: 1fr; }
    .action-cta-btns { flex-direction: column; align-items: stretch; }
    .action-cta-btns .btn-cade { justify-content: center; }
    .action-axes-list { gap: 40px; }
}
