/**
 * Programme Formation - Frontend Styles
 * Design basé sur programme-sketchnote.html avec préfixe "pfm-"
 */

/* Import Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --pfm-primary: #8E2183;
    --pfm-secondary: #FFD466;
    --pfm-accent: #FFC0CB;
    --pfm-light: #FFFFFF;
    --pfm-dark: #333333;
}

/* Forcer la police Montserrat sur tous les éléments du plugin */
section.pfm-objectifs-section,
section.pfm-objectifs-section *,
section.pfm-preambule-section,
section.pfm-preambule-section *,
section.pfm-informations-section,
section.pfm-informations-section *,
section.pfm-benefices-section,
section.pfm-benefices-section *,
section.pfm-tarifs-section,
section.pfm-tarifs-section *,
.pfm-programme-wrapper,
.pfm-programme-wrapper * {
    font-family: 'Montserrat', sans-serif !important;
}

/* =======================
   SECTION OBJECTIFS PÉDAGOGIQUES - Styles forcés avec !important
   Copié exactement de index.html pour correspondance parfaite
   ======================= */

section.pfm-objectifs-section {
    padding: 80px 0 !important;
    background-color: transparent !important;
}

.pfm-objectifs-section .pfm-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.pfm-objectifs-section .pfm-section-subtitle {
    color: #8E2183 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.pfm-objectifs-section .pfm-section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    display: block !important;
}

.pfm-objectifs-section .pfm-section-description {
    font-size: 1.2rem !important;
    color: #666 !important;
    margin-bottom: 50px !important;
    max-width: 800px !important;
    line-height: 1.7 !important;
    display: block !important;
}

/* Liste des objectifs - Exactement comme dans index.html */
.pfm-objectifs-section .pfm-objectives-list {
    list-style: none !important;
    padding: 0 !important;
    max-width: 900px !important;
    margin: 40px auto !important;
}

.pfm-objectifs-section .pfm-objectives-list li {
    padding: 20px 20px 20px 70px !important;
    position: relative !important;
    background: #FFFFFF !important;
    margin-bottom: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    list-style: none !important;
    color: #333 !important;
}

.pfm-objectifs-section .pfm-objectives-list li:hover {
    transform: translateX(10px) !important;
    box-shadow: 0 5px 20px rgba(142,33,131,0.1) !important;
}

.pfm-objectifs-section .pfm-objectives-list li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 35px !important;
    height: 35px !important;
    background: linear-gradient(135deg, #8E2183 0%, #a52a9a 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* Section Préambule - Styles forcés avec !important */
section.pfm-preambule-section {
    padding: 80px 0 !important;
    background-color: #F5F5F5 !important;
}

.pfm-preambule-section .pfm-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.pfm-preambule-section .pfm-section-subtitle {
    color: #8E2183 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.pfm-preambule-section .pfm-section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    display: block !important;
}

/* Highlight Box (pour préambule) - Exactement comme dans index.html */
.pfm-preambule-section .pfm-highlight-box {
    background: linear-gradient(135deg, rgba(142,33,131,0.05) 0%, rgba(255,212,102,0.05) 100%) !important;
    padding: 35px !important;
    border-radius: 12px !important;
    border: 2px solid #8E2183 !important;
    margin: 40px 0 !important;
}

.pfm-preambule-section .pfm-highlight-box h3 {
    color: #8E2183 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.pfm-preambule-section .pfm-highlight-box ul {
    margin-top: 15px !important;
    padding-left: 25px !important;
    list-style: disc !important;
}

.pfm-preambule-section .pfm-highlight-box ul li {
    margin-bottom: 12px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    display: list-item !important;
    list-style: disc !important;
}

/* =======================
   CONTAINER PRINCIPAL
   ======================= */

/* Container principal */
.pfm-programme-wrapper {
    position: relative;
    padding: 60px 0;
}

/* Fil conducteur vertical */
.pfm-fil-conducteur {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--pfm-primary) 5%,
        var(--pfm-secondary) 50%,
        var(--pfm-accent) 95%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.pfm-fil-conducteur::before,
.pfm-fil-conducteur::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pfm-primary);
    box-shadow: 0 0 0 8px rgba(142, 33, 131, 0.2);
}

.pfm-fil-conducteur::before {
    top: 0;
}

