/* CSS partagé pour les pages de programme de formation */
:root {
    --fp-primary: #006A63;
    --fp-secondary: #DCEDB9;
    --fp-text: #333;
    --fp-text-light: #555;
    --fp-bg: #f8f9fa; /* Fond de page */
    --fp-white: #fff;
    --fp-border: #e0e0e0;
    --fp-radius: 6px;
    --fp-font-heading: 'Montserrat', sans-serif;
    --fp-font-body: 'Open Sans', sans-serif;
    --fp-header-height: 85px; /* Hauteur du header du site (pour le padding-top) */
}

body.fp-body {
    font-family: var(--fp-font-body);
    color: var(--fp-text);
    line-height: 1.65;
    background-color: var(--fp-bg);
    margin: 0;
    padding: 0;

}

.fp-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.fp-title-band {
    background-color: var(--fp-primary);
    color: var(--fp-white);
    padding: 25px 0;
    text-align: left;
}
.fp-title-band h1 {
    font-family: var(--fp-font-heading);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.fp-title-band .fp-subtitle,
.fp-title-band .fp-last-updated {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.fp-main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 0;
}
.fp-content-col {
    flex: 1 1 60%; /* 60% de la largeur */
    min-width: 300px;
}
.fp-sidebar-col {
    flex: 1 1 35%; /* 35% de la largeur */
    min-width: 260px;
    position: sticky;
    top: calc(var(--fp-header-height) + 20px); /* 85px header + 20px margin */
    align-self: flex-start; /* Nécessaire pour le positionnement sticky dans un conteneur flex */
}

.fp-block {
    background-color: var(--fp-white);
    padding: 20px;
    border-radius: var(--fp-radius);
    margin-bottom: 20px;
    border: 1px solid var(--fp-border);
}
.fp-block h2 {
    font-family: var(--fp-font-heading);
    font-size: 1.2rem;
    color: var(--fp-primary);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fp-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
}
.fp-block h2 i {
    margin-right: 10px;
    font-size: 1em; /* Proportionnel au h2 */
}
.fp-block p, .fp-block ul li {
    font-size: 0.9rem;
    color: var(--fp-text-light);
    margin-bottom: 8px;
}
.fp-block ul {
    padding-left: 20px;
    list-style: disc;
}
.fp-block strong.fp-subheading { /* Pour les sous-titres comme "Public concerné" */
    display: block;
    font-weight: 600;
    color: var(--fp-text);
    margin: 15px 0 5px 0;
    font-size: 0.95rem;
}

/* Sidebar */
.fp-sidebar-info {
    background-color: var(--fp-primary);
    color: var(--fp-white);
    padding: 20px;
    border-radius: var(--fp-radius);
    margin-bottom: 20px;
}
.fp-sidebar-info .fp-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}
.fp-sidebar-info .fp-row:last-child { border-bottom: none; }
.fp-sidebar-info .fp-label { opacity: 0.9; }
.fp-sidebar-info .fp-value { font-weight: 600; text-align: right; }
.fp-sidebar-info .fp-price { font-size: 1.6rem; }
.fp-sidebar-info .fp-price span { font-size: 0.75rem; display:block; opacity:0.8; font-weight:normal;}
.fp-sidebar-info a { color: var(--fp-white); }
.fp-sidebar-info a:hover { color: var(--fp-secondary); }

.fp-sidebar-cta {
    display: block;
    width: 100%;
    background-color: var(--fp-secondary);
    color: var(--fp-primary) !important; /* Important pour surcharger styles globaux de a */
    padding: 12px;
    border-radius: var(--fp-radius);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--fp-primary);
    transition: background-color 0.3s, color 0.3s;
}
.fp-sidebar-cta:hover {
    background-color: #c9db9a;
    text-decoration: none;
}

/* Barre Méta */
.fp-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: var(--fp-white);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    margin-bottom: 20px;
}
.fp-meta-item { text-align: center; }
.fp-meta-item i { font-size: 1.6rem; color: var(--fp-primary); margin-bottom: 5px; display:block;}
.fp-meta-item .fp-label { font-size: 0.7rem; text-transform: uppercase; color: var(--fp-text-light); display:block; margin-bottom:2px;}
.fp-meta-item .fp-value { font-size: 0.9rem; font-weight: 600;}

/* Programme */
.fp-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.fp-program-col h3 { font-size: 1rem; text-transform:uppercase; margin-bottom:8px; color: var(--fp-text); font-weight:600;}

/* Stats Avis */
.fp-stats-block h2 { text-align:center; }
.fp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    text-align: center;
    padding: 15px;
    background-color: var(--fp-secondary);
    border-radius: var(--fp-radius);
}
.fp-stat .fp-value { font-size: 2rem; font-weight: 700; color: var(--fp-primary); display:block;}
.fp-stat .fp-label { font-size: 0.8rem; color: var(--fp-text-light);}

/* Footer blocks */
.fp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.fp-footer-grid .fp-block { margin-bottom: 0; } /* Pas de marge en bas pour ces blocs */
.fp-footer-grid .fp-block h3 { font-size:0.9rem; text-align:center; border:none; padding:0; margin-bottom:8px; text-transform:uppercase; }
.fp-footer-grid .fp-block p { font-size:0.85rem; text-align:center; line-height:1.5; }

/* Pied de page du document (sans SIRET etc.) */
.fp-doc-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--fp-text-light);
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--fp-border);
}


/* Responsive */
@media (max-width: 768px) {
    body.fp-body { padding-top: 70px; } /* Hauteur mobile header */
    .fp-main-layout { flex-direction: column; }
    .fp-sidebar-col { order: -1; margin-bottom: 20px; position: static; }
    .fp-meta-bar { grid-template-columns: repeat(2, 1fr); }
    .fp-program-grid, .fp-footer-grid, .fp-stats-grid { grid-template-columns: 1fr; }
    .fp-title-band h1 { font-size: 1.5rem; }
}
