/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles pour les sections avec image et texte */
.content-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.content-image-text.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-image-text.reverse .content-image {
    order: 1;
}

.content-image-text.reverse .content-text {
    order: 2;
}

.content-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.content-text {
    padding: 1rem 0;
}

/* Responsive pour les sections image-texte */
@media (max-width: 768px) {
    .content-image-text,
    .content-image-text.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-image-text.reverse .content-image,
    .content-image-text.reverse .content-text {
        order: initial;
    }
    
    .content-image img {
        height: 300px;
        aspect-ratio: 1 / 1;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: #e9ecef;
    color: white;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active {
    color: #f4c842;
    border-bottom: 2px solid #f4c842;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(44, 90, 160, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-logo {
    width: auto;
    height: 200px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f4c842;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.intervention {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    background: rgba(244, 200, 66, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.cta-section {
    margin-top: 2rem;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.phone-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.phone-primary,
.phone-secondary {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    background: rgba(212, 85, 63, 0.9);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.phone-primary:hover,
.phone-secondary:hover {
    background: #b8412e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: #f4c842;
    border-color: #f4c842;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Stats Section */
.stats {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

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

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

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

.service-icon {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #1a365d;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.about .subtitle {
    font-size: 1.2rem;
    color: #f4c842;
    margin-bottom: 2rem;
    font-style: italic;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a365d;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #2c5aa0;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
    color: #2c5aa0;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    margin-bottom: 1rem;
    color: #f4c842;
}

.footer address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #f4c842;
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul a:hover {
    color: #f4c842;
}

.footer-bottom {
    border-top: 1px solid #2c5aa0;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f8f9fa;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav ul li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: none !important;
    }
    
    .nav a:hover,
    .nav a.active {
        background: rgba(244, 200, 66, 0.2);
        color: #f4c842;
        border-bottom: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 120px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .phone-numbers {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .phone-primary,
    .phone-secondary {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Page spécifique styles */
.page-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
    background: white;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a365d;
    text-align: center;
}

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

.content-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.content-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.content-card p {
    color: #666;
    line-height: 1.6;
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-weight: bold;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

/* Styles pour le captcha */
#captcha-question {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #e9ecef;
    min-width: 120px;
    text-align: center;
}

#refresh-captcha {
    transition: all 0.3s ease;
}

#refresh-captcha:hover {
    background: #2980b9 !important;
    transform: rotate(90deg);
}

/* Slider des partenaires */
.partners-section {
    background: #f8f9fa;
    padding: 3rem 0;
    overflow: hidden;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #1a365d;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partners-track {
    display: flex;
    animation: slidePartners 15s linear infinite;
    gap: 2rem;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive pour le slider partenaires */
@media (max-width: 768px) {
    .partner-logo {
        width: 120px;
        height: 80px;
        padding: 10px;
    }
    
    .partners-track {
        gap: 1rem;
    }
    
    .partners-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Galerie dans la section À propos */
.about-gallery {
    margin-top: 3rem;
    text-align: center;
}

.about-gallery h4 {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.5rem;
    text-align: left;
}

.gallery-caption h5 {
    font-size: 1.3rem;
    color: #2c5aa0;
    margin-bottom: 0.8rem;
}

.gallery-caption p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-caption {
        padding: 1rem;
    }
    
    .about-gallery h4 {
        font-size: 1.5rem;
    }
}

.btn {
    background: #2c5aa0;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1a365d;
}

.btn-primary {
    background: #d4553f;
}

.btn-primary:hover {
    background: #b8412e;
}

/* Pages vides */
.empty-page {
    padding: 6rem 0;
    text-align: center;
    background: #f8f9fa;
}

.empty-page h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.empty-page p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.coming-soon {
    background: #2c5aa0;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: bold;
}

/* Styles pour les réalisations */
.realisations-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.realisation-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-overlay i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px; /* Ajustement visuel pour centrer l'icône play */
}

.realisation-card:hover .video-play-overlay {
    background: rgba(44, 90, 160, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.realisation-content {
    padding: 1.5rem;
}

.realisation-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.realisation-date i {
    color: #2c5aa0;
}

.realisation-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.realisation-category i {
    color: #f39c12;
}

.realisation-title {
    font-size: 1.3rem;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.realisation-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.realisation-title a:hover {
    color: #2c5aa0;
}

.realisation-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realisation-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.realisation-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.realisation-meta-item i {
    color: #2c5aa0;
}

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

.realisation-actions .btn {
    background: #2c5aa0;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.realisation-actions .btn:hover {
    background: #1e4a8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.no-realisations {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-realisations p {
    font-size: 1.2rem;
}

.realisations-disabled {
    text-align: center;
    padding: 4rem 2rem;
}

/* Responsive pour les réalisations */
@media (max-width: 768px) {
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .realisation-image {
        height: 200px;
    }
    
    .realisation-content {
        padding: 1rem;
    }
    
    .realisation-meta {
        gap: 0.8rem;
    }
}

/* Styles pour la page de détail des réalisations */
.realisation-detail-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.realisation-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.realisation-detail-media {
    position: sticky;
    top: 2rem;
}

.realisation-detail-slideshow {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.realisation-detail-slide {
    display: none;
    width: 100%;
}

.realisation-detail-slide.active {
    display: block;
}

.realisation-detail-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slideshow-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slideshow-button:hover {
    background: rgba(44, 90, 160, 0.9);
    transform: scale(1.1);
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.slideshow-dot.active {
    background: #2c5aa0;
}

.slideshow-dot:hover {
    background: #1a365d;
}

.realisation-detail-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.realisation-detail-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.realisation-detail-video-section {
    margin-top: 3rem;
    text-align: center;
}

.realisation-detail-video-section .realisation-detail-video-container {
    max-width: 800px;
    margin: 0 auto;
    height: 450px;
}

.realisation-detail-info {
    padding: 1rem 0;
}

.realisation-detail-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.realisation-detail-date i {
    color: #2c5aa0;
}

.realisation-detail-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.realisation-detail-description,
.realisation-detail-description-detaillee {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.realisation-detail-description-detaillee {
    /* Styles pour le contenu HTML riche */
}

.realisation-detail-description-detaillee p {
    margin-bottom: 1rem;
}

.realisation-detail-description-detaillee strong {
    color: #1a365d;
    font-weight: bold;
}

.realisation-detail-description-detaillee u {
    text-decoration: underline;
}

/* Responsive pour la page de détail */
@media (max-width: 768px) {
    .realisation-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .realisation-detail-media {
        position: static;
    }
    
    .realisation-detail-slide img {
        height: 250px;
    }
    
    .realisation-detail-video-container {
        height: 250px;
    }
    
    .realisation-detail-video-section .realisation-detail-video-container {
        height: 300px;
    }
    
    .realisation-detail-title {
        font-size: 1.5rem;
    }
    
    .slideshow-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Styles pour les actualités */
.actualites-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

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

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

.actualite-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.actualite-content {
    padding: 1.5rem;
}

.actualite-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actualite-date i {
    color: #f39c12;
}

.actualite-title {
    font-size: 1.3rem;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.actualite-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actualite-title a:hover {
    color: #f39c12;
}

.actualite-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actualite-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.actualite-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.actualite-meta-item i {
    color: #f39c12;
}

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

.actualite-actions .btn {
    background: #2c5aa0;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.actualite-actions .btn:hover {
    background: #1e4a8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.no-actualites {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-actualites p {
    font-size: 1.2rem;
}

.actualites-disabled {
    text-align: center;
    padding: 4rem 2rem;
}

/* Responsive pour les actualités */
@media (max-width: 768px) {
    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .actualite-image {
        height: 200px;
    }
    
    .actualite-content {
        padding: 1rem;
    }
    
    .actualite-meta {
        gap: 0.8rem;
    }
}

/* Styles pour la page de détail des actualités */
.actualite-detail-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.actualite-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.actualite-detail-media {
    position: sticky;
    top: 2rem;
}

.actualite-detail-slideshow {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.actualite-detail-slide {
    display: none;
    width: 100%;
}

.actualite-detail-slide.active {
    display: block;
}

.actualite-detail-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.actualite-detail-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.actualite-detail-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.actualite-detail-video-section {
    margin-top: 3rem;
    text-align: center;
}

.actualite-detail-video-section .actualite-detail-video-container {
    max-width: 800px;
    margin: 0 auto;
    height: 450px;
}

.actualite-detail-info {
    padding: 1rem 0;
}

.actualite-detail-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actualite-detail-date i {
    color: #f39c12;
}

.actualite-detail-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.actualite-detail-description,
.actualite-detail-description-detaillee {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.actualite-detail-description-detaillee {
    /* Styles pour le contenu HTML riche */
}

.actualite-detail-description-detaillee p {
    margin-bottom: 1rem;
}

.actualite-detail-description-detaillee h2 {
    color: #1a365d;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

.actualite-detail-description-detaillee h3 {
    color: #1a365d;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: bold;
}

.actualite-detail-description-detaillee strong {
    color: #1a365d;
    font-weight: bold;
}

.actualite-detail-description-detaillee u {
    text-decoration: underline;
}

.actualite-detail-description-detaillee ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.actualite-detail-description-detaillee li {
    margin-bottom: 0.5rem;
}

/* Responsive pour la page de détail des actualités */
@media (max-width: 768px) {
    .actualite-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .actualite-detail-media {
        position: static;
    }
    
    .actualite-detail-slide img {
        height: 250px;
    }
    
    .actualite-detail-video-container {
        height: 250px;
    }
    
    .actualite-detail-video-section .actualite-detail-video-container {
        height: 300px;
    }
    
    .actualite-detail-title {
        font-size: 1.5rem;
    }
    
    .actualite-detail-description-detaillee h2 {
        font-size: 1.3rem;
    }
    
    .actualite-detail-description-detaillee h3 {
        font-size: 1.1rem;
    }
}

/* Styles pour le bouton de retour */
.page-hero-content {
    position: relative;
}

.back-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a365d;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 1);
    color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.back-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.back-button span {
    font-size: 0.95rem;
}

/* Responsive pour le bouton de retour */
@media (max-width: 768px) {
    .back-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .back-button span {
        font-size: 0.9rem;
    }
    
    .back-button-container {
        margin-bottom: 1.5rem;
        justify-content: center;
    }
}

/* Styles pour la pagination */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info span {
    color: #666;
    font-weight: 500;
}

.per-page-selector {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.per-page-selector:focus {
    outline: none;
    border-color: #2c5aa0;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.pagination-btn:hover {
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.pagination-number:hover {
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.pagination-dots {
    color: #999;
    font-weight: bold;
    padding: 0 0.5rem;
}

.pagination-info-text {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== STYLES POUR LES ONGLETS DE CATÉGORIES ===== */
.category-filter-tabs-fullwidth {
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.category-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-category-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    gap: 8px;
    justify-content: center;
}

.admin-category-tabs li {
    margin: 0;
}

.admin-category-tab {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    color: #6c757d;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-category-tab:hover {
    text-decoration: none;
    color: #2c5aa0;
    background-color: #ffffff;
    border-color: #2c5aa0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.admin-category-tab.active {
    color: white;
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-category-tab.active:hover {
    color: white;
    background-color: #1e4a8c;
    transform: translateY(-1px);
}

/* Responsive onglets catégories */
@media (max-width: 768px) {
    .category-filter-tabs-fullwidth {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100vw - 30px);
        left: 0;
    }
    
    .category-tabs-wrapper {
        padding: 0 15px;
    }
    
    .admin-category-tabs {
        justify-content: center;
        padding: 10px 0;
        gap: 6px;
    }
    
    .admin-category-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .admin-category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-category-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
        margin-bottom: 4px;
    }
}

/* ===== STYLES POUR LES AVIS ===== */

/* Section des avis */
.avis-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Grille des avis */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carte d'avis */
.avis-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Image de l'avis */
.avis-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.avis-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Overlay vidéo */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.avis-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contenu de la carte */
.avis-content {
    padding: 1.5rem;
}

/* Date */
.avis-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avis-date i {
    color: #27ae60;
}

/* En-tête (auteur + note) */
.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.avis-auteur {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.avis-note {
    color: #f39c12;
    font-size: 1rem;
}

.avis-note i {
    margin-right: 2px;
}

/* Contenu de l'avis */
.avis-contenu {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Actions */
.avis-actions {
    text-align: center;
}

.avis-actions .btn {
    background: #2c5aa0;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.avis-actions .btn:hover {
    background: #1e4a8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* ===== PAGE DÉTAIL AVIS ===== */

/* Section détail avis */
.avis-detail-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Contenu détail */
.avis-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Média détail */
.avis-detail-media {
    position: sticky;
    top: 2rem;
}

/* Slideshow détail */
.avis-detail-slideshow {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.avis-detail-slide {
    display: none;
}

.avis-detail-slide.active {
    display: block;
}

.avis-detail-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Navigation slideshow */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slideshow-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slideshow-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Dots navigation */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: #27ae60;
}

.slideshow-dot:hover {
    background: #27ae60;
    transform: scale(1.2);
}

/* Vidéo détail */
.avis-detail-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.avis-detail-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Section vidéo en bas */
.avis-detail-video-section {
    margin-top: 3rem;
    grid-column: 1 / -1;
}

/* Informations détail */
.avis-detail-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Date détail */
.avis-detail-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avis-detail-date i {
    color: #27ae60;
}

/* En-tête détail */
.avis-detail-header {
    margin-bottom: 2rem;
}

.avis-detail-auteur {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.avis-detail-note {
    color: #f39c12;
    font-size: 1.2rem;
}

.avis-detail-note i {
    margin-right: 3px;
}

/* Contenu détail */
.avis-detail-contenu {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .avis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .avis-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .avis-detail-media {
        position: static;
    }
    
    .avis-detail-slide img {
        height: 250px;
    }
    
    .avis-detail-video-container {
        height: 250px;
    }
    
    .avis-detail-auteur {
        font-size: 1.5rem;
    }
    
    .avis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
