/* ============================================================
   FORMATIONS.CSS — Page /formations
   Palette : bleu royal #1e3a8a · or #D4A017 · blanc
   ============================================================ */

:root {
    --c-red:       #1e3a8a;
    --c-red-dark:  #162c6b;
    --c-red-light: rgba(30,58,138,.08);
    --c-red-mid:   rgba(30,58,138,.15);
    --c-grey-bg:   #f5f5f5;
    --c-border:    #e4e4e4;
    --c-text:      #1a1a1a;
    --c-muted:     #555;
    --radius:      14px;
    --shadow:      0 4px 28px rgba(0,0,0,.08);
}

/* ============================================================
   HÉRO
   ============================================================ */
.fm-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f172a;
}
.fm-hero-slideshow {
    position: absolute;
    inset: 0;
}
.fm-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.fm-hero-slide.active {
    opacity: 1;
}
.fm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,12,28,.65) 0%, rgba(6,12,28,.82) 100%);
}
.fm-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0 50px;
    color: white;
    max-width: 820px;
}
.fm-hero-label {
    display: inline-block;
    background: var(--c-red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}
.fm-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.fm-hero p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.88);
    margin-bottom: 8px;
}

/* ============================================================
   NOTRE ÉQUIPE (carrousel formateurs)
   ============================================================ */
.fm-team-subtitle {
    text-align: center;
    color: var(--c-muted);
    font-size: 15px;
    margin-top: -26px;
    margin-bottom: 34px;
}
.fm-team-carousel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.fm-team-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: #fff;
    color: var(--c-red);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}
.fm-team-arrow:hover {
    background: var(--c-red);
    border-color: var(--c-red);
    color: #fff;
}
.fm-team-track {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 12px 4px;
    max-width: 100%;
}
.fm-team-track::-webkit-scrollbar { display: none; }
.fm-team-card {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
.fm-team-card:hover { transform: translateY(-6px); }

/* Carte du milieu mise en avant */
.fm-team-card--featured {
    width: 250px;
    border-color: var(--c-red);
    border-width: 2px;
    box-shadow: 0 16px 44px rgba(30,58,138,.22);
    transform: translateY(-16px) scale(1.04);
    position: relative;
    z-index: 1;
}
.fm-team-card--featured:hover { transform: translateY(-22px) scale(1.04); }
.fm-team-card--featured .fm-team-photo {
    background: var(--c-red-light);
    color: var(--c-red);
}
.fm-team-card--featured .fm-team-name { color: var(--c-red); }

.fm-team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b7b7b7;
    font-size: 46px;
}
.fm-team-info {
    padding: 14px 16px 18px;
    text-align: center;
}
.fm-team-name {
    margin: 0 0 4px;
    font-weight: 800;
    font-size: 15px;
    color: var(--c-red);
}
.fm-team-role {
    margin: 0;
    font-size: 13px;
    color: var(--c-muted);
}

/* ============================================================
   SECTION TITLES (ligne pointillée + titre centré)
   ============================================================ */
.fm-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 42px;
    margin-top: 70px;
}
.fm-section-title::before,
.fm-section-title::after {
    content: '';
    flex: 1;
    border-top: 2px dotted #c8c8c8;
}
.fm-section-title span {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--c-red);
    white-space: nowrap;
    font-style: italic;
}

/* ============================================================
   OBJECTIFS
   ============================================================ */
.fm-objectifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}
@media (max-width: 768px) { .fm-objectifs-grid { grid-template-columns: 1fr; } }

.fm-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.fm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.fm-card p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--c-muted);
    margin: 0;
}
.fm-card p + p { margin-top: 16px; }
.fm-card strong { color: var(--c-text); }
.fm-card .fm-highlight { color: var(--c-red); font-weight: 700; }
.fm-card-accent {
    border-left: 4px solid var(--c-red);
}

/* ============================================================
   CARTE PLEINE LARGEUR (programme)
   ============================================================ */
.fm-full-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 42px 48px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.fm-full-card .fm-lead {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-red);
    line-height: 1.55;
    margin-bottom: 26px;
}
.fm-full-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}
@media (max-width: 768px) { .fm-full-card ul { grid-template-columns: 1fr; } }
.fm-full-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--c-muted);
    font-weight: 600;
    line-height: 1.5;
}
.fm-full-card ul li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--c-red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* ============================================================
   SECTIONS PENDANT / PROFILS (texte + image)
   ============================================================ */
