/* --- Charte Graphique Officielle OGI --- */
:root {
    --ogi-blue: #0d3c8f;         /* Bleu roi extrait de l'image de marque */
    --ogi-mid-blue: #1e293b;     /* Couleur secondaire sombre */
    --ogi-orange: #e67e22;       /* Orange vif d'action OGI */
    --bg-light: #f8fafc;         /* Fond général ultra-propre */
    --text-main: #1e293b;        
    --text-muted: #64748b;
    --card-white: #ffffff;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(13, 60, 143, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(13, 60, 143, 0.08);
    --radius-ogi: 6px;           /* Angles légers, style moderne corporate */
    --transition-fast: all 0.2s ease-in-out;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Container élargi pour étirer les lignes au maximum sur PC */
.container {
    width: 94%;
    max-width: 1100px; 
    margin: 0 auto;
}

/* --- Header OGI Style - Version PASCAL --- */
.ogi-header {
    background-color: var(--ogi-blue);
    color: #ffffff;
    padding: 45px 0;
    text-align: center;
    border-bottom: 5px solid var(--ogi-orange); /* Bande orange distinctive */
    box-shadow: var(--shadow-sm);
}

/* Projet PASCAL en haut */
.project-code {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ogi-orange); 
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-code i {
    margin-right: 6px;
}

/* PROGRAMME DE FORMATION en grand caractère */
.main-title {
    font-size: 34px; 
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 22px;
    line-height: 1.2;
}

/* Encart d'instruction pour inciter au clic */
.action-instruction {
    background-color: rgba(255, 255, 255, 0.08); 
    border-left: 4px solid var(--ogi-orange);
    padding: 12px 24px;
    display: inline-block;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: #e2e8f0;
    max-width: 90%;
}

.action-instruction strong {
    color: #ffffff;
    text-decoration: underline;
}

.action-instruction i {
    margin-right: 8px;
    color: var(--ogi-orange);
    animation: handPulse 1.5s infinite; 
}

/* Animation de pulsation sur l'icône de clic */
@keyframes handPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Liste Longue Horizontale --- */
.courses-extended-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
}

.course-long-row {
    background-color: var(--card-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-ogi);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    overflow: hidden;
    position: relative;
}

.course-long-row:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

/* Barres de couleur sur la gauche */
.row-accent-bar {
    width: 5px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.ogi-blue-accent { background-color: var(--ogi-blue); }
.ogi-orange-accent { background-color: var(--ogi-orange); }

/* Zone de l'icône du cours (Masquée sur smartphone via media queries) */
.row-icon {
    padding: 20px 25px;
    font-size: 26px;
    color: var(--ogi-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

/* Contenu textuel et bouton */
.row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 25px;
}

.text-group {
    flex: 1;
    padding-right: 40px;
}

.text-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ogi-blue); 
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.course-long-row:hover .text-group h3 {
    color: var(--ogi-orange); /* Le titre passe à l'orange au survol */
}

.text-group p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Métadonnées et Boutons d'action */
.meta-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.info-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.action-btn {
    background-color: var(--ogi-blue);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: var(--radius-ogi);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.course-long-row:hover .action-btn {
    background-color: var(--ogi-orange);
    color: #ffffff;
}

/* --- ADAPTATION RESPONSIVE MANUELLE (SMARTPHONES & TABLETTES) --- */
@media (max-width: 850px) {
    .row-content {
        flex-direction: column; 
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .text-group {
        padding-right: 0;
    }
    
    .meta-group {
        width: 100%;
        justify-content: space-between; /* Aligne le badge à gauche et le bouton à droite */
    }
}

@media (max-width: 580px) {
    /* Cache magnifiquement l'icône de cours sur téléphone pour sauver de l'espace */
    .row-icon {
        display: none; 
    }
    
    .main-title {
        font-size: 24px; /* Rétrograde un peu la taille sur mobile pour éviter les coupures brutes */
    }
    
    .action-instruction {
        font-size: 12.5px;
        padding: 10px 15px;
    }

    .text-group h3 {
        font-size: 16px;
    }
    
    .text-group p {
        font-size: 13px;
    }
}

/* --- Footer --- */
.ogi-footer {
    background-color: var(--ogi-blue);
    color: #cbd5e1;
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
    border-top: 4px solid var(--ogi-orange);
    margin-top: 20px;
}