/* variables globales */
html {
    color-scheme: light;
}

body.dark-mode {
    color-scheme: dark;
}

:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #1E293B;
    --accent-color: #60A5FA;
    --bg-color: #F8FAFC;
    --text-color: #334155;
    --text-light: #64748B;
    --light-color: #ffffff;
    --dark-color: #0F172A;
    --border-color: #E2E8F0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Mode Dark */
body.dark-mode {
    --bg-color: #0F172A;
    --text-color: #E2E8F0;
    --text-light: #94A3B8;
    --light-color: #1E293B;
    --dark-color: #F1F5F9;
    --secondary-color: #3B82F6;
    --border-color: #334155;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .theme-toggle {
    color: #FCD34D;
}

body.dark-mode .nav-link {
    color: var(--text-color);
}

body.dark-mode .logo {
    color: var(--text-color);
}

body.dark-mode .hero {
    background-color: var(--light-color);
}

body.dark-mode .hero-title {
    color: var(--text-color);
}

body.dark-mode .hero-subtitle {
    color: var(--text-light);
}

body.dark-mode .hero-text {
    color: var(--text-light);
}

body.dark-mode .skill-card,
body.dark-mode .certification-card,
body.dark-mode .project-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

body.dark-mode .skill-bar {
    background-color: var(--border-color);
}

body.dark-mode .project-details {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

body.dark-mode .project-details-content {
    background-color: var(--bg-color);
}

body.dark-mode .bts-intro,
body.dark-mode .bts-project-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

body.dark-mode .bts-project-details {
    background-color: var(--bg-color);
}

body.dark-mode .completion-note {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}



body.dark-mode .timeline-h-card,
body.dark-mode .info-card {
    background-color: var(--light-color);
    border-color: var(--border-color);
}

body.dark-mode .about-hero-img {
    border-color: var(--primary-color);
}

body.dark-mode .status-badge.incomplete {
    background-color: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border-color: #F59E0B;
}

body.dark-mode .about-info strong {
    color: var(--text-color);
}

body.dark-mode .timeline-date {
    color: var(--primary-color);
}

body.dark-mode .timeline-content h5 {
    color: var(--text-color);
}

body.dark-mode .project-category {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-hero {
    background-color: #ffffff !important;
    color: #3B82F6 !important;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
    background-color: #ffffff !important;
    color: #2563EB !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Conteneur des boutons hero */
.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.logo.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.logo.nav-link:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn.nav-link {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

.btn.nav-link:hover {
    background-color: var(--primary-hover);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.logo.nav-link::after,
.btn.nav-link::after {
    display: none;
}

/* Bouton de changement de thème */
.theme-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* Accueil - Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: visible;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 6px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    font-weight: 400;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-social a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-social a:hover {
    background-color: var(--primary-hover);
    color: var(--light-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.about {
    background-color: var(--bg-color);
}

/* ============================================
   SECTION À PROPOS - DESIGN MODERNISÉ
   ============================================ */

/* ─────────────────────────────────────────
   Hero About : Photo + Présentation
   ───────────────────────────────────────── */

.about-hero {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.about-hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary-color);
    transition: var(--transition);
}

.about-hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-hero-text:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────
   Titres de section
   ───────────────────────────────────────── */

.about-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.about-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ─────────────────────────────────────────
   Timeline Horizontale
   ───────────────────────────────────────── */

.about-timeline-section {
    margin-bottom: 5rem;
}

.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Ligne de connexion horizontale (affichée uniquement sur desktop) */
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    z-index: 0;
}

.timeline-h-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-h-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.timeline-h-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

.timeline-h-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.timeline-h-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-h-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-h-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-h-date {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-h-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.timeline-h-future {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────
   Parcours Académique — nouveau design
   ───────────────────────────────────────── */

.acad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 860px;
    margin: 2rem auto 0;
    position: relative;
}

.acad-grid::before {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(16.66% + 1.5rem);
    right: calc(16.66% + 1.5rem);
    height: 2px;
    background: linear-gradient(to right,
        rgba(59, 130, 246, 0.6),
        rgba(59, 130, 246, 0.2) 50%,
        rgba(59, 130, 246, 0.6));
    z-index: 0;
}

.acad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.acad-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    letter-spacing: 0.01em;
}


.acad-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.acad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.acad-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.acad-location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}

.acad-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.65rem;
}

.acad-desc {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 640px) {
    .acad-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    .acad-grid::before { display: none; }
}

/* ─────────────────────────────────────────
   Info Cards
   ───────────────────────────────────────── */

.about-info-section {
    margin-bottom: 3rem;
}

.about-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-card-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.skills {
    background-color: var(--light-color);
}

/* Wrapper principal des compétences */
.skills-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Catégorie de compétences */
.skills-category {
    margin-bottom: 4rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

/* Titre de catégorie */
.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Grid des compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cartes de compétences */
.skill-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}


.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 10px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.projects {
    background-color: var(--bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.project-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.project-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.project-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}

.project-more-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.project-more-btn i {
    transition: var(--transition);
}

.project-more-btn.active i {
    transform: rotate(180deg);
}

.project-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: var(--light-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
}

.project-details.active {
    max-height: 600px;
    border-top: 1px solid var(--border-color);
}

.project-details-content {
    padding: 1.5rem;
    background-color: var(--bg-color);
}

.project-details-content h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.project-details-content ul {
    list-style: none;
    padding: 0;
}

.project-details-content li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.project-details-content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.contact {
    background-color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--light-color);
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--light-color);
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.footer {
    background-color: #0F172A;
    color: #ffffff;
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
}

.footer a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer-buttons {
    margin-top: 1.5rem;
    text-align: center;
}

.foot-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius);
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
}

.foot-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}


