/* ==========================================================================
   VARIABLES ET CONFIGURATION DE BASE
   ========================================================================== */
:root {
    /* Couleurs principales */
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --primary-border: #dbeafe;
    
    /* Couleurs de texte */
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Couleurs de fond */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-preview: #f1f5f9;
    
    /* Autres */
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   NAVIGATION ET LANGUES
   ========================================================================== */
.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
}

.lang-switcher button {
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px 10px;
    transition: var(--transition);
}

.lang-switcher button:hover {
    color: var(--primary-color);
}

.lang-switcher button.active {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sep {
    color: var(--border-color);
}

/* ==========================================================================
   ENTÊTE (HEADER)
   ========================================================================== */
header {
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTIONS ET GRILLE
   ========================================================================== */
.section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 40px 0 24px;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    font-weight: 600;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 60px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ==========================================================================
   CARTES DE CERTIFICATION (CARDS)
   ========================================================================== */
.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

/* Style spécifique pour les certifs majeures */
.high-impact {
    border: 2px solid var(--primary-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    align-self: flex-start;
}

.logo-box {
    height: 100px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.logo-box img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.cert-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 40px;
}

/* Aperçu visuel */
.preview-box {
    width: 100%;
    height: 160px;
    background: var(--bg-preview);
    border-radius: var(--radius-md);
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.cert-card:hover .preview-box img {
    transform: scale(1.05);
    opacity: 1;
}

/* Bouton de téléchargement */
.btn-dl {
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.btn-dl:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   FOOTER ET RESPONSIVE
   ========================================================================== */
footer {
    text-align: center;
    padding: 80px 20px 40px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    header h1 { font-size: 2rem; }
    .cert-grid { grid-template-columns: 1fr; }
    .top-nav { padding: 20px; justify-content: center; }
}
