/* ========================================
   FORMATIONS - Styles spécifiques
   ======================================== */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #f8f5f2 100%);
    color: #2c2c2c;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ========== NAVIGATION ========== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #c8935f;
    transform: translateX(-5px);
}

/* ========== HERO - IMAGE VISIBLE ========== */
.page-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    height: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.page-hero__image {
    width: 100%;
    height: 100%;
}

.page-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.page-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ========== SECTIONS ========== */
.content-section {
    margin: 5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.section-note {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    padding: 2rem;
    background: linear-gradient(135deg, #fef8f1 0%, #fdf3e7 100%);
    border-radius: 15px;
    border-left: 4px solid #d4a574;
}

/* ========== FORMATION CARD AVEC NUMÉROS ========== */
.formation-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid rgba(212, 165, 116, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.formation-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    border-color: #d4a574;
}

.formation-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.formation-card__number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.formation-card__title-group {
    flex: 1;
}

.formation-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.formation-card__subtitle {
    font-size: 1.1rem;
    color: #d4a574;
    font-weight: 500;
}

.formation-card__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.formation-card__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef8f1 0%, #fdf3e7 100%);
    border-radius: 12px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.formation-card__topics {
    margin-bottom: 2rem;
}

.formation-card__topics h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.formation-card__topics ul {
    list-style: none;
    padding: 0;
}

.formation-card__topics li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    color: #555;
    font-size: 1rem;
    position: relative;
}

.formation-card__topics li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d4a574;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.formation-card__button {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.formation-card__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* ========== FORMATION SUR MESURE AMÉLIORÉE ========== */
.custom-training {
    background: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(212, 165, 116, 0.2);
    position: relative;
}

.custom-training__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.custom-training__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem;
}

.custom-training__text {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.custom-training__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fef8f1 0%, #fdf3e7 100%);
    border: 2px solid #d4a574;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4a574;
}

.feature-text {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    text-align: center;
}

/* ========== CTA ========== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #fef8f1 0%, #fdf3e7 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 5rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.cta-text {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    text-align: center;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.btn-large {
    font-size: 1.15rem;
    padding: 1.3rem 3.5rem;
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

/* ========== TÉMOIGNAGES ========== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #d4a574;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.testimonial__text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial__author {
    font-weight: 600;
    color: #d4a574;
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.25rem;
    }
    
    .page-hero {
        height: 400px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .formation-card {
        padding: 1.5rem;
    }
    
    .formation-card__header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .formation-card__title {
        font-size: 1.5rem;
    }
    
    .formation-card__details {
        grid-template-columns: 1fr;
    }
    
    .custom-training {
        padding: 3rem 2rem;
    }
    
    .custom-training__features {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
}