.foot-btn i {
    margin-right: 0.5rem;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.page-active {
    display: block;
    animation: slideIn 0.5s ease-out forwards;
}

.page-inactive {
    display: none;
}

/* Animation de transition entre les pages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-exit {
    animation: slideOut 0.5s ease-out forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-btns {
        width: 100%;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-text {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .hero-social {
        margin-top: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .skills-category {
        margin-bottom: 3rem;
    }

    /* Responsive About Section */
    .about-hero-img {
        width: 150px;
        height: 150px;
    }

    .about-hero-title {
        font-size: 1.6rem;
    }

    .about-hero-text {
        font-size: 1rem;
        text-align: left;
    }

    .timeline-horizontal {
        grid-template-columns: 1fr;
    }

    .timeline-horizontal::before {
        display: none; /* Masquer la ligne horizontale sur mobile */
    }

    .about-info-cards {
        grid-template-columns: 1fr;
    }

    .about-section-title {
        font-size: 1.5rem;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
    }

    .project-more-btn, .project-link {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

}

@media (max-width: 480px) {
    .about-hero-img {
        width: 120px;
        height: 120px;
    }

    .timeline-h-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .info-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }
}

.certifications {
    background-color: var(--light-color);
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.certification-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.certification-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.certification-desc {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* ============================================
   SECTION VEILLE IA
   ============================================ */

.veille {
    background-color: var(--bg-color);
}

.veille-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Conteneur des cartes de sujets */
.veille-topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte de sujet */
.veille-topic-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

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

.veille-topic-card::after {
    display: none;
}

.veille-topic-icon {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--light-color);
}

.veille-topic-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.veille-topic-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
}

.veille-topic-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.veille-topic-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

/* Pages de détails */
.veille-detail {
    background-color: var(--bg-color);
    padding: 6rem 0 4rem;
}

