/* ======================================
   TEMPLATE DE BASE PAGINEO
   Styles de structure et éléments de base
   ====================================== */

/* Variables CSS par défaut (peuvent être surchargées par les couleurs personnalisées) */
:root {
    /* Couleurs principales - Neutres par défaut, à personnaliser absolument */
    --primary-color: #6c757d;        /* Gris neutre */
    --secondary-color: #adb5bd;      /* Gris plus clair */
    --accent-color: #6c757d;         /* Même gris pour l'accent */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    
    /* Couleurs sémantiques */
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --bg-section: #ffffff;
}

/* ======================================
   STRUCTURE GÉNÉRALE
   ====================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 0;
}

/* ======================================
   NAVIGATION
   ====================================== */

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    height: 72px;
}

/* Extension du conteneur navbar pour l'aligner avec le contenu de la page */
.navbar .container {
    max-width: none !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Ajustement responsive pour les petits écrans */
@media (max-width: 768px) {
    .navbar .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand img {
    max-height: 50px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ======================================
   HERO SECTIONS
   ====================================== */

.hero {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: white;
}

/* Styles pour le slideshow hero */
.hero-banner {
    position: relative;
    height: 80vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

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

.hero-image,
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

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

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Responsive pour les héros */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-banner {
        height: 60vh;
        min-height: 300px;
        max-height: 600px;
    }
}

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

.section {
    padding: 5rem 0;
}

/* ======================================
   CARDS
   ====================================== */

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Styles de cards personnalisés */
.card1 {
    border: none;
    background-color: #ffffff;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    border-radius: 0.5rem;
    padding: 2rem;
}

.card2 {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.25rem;
}

/* Styles pour les blocs avec bordure - Version de test avec bordure rouge visible */
.block.bordered {
    border: 3px solid red !important;
    border-radius: 0.5rem !important;
    padding: 2rem !important;
    background-color: #ffffcc !important;
}

.bordered {
    border: 3px solid red !important;
    border-radius: 0.5rem !important;
    padding: 2rem !important;
    background-color: #ffffcc !important;
}

.bordered > * {
    margin-bottom: 1rem;
}

.bordered > *:last-child {
    margin-bottom: 0;
}

/* Styles pour les blocs avec ombre */
.shadow {
    background-color: #ffffff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border-radius: 0.5rem;
    padding: 2rem;
}

.shadow > * {
    margin-bottom: 1rem;
}

.shadow > *:last-child {
    margin-bottom: 0;
}

/* ======================================
   BOUTONS
   ====================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ======================================
   ICÔNES ET ÉLÉMENTS DÉCORATIFS
   ====================================== */

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0;
}

footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ======================================
   UTILITAIRES
   ====================================== */

.bg-custom-light {
    background-color: var(--light-color);
}

.bgColor1 {
    background-color: var(--light-color);
}

.bgColor2 {
    background-color: var(--bg-light);
}

/* ======================================
   CARTES ET CONTENEURS SPÉCIAUX
   ====================================== */

.map-section {
    padding: 5rem 0;
    background-color: white;
}

.map-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.map-container img {
    max-width: 100%;
    height: auto;
}

.map-legend {
    margin-top: 2rem;
    text-align: center;
}

.map-legend-item {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
}

.map-legend-color {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    border-radius: 4px;
}

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

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .map-container {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
} 