/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs basées sur les images réelles */
    --dark-green: #1A703C;
    --dark-green-footer: #1A703F;
    --medium-green: #28A745;
    --light-green: #88c4b2;
    --green-active: #389B51;
    --orange: #FF6B35;
    --red: #DC3545;
    --white: #FFFFFF;
    --black: #000000;
    --dark-grey: #333333;
    --light-grey: #F0F2F5;
    --very-light-grey: #F8F8FA;
    --grey-text: #666666;
    --overlay-dark: rgba(34, 34, 34, 0.85);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typographie */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Barre supérieure */
.top-bar {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.top-bar-left .dropdown {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.chevron {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.contact-info .icon {
    font-size: 1rem;
}

.share-btn {
    background-color: var(--green-active);
    color: var(--white);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Pages vitrine (Actualités, Annonces, Projets, Contact, FAQ) */
.page-vitrine-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--green-active) 100%);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: left;
}

.page-vitrine-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-vitrine-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.page-vitrine-content {
    padding: var(--spacing-xl) 0;
}

.projects-grid-vitrine {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card-vitrine .project-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/10;
}

.project-card-vitrine .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-vitrine .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.project-card-vitrine .project-desc {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Page communiques : même hauteur, largeur, bordure que l'accueil */
.annonces-grid-comm {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    grid-auto-rows: 480px;
}

.annonces-grid-comm .comm-doc {
    flex: none;
    min-width: auto;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 4px solid #99c7ae;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.annonces-grid-comm .comm-doc-image-wrapper {
    height: 100%;
    min-height: 480px;
}

.annonces-grid-comm .comm-doc-image {
    min-height: 480px;
}

.annonces-grid-comm .comm-doc-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.annonces-grid-comm .comm-doc .annonce-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
}

/* Bouton PDF style dashboard : icône moyenne, centré */
.comm-doc-pdf-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    min-height: 100%;
    background: linear-gradient(145deg, #f8faf9 0%, #e8f5e9 100%);
    text-decoration: none !important;
    color: var(--dark-green);
    transition: all 0.3s ease;
}

.comm-doc-pdf-btn:hover {
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
}

.comm-doc-pdf-icon {
    font-size: 3.5rem;
    color: #c62828;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.comm-doc-pdf-btn:hover .comm-doc-pdf-icon {
    color: #b71c1c;
    transform: scale(1.05);
}

.comm-doc-pdf-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comm-doc-pdf-action {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.annonce-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.annonce-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.annonce-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.annonce-link {
    display: block;
    position: relative;
}

.annonce-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--medium-green);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.annonce-card-body {
    padding: 1rem;
}

.annonce-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-annonce-view {
    display: inline-block;
    color: var(--medium-green);
    font-weight: 600;
    text-decoration: none;
}

.btn-annonce-view:hover {
    text-decoration: underline;
}

.faq-page-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.faq-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-illustration-block img {
    max-width: 200px;
    height: auto;
}

.faq-placeholder {
    text-align: center;
    padding: var(--spacing-md);
}

.pagination-vitrine {
    display: flex;
    justify-content: center;
}

.mb-5 { margin-bottom: 2rem; }

/* Bannière d'annonce */
.site-banner {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--green-active) 100%);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.site-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    padding-right: 2.5rem;
}

.site-banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.site-banner-text {
    margin: 0;
    font-weight: 500;
}

.site-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.site-banner-close:hover {
    background: rgba(255,255,255,0.35);
}

.site-banner.is-hidden {
    display: none;
}

@media (max-width: 600px) {
    .site-banner-text {
        font-size: 0.85rem;
    }
    .site-banner-icon {
        display: none;
    }
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.menu-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.menu-list li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--medium-green);
    transition: width 0.3s ease;
}

.menu-list li a:hover::after,
.menu-list li a.active::after {
    width: 100%;
}

.menu-list li a.active {
    color: var(--green-active);
}

.menu-list li a:hover {
    color: var(--medium-green);
}

