/* ==============================
   FORMATION PAGE STYLES
   ============================== */

.formation-main {
    padding-top: 0;
    min-height: 100vh;
    background: #fff;
    overflow-x: hidden;
}

/* ==============================
   HERO VIDÉO
   ============================== */
.formation-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 40px;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    display: inline-block;
}

/* ==============================
   SECTION POURQUOI SE FORMER
   ============================== */
.formation-why {
    position: relative;
    padding: 15px 0 5px !important;
    background: #fff;
}

.why-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 25px;
}

.why-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #333;
    margin: 0 0 15px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.why-item {
    text-align: center;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon.why-icon-large {
    width: 120px;
    height: 60px;
}

.why-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.why-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.why-text strong {
    color: #222;
    font-weight: 600;
}

/* Bouton inscription - chevauche les deux sections */
.why-cta-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    margin-top: 30px;
    z-index: 10;
}

.btn-inscription {
display: inline-block;
padding: 18px 60px;
background: #000;
color: #fff;
text-decoration: none;
font-size: 14px;
font-weight: 600;
letter-spacing: 1px;
border-radius: 0;
transition: all 0.3s ease;
position: relative;
transform: translateY(65%);
}

.btn-inscription:hover {
    background: #333;
}

/* Section grise en dessous */
.formation-gray-section {
    background: #f0f0f0;
    padding: 60px clamp(20px, 4vw, 40px);
}

.gray-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.gray-content {
    flex: 1 1 300px;
    min-width: 280px;
}

.gray-title {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #333;
    margin: 0 0 30px 0;
}

.gray-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 20px 0;
}

.gray-text strong {
    color: #222;
    font-weight: 600;
}

.gray-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 20px;
}

.gray-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    position: relative;
    padding-left: 15px;
}

.gray-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #444;
}

.gray-logos {
    background: #fff;
    padding: 35px clamp(20px, 5vw, 80px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
    align-self: center;
}

.gray-logos img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* ==============================
   SECTION AU PROGRAMME
   ============================== */
.formation-programme {
    padding: 60px 0 50px;
    background: #fff;
}

/* Ligne du haut : images + bloc gris */
.programme-top {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 50px;
}

.programme-left {
    flex: 1;
    padding: 0 40px 0 clamp(40px, 10vw, 200px);
}

.programme-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.programme-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #333;
    margin: 0 0 30px 0;
}

.programme-info {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    color: #555;
}

.programme-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Cartes formation */
.programme-card {
    flex: 0 0 auto;
    max-width: 350px;
}

.programme-card-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.programme-card-image-full {
    width: 100%;
    overflow: hidden;
}

.programme-card-image-full img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: left;
    display: block;
}

.programme-card-tall .programme-card-image-full img {
    max-height: 230px;
}

/* Colonne droite : bloc gris + bouton */
.programme-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-end;
    justify-content: flex-end;
}

/* Bande grise 80/20 */
.programme-percent {
    background: #f0f0f0;
    padding: 15px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    min-width: 280px;
}

.programme-percent-intro {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin: 0 0 20px 0;
    text-align: center;
}

.programme-percent-values {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.btn-inscription-programme {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.btn-inscription-programme:hover {
    background: #333;
}

/* ==============================
   SECTION VOTRE FORMATEUR
   ============================== */
.formation-formateur {
    background: #f5f5f5;
    padding: 60px 0;
}

.formateur-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.formateur-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #222;
    margin: 0 0 10px 0;
}

.formateur-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0 0 40px 0;
}

.formateur-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.formateur-image {
    flex-shrink: 0;
    width: clamp(280px, 35vw, 450px);
    min-width: 280px;
}

.formateur-image img {
    width: 100%;
    height: auto;
    display: block;
}

.formateur-text {
    flex: 1;
}

.formateur-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 15px 0;
}

.formateur-text p:last-child {
    margin-bottom: 0;
}

.formateur-text strong {
    color: #222;
    font-weight: 600;
}

/* ==============================
   SECTION PROCHAINES FORMATIONS
   ============================== */
.formation-dates {
    background: #fff;
    padding: 60px 0;
}

.dates-top {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

.dates-left {
    flex: 1;
    padding: 0 40px 0 clamp(20px, 8vw, 100px);
}

.dates-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #333;
    margin: 0 0 40px 0;
}

.dates-columns {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 8vw, 20%);
    justify-content: flex-start;
}

.dates-column {
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 320px;
}

.dates-image-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
    background: transparent;
}

.dates-image-wrapper img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: left;
}