.pfm-fil-conducteur::after {
    bottom: 0;
    background: var(--pfm-accent);
    box-shadow: 0 0 0 8px rgba(255, 192, 203, 0.2);
}

/* Container des modules */
.pfm-module-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Module item avec grid */
.pfm-module-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: pfmFadeInUp 0.8s ease-out forwards;
}

.pfm-module-item:nth-child(1) { animation-delay: 0.1s; }
.pfm-module-item:nth-child(2) { animation-delay: 0.2s; }
.pfm-module-item:nth-child(3) { animation-delay: 0.3s; }
.pfm-module-item:nth-child(4) { animation-delay: 0.4s; }
.pfm-module-item:nth-child(5) { animation-delay: 0.5s; }
.pfm-module-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes pfmFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternance gauche/droite */
.pfm-module-item:nth-child(odd) .pfm-module-card {
    grid-column: 1;
}

.pfm-module-item:nth-child(odd) .pfm-module-empty {
    grid-column: 3;
}

.pfm-module-item:nth-child(even) .pfm-module-card {
    grid-column: 3;
}

.pfm-module-item:nth-child(even) .pfm-module-empty {
    grid-column: 1;
}

/* Dot numéroté au centre */
.pfm-module-dot {
    grid-column: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #8E2183, #6d1a66);
    box-shadow: 0 10px 40px rgba(142, 33, 131, 0.4);
    border: 5px solid white;
    z-index: 10;
    position: relative;
}

/* Carte module avec gradient violet */
.pfm-module-card {
    background: linear-gradient(135deg, #8E2183 0%, #6d1a66 100%);
    color: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pfm-module-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,212,102,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.pfm-module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(142, 33, 131, 0.3);
}

/* Titre du module */
.pfm-module-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--pfm-secondary);
}

/* Badge durée */
.pfm-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: rgba(255, 212, 102, 0.3);
    color: var(--pfm-secondary);
}

/* Box objectif */
.pfm-objectif-box {
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    background: rgba(255, 212, 102, 0.2);
    border-left: 4px solid var(--pfm-secondary);
    color: white !important;
}

.pfm-objectif-box p {
    margin: 0;
    color: white !important;
}

.pfm-objectif-box * {
    color: white !important;
}

.pfm-objectif-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pfm-secondary) !important;
}

.pfm-objectif-label * {
    color: var(--pfm-secondary) !important;
}

/* Section contenu */
.pfm-contenu-section {
    margin-top: 30px;
}

.pfm-contenu-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pfm-secondary);
}

/* Liste contenu avec checkmarks */
.pfm-contenu-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfm-contenu-liste li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: white !important;
}

.pfm-contenu-liste li * {
    color: white !important;
}

.pfm-contenu-liste li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--pfm-secondary) !important;
}

/* Badge évaluation */
.pfm-eval-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    margin-top: 30px;
    font-size: 1rem;
    background: var(--pfm-secondary);
    color: var(--pfm-primary);
}

/* Infos pratiques en bas */
.pfm-infos-pratiques {
    max-width: 1400px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.pfm-infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.pfm-info-card {
    background: white;
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pfm-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pfm-primary), var(--pfm-secondary));
}

.pfm-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.pfm-info-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pfm-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pfm-info-icon {
    font-size: 2.5rem;
}

.pfm-info-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.pfm-info-content p {
    margin: 0 0 15px 0;
}

.pfm-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfm-info-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.pfm-info-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--pfm-primary);
    font-weight: 900;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pfm-fil-conducteur {
        display: none;
    }

    .pfm-module-item {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .pfm-module-item .pfm-module-card {
        grid-column: 1 !important;
    }

    .pfm-module-dot {
        grid-column: 1 !important;
        margin: 0 auto;
    }

    .pfm-module-empty {
        display: none;
    }

    .pfm-module-card {
        padding: 35px;
    }

    .pfm-module-title {
        font-size: 2rem;
    }

    .pfm-infos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =======================
   SECTION INFORMATIONS - Copié de index.html
   ======================= */

section.pfm-informations-section {
    padding: 80px 0 !important;
    background-color: transparent !important;
}

.pfm-informations-section .pfm-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.pfm-informations-section .pfm-section-subtitle {
    color: #8E2183 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.pfm-informations-section .pfm-section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    display: block !important;
}

/* Table styles - exactement comme index.html */
.pfm-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 40px 0 !important;
    background: #FFFFFF !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.pfm-table th {
    background-color: #8E2183 !important;
    color: white !important;
    padding: 20px !important;
    text-align: left !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.95rem !important;
}

