:root {
    /* Identité Visuelle Ville de Louga */
    --gold: #D4AF37;          /* Or / Jaune Doré - Prestige */
    --gold-dark: #B8860B;     /* Or foncé pour contraste */
    --red: #D2042D;           /* Rouge vif - Courage/Force */
    --burgundy: #800020;      /* Rouge Bordeaux - Imperial */
    --red-dark: #991B1B;
    --black: #111827;         /* Noir intense - Contraste */
    --green: #15803d;         /* Vert soutenu - Espoir/Terre */
    --white: #ffffff;
    --gray-light: #f3f4f6;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif; /* Fonts "Prestigieuse" pour titres */
    --font-body: 'Inter', sans-serif; /* Clean pour texte */
    
    /* Layout */
    --header-height: 78px;
    --container-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
}
.btn-red:hover {
    background-color: var(--red-dark);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--black);
}

/* TOP BAR (Rouge & Or) */
.top-bar {
    background: var(--red);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--gold);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links a {
    margin-left: 15px;
    font-weight: 500;
    font-size: 0.8rem;
    opacity: 0.9;
}
.top-bar-links a:hover { opacity: 1; text-decoration: underline; }

/* HEADER */
header {
    background: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Grille 3 colonnes : nav-gauche | logo | nav-droite */
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

/* Logo centré */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    grid-column: 2;
    text-decoration: none;
}
.logo-img {
    height: 52px;
    width: auto;
    display: block;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0;
}
.logo-commune {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6b7280;
}
.logo-de {
    display: none;
}
.logo-louga {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--red) 0%, var(--gold) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Navs gauche & droite */
.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding-left: 0;
}
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-right: 0;
}

/* Liens */
.nav-link {
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.6px;
    position: relative;
    padding: 6px 8px;
    color: var(--black);
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--gold-dark); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Chevron */
.nav-chevron {
    font-size: 0.6rem;
    margin-left: 3px;
    transition: transform 0.25s;
    vertical-align: middle;
}

/* Dropdown wrapper */
.nav-dropdown {
    position: relative;
}
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--white);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 248px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 999;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.83rem;
    font-weight: 500;
    color: #374151;
    transition: background 0.18s, color 0.18s;
}
.dropdown-item i {
    width: 16px;
    color: var(--gold);
    font-size: 0.78rem;
    flex-shrink: 0;
}
.dropdown-item:hover {
    background: #fdf8ec;
    color: var(--gold-dark);
}
.dropdown-item:hover i { color: var(--gold-dark); }

/* Séparateur entre items dropdown */
.dropdown-item + .dropdown-item {
    border-top: 1px solid #f3f4f6;
}

/* Burger mobile */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--black);
}
@media (max-width: 1024px) {
    .nav-left, .nav-right { display: none; }
    .mobile-toggle { display: block; }
    .nav-container { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 640px) {
    .logo-img { height: 42px; }
}


/* HERO SECTION - "Epoustouflante" */
.hero-section {
    position: relative;
    height: 85vh; /* Large impactful hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)); /* Overlay default */
    padding-bottom: 80px; /* Space for curve */
}

/* HERO CURVE DIVIDER */
.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.hero-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.hero-curve .shape-fill {
    fill: var(--white);
}

/* SECTION SEPARATORS (CURVED) */
.section-curve-top {
    position: absolute;
    top: -1px; /* Avoid sub-pixel gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}
.section-curve-bottom {
    position: absolute;
    bottom: -1px; /* Avoid sub-pixel gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}
.section-curve-top svg, .section-curve-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Slight bump for visibility */
}
.curve-fill-white { fill: var(--white); }
.curve-fill-gray { fill: #fdfbf7; } /* Off-white background */
.curve-fill-red { fill: var(--red-dark); } 

/* Placeholder background if no image provided yet */
.hero-bg-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/e0/Placeholder_view_vector.svg') center/cover; /* Fallback */
    z-index: -1;
    /* Try to find a real Louga image or abstract civic pattern */
    background-color: #2c2c2c; 
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    position: relative;
    z-index: 5;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--red);
    padding-bottom: 5px;
}

.hero-title {
    font-size: 3.5rem; /* More compact on smaller screens */
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-family: var(--font-heading);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* SECTIONS - REFINED & COMPACT */
.section { 
    padding: 60px 0; /* Reduced padding for compact feel */
    position: relative; 
}

/* Section Titles "Coquette" */
.section-header { 
    text-align: center; 
    margin-bottom: 40px; /* Reduced margin */
    position: relative;
}
.section-title { 
    font-size: 2rem; /* Slightly smaller for elegance */
    margin-bottom: 8px; 
    position: relative; 
    display: inline-block; 
    color: var(--black);
    letter-spacing: 1px;
}
/* Decorative underline */
.section-title::after {
    content: '';
    display: block;
    width: 60px; /* More delicate */
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent); 
    margin: 8px auto 0;
}
/* Decorative icon above title */
.section-header::before {
    content: '\f005'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: block;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
    opacity: 0.8;
}
.section-desc { 
    max-width: 600px; 
    margin: 0 auto; 
    color: #666; 
    font-size: 0.95rem; 
    font-style: italic; 
    font-family: var(--font-body);
}