.btn-connexion {
    display: inline-block;
    background-color: var(--medium-green);
    color: var(--white);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-connexion:hover {
    background-color: var(--white);
    color: var(--medium-green);
    border-color: var(--medium-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Slides */
.slides-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.slide-nav {
    position: absolute;
    width: 56px;
    height: 56px;
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

.slide-nav:hover {
    background-color: var(--green-active);
}

.slide-content {
    width: 100%;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: none !important;
    animation: none !important;
}

.slide-overlay {
    pointer-events: auto;
    transition: none !important;
    animation: none !important;
}

.slide-content * {
    transition: none !important;
    animation: none !important;
}

.slide-overlay {
    background-color: var(--overlay-dark);
    padding: 48px 56px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(2px);
    position: relative;
    transform: none;
    transition: none;
    animation: none;
}

.slide-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    position: relative;
    transform: none;
    transition: none;
    animation: none;
}

.slide-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-entreprise {
    background-color: var(--white);
    color: var(--medium-green);
    border: 2px solid var(--medium-green);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-entreprise:hover {
    background-color: var(--light-grey);
}

.btn-particulier {
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-particulier:hover {
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.btn-particulier:hover {
    background-color: var(--green-active);
}

/* Indicateurs de slides */
.slide-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.slide-dot:hover {
    transform: scale(1.3);
    border-color: var(--medium-green);
}

/* Section Recherche Amende / Paiement */
.search-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-grey);
}

.search-section-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 720px;
    margin: 0 auto;
}

.search-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-sm);
}

.search-type-tab {
    position: relative;
    flex: 1;
    cursor: pointer;
    margin: 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    background: var(--very-light-grey);
    color: var(--grey-text);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-type-tab:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.search-type-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.search-type-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.search-type-tab:hover {
    background: #e8f5e9;
    color: var(--dark-green);
}

.search-type-tab.active {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--green-active) 100%);
    color: var(--white);
    border-color: var(--dark-green);
}

.search-form-row {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
}

.search-input::placeholder {
    color: var(--grey-text);
}

