/* --- STYLE.CSS : Design "Smart, Warm & Confident" --- */

:root {
    /* Palette inspirée de l'image (Professeur Cartoon) */
    --bg-body: #FDFBF7;        /* Crème très clair (Papier) */
    --primary: #4E342E;        /* Marron Café (Sérieux/Texte) */
    --secondary: #795548;      /* Marron plus doux */
    --accent: #2E8B57;         /* Vert Tableau/Teal (Confiance/Action) */
    --highlight: #E67E22;      /* Orange (Boutons importants/Détails) */
    --white: #ffffff;
    --gray-light: #f0f2f5;
    
    /* Effets */
    --shadow-card: 0 10px 30px rgba(78, 52, 46, 0.08);
    --shadow-hover: 0 15px 40px rgba(78, 52, 46, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--primary);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER & NAV --- */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--highlight); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: -5px; left: 0;
    background-color: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- HERO SECTION (Accueil) --- */
.hero-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}
.hero-content .highlight { color: var(--highlight); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn-group { display: flex; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4); }

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid #eee;
}
.btn-secondary:hover { border-color: var(--primary); }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image img {
    border-radius: 30px; /* Moins rond, plus moderne */
    box-shadow: 20px 20px 0 var(--highlight); /* Effet décalé graphique */
    z-index: 2;
    max-height: 500px;
    object-fit: cover;
}

/* --- GRIDS & CARDS (Cours, Divers) --- */
.section-header {
    text-align: center;
    margin: 4rem auto 3rem;
    max-width: 800px;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; position: relative; display: inline-block; }
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 5px;
    background: var(--highlight); margin: 10px auto 0; border-radius: 10px;
}

.container { max-width: 1200px; margin: 0 auto 4rem; padding: 0 2rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-top {
    height: 180px;
    background: linear-gradient(135deg, var(--accent), #1abc9c);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3.5rem;
}
/* Variante de couleur pour divers */
.card-top.alt { background: linear-gradient(135deg, var(--highlight), #f39c12); }

.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--primary); }
.card-body p { color: var(--secondary); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }

.card-footer { margin-top: auto; }

/* --- PUBLICATIONS SPECIFIC --- */
.pub-container { display: flex; flex-direction: column; gap: 2rem; max-width: 900px; margin: 0 auto; }

.pub-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-left: 6px solid var(--accent);
    position: relative;
}

.pub-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: #e0f2f1;
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pub-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); line-height: 1.4; }
.pub-authors { font-style: italic; color: var(--highlight); margin-bottom: 1rem; font-weight: 600; }
.pub-meta { font-size: 0.9rem; color: var(--secondary); margin-bottom: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.pub-abstract { font-size: 0.95rem; color: #555; background: #fafafa; padding: 1rem; border-radius: 8px; }

/* --- CONTACT FORM --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: center; }
.icon-box {
    width: 50px; height: 50px;
    background: #fdf0e6;
    color: var(--highlight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%; padding: 15px;
    border: 2px solid #eee; border-radius: 10px;
    font-family: inherit; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); background: #fff; }

/* --- FOOTER --- */
footer {
    background-color: var(--primary);
    color: #d7ccc8;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: auto;
}
.social-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; }
.social-links a { font-size: 1.5rem; color: var(--white); opacity: 0.7; }
.social-links a:hover { opacity: 1; transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; margin-bottom: 2rem; }
    .hero-image img { max-width: 80%; }
    .btn-group { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Mobile menu placeholder */
}


/* --- AJOUTS POUR LE SLIDER PHILOSOPHIE --- */
/* --- MISE À JOUR SLIDER (LARGEUR COMPLÈTE) --- */
.slider-container {
    position: relative;
    max-width: 100%; /* PREND TOUTE LA LARGEUR MAINTENANT */
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Assure que le texte reste lisible même si le slider est large */


.slide {
    display: none; /* Caché par défaut */
    padding: 4rem 5rem;
    text-align: center;
    animation: fadeEffect 1s;
}

.slide.active {
    display: block; /* Affiché si actif */
}

.slide-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.slide h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.slide p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 900px; /* Le texte ne s'étire pas trop */
    margin: 0 auto;
    line-height: 1.8;
}

/* Boutons du slider */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--highlight);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary);
}

/* Points de navigation bas */
.dots-container {
    text-align: center;
    padding: 20px;
    background: var(--white);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent);
}

/* Animation de fondu */
@keyframes fadeEffect {
    from {opacity: 0.4;} 
    to {opacity: 1;}
}

/* --- AJUSTEMENT TÉMOIGNAGES (Grid de 4) --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* S'adapte pour 4 */
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--accent);
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
}

@media (max-width: 768px) {
    .slide { padding: 2rem; }
    .prev, .next { padding: 10px; }
}


/* --- TIMELINE (PAGE EXPÉRIENCES) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* La ligne verticale centrale */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 20px; /* Alignement à gauche pour mobile/desktop simple */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 60px; /* Espace pour la ligne */
    margin-bottom: 3rem;
}

/* Le point (cercle) sur la ligne */
.timeline-dot {
    position: absolute;
    left: 6px; /* Centré sur la ligne de 4px (20px - 14px/2 + ajustement) */
    top: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px #e0e0e0;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--accent);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-place {
    font-size: 1rem;
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.timeline-desc {
    color: var(--secondary);
    font-size: 0.95rem;
}