/* ==========================================
   PAGE DÉTAIL AXEN — axe-detail.css
   ========================================== */

/* Bandeau hero avec couleur par axe (via variable inline) */
.hero-axe {
    background: linear-gradient(135deg, var(--axe-color) 0%, var(--axe-color-dark) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Support pour l'image de fond */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay sombre au-dessus de l'image pour que le texte reste lisible */
.hero-axe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--axe-color-rgb), 0.15) 0%, 
        rgba(var(--axe-color-dark-rgb), 0.9) 100%);
    z-index: 0;
}

/* Cercles décoratifs */
.hero-axe .hero-decoration-1 {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    z-index: 1;
}

.hero-axe .hero-decoration-2 {
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

.hero-axe .axe-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.hero-axe .hero-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.hero-axe h1 {
    font-size: 2.8rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.hero-axe p {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

/* Fil d'Ariane */
.breadcrumb {
    background: var(--light-bg);
    padding: 14px 0;
    font-size: 0.92rem;
    color: #777;
}

.breadcrumb a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #bbb;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Intro texte long sous le hero */
.axe-intro {
    padding: 50px 0 30px;
}

.axe-intro p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #555;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Grille des points clés (info cards colorées) */
.points-cles {
    padding: 10px 0 50px;
}

.points-cles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.point-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--axe-color);
    transition: var(--transition);
}

.point-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.point-card .point-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px;
}

.point-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.point-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Section "Comment ça marche" — étapes horizontales */
.etapes-section {
    background: var(--light-bg);
    padding: 55px 0;
}

.etapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    position: relative;
}

.etape {
    text-align: center;
    padding: 24px 18px;
    position: relative;
}

.etape-numero {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--axe-color), var(--axe-color-dark));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.etape h4 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.etape p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Section ressources / outils */
.ressources-section {
    padding: 55px 0;
}

.ressources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.ressource-card {
    background: var(--white);
    border-radius: 10px;
    padding: 26px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--axe-color);
    transition: var(--transition);
}

.ressource-card:hover {
    border-left-width: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.ressource-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.ressource-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

.ressource-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* FAQ accordion simple */
.faq-section {
    background: var(--light-bg);
    padding: 55px 0;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(52, 152, 219, 0.04);
}

.faq-question .faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    color: var(--axe-color);
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    font-size: 0.96rem;
}

/* Navigation entre axes (bas de page) */
.nav-axes {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    gap: 20px;
}

.nav-axe-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    flex: 1;
    max-width: 320px;
}

.nav-axe-link:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 14px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}

.nav-axe-link.prev {
    justify-content: flex-start;
}

.nav-axe-link.next {
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

.nav-axe-link .nav-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 2px;
}

.nav-axe-link .nav-titre {
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-axe-link .nav-icon {
    font-size: 1.8rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-axe h1 {
        font-size: 2rem;
    }

    .hero-axe p {
        font-size: 1.05rem;
    }

    .nav-axes {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-axe-link,
    .nav-axe-link.next {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-axe {
        padding: 55px 0 40px;
    }

    .hero-axe h1 {
        font-size: 1.6rem;
    }

    .hero-axe .hero-icon {
        font-size: 3.5rem;
    }
}
