:root {
    --navy-blue: #123169;
    --light-navy: #2d5a8a;
    --forest-green: #4c7f3a;
    --light-green: #6ba87d;
    --cream: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --red-accent: #c62828;
    --gold: #d4af37;
    
    /* Couleurs spécifiques du logo */
    --logo-blue: #123169;
    --logo-green: #4c7f3a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* Effets hover améliorés */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* En-tête */
header {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 1030;
}

header img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive header */
@media (max-width: 768px) {
    header img {
        max-height: 150px;
    }
}

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

/* Navigation */
nav {
    background-color: var(--forest-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--light-green);
    border-bottom-color: var(--gold);
}

/* Conteneur principal */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Page Programme */
.programme-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.programme-sidebar {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 180px;
}

.programme-sidebar h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--forest-green);
    padding-bottom: 0.5rem;
}

.programme-sidebar ul {
    list-style: none;
}

.programme-sidebar ul li {
    margin-bottom: 0.5rem;
}

.programme-sidebar ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.programme-sidebar ul li a:hover,
.programme-sidebar ul li a.active {
    background-color: var(--forest-green);
    color: var(--white);
    padding-left: 1.2rem;
}

.programme-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rubrique-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.rubrique-section:last-child {
    border-bottom: none;
}

.rubrique-section h2 {
    color: var(--navy-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--forest-green);
    display: inline-block;
}

.rubrique-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rubrique-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.rubrique-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.rubrique-section ul li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.rubrique-section strong {
    color: var(--navy-blue);
}

/* Page Équipe */
.equipe-hero {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.equipe-hero img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.equipe-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 58, 92, 0.85);
    color: var(--white);
    padding: 1.5rem 3rem;
    border-radius: 8px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.equipe-section-title {
    text-align: center;
    color: var(--navy-blue);
    font-size: 2.5rem;
    margin: 3rem 0 2rem 0;
    font-weight: 700;
}

.equipe-section-title::before {
    content: "... ";
    color: var(--forest-green);
}

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

.candidat-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.candidat-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--light-navy) 0%, var(--forest-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
}

.candidat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidat-info {
    padding: 1.5rem;
}

.candidat-info h3 {
    color: var(--navy-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.candidat-info .quartier {
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.candidat-info .metier {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.candidat-info .centre-interet {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* Page Forum */
.forum-container {
    max-width: 900px;
    margin: 0 auto;
}

.forum-intro {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.forum-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nouveau-message-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nouveau-message-form h3 {
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-green);
}

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

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--forest-green);
    color: var(--white);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

/* Messages du forum */
.messages-liste {
    margin-top: 2rem;
}

.message-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cream);
}

.message-author {
    font-weight: 700;
    color: var(--navy-blue);
    font-size: 1.1rem;
}

.message-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-sujet {
    font-size: 1.2rem;
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.message-contenu {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.message-statut {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.statut-en-attente {
    background-color: #fff3cd;
    color: #856404;
}

.statut-valide {
    background-color: #d4edda;
    color: #155724;
}

.statut-refuse {
    background-color: #f8d7da;
    color: #721c24;
}

.message-reponses {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 3px solid var(--forest-green);
}

.reponse-item {
    background-color: var(--cream);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.repondre-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Alertes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pied de page */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--light-green);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Page d'accueil */
.hero-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .programme-layout {
        grid-template-columns: 1fr;
    }
    
    .programme-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 0.75rem;
    }
    
    .candidats-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .equipe-hero-text {
        font-size: 1.8rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 1rem;
    }
    
    .candidats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
