/* Variables de couleurs basées sur la profession de foi */
:root {
    --union-blue: #2E5BFF;
    --union-dark: #1a36a3;
    --footer-bg: #4a70f7; /* Gris anthracite plus doux */
    --bg-light: #e0e0e5;
    --text-color: #2c3e50;
    --white: #ddddf0;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
}

body {
    display: flex;
    flex-direction: column;
}

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

/* Header & Nav */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--union-blue);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-area { display: flex; flex-direction: column; }
.logo-main { font-weight: 900; font-size: 1.4rem; color: var(--union-blue); letter-spacing: 1px; }
.logo-sub { font-size: 1.0rem; font-weight: bold; color: var(--text-color); }

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 25px; margin: 0; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--union-blue); }

/* Main Content */
.content-wrapper { flex: 1; padding: 40px 0; }


/* Section Photo Accueil */
.home-photo-container {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.home-photo {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.hero-section {
    /* background: linear-gradient(rgba(46, 91, 255, 0.8), rgba(46, 91, 255, 0.6)), url('../img/pouilly.jpg'); */
    background: linear-gradient(rgba(46, 91, 255, 0.8), rgba(46, 91, 255, 0.6)); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 15px 15px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.hero-section h1 { font-size: 2.4rem; margin: 0; letter-spacing: 5px; }

.intro-card {
    /* background: var(--white); */
    background-color: rgb(237, 237, 244);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-item {
    border-top: 3px solid var(--union-blue);
    padding-top: 15px;
}

/* --- Classes Utilitaires Supplémentaires --- */
.bg-light-blue { background: #eef2ff; }
.p-15 { padding: 15px; }
.mt-15 { margin-top: 15px; }
.mt-40 { margin-top: 40px; }
.italic { font-style: italic; }
.bold { font-weight: bold; }
.flex-column-between { display: flex; flex-direction: column; justify-content: space-between; }
.align-start { align-items: start; }

/* --- Badges et Alertes --- */
.charte-box {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: var(--union-dark);
}

.badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-success { background-color: #27ae60; }
.badge-secondary { background-color: #7f8c8d; }

.alert-msg-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* --- Listes et Articles --- */
.contribution-header {
    margin: 12px 0;
    color: var(--union-blue);
    font-size: 1.2rem;
}

.project-card-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 10px;
}

.project-thumbnail {
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 15px;
}

.article-meta {
    background: #eee; 
    padding: 5px 10px; 
    border-radius: 5px;
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.8; 
    font-size: 1.1rem; 
    text-align: justify;
}

/* --- Page Mentions Légales --- */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.last-update {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.legal-separator {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.legal-item h3 {
    color: var(--union-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.legal-full-width h3 {
    color: var(--union-blue);
    text-align: center;
    margin-bottom: 25px;
}

.legal-box {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.legal-box h4 {
    margin-top: 0;
    color: var(--union-dark);
    border-bottom: 2px solid var(--union-blue);
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 15px;
}

.link-blue {
    color: var(--union-blue);
    font-weight: bold;
    text-decoration: underline;
}
/* Style des Actualités */
.actu-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--union-blue);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.actu-date { color: #7f8c8d; font-size: 0.9rem; font-weight: bold; }
.badge-reunion { 
    background: #e74c3c; color: white; padding: 2px 8px; 
    border-radius: 10px; font-size: 0.8rem; margin-left: 10px;
}

/******* --- Style du Formulaire de Suggestion --- *********/
.suggestion-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-top: 5px solid var(--union-blue);
}

.form-group {
    margin-bottom: 20px;
}

/* Style des labels (si vous en utilisez) */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--union-dark);
}

/* Style des champs de saisie */
.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #fafafa;
}

.form-textarea {
    resize: vertical; /* Permet à l'utilisateur d'agrandir en hauteur seulement */
}

/* Effet au survol et au clic */
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--union-blue);
    background-color: #fff;
    box-shadow: 0 0 8px rgba(46, 91, 255, 0.2);
}

/* Bouton d'envoi */
.btn-submit {
    background: var(--union-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--union-dark);
    transform: translateY(-1px);
}

/* --- Styles pour les documents PDF dans Actualités --- */
.pdf-link-container {
    margin-top: 15px;
    padding: 12px;
    background: #f1f3f5;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.pdf-link-container:hover {
    background: #e9ecef;
}

.pdf-icon {
    font-size: 1.8rem;
    margin-right: 12px;
}

.pdf-text a {
    color: #d32f2f; /* Rouge PDF */
    font-weight: bold;
    text-decoration: none;
}

.pdf-text small {
    color: #6c757d;
}

/* Consultation projets */
.dropdown { position: relative; }
.dropdown-menu { 
    display: none; position: absolute; background: white; 
    list-style: none; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100; min-width: 200px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 10px 0; }

.vote-option {
    display: block;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    }
    .vote-option:hover {
    background: #f0f4ff;
    border-color: var(--union-blue);
    }
    .vote-option input {
    margin-right: 10px;
    transform: scale(1.2);
    }
.actu-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* --- Détails des Projets --- */
.project-header {
    margin-bottom: 30px;
    text-align: center;
}

.project-title {
    color: var(--union-blue);
    margin-top: 15px;
    font-size: 2.2rem;
}

.badge-status {
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-open { background: #27ae60; }
.badge-closed { background: #7f8c8d; }

.project-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.project-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.projet-description {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Zone de Vote --- */
.alert-info-vote {
    background: #eef2ff;
    border: 1px solid var(--union-blue);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.alert-info-vote h3 {
    color: var(--union-blue);
    margin-top: 0;
}

.vote-form-card {
    background: #fdfdfd;
    border: 2px dashed #ccc;
    padding: 30px;
    border-radius: 15px;
}

.vote-form-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.vote-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 15px;
}

.results-summary-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* --- Styles pour les Résultats --- */
/* --- Classes Utilitaires --- */
.text-center { text-align: center; }
.text-blue { color: var(--union-blue); }
.mt-30 { margin-top: 30px; }
.no-bullet { list-style: none; padding: 0; }

/* --- Navigation --- */
.breadcrumb-nav { margin-bottom: 20px; }
.breadcrumb-nav a { text-decoration: none; color: var(--union-blue); font-weight: bold; }

/* --- Résultats de Consultation --- */
.results-bars { margin-top: 20px; }
.result-item { margin-bottom: 25px; }

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bg {
    background: #e9ecef;
    height: 18px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    transition: width 1.5s ease-in-out;
}

.fill-fav { background-color: #27ae60; }
.fill-def { background-color: #e74c3c; }
.fill-so  { background-color: #95a5a6; }

.vote-details {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.95rem;
}

/* Chiffres clés */
.big-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--union-blue);
    margin: 15px 0;
    line-height: 1;
}

.quote-box {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid var(--union-blue);
}

.quote-box p {
    font-style: italic;
    font-size: 1rem;
    color: var(--union-dark);
    margin: 0;
}


/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-links { margin-top: 10px; font-size: 0.9rem; }
.footer-links a { color: var(--white); text-decoration: none; margin: 0 10px; opacity: 0.8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .navbar .container { flex-direction: column; gap: 20px; }
    .hero-section h1 { font-size: 2.5rem; }
}

/* --- Formulaire de Contact --- */
.contact-form {
    text-align: left;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--union-dark);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
}

.form-input:focus {
    outline: none;
    border-color: var(--union-blue);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
