/* ===========================================
   SITE VITRINE MAISON BLEUE - CSS PRINCIPAL
   =========================================== */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --primary-color: #101D54;      /* Bleu principal */
    --secondary-color: #1665A1;    /* Bleu clair */
    --accent-color: #B8C5FC;      /* Bleu très clair */
    --background-color: #ffffff;   /* Blanc */
    --text-color: #101D54;         /* Gris foncé */
    --text-light: #1665A1;         /* Gris clair */
    --border-color: #C5DDF0;       /* Bordure claire */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typographie de base */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Layout général */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Header & Navigation */
header {
    background: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    color: var(--secondary-color);
}

.logo img {
    margin-right: 15px;
    border-radius: 10px;
    width: auto;
    vertical-align: middle;
}

span.accent {
    color: var(--accent-color);
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.nav-link.donate-btn {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.donate-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Menu burger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: -1;
}

.hero.v1::before {
    background: url('../images/hero-bg.jpg') center/cover;
}
.hero.v3::before {
    background: url('../images/faire-une-don.png') center/cover;
}

.hero.v4::before {
    background: url('../images/partenaires-ensemble.jpeg') center/cover;
}

.hero.v5::before {
    background: url('../images/banniere-contact.png') center/cover;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color:white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections de contenu */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.value-icon img{
    max-width:150px;
    height: auto;
}

/* Grille d'images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Galerie Carrousel */
.gallery-carousel {
    max-width: 800px;
    margin: 2rem auto;
}

.carousel-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    background: var(--background-color);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(100px);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide.active .slide-info {
    transform: translateY(0);
}

.slide-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicateurs */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--primary-color);
}

/* Responsive pour le carrousel */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .slide-info {
        padding: 2rem 1rem 1rem;
    }
    
    .slide-info h3 {
        font-size: 1.2rem;
    }
    
    .slide-info p {
        font-size: 0.9rem;
    }
}

/* Section Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 10px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.map-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Formulaire de don */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.donation-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.donation-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.donation-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer p {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px var(--shadow-color);
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .values-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   COMPOSANTS CONTENU ENRICHI
   =============================== */

/* Contenu avec image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.content-with-image.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-with-image.reverse .content-text {
    order: 2;
}

.content-with-image.reverse .content-image {
    order: 1;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-text .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
}

.content-image {
    position: relative;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.content-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Encadré de mise en valeur */
.highlight-box {
    background: linear-gradient(135deg, var(--accent-color), rgba(99, 179, 237, 0.1));
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    position: relative;
}

.highlight-box::before {
    content: "💡";
    position: absolute;
    top: -10px;
    left: 20px;
    border-radius: 50%;
    background: var(--background-color);
    padding: 0 10px;
    line-height: 2rem;
    font-size: 1.2rem;
}

/* Section témoignage */
.testimonial-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-content blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin: 0 0 2rem 0;
    position: relative;
    padding: 2rem;
}

.testimonial-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 0;
    font-family: Georgia, serif;
}

.testimonial-content blockquote::after {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    bottom: -40px;
    right: 0;
    font-family: Georgia, serif;
}

.testimonial-content cite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-style: normal;
}

.testimonial-content cite img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.cite-info {
    text-align: left;
}

.cite-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cite-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section statistiques avec contenu */
.stats-with-content {
    margin: 3rem 0;
}

.stats-text {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-text .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-visual {
    margin-bottom: 1.5rem;
}

.stat-visual img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive pour les composants enrichis */
@media (max-width: 768px) {
    .content-with-image,
    .content-with-image.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-with-image.reverse .content-text,
    .content-with-image.reverse .content-image {
        order: unset;
    }
    
    .content-text .subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .testimonial-content cite {
        flex-direction: column;
        text-align: center;
    }
    
    .cite-info {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilitaires */
.hidden {
    display: none;
}

.visible {
    display: block;
}