.fm-split {
    display: grid;
    gap: 32px;
    align-items: center;
    margin-bottom: 12px;
}
.fm-split.text-left  { grid-template-columns: 1fr 1fr; }
.fm-split.text-right { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
    .fm-split.text-left,
    .fm-split.text-right { grid-template-columns: 1fr; }
    .fm-split.text-right .fm-split-img { order: -1; }
}

.fm-split-text {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 38px 36px;
    box-shadow: var(--shadow);
}
.fm-split-text p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--c-muted);
    margin-bottom: 14px;
}
.fm-split-text p:last-child { margin-bottom: 0; }
.fm-split-text strong { color: var(--c-text); }
.fm-split-text ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.fm-split-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--c-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}
.fm-split-text ul li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--c-red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.fm-split-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--c-red);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}
.fm-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback image placeholder */
.fm-split-img.no-img {
    background: linear-gradient(135deg, var(--c-red-light) 0%, #f0e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-split-img.no-img i {
    font-size: 64px;
    color: var(--c-red);
    opacity: .35;
}

/* ============================================================
   BOUTON TCF TABLEAU
   ============================================================ */
.fm-tcf-btn-wrap {
    text-align: center;
    margin: 50px 0;
}
.fm-tcf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e3a8a;
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 18px 42px;
    border-radius: 50px;
    text-decoration: none;
    line-height: 1.35;
    text-align: center;
    transition: background .25s, transform .25s;
    box-shadow: 0 6px 20px rgba(46,58,94,.3);
}
.fm-tcf-btn:hover {
    background: #142654;
    transform: translateY(-2px);
    color: white;
}
.fm-tcf-btn i { font-size: 20px; }

/* ============================================================
   PRICING — titre section
   ============================================================ */
.fm-pricing-header {
    text-align: center;
    margin-bottom: 48px;
}
.fm-pricing-header h2 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--c-text);
    line-height: 1.2;
    margin-bottom: 14px;
}
.fm-pricing-header h2 span { color: var(--c-red); }
.fm-pricing-header p {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.6;
    margin: 0;
}

/* Grille 3 cartes */
.fm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 900px) { .fm-pricing-grid { grid-template-columns: 1fr; } }

/* Carte tarif */
.fm-plan {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.fm-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.13);
}

/* Badge "Version 2026" */
.fm-plan-badge {
    position: absolute;
    top: 0; right: 0;
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 20px 8px 8px 20px;
    line-height: 1.2;
    text-align: right;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.fm-plan-badge.silver { background: linear-gradient(135deg, #9e9e9e, #c0c0c0); }
.fm-plan-badge.gold   { background: linear-gradient(135deg, #b8860b, #ffd700); }

.fm-plan-header {
    background: var(--c-red);
    padding: 20px 24px;
    text-align: center;
}
.fm-plan-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0;
}
.fm-plan-body {
    padding: 28px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Prix */
.fm-plan-price {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--c-border);
}
.fm-plan-amount {
    font-size: 56px;
    font-weight: 900;
    color: var(--c-text);
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.fm-plan-currency {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
}
.fm-plan-cents {
    font-size: 22px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 8px;
}
.fm-plan-duration {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-muted);
    margin-top: 6px;
}

/* Features liste */
.fm-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.fm-plan-features li {
    font-size: 13.5px;
    color: var(--c-muted);
    text-align: center;
    padding: 11px 0;
    border-bottom: 1px dashed var(--c-border);
    line-height: 1.4;
}
.fm-plan-features li:last-child { border-bottom: none; }
.fm-plan-features li strong { color: var(--c-text); display: block; }

/* Bouton S'abonner */
.fm-plan-btn {
    display: block;
    text-align: center;
    background: var(--c-red);
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 0;
    border-radius: 50px;
    text-decoration: none;
    transition: background .25s, transform .2s;
    margin-top: auto;
}
.fm-plan-btn:hover {
    background: var(--c-red-dark);
    transform: translateY(-2px);
    color: white;
}

/* ============================================================
   BOUTONS ACCÈS GRATUIT
   ============================================================ */
.fm-free-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 48px 0 72px;
}
.fm-free-btn {
    background: rgba(30,58,138,.18);
    color: var(--c-red);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--c-red);
    transition: background .25s, color .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fm-free-btn:hover {
    background: var(--c-red);
    color: white;
}

/* ============================================================
   SÉPARATEUR SECTION
   ============================================================ */
.fm-section-sep {
    margin: 72px 0 0;
    border: none;
    border-top: 2px solid var(--c-border);
}
