/* =====================================
   POLICES MUSEO INTÉGRÉES DIRECTEMENT
   ===================================== */

@font-face {
    font-family: 'Museo';
    src: url('../../fonts/Museo-100.eot');
    src: local('Museo 100'), local('Museo-100'),
        url('../../fonts/Museo-100.eot?#iefix') format('embedded-opentype'),
        url('../../fonts/Museo-100.woff2') format('woff2'),
        url('../../fonts/Museo-100.woff') format('woff'),
        url('../../fonts/Museo-100.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Museo';
    src: url('../../fonts/Museo-300.eot');
    src: local('Museo 300'), local('Museo-300'),
        url('../../fonts/Museo-300.eot?#iefix') format('embedded-opentype'),
        url('../../fonts/Museo-300.woff2') format('woff2'),
        url('../../fonts/Museo-300.woff') format('woff'),
        url('../../fonts/Museo-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Museo';
    src: url('../../fonts/Museo-500.eot');
    src: local('Museo 500'), local('Museo-500'),
        url('../../fonts/Museo-500.eot?#iefix') format('embedded-opentype'),
        url('../../fonts/Museo-500.woff2') format('woff2'),
        url('../../fonts/Museo-500.woff') format('woff'),
        url('../../fonts/Museo-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Museo';
    src: url('../../fonts/Museo-700.eot');
    src: local('Museo 700'), local('Museo-700'),
        url('../../fonts/Museo-700.eot?#iefix') format('embedded-opentype'),
        url('../../fonts/Museo-700.woff2') format('woff2'),
        url('../../fonts/Museo-700.woff') format('woff'),
        url('../../fonts/Museo-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* =====================================
   VARIABLES CSS
   ===================================== */
:root {
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --accent-green: #66BB6A;
    --text-dark: #2d3748;
    --text-white: #ffffff;
}

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

/* =====================================
   POLICES MUSEO - INTÉGRATION COMPLÈTE
   ===================================== */

/* Police par défaut pour tout le site - Museo 100 */
body {
    font-family: 'Museo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 100 !important;
    line-height: 1.6;
}

/* Titres de sections - Museo 700 */
h1, h2, h3, h4, h5, h6,
.page-header h1,
.actualites-section h2,
.pages-utiles h2,
.village-heart h2,
.complexe-title {
    font-family: 'Museo', sans-serif !important;
    font-weight: 700 !important;
}

/* Navigation et éléments UI - Museo 300 */
.navbar-nav .nav-link,
.dropdown-item,
.btn,
.btn-page,
.btn-primary,
.icon-block h4,
.city-subtitle,
.top-header,
.footer-content {
    font-family: 'Museo', sans-serif !important;
    font-weight: 300 !important;
}

/* Textes et contenu - Museo 100 */
p, .actu-text, .info-card {
    font-family: 'Museo', sans-serif !important;
    font-weight: 100 !important;
}

/* Texte important - Museo 700 */
.city-name {
    font-family: 'Museo', sans-serif !important;
    font-weight: 700 !important;
}

/* =====================================
   HEADER ET NAVIGATION
   ===================================== */

/* Header vert avec informations */
.header-top,
.top-header {
    background-color: var(--primary-green) !important;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.weather-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Header */
.main-header {
    background-color: var(--primary-green) !important;
    color: white;
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-green);
}

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

.logo-section i {
    font-size: 2rem;
    color: white;
}

.city-name {
    font-size: 1.5rem;
    margin: 0;
}

.city-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation principale */
.main-nav {
    background-color: var(--accent-green) !important;
    box-shadow: none;
    border-bottom: 3px solid var(--primary-green);
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    background-color: white;
    border-radius: 5px;
}

/* Styles pour les menus déroulants */
.navbar-nav .dropdown-menu {
    background-color: var(--primary-green) !important;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 0;
    min-width: 250px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.navbar-nav .dropdown-item {
    color: white !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:last-child {
    border-bottom: none;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Flèche du dropdown */
.navbar-nav .dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.5rem;
    vertical-align: 0.1em;
}

/* Animation du dropdown au survol */
.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown.show .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =====================================
   SECTIONS PRINCIPALES
   ===================================== */

/* Section photo mairie */
.mairie-hero {
    height: 800px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
                url('images/index/mairie.jpg') center/cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Section verte claire avec icônes */
.green-section,
.hero-section {
    background-color: var(--light-green) !important;
    padding: 20px 0;
}

.icon-blocks {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.icon-block {
    text-align: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 20px;
}

.icon-block:hover {
    transform: translateY(-5px);
}

.icon-block i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.icon-block h4 {
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Section complexe sportif */
.complexe-sportif {
    height: 950px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
                url('images/index/complexe-sportif.jpg') center/cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Titre complexe sportif - POLICE MUSEO 300 comme dans l'image */
.complexe-title {
    font-family: 'Museo', sans-serif !important;
    font-size: 4rem;
    font-weight: 300 !important; /* Museo 300 pour correspondre à l'image */
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
}

/* Section coeur du village */
.village-heart {
    background-color: rgba(0,0,0,0.8) !important;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.village-heart h2 {
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Section images village */
.village-images {
    height: 750px;
    background: url('images/index/village-patrimoine.jpg') center/cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* =====================================
   SECTIONS DE CONTENU
   ===================================== */

/* Section pages utiles */
.pages-utiles {
    background-color: #f8f9fa !important;
    padding: 60px 0;
    text-align: center;
}

.pages-utiles h2 {
    color: var(--primary-green) !important;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-page {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none;
    padding: 20px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.btn-page:hover {
    background-color: var(--accent-green) !important;
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none;
}

/* Section actualités */
.actualites-section {
    background-color: white !important;
    padding: 60px 0;
    text-align: center;
}

.actualites-section h2 {
    color: var(--primary-green) !important;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actualites-content {
    max-width: 800px;
    margin: 0 auto;
}

.actu-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.app-download-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.panneau-pocket {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-stores {
    display: flex;
    gap: 10px;
}

.app-store-btn {
    height: 40px;
    border-radius: 5px;
}

.qr-codes {
    display: flex;
    gap: 15px;
}

.qr-code {
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 5px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect fill="%23ffffff" width="80" height="80"/><rect fill="%23000000" x="10" y="10" width="60" height="60"/><rect fill="%23ffffff" x="15" y="15" width="50" height="50"/><rect fill="%23000000" x="20" y="20" width="5" height="5"/><rect fill="%23000000" x="30" y="20" width="5" height="5"/><rect fill="%23000000" x="40" y="20" width="5" height="5"/><rect fill="%23000000" x="50" y="20" width="5" height="5"/><rect fill="%23000000" x="20" y="30" width="5" height="5"/><rect fill="%23000000" x="40" y="30" width="5" height="5"/><rect fill="%23000000" x="20" y="40" width="5" height="5"/><rect fill="%23000000" x="30" y="40" width="5" height="5"/><rect fill="%23000000" x="50" y="40" width="5" height="5"/><rect fill="%23000000" x="20" y="50" width="5" height="5"/><rect fill="%23000000" x="40" y="50" width="5" height="5"/><rect fill="%23000000" x="50" y="50" width="5" height="5"/></svg>');
    background-size: cover;
}

/* =====================================
   CARTES ET COMPOSANTS
   ===================================== */

/* Cartes d'information */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.info-card .icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Actualités */
.actualite-item {
    border-bottom: 1px solid var(--light-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.actualite-item:last-child {
    border-bottom: none;
}

.actualite-item h6 {
    color: var(--primary-green);
}

/* Section carte */
.map-section {
    height: 300px;
    background: url('images/index/carte.jpg') center/cover;
    position: relative;
}

/* =====================================
   FOOTER
   ===================================== */

.main-footer {
    background-color: var(--primary-green) !important;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-green {
    background-color: var(--primary-green) !important;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left, .footer-right {
    font-size: 0.9rem;
}

/* =====================================
   PAGES INTÉRIEURES
   ===================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%) !important;
    color: white;
    padding: 3rem 0 2rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-content {
    padding: 3rem 0;
}

.breadcrumb {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.content-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* =====================================
   BOUTONS ET UTILITAIRES
   ===================================== */

.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.text-primary-custom {
    color: var(--primary-green) !important;
}

.bg-primary-custom {
    background-color: var(--primary-green) !important;
}

/* =====================================
   PARALLAXE
   ===================================== */

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

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

/* Desktop - activation des dropdowns au survol */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .navbar-nav .dropdown-menu {
        display: block;
    }
}

/* Tablettes */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: var(--accent-green) !important;
        border: none;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    
    .navbar-nav .dropdown-item {
        padding-left: 30px;
        font-size: 0.85rem;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    /* Désactive le parallaxe sur mobile */
    .mairie-hero,
    .complexe-sportif,
    .village-images {
        background-attachment: scroll;
    }
    
    .mairie-hero {
        height: 300px;
    }
    
    .complexe-sportif {
        height: 250px;
    }
    
    .village-images {
        height: 300px;
    }
    
    .complexe-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .top-header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .icon-blocks {
        flex-direction: column;
        gap: 30px;
    }
    
    .btn-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .app-download-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
    }
    
    .info-card {
        margin-bottom: 2rem;
    }
    
    .village-heart h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .btn-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .complexe-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .icon-block h4 {
        font-size: 0.9rem;
    }
    
    .icon-block i {
        font-size: 2.5rem;
    }
    
    .village-heart h2 {
        font-size: 1.5rem;
    }
}