.search-input:focus {
    outline: none;
    border-color: var(--medium-green);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.btn-search {
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-search:hover {
    background-color: var(--green-active);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.search-suggestions {
    margin-top: var(--spacing-sm);
    display: none;
}

.search-result-loading {
    padding: 1.5rem;
    text-align: center;
    color: var(--grey-text);
}

.search-result-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-result-body strong {
    display: block;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.search-result-body p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.search-result-libelle,
.search-result-payeur {
    font-weight: 500;
}

.btn-search-result {
    display: inline-block;
    background: var(--medium-green);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-search-result:hover {
    background: var(--green-active);
    color: var(--white);
}

/* Zone paiement inline (Recherche Opération) */
.search-paiement-zone {
    flex-basis: 100%;
    width: 100%;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.search-paiement-zone-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.search-paiement-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-paiement-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-grey);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-paiement-option:hover {
    border-color: var(--medium-green);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15);
}

.search-paiement-option.selected {
    border-color: var(--medium-green);
    background: rgba(25, 135, 84, 0.08);
}

.search-paiement-option img {
    max-width: 100px;
    max-height: 55px;
    object-fit: contain;
}

.search-paiement-option.search-option-cheque i {
    font-size: 2rem;
    color: var(--medium-green);
}

.search-form-tresormoney .form-paiement-inline,
.search-form-cheque .form-paiement-inline {
    width: 100%;
    max-width: none;
}

.search-form-tresormoney .form-group,
.search-form-cheque .form-group {
    margin-bottom: 1rem;
}

.search-form-tresormoney label,
.search-form-cheque label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.search-form-tresormoney input[type="text"],
.search-form-tresormoney input[type="email"],
.search-form-tresormoney input[type="tel"],
.search-form-cheque input[type="text"],
.search-form-cheque input[type="email"],
.search-form-cheque input[type="tel"],
.search-form-cheque input[type="file"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .search-paiement-options {
        grid-template-columns: 1fr;
    }
}

/* Modal réponse paiement */
.modal-reponse-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-reponse-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-reponse {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-reponse-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--grey-text);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-reponse-close:hover {
    color: var(--black);
}

.modal-reponse-content {
    padding-right: 2rem;
}

.modal-reponse-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-reponse-success {
    color: #155724;
}

.modal-reponse-error {
    color: #721c24;
}

/* Facture inline (recherche opération - paiement) */
.search-facture-loading { text-align: center; padding: 2rem; color: var(--grey-text); }
.search-results-factures { display: flex; flex-direction: column; gap: 2rem; }
.search-facture-wrap { margin-top: 1rem; }
.search-facture-inline.facture-milki { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; }
.search-facture-inline .facture-container { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.search-facture-inline .facture-header { display: flex; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; }
.search-facture-inline .facture-header > .col-12 { flex: 1; min-width: 0; }
.search-facture-inline .facture-logo { flex-shrink: 0; }
.search-facture-inline .facture-logo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #1A7A4A; }
.search-facture-inline .facture-emetteur { text-align: right; font-size: 0.95rem; line-height: 1.5; }
.search-facture-inline .facture-destinataire-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0; }
        .search-facture-inline .facture-destinataire { font-size: 0.9rem; line-height: 1.25; flex: 1; min-width: 200px; }
        .search-facture-inline .facture-infos { margin-top: -0.5rem; margin-bottom: 1.5rem; }
.search-facture-inline .facture-titre { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: #1A7A4A; }
.search-facture-inline .facture-infos-table { width: 100%; max-width: 400px; font-size: 0.9rem; }
.search-facture-inline .facture-infos-table td { padding: 0.35rem 0; border-bottom: 1px solid #eee; }
.search-facture-inline .facture-infos-table td:first-child { color: #666; }
.search-facture-inline .facture-qrcode { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 0.5rem; }
.search-facture-inline .facture-qrcode-direction { font-size: 0.85rem; text-align: center; max-width: 140px; line-height: 1.2; color: #1A7A4A; font-weight: 600; }
.search-facture-inline .facture-qrcode-img svg { max-width: 100px; height: auto; }
.search-facture-inline .facture-lignes { margin-bottom: 1.5rem; overflow-x: auto; }
.search-facture-inline .facture-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.search-facture-inline .facture-table thead { background: #1A7A4A; }
.search-facture-inline .facture-table thead th { background: #1A7A4A; color: #fff; font-weight: 600; padding: 0.75rem 1rem; text-align: center; border: 1px solid #1A7A4A; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; }
.search-facture-inline .facture-table tbody td { padding: 0.6rem 1rem; border: 1px solid #eee; }
.search-facture-inline .facture-total { background: #1A7A4A; color: #fff; padding: 1rem 1.5rem; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 700; margin-bottom: 2rem; }
.search-facture-inline .facture-footer { font-size: 0.8rem; color: #666; padding-top: 1.5rem; }
@media print {
    * { visibility: hidden; }
    .facture-print-area, .facture-print-area * { visibility: visible; }
    .no-print { display: none !important; }
    .facture-print-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 768px) {
    .search-form-row {
        flex-direction: column;
    }
    .search-type-tabs {
        flex-direction: column;
    }
    .search-type-tab:first-child {
        border-radius: 8px 8px 0 0;
        border-right: 1px solid #ddd;
        border-bottom: none;
    }
    .search-type-tab:last-child {
        border-radius: 0 0 8px 8px;
    }
}

/* Section Mot du Directeur */
.director-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-grey);
}

.director-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 0.62fr;
    gap: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.director-text {
    padding-right: var(--spacing-md);
}

.director-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.director-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.director-text p {
    color: var(--dark-grey);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.btn-learn-more {
    background-color: var(--white);
    color: var(--medium-green);
    border: 2px solid var(--medium-green);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background-color: var(--medium-green);
    color: var(--white);
}

.director-image {
    border-radius: 0;
    overflow: hidden;
    min-height: 164px;
}

.director-image img {
    width: 100%;
    height: 100%;
    min-height: 164px;
    object-fit: cover;
}

/* Section Actualités */
.news-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-underline {
    width: 120px;
    height: 5px;
    background-color: var(--light-green);
    margin: 0 auto 48px;
    border-radius: 2px;
}

/* Bloc actualité à la une : 2 colonnes col-6 / col-6 */
.news-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 48px;
    align-items: stretch;
}

.news-main .col-6 {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-main .col-6:first-child {
    /* Bloc texte avec fond #edebeb */
}

.news-main .col-6:last-child {
    /* Bloc image sans bordure */
}

.section-label {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.featured-news {
    background-color: #edebeb;
    padding: 24px;
    position: relative;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.featured-news:hover {
    background-color: #88c4b2;
}

.news-badge {
    background-color: var(--medium-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.35;
}

.news-description {
    color: var(--dark-grey);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey-text);
    font-size: 0.875rem;
}

.read-more-link {
    color: var(--grey-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: auto;
}

.read-more-link:hover {
    color: var(--medium-green);
}

.news-featured-image {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.news-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-card {
    background-color: var(--light-grey);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card:hover .news-card-content {
    background-color: #88c4b2;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card-image .news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.news-card-header {
    background-color: var(--medium-green);
    padding: 16px;
    position: relative;
}

.news-card-header .news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.news-card-title-small {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.news-card-image-circular {
    width: 100%;
    padding: var(--spacing-sm);
}

.news-card-image-circular img {
    width: 100%;
    border-radius: 50%;
}

.news-card-separator {
    height: 2px;
    background-color: var(--orange);
    margin: var(--spacing-sm) 0;
}

.news-card-content {
    padding: 16px;
    background-color: #edebeb;
    transition: background-color 0.3s ease;
}

.news-subtitle {
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.news-card-description {
    color: var(--dark-grey);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* Contenu HTML riche (éditeur type Word) sur l'accueil */
.news-content-html {
    word-wrap: break-word;
}
.news-content-html p,
.news-content-html ul,
.news-content-html ol {
    margin-bottom: 0.5em;
}
.news-content-html ul { list-style: disc; padding-left: 1.25em; }
.news-content-html ol { list-style: decimal; padding-left: 1.25em; }
.news-content-html a { color: var(--medium-green, #2d6a4f); text-decoration: underline; }
.news-content-html strong { font-weight: 700; }
.news-content-html img { max-width: 100%; height: auto; }

.news-card-description-limited {
    max-height: 7em;
    overflow-y: auto;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.news-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-all-news {
    background-color: transparent;
    color: var(--light-green);
    border: 2px solid var(--light-green);
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-all-news:hover {
    background-color: var(--light-green);
    color: var(--white);
}

/* Détail actualité */
.actualite-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-green);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    transition: color 0.2s;
}
.actualite-detail-back:hover {
    color: var(--dark-green);
}
.actualite-detail-back .back-icon {
    font-size: 1.25rem;
}

.actualite-detail {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
}
.news-section.actualite-detail-section,
.news-section.actualite-detail-section .actualite-detail {
    box-shadow: none;
}
.actualite-detail-header {
    padding: var(--spacing-md) 0;
}
.actualite-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin: 0.5rem 0 1rem;
    line-height: 1.3;
}
.actualite-detail-image {
    border-radius: 0;
    overflow: hidden;
    margin: var(--spacing-md) 0;
    height: 400px;
}
.actualite-detail-image.actualite-image-zoom {
    cursor: pointer;
}
.actualite-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.actualite-detail-content {
    padding: var(--spacing-md) 0;
}
.actualite-detail-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    color: var(--grey-text);
    font-size: 0.85rem;
}
.actualite-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Lightbox zoom image */
.actualite-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.actualite-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.actualite-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}
.actualite-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.actualite-lightbox-close:hover {
    background: rgba(255,255,255,0.35);
}
.actualite-detail .news-content-html img {
    cursor: zoom-in;
}

/* Colonne autres actualités */
.actualite-detail-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.actualite-detail-section .col-8 {
    flex: 2 1 300px;
    min-width: 0;
}
.actualite-detail-section .col-4 {
    flex: 1 1 280px;
    min-width: 0;
}
.actualites-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: var(--spacing-sm);
}
.actualites-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.actualite-sidebar-card {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.actualite-sidebar-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.actualite-sidebar-card-image {
    flex: 0 0 100px;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.actualite-sidebar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.actualite-sidebar-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-grey);
}
.actualite-sidebar-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.actualite-sidebar-card-source {
    font-size: 0.8rem;
    color: var(--grey-text);
    margin-bottom: 0.35rem;
}
.actualite-sidebar-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .actualite-detail-section .col-8,
    .actualite-detail-section .col-4 {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .actualite-detail-section .row {
        gap: 20px;
    }
    .actualite-detail-section .actualite-detail {
        max-width: none;
        padding: 12px 0 !important;
    }
    .actualite-detail-section .news-content-html img {
        max-width: 100%;
        height: auto;
    }
    .actualite-detail-section .actualite-detail-title {
        font-size: 1.35rem;
    }
    .actualite-detail-section .actualite-detail-image {
        height: 280px;
    }
    .actualite-detail-section .actualite-fichiers-carousel {
        gap: 8px;
    }
    .actualite-detail-section .actualite-fichiers-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .actualite-detail-section .actualite-fichier-item {
        flex: 0 0 120px;
        min-width: 120px;
    }
    .actualite-detail-section .actualite-fichier-link {
        height: 100px;
    }
    .actualite-sidebar-card {
        padding: 10px;
        gap: 12px;
    }
    .actualite-sidebar-card-image {
        flex: 0 0 80px;
        width: 80px;
        height: 64px;
    }
    .actualite-sidebar-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .actualite-detail-section .actualite-detail-title {
        font-size: 1.2rem;
    }
    .actualite-detail-section .actualite-detail-image {
        height: 220px;
    }
    .actualite-sidebar-card {
        flex-direction: column;
        align-items: stretch;
    }
    .actualite-sidebar-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: 140px;
    }
    .actualite-sidebar-card-body {
        padding-top: 4px;
    }
    .actualite-sidebar-card-title {
        -webkit-line-clamp: 2;
    }
}

/* Carrousel fichiers joints actualité */
.actualite-fichiers-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: var(--spacing-md) 0 0;
}
.actualite-fichiers-nav {
    width: 44px;
    height: 44px;
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.actualite-fichiers-nav:hover {
    background-color: var(--green-active);
    transform: scale(1.05);
}
.actualite-fichiers-docs {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.actualite-fichiers-docs::-webkit-scrollbar {
    display: none;
}
.actualite-fichier-item {
    flex: 0 0 140px;
    min-width: 140px;
    scroll-snap-align: start;
}
.actualite-fichier-link {
    display: block;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #99c7ae;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}
.actualite-fichier-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.actualite-fichier-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 6px;
}
.actualite-fichier-icon {
    font-size: 2rem;
    color: var(--medium-green);
}
.actualite-fichier-name {
    font-size: 0.75rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Section Nos Projets */
.projects-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--very-light-grey);
}

.projects-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    padding: var(--spacing-md);
    color: var(--white);
}

.project-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.btn-project {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-project:hover {
    background-color: #e55a2b;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--dark-grey);
}

/* Section Partenaires */
.partners-section {
    padding: var(--spacing-xl) 0;
    background-color: #eff0f5;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
    align-items: center;
}

.partner-logo {
    background-color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 120px;
}

.partner-logo:hover {
    border-color: var(--light-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-logo:hover {
    transform: scale(1.05);
}

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

/* Section Communiqués */
.communications-section {
    padding: var(--spacing-xl) 0;
    background-color: #eff0f5;
}

.communications-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
}

.comm-nav {
    width: 56px;
    height: 56px;
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.comm-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    background-color: var(--green-active);
}

.communications-docs {
    display: flex;
    gap: 16px;
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Masquer la scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.communications-docs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.communications-docs ol,
.communications-docs ul {
    margin-bottom: 16px;
}

.communications-docs li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Chaque communiqué : bordure #99c7ae - 4 affichés ensemble sur la première ligne */
.comm-doc {
    background-color: var(--white);
    padding: 0;
    border-radius: 0;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    height: auto;
    min-height: 480px;
    border: 4px solid #99c7ae;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.comm-doc:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.comm-doc-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    position: relative;
}

.comm-doc-image {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.comm-doc:hover .comm-doc-image {
    transform: scale(1.1);
}

.comm-doc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.comm-doc-left {
    color: var(--black);
}

.comm-doc-right {
    color: var(--black);
    text-align: right;
}

.comm-doc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comm-doc-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.comm-doc-text {
    font-size: 13px;
    color: var(--dark-grey);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}

.comm-doc-date {
    font-size: 13px;
    color: var(--dark-grey);
    margin-bottom: 8px;
    font-style: italic;
}

.comm-doc-signature {
    font-size: 12px;
    color: var(--dark-grey);
    font-style: italic;
    margin-top: 16px;
}

.comm-more {
    text-align: center;
    margin-top: var(--spacing-md);
}

.btn-comm-more {
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-comm-more:hover {
    background-color: var(--green-active);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

/* Section Newsletter et FAQ */
.newsletter-faq-section {
    background-color: #eff0f5;
}

.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.faq-illustration {
    display: flex;
    justify-content: center;
}

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

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

.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--medium-green);
    margin-bottom: var(--spacing-sm);
}

.faq-description {
    color: var(--dark-grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.btn-faq {
    background-color: var(--white);
    color: var(--medium-green);
    border: 2px solid var(--medium-green);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-faq:hover {
    background-color: var(--medium-green);
    color: var(--white);
}

.faq-icon {
    font-size: 1.25rem;
}

/* Section Contact */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--very-light-grey);
}

.contact-intro {
    text-align: center;
    color: var(--grey-text);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.35rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--dark-grey);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-sm);
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.35rem;
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact {
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--green-active);
}

.contact-feedback {
    margin-top: var(--spacing-sm);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.contact-map-wrapper {
    margin-bottom: var(--spacing-xl);
}

.contact-map-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.contact-map {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-success-banner {
    background: #d4edda;
    color: #155724;
    padding: 1rem var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid #c3e6cb;
}

/* Retours formulaire contact (succès / erreurs validation) */
.contact-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.contact-alert > .fas {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.35rem;
}
.contact-alert--success {
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    color: #1b5e20;
}
.contact-alert--success > .fas {
    color: #2e7d32;
}
.contact-alert--error {
    background: linear-gradient(145deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #e57373;
    color: #b71c1c;
}
.contact-alert--error > .fas {
    color: #c62828;
}
.contact-alert-body {
    flex: 1;
    min-width: 0;
}
.contact-alert-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}
.contact-alert-text {
    margin: 0 0 0.45rem;
}
.contact-alert-footnote {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    opacity: 0.88;
    font-style: italic;
}
.contact-alert-footnote--error {
    color: #6d1f26;
    margin-top: 0.85rem;
}
.contact-alert-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 0.35rem;
}
.contact-alert-kicker--error {
    color: #b71c1c;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    font-weight: 600;
}
.contact-alert-meta {
    margin: 0 0 0.65rem;
}
.contact-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(46, 125, 50, 0.35);
}
.contact-alert-preview-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    color: #1b5e20;
}
.contact-alert-preview {
    margin: 0 0 0.65rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #2e7d32;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    font-style: italic;
    color: #333;
}
.contact-alert-list {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
}
.contact-alert-list li {
    margin-bottom: 0.25rem;
}
.contact-form .form-input.border-error,
.contact-form .form-textarea.border-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.2);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.newsletter-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-grey);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-size: 1rem;
    color: var(--dark-grey);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    flex: 1;
    max-width: 600px;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--font-size-base);
}

.newsletter-input::placeholder {
    color: var(--grey-text);
}

.btn-newsletter {
    background-color: var(--medium-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-newsletter:hover {
    background-color: var(--green-active);
}

.btn-newsletter {
    position: relative;
    min-width: 12rem;
}
.btn-newsletter-loader {
    vertical-align: middle;
}
.newsletter-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: newsletter-spin 0.7s linear infinite;
}
@keyframes newsletter-spin {
    to { transform: rotate(360deg); }
}

.newsletter-message {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.newsletter-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.newsletter-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: var(--dark-green-footer);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-contact p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background-color: #0077B5;
}

.social-icon.youtube {
    background-color: #FF0000;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ========== RESPONSIVE ========== */

/* Menu hamburger (caché sur desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-green);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-underline {
        margin-bottom: 32px;
    }
    
    .projects-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .communications-docs {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .comm-doc {
        min-height: 360px;
    }
    
    .comm-doc-image-wrapper,
    .comm-doc-image {
        min-height: 360px;
    }
    
    .annonces-grid-comm {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 360px;
    }
    
    .annonces-grid-comm .comm-doc,
    .annonces-grid-comm .comm-doc-image-wrapper,
    .annonces-grid-comm .comm-doc-image {
        min-height: 360px;
    }
    
    .comm-doc-pdf-icon {
        font-size: 2.75rem;
    }
    
    .communications-carousel {
        gap: 12px;
    }
    
    .slide-overlay {
        padding: 32px 24px;
    }
    
    .slide-title {
        font-size: 26px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .btn-entreprise,
    .btn-particulier {
        width: 100%;
        max-width: 260px;
    }
    
    .director-card {
        padding: 32px;
        gap: 32px;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .footer-content {
        gap: 24px;
    }
}

/* Mobile / petite tablette */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Top bar */
    .top-bar {
        padding: 10px 0;
        font-size: 0.8rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .contact-info span:not(.icon) {
        font-size: 0.75rem;
    }
    
    /* Header + menu hamburger */
    .menu-toggle {
        display: flex;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .menu.is-open {
        right: 0;
    }
    
    .menu-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .menu-list li {
        border-bottom: 1px solid #eee;
    }
    
    .menu-list li a {
        display: block;
        padding: 14px 0;
    }
    
    .btn-connexion {
        width: 100%;
        margin-top: 16px;
    }
    
    /* Slides */
    .slides-section,
    .slide-wrapper {
        min-height: 400px;
    }
    
    .slide-content {
        padding: 0 16px;
        width: 100%;
    }
    
    .slide-overlay {
        padding: 24px 16px;
    }
    
    .slide-indicators {
        bottom: 16px;
        gap: 8px;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .slide-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .slide-nav.prev {
        left: 8px;
    }
    
    .slide-nav.next {
        right: 8px;
    }
    
    /* Mot du directeur */
    .director-card {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 16px;
    }
    
    .director-image {
        border-radius: 0;
        min-height: 143px;
    }
    
    .director-text h2 {
        font-size: 1.5rem;
    }
    
    .director-name {
        font-size: 1rem;
    }
    
    /* Actualités */
    .news-main {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }
    
    .news-main .col-6 {
        width: 100%;
    }
    
    .news-featured-image {
        min-height: 220px;
    }
    
    .news-featured-image img {
        min-height: 220px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .news-card-image {
        height: 220px;
    }
    
    .featured-news {
        padding: 20px;
    }
    
    .news-card-content {
        padding: 14px;
    }
    
    /* Projets */
    .projects-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 260px;
    }
    
    .project-overlay {
        padding: 16px;
    }
    
    .project-title {
        font-size: 0.85rem;
    }
    
    /* Partenaires */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .partner-logo {
        padding: 16px;
        min-height: 100px;
    }
    
    /* Communiqués */
    .communications-carousel {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .communications-docs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        overflow-x: visible;
    }
    
    .comm-doc {
        width: 100%;
        min-height: 256px;
    }
    
    .comm-doc-image-wrapper,
    .comm-doc-image {
        min-height: 256px;
    }
    
    .annonces-grid-comm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 256px;
    }
    
    .annonces-grid-comm .comm-doc,
    .annonces-grid-comm .comm-doc-image-wrapper,
    .annonces-grid-comm .comm-doc-image {
        min-height: 256px;
    }
    
    .comm-doc-pdf-icon {
        font-size: 2.25rem;
    }
    
    .comm-doc-pdf-label {
        font-size: 0.9rem;
    }
    
    .comm-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
        flex-shrink: 0;
    }
    
    /* FAQ + Newsletter */
    .faq-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .faq-illustration {
        display: none;
    }
    
    .faq-title {
        font-size: 1.5rem;
    }
    
    .faq-section {
        padding: 32px 0;
    }
    
    .newsletter-section {
        padding: 24px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }
    
    .btn-newsletter {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer-logo img {
        max-width: 120px;
    }
    
    .section-title {
        font-size: 26px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-underline {
        width: 80px;
        margin-bottom: 24px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .slide-title {
        font-size: 16px;
    }
    
    .director-card {
        padding: 16px;
    }
    
    .communications-docs {
        grid-template-columns: 1fr;
    }
    
    .comm-doc {
        min-height: 224px;
    }
    
    .comm-doc-image-wrapper,
    .comm-doc-image {
        min-height: 224px;
    }
    
    .annonces-grid-comm {
        grid-template-columns: 1fr;
        grid-auto-rows: 224px;
    }
    
    .annonces-grid-comm .comm-doc,
    .annonces-grid-comm .comm-doc-image-wrapper,
    .annonces-grid-comm .comm-doc-image {
        min-height: 224px;
    }
    
    .comm-doc-pdf-icon {
        font-size: 2rem;
    }
    
    .comm-doc-pdf-label {
        font-size: 0.85rem;
    }
    
    .comm-doc-pdf-action {
        font-size: 0.8rem;
    }
    
    .comm-nav {
        width: 100%;
    }
}

/* Éviter le scroll horizontal */
html {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    pointer-events: none;
}