/* SERVICES CARDS (3 columns) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; /* Tighter gap */
}
.service-card {
    background: var(--white);
    padding: 25px 20px; /* More compact padding */
    border-radius: 8px; /* Slightly less rounded */
    border-top: none; 
    border-bottom: 3px solid var(--gold); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Softer shadow */
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-icon {
    font-size: 2rem; /* Smaller icon */
    color: var(--black); 
    margin-bottom: 12px;
    transition: color 0.3s;
}
.service-card:hover .service-icon { color: var(--gold); }
.service-title { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; color: var(--black); }

/* NEWS - REFINED */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.news-img {
    height: 180px; /* Reduced height */
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--red);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.news-content { padding: 20px; }
.news-category { color: var(--gold-dark); text-transform: uppercase; font-size: 0.7rem; font-weight: 700; margin-bottom: 8px; display: block; letter-spacing: 0.5px; }
.news-title { 
    font-size: 1.1rem; 
    font-family: var(--font-heading); 
    font-weight: 600; 
    margin-bottom: 10px; 
    line-height: 1.3; 
}
.news-title a { color: var(--black); transition: color 0.2s; }
.news-title a:hover { color: var(--gold); }
.news-excerpt { color: #6b7280; font-size: 0.85rem; margin-bottom: 15px; line-height: 1.5; }
.news-link { color: var(--black); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-link i { color: var(--gold); font-size: 0.8rem; transition: transform 0.3s; }
.news-card:hover .news-link i { transform: translateX(3px); }

/* FOOTER */
.site-footer {
    background: #0d1117;
    color: #c9d1d9;
    padding: 56px 0 0;
    font-size: 0.875rem;
    border-top: 3px solid var(--gold);
}
.ft-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 48px;
}

/* ----- Col 1 : brand ----- */
.ft-brand .ft-logo-link {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; margin-bottom: 16px;
}
.ft-brand .ft-logo-link img { height: 52px; width: auto; }
.ft-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.ft-logo-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold);
}
.ft-logo-sub {
    font-family: 'Cinzel', serif;
    font-size: .58rem; font-weight: 400;
    letter-spacing: 4px; text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.ft-tagline {
    color: #8b949e;
    font-size: .82rem;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 300px;
}
.ft-social { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-social a {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: #c9d1d9; font-size: .68rem;
    transition: background .25s, color .25s, border-color .25s;
}
.ft-social a:hover { background: var(--gold); border-color: var(--gold); color: #000; }

/* ----- Headings colonnes ----- */
.ft-heading {
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212,175,55,.25);
    display: flex; align-items: center; gap: 7px;
}
.ft-heading i { font-size: .72rem; }

/* ----- Liens ----- */
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 9px; }
.ft-links a {
    color: #8b949e;
    font-size: .83rem;
    display: flex; align-items: center; gap: 7px;
    transition: color .2s, transform .2s;
}
.ft-links a::before {
    content: '›';
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.ft-links a:hover { color: #fff; transform: translateX(3px); }

/* ----- Col 4 : contact info ----- */
.ft-contact-info { margin-bottom: 16px; }
.ft-contact-info p,
.ft-hours p {
    display: flex; gap: 9px; align-items: flex-start;
    color: #8b949e; font-size: .82rem;
    margin-bottom: 8px; line-height: 1.45;
}
.ft-contact-info i,
.ft-hours i { color: var(--gold); font-size: .75rem; margin-top: 3px; flex-shrink: 0; }
.ft-contact-info a { color: inherit; transition: color .2s; }
.ft-contact-info a:hover { color: var(--gold); }

.ft-hours { margin-bottom: 18px; }
.ft-hours-title { color: rgba(255,255,255,.7) !important; font-weight: 600 !important; }
.ft-hours p:not(.ft-hours-title) { padding-left: 22px; }

/* ----- Newsletter ----- */
.ft-newsletter-title {
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--gold); margin-bottom: 10px;
}
.ft-newsletter-form {
    display: flex; flex-direction: column; gap: 8px;
}
.ft-newsletter-form input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    padding: 9px 12px;
    color: #fff; font-size: .82rem;
    outline: none;
    transition: border-color .2s;
}
.ft-newsletter-form input::placeholder { color: #6e7681; }
.ft-newsletter-form input:focus { border-color: var(--gold); }
.ft-newsletter-form button {
    background: var(--gold);
    color: #000;
    border: none; border-radius: 6px;
    padding: 9px 14px;
    font-size: .8rem; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: background .25s;
}
.ft-newsletter-form button:hover { background: var(--gold-dark); }

/* ----- Copyright ----- */
.ft-copy {
    background: #080b10;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 0 20px;
}
.ft-copy-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 14px 0;
    color: #c9d1d9;
    font-size: .78rem;
}
.ft-copy-inner span {
    line-height: 1.6;
    opacity: .85;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-menu { display: none; } /* Mobile menu later */
    .hero-title { font-size: 2.5rem; }
    .top-bar { display: none; }
}