.dates-product-tag {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 400;
}

.dates-product-tag strong {
    font-weight: 600;
}

.dates-image-terrazzo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.dates-image-terrazzo img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: left;
}

.dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dates-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    position: relative;
    padding-left: 15px;
}

.dates-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #888;
}

.dates-info {
    background: #f5f5f5;
    padding: 35px 30px;
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.dates-info-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px 0;
    display: inline;
}

.dates-info-text {
    font-size: 20px;
    line-height: 1.4;
    color: #555;
    margin: 0;
    font-style: italic;
    display: inline;
}

.dates-info-text strong {
    font-weight: 600;
    color: #333;
}

/* ==============================
   SECTION QUALIOPI FOOTER
   ============================== */
.formation-qualiopi {
    background: #f0f0f0;
    padding: 40px 0;
}

.qualiopi-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.qualiopi-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    font-style: italic;
    text-align: center;
}

.percent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.percent-big {
    font-size: 60px;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

.percent-small {
    font-size: 36px;
    font-weight: 700;
    color: #555;
    line-height: 1;
}

.percent-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #555;
    margin-top: 5px;
}

/* Frise pictos */
.programme-frise {
    position: relative;
    padding: 40px 0 0;
}

.frise-line {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed #aaa;
    z-index: 0;
}

.frise-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    gap: 15px;
}

.frise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 120px;
    min-width: 120px;
    max-width: 180px;
    padding: 0 8px;
}

.frise-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.frise-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.frise-text {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin: 15px 0 0;
    max-width: 180px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media screen and (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .dates-left {
        padding: 0 30px;
    }
    
    .dates-info {
        width: 400px;
    }
    
    .formateur-image {
        width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .formation-hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        bottom: 40px;
        left: 30px;
        right: 30px;
    }

    .hero-title {
        font-size: 32px;
        padding: 8px 15px;
    }

    .hero-subtitle {
        font-size: 20px;
        padding: 6px 15px;
    }

    .why-container {
        padding: 0 20px;
    }

    .why-title {
        font-size: 18px;
        margin-bottom: 40px;
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-cta-wrapper {
        justify-content: center;
        padding-right: 0;
    }
    
    /* Section grise */
    .gray-container {
        padding: 0 20px;
        flex-direction: column;
    }
    
    .gray-content {
        text-align: center;
    }
    
    .gray-logos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 30px;
    }
    
    /* Section Programme */
    .programme-top {
        flex-direction: column;
    }
    
    .programme-left {
        padding: 0 20px;
    }
    
    .programme-title {
        font-size: 18px;
        text-align: center;
    }
    
    .programme-info {
        display: block;
        margin-top: 10px;
    }
    
    .programme-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .programme-card {
        width: 100%;
    }
    
    .programme-right {
        width: 100%;
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .programme-percent-values {
        justify-content: center;
    }
    
    .programme-container {
        padding: 0 20px;
    }
    
    .frise-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .frise-item {
        width: 45%;
    }
    
    /* Section Formateur */
    .formateur-container {
        padding: 0 20px;
        text-align: center;
    }
    
    .formateur-content {
        flex-direction: column;
        align-items: center;
    }
    
    .formateur-image {
        width: 100%;
        max-width: 350px;
    }
    
    .formateur-text {
        text-align: center;
    }
    
    /* Section Dates */
    .dates-top {
        flex-direction: column;
    }
    
    .dates-left {
        padding: 0 20px;
    }
    
    .dates-title {
        font-size: 18px;
        text-align: center;
    }
    
    .dates-columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .dates-column {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .dates-image-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .dates-image-terrazzo {
        display: flex;
        justify-content: center;
    }
    
    .dates-image-terrazzo img {
        object-position: center;
    }
    
    .dates-list {
        text-align: center;
    }
    
    .dates-list li {
        padding-left: 0;
    }
    
    .dates-list li::before {
        display: none;
    }
    
    .dates-info {
        width: 100%;
        margin-top: 30px;
        text-align: center;
        align-self: stretch;
    }
    
    /* Section Qualiopi */
    .qualiopi-container {
        padding: 0 20px;
    }
    
    .qualiopi-text {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .formation-hero {
        height: 40vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .why-title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .btn-inscription {
        padding: 12px 40px;
        font-size: 13px;
    }
    
    .programme-title {
        font-size: 16px;
    }
    
    .formateur-title {
        font-size: 22px;
    }
    
    .dates-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .frise-item {
        width: 100%;
    }
    
    .dates-info-text {
        font-size: 14px;
    }
}