.veille-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.veille-detail-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.veille-detail-header .veille-topic-category {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.veille-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.veille-detail-text {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
}

.veille-detail-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.veille-detail-text h3:first-child {
    margin-top: 0;
}

.veille-detail-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.veille-detail-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.veille-detail-text ul li {
    padding: 0.75rem 1rem;
    background-color: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0.75rem;
    border-radius: 4px;
    line-height: 1.6;
}

.veille-detail-text ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Navigation entre les pages de détail - Flèches simples */
.veille-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.veille-nav-arrow::after {
    display: none;
}

.veille-nav-arrow:hover {
    color: var(--primary-hover);
    transform: scale(1.2);
}

.veille-nav-prev {
    order: -1;
}

.veille-nav-next {
    order: 1;
}

/* Mode sombre */
body.dark-mode .veille-topic-card,
body.dark-mode .veille-detail-text {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

body.dark-mode .veille-detail-text ul li {
    background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .veille-topics-container {
        grid-template-columns: 1fr;
    }

    .veille-detail {
        padding: 4rem 0 3rem;
    }

    .veille-detail-header h1 {
        font-size: 2rem;
    }

    .veille-detail-content {
        flex-direction: column;
        gap: 2rem;
    }

    .veille-detail-text {
        padding: 2rem;
        order: 0;
    }

    .veille-detail-text p {
        font-size: 1rem;
    }

    .veille-nav-arrow {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .veille-nav-prev {
        order: 1;
        align-self: flex-start;
    }

    .veille-nav-next {
        order: 2;
        align-self: flex-end;
    }

    /* Afficher les flèches sous le texte sur mobile */
    .veille-detail-content {
        position: relative;
    }
}

/* ============================================
   PAGES DE DÉTAIL DES PROJETS
   ============================================ */

.project-detail {
    background-color: var(--bg-color);
    padding: 6rem 0 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}

.project-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-detail-header .project-category {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.project-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-image {
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-detail-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-detail-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.project-detail-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.project-detail-info ul li {
    padding: 0.75rem 1rem;
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    line-height: 1.6;
}

.project-detail-info ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.project-detail-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-detail-screenshots {
    margin-top: 4rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshots-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.screenshots-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Mode sombre */
body.dark-mode .project-detail {
    background-color: var(--bg-color);
}

body.dark-mode .project-detail-info ul li {
    background-color: var(--light-color);
}

/* Responsive */
@media (max-width: 768px) {
    .project-detail {
        padding: 4rem 0 3rem;
    }

    .project-detail-header h1 {
        font-size: 2rem;
    }

    .project-detail-info h2 {
        font-size: 1.6rem;
    }

    .project-detail-info h3 {
        font-size: 1.3rem;
    }

    .project-detail-info p {
        font-size: 1rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-links {
        flex-direction: column;
    }

    .project-detail-links .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   TRANSITIONS DE NAVIGATION ENTRE PAGES
   ============================================ */

/* État initial (invisible) avant l'animation d'entrée */
main.main-entree {
    opacity: 0;
    transform: translateY(16px);
}

/* Active la transition CSS (ajoutée juste avant de retirer main-entree) */
main.main-transition {
    transition: opacity 0.26s ease-out, transform 0.26s ease-out;
}

/* État de sortie (animation vers le haut et invisible) */
main.main-sortie {
    opacity: 0 !important;
    transform: translateY(-16px) !important;
    transition: opacity 0.23s ease-in, transform 0.23s ease-in !important;
}

/* ============================================
   VEILLE — SECTIONS STRUCTURÉES (Passé / Présent / Futur)
   ============================================ */

/* Conteneur d'une section numérotée */
.veille-section {
    margin-bottom: 4rem;
}

/* En-tête de section : numéro + titre */
.veille-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Numéro de section (01, 02, 03) ou icône */
.veille-section-numero {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-top: 0.25rem;
}

/* Titre de la section numérotée */
.veille-section-titre {
    font-size: 1.6rem;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Adapter le style des paragraphes et listes dans veille-detail-text
   pour la nouvelle page mono-colonne */
.veille-section .veille-detail-text {
    max-width: 100%;
}

/* ============================================
   CARTES SOURCES — GRILLE ÉDITORIALE
   ============================================ */

/* Sous-titre de catégorie de sources */
.sources-sous-titre {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Grille responsive : 3 colonnes → 2 tablette → 1 mobile */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

/* Carte source — style éditorial */
.source-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.source-card::after {
    display: none;
}

.source-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    color: var(--text-color);
    border-color: var(--primary-color);
}

/* Zone image de la carte */
.source-card-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Screenshot (mode normal) */
.source-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.source-card:hover .source-card-image img {
    transform: scale(1.05);
}

/* Favicon (mode fallback) */
.source-card-image img.source-card-favicon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

/* Corps de la carte */
.source-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Badge domaine */
.source-card-domain {
    font-size: 0.75rem;
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Titre de l'article */
.source-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.45;
    margin: 0;
}

/* ─── Mode sombre — nouvelles sections ──── */

body.dark-mode .veille-section-titre {
    color: var(--text-color);
}

body.dark-mode .sources-sous-titre {
    color: var(--text-light);
    border-bottom-color: var(--border-color);
}

body.dark-mode .source-card {
    background-color: var(--light-color);
    border-color: var(--border-color);
}

body.dark-mode .source-card-image {
    background-color: var(--bg-color);
}

body.dark-mode .source-card-title {
    color: var(--text-color);
}

/* ─── Responsive cartes sources (hors colonne sticky) ──────────── */

@media (max-width: 991px) {
    /* Seulement si les sources ne sont PAS dans la colonne sticky */
    .sources-grid:not(.veille-colonne-sources .sources-grid) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }

    .veille-section-titre {
        font-size: 1.3rem;
    }

    .veille-section-numero {
        width: 48px;
        height: 48px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .veille-section-header {
        align-items: flex-start;
    }
}

/* ============================================
   VEILLE — LAYOUT DEUX COLONNES
   Texte (gauche ~65%) + Sources sticky (droite ~35%)
   ============================================ */

/* Grille principale du layout veille */
.veille-layout {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 3rem;
    align-items: start;
}

/* Colonne de gauche : texte des trois sections */
.veille-colonne-texte {
    min-width: 0; /* évite le débordement du texte */
}

/* Colonne de droite : sources en position sticky */
.veille-colonne-sources {
    position: sticky;
    top: calc(70px + 1.5rem); /* hauteur du header + marge */
    max-height: calc(100vh - 70px - 3rem);
    overflow-y: auto;
    /* Scrollbar fine et discrète */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.veille-colonne-sources::-webkit-scrollbar {
    width: 4px;
}

.veille-colonne-sources::-webkit-scrollbar-track {
    background: transparent;
}

.veille-colonne-sources::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.veille-colonne-sources::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* En-tête des sources dans la colonne sticky */
.veille-colonne-sources .veille-section-header {
    margin-bottom: 0.75rem;
}

/* Les sources-grid dans la colonne sticky → 1 colonne */
.veille-colonne-sources .sources-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

/* Image plus compacte dans la colonne sticky */
.veille-colonne-sources .source-card-image {
    height: 130px;
}

/* Corps de carte légèrement plus compact */
.veille-colonne-sources .source-card-body {
    padding: 0.75rem 1rem 1rem;
}

/* Sous-titre de catégorie plus compact dans la colonne */
.veille-colonne-sources .sources-sous-titre {
    font-size: 0.8rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ─── Responsive : passage en colonne unique sous 1024px ──── */

@media (max-width: 1024px) {
    .veille-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Désactiver le sticky sur mobile/tablette */
    .veille-colonne-sources {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Rétablir la grille multi-colonnes pour les sources en mode colonne unique */
    .veille-colonne-sources .sources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .veille-colonne-sources .source-card-image {
        height: 160px;
    }

    .veille-colonne-sources .sources-sous-titre {
        font-size: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .veille-colonne-sources .sources-grid {
        grid-template-columns: 1fr;
    }
}