.pfm-table td {
    padding: 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

.pfm-table td strong {
    color: #8E2183 !important;
}

.pfm-table tr:last-child td {
    border-bottom: none !important;
}

.pfm-table tr:hover {
    background-color: rgba(142,33,131,0.03) !important;
}

/* Cards Grid - exactement comme index.html - Sélecteurs spécifiques pour éviter conflits */
.pfm-informations-section .pfm-cards-grid,
.pfm-benefices-section .pfm-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 50px !important;
}

.pfm-informations-section .pfm-card,
.pfm-benefices-section .pfm-card {
    background: #FFFFFF !important;
    padding: 35px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    border-top: 4px solid #8E2183 !important;
}

.pfm-informations-section .pfm-card:hover,
.pfm-benefices-section .pfm-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(142,33,131,0.15) !important;
}

.pfm-informations-section .pfm-card h3,
.pfm-benefices-section .pfm-card h3 {
    font-size: 1.4rem !important;
    color: #8E2183 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.pfm-informations-section .pfm-card p,
.pfm-benefices-section .pfm-card p {
    color: #666 !important;
    line-height: 1.7 !important;
}

.pfm-informations-section .pfm-card ul,
.pfm-benefices-section .pfm-card ul {
    padding-left: 20px !important;
    list-style: disc !important;
}

.pfm-informations-section .pfm-card ul li,
.pfm-benefices-section .pfm-card ul li {
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
    color: #666 !important;
}

/* =======================
   SECTION BÉNÉFICES
   ======================= */

section.pfm-benefices-section {
    padding: 80px 0 !important;
    background-color: #F5F5F5 !important;
}

.pfm-benefices-section .pfm-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.pfm-benefices-section .pfm-section-subtitle {
    color: #8E2183 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.pfm-benefices-section .pfm-section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    display: block !important;
}

/* =======================
   SECTION TARIFS
   ======================= */

section.pfm-tarifs-section {
    padding: 80px 0 !important;
    background-color: transparent !important;
}

.pfm-tarifs-section .pfm-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.pfm-tarifs-section .pfm-section-subtitle {
    color: #8E2183 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.pfm-tarifs-section .pfm-section-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    display: block !important;
}

/* Grille de tarifs */
.pfm-tarifs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 40px !important;
    margin: 50px 0 !important;
}

/* Card tarif */
.pfm-tarif-card {
    background: #FFFFFF !important;
    padding: 50px 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    transition: all 0.4s ease !important;
    border: 3px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

.pfm-tarif-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(135deg, #8E2183 0%, #FFD466 100%) !important;
}

.pfm-tarif-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 60px rgba(142,33,131,0.2) !important;
    border-color: #8E2183 !important;
}

/* Icône du tarif */
.pfm-tarif-icon {
    font-size: 4rem !important;
    margin-bottom: 25px !important;
    display: block !important;
    line-height: 1 !important;
}

/* Type de tarif */
.pfm-tarif-type {
    color: #333333 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

/* Prix */
.pfm-tarif-prix {
    color: #8E2183 !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-top: 20px !important;
    line-height: 1.2 !important;
}

/* Notes sur les tarifs */
.pfm-tarifs-notes {
    background: linear-gradient(135deg, rgba(142,33,131,0.05) 0%, rgba(255,212,102,0.05) 100%) !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border-left: 4px solid #8E2183 !important;
    margin-top: 50px !important;
}

.pfm-tarifs-notes p {
    margin-bottom: 12px !important;
    line-height: 1.7 !important;
    color: #555 !important;
    font-size: 1rem !important;
}

.pfm-tarifs-notes p:last-child {
    margin-bottom: 0 !important;
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 640px) {
    .pfm-module-card {
        padding: 30px;
        border-radius: 20px;
    }

    .pfm-module-title {
        font-size: 1.7rem;
    }

    .pfm-module-dot {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .pfm-info-card {
        padding: 30px;
    }

    .pfm-info-card h3 {
        font-size: 1.5rem;
    }

    .pfm-infos-grid {
        grid-template-columns: 1fr;
    }

    .pfm-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .pfm-table, .pfm-table th, .pfm-table td {
        font-size: 0.9rem !important;
    }
}
