/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Palette de couleurs */
:root {
    --primary-red: #ec3315;
    --primary-dark: #b30f1a;
    --secondary-blue: #083368;
    --secondary-dark: #2c3640;
    --accent-light: #e6e6e6;
    --text-white: #ffffff;
}

/* ===== BOUTONS ===== */
.btn-yellow {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    display: inline-block;
    font-size: 14px;
    transition: background 0.3s;
    border-radius: 0;
}

.btn-yellow:hover {
    background-color: var(--primary-dark);
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #fff;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.top-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
.phone {
    color: var(--primary-red);
    font-weight: bold;
}
.flag img { width: 18px; vertical-align: middle; }

/* ===== HEADER / NAVIGATION ===== */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO IMAGE - AGRANDI */
.logo-img {
    max-height: 90px;  /* Augmenté de 55px à 90px */
    width: auto;
    display: block;
}
.logo a {
    display: flex;
    align-items: center;
}

/* MENU DESKTOP */
nav ul {
    display: flex;
    gap: 25px;
}
nav a {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s;
}
nav a:hover, nav a.active {
    color: var(--primary-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== OFF CANVAS MOBILE ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--secondary-blue);
    cursor: pointer;
}

.offcanvas-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    padding: 30px 20px;
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.offcanvas-nav.open {
    left: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.offcanvas-logo-img {
    max-height: 70px;  /* Agrandi aussi dans le menu mobile */
}

.close-menu {
    font-size: 28px;
    color: var(--primary-red);
    cursor: pointer;
}

.offcanvas-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offcanvas-nav ul li a {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.offcanvas-nav ul li a.active {
    color: var(--primary-red);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.overlay.active {
    display: block;
}

/* ===== HERO CAROUSEL ===== */
.hero {
    height: 500px;
    position: relative;
    overflow: hidden;
}

/* Page Hero (pour les pages internes) */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-red) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 1;
}

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

.hero-text-box {
    background-color: var(--primary-red);
    padding: 35px;
    color: #fff;
    max-width: 520px;
    position: absolute;
    right: 50px;
    top: -30px;
}

.subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero h2 {
    font-size: 36px;
    margin-top: 8px;
    line-height: 1.2;
    font-weight: 700;
}

.hero .highlight {
    color: #fff;
    font-weight: 800;
    border-bottom: 3px solid var(--secondary-blue);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9);
    color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary-red);
    width: 30px;
    border-radius: 6px;
}

/* ===== MÉTHODOLOGIE ===== */
.intro-services {
    padding: 50px 0;
    background-color: #f9f9f9;
}
.intro-text h2 {
    font-weight: 300;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--secondary-blue);
}
.intro-text a {
    color: var(--primary-red);
    text-decoration: underline;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.service-card {
    padding: 30px 20px;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 260px;
}
.service-card.green { background-color: var(--secondary-blue); }
.service-card.dark-green { background-color: var(--primary-red); }
.service-card .icon {
    font-size: 30px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}
.service-card p {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0.95;
}
.read-more {
    font-weight: bold;
    font-size: 12px;
    text-align: right;
    display: block;
    margin-top: auto;
    color: #fff;
}
.read-more i { margin-left: 5px; }

/* ===== SECTIONS ===== */
.about-us, .testimonials, .agencies, .contact-section {
    padding: 60px 0;
}
.about-us {
    background-color: var(--accent-light);
}
.about-layout, .agency-layout, .testimonial-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-img, .agency-map, .testimonial-img { flex: 1; }
.about-text, .agency-text, .testimonial-text { flex: 1; }
.about-img img, .agency-map img, .testimonial-img img {
    width: 100%;
    border-radius: 4px;
    display: block;
}
.about-text h2, .agency-text h2, .section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--secondary-blue);
}

.section-title-left {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--secondary-blue);
    text-align: left;
}

.subtitle-left {
    margin-bottom: 25px;
    font-size: 15px;
    color: #666;
}

/* ===== CATÉGORIES ===== */
.categories-banner {
    background-color: white;
    padding: 40px 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 15px;
    margin-top: 20px;
}
.categorie-card {
    background: var(--secondary-blue);
    color: white;
    padding: 20px 5px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: 0;
}
.categorie-card.red {
    background: var(--primary-red);
}

/* ===== LIEUX/TROPHÉES ===== */
.stats-banner {
    background-color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 40px 20px;
    color: #fff;
}
.stat-item.yellow { background-color: var(--secondary-blue); }
.stat-item.yellow-dark { background-color: var(--secondary-dark); }
.stat-item.green-light { background-color: var(--primary-red); }
.stat-item.green-dark { background-color: var(--primary-dark); }
.stat-item h3 { font-size: 28px; font-weight: 800; margin-bottom: 5px; }
.stat-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }

/* ===== PARTENAIRES / INSCRIPTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
}
.contact-card {
    padding: 40px 30px;
    color: #fff;
}
.contact-card.green { background-color: var(--secondary-blue); }
.contact-card.dark-green { background-color: var(--primary-red); }
.contact-card h3 { font-size: 26px; margin-bottom: 15px; }
.contact-card p { font-size: 15px; margin-bottom: 30px; }

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    transition: gap 0.3s;
}

.link-arrow:hover {
    gap: 12px;
}

/* ===== GALERIE ===== */
.gallery-preview {
    background: var(--accent-light);
    padding: 40px 0;
}
.gallery-flex {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    flex: 1;
    background: var(--secondary-blue);
    color: white;
    padding: 40px 10px;
    text-align: center;
    font-size: 16px;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-dark);
    color: #fff;
    padding: 50px 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-col h2 { font-size: 30px; margin-bottom: 20px; color: var(--primary-red); }
.footer-col h3 { font-size: 16px; margin-bottom: 20px; color: #fff; }
.footer-col a { display: block; margin-bottom: 10px; color: #ccc; }
.footer-col a:hover { color: var(--primary-red); }
.footer-col .address, .footer-col .email { margin-bottom: 8px; }
.social-links { display: flex; gap: 15px; }
.social-links a { 
    border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 50%; 
    width: 35px; height: 35px; 
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all 0.3s;
}
.social-links a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    nav ul { gap: 15px; }
    .logo-img { max-height: 70px; }
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav, .header-actions .btn-yellow, .header-actions .fa-search { display: none; }
    .header-content { justify-content: space-between; }
    .logo-img { max-height: 60px; }
    
    .hero { height: auto; min-height: 400px; }
    .carousel-slide { position: relative; min-height: 400px; }
    .hero-text-box { 
        position: relative; 
        right: auto; 
        top: auto; 
        max-width: 100%;
        margin: 20px 15px;
    }
    .hero-content { position: static; }
    .slider-arrow { display: none; }
    .carousel-dots { bottom: 15px; }

    .about-layout, .agency-layout, .testimonial-content { flex-direction: column; }
    .testimonial-img img { width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-flex { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 28px; }
    .logo-img { max-height: 50px; }
}
