:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-color: #1d3557;
    --light-color: #f8f9fa;
    --text-dark: #2b2d42;
    --text-light: #6c757d;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Reduced distance */
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Reduced width */
    height: 2px; /* Reduced height */
    background: var(--primary-color);
    border-radius: 1px; /* Softer corners */
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(29, 53, 87, 0.1) !important; /* 90% transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.custom-navbar.scrolled {
    background: rgba(29, 53, 87, 0.7) !important; /* Slightly more opaque when scrolled for readability */
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.7) 0%, rgba(230, 57, 70, 0.5) 100%); /* Slightly lighter overlay */
    z-index: 0;
}

.hero-logo {
    max-width: 200px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); /* Subtler shadow */
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Subtler text shadow */
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.5rem;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2); /* Subtler text shadow */
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border-radius: 30px; /* Slightly less rounded */
    font-weight: 500; /* Slightly lighter font weight */
    padding: 0.7rem 1.8rem; /* Slightly smaller padding */
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #d32f2f;
    transform: translateY(-1px); /* Subtler lift */
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2); /* Subtler shadow */
}

.btn-outline-light {
    border: 1px solid white; /* Thinner border */
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-1px); /* Subtler lift */
}

.btn-outline-primary {
    border: 1px solid var(--primary-color); /* Thinner border */
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px); /* Subtler lift */
}

/* Home Section Visual */
.home-visual {
    position: relative;
    height: 500px;
}

.main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 560px; /* empêche que ça devienne trop large sur desktop */
    border-radius: 15px;
    overflow: visible; /* on laisse le contrôle à .video-wrapper */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Pour mobile : prendre plus de largeur de l'écran */
@media (max-width: 576px) {
    .main-visual {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        left: 50%;
        transform: translate(-50%, -50%);
        min-height: 190px;
    }
}

/* Wrapper ratio 16:9 responsive */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: #000;
    border-radius: inherit;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* un peu plus lisible dans le hero */
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: inherit;
}

.floating-element {
    position: absolute;
    background: white;
    padding: 0.8rem 1.2rem; /* Slightly smaller padding */
    border-radius: 12px; /* Slightly less rounded */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500; /* Slightly lighter font weight */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtler shadow */
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 3%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 80%;
    right: 0%;
    animation-delay: 2s;
}

.floating-element.element-3 {
    bottom: 0%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Subtler float */
}

/* About Section */
.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Slightly less rounded */
}

.mission-card {
    background: white;
    padding: 2rem; /* Slightly less padding */
    border-radius: 15px; /* Slightly less rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtler shadow */
}

.impact-points {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Slightly smaller gap */
}

.impact-point {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem; /* Slightly smaller gap */
}

.impact-point i {
    margin-top: 0.2rem; /* Slightly less margin */
    flex-shrink: 0;
}

/* Donate Section */
.donate-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d32f2f 100%);
    color: white;
    padding: 3rem 2.5rem; /* Slightly less padding */
    border-radius: 20px; /* Slightly less rounded */
    text-align: center;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2); /* Subtler shadow */
}

.donate-icon {
    font-size: 3.5rem; /* Slightly smaller icon */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); } /* Subtler pulse */
}

/* Team Section */
.team-card {
    background: white;
    padding: 1.8rem; /* Slightly less padding */
    border-radius: 15px; /* Slightly less rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtler shadow */
    height: 100%;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px); /* Subtler lift */
}

.team-header {
    border-bottom: 1px solid var(--accent-color); /* Thinner border */
    padding-bottom: 0.8rem; /* Slightly less padding */
    margin-bottom: 0.8rem; /* Slightly less margin */
    position: relative;
}

.team-header h4 {
    color: var(--dark-color);
    margin-bottom: 0.4rem; /* Slightly less margin */
}

.team-header span {
    color: var(--primary-color);
    font-weight: 500; /* Slightly lighter font weight */
}

.team-bio {
    color: var(--text-light);
    line-height: 1.6; /* Slightly tighter line height */
}

img.team_pic {
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
}

.team-header {
    position: relative; /* nécessaire pour que l'absolu se base dessus */
}

/* Nouveau conteneur pour la photo */
.team-pic-wrapper {
    position: absolute;
    top: 0;
    right: 0;

    width: 60px;
    height: 60px;

    /* on laisse dépasser l'image quand elle grossit */
    overflow: visible;

    /* pour que l'image agrandie passe AU-DESSUS du reste */
    z-index: 10;
}

/* Ta photo de profil, version de base */
.team_pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;

    /* animation fluide */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* point de zoom = centre de l'image */
    transform-origin: center center;

    /* empêche le flou pendant le scale sur certains navigateurs */
    will-change: transform;
}

/* Effet au survol */
.team-pic-wrapper:hover .team_pic {
    transform: scale(2); /* ajuste: 1.5 = léger, 2 = bien visible */
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Carte membre */
.board-member {
    background: white;
    padding: 1.2rem; /* Slightly less padding */
    border-radius: 12px; /* Slightly less rounded */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* Subtler shadow */
    border-left: 3px solid var(--accent-color); /* Thinner border */

    display: flex;
    flex-direction: column;
    height: 100%; /* occupe toute la hauteur disponible dans la colonne */
}

/* Chaque colonne de la grille devient un flex container */
.row.g-3 > [class*="col-"] {
    display: flex;
}

/* Et la carte à l'intérieur prend toute la hauteur de cette colonne */
.row.g-3 > [class*="col-"] .board-member {
    flex: 1;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 1.8rem; /* Slightly less padding */
    border-radius: 15px; /* Slightly less rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtler shadow */
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem; /* Slightly less margin */
}

.contact-form {
    background: white;
    padding: 1.8rem; /* Slightly less padding */
    border-radius: 15px; /* Slightly less rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtler shadow */
}

.form-control {
    border: 1px solid #e9ecef; /* Thinner border */
    border-radius: 8px; /* Slightly less rounded */
    padding: 0.6rem 0.9rem; /* Slightly smaller padding */
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(230, 57, 70, 0.2); /* Subtler shadow */
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem; /* Slightly smaller */
    }
    
    .hero-section .lead {
        font-size: 1.1rem; /* Slightly smaller */
    }
    
    .section-title {
        font-size: 1.8rem; /* Slightly smaller */
    }
    
    .section-padding {
		scroll-margin-top: 50px;
    }
    
    .home-visual {
        height: auto; /* Slightly smaller height */
        margin-top: 5rem;
        margin-bottom: 8rem;
    }
    
    .floating-element {
        position: relative;
        margin: 0.4rem; /* Slightly less margin */
        animation: none;
    }
    
    .donate-card {
        padding: 1.8rem 1.2rem; /* Slightly less padding */
    }
    
    .mission-card,
    .contact-info,
    .contact-form {
        padding: 1.2rem; /* Slightly less padding */
    }
	.element-1, .element-2, .element-3 {
		display: none;
	}
	#herobtn1 {
		margin-right: 0 !important;
		margin-bottom : 1rem;
	}
	.powered {
		margin: 1rem 0;
	}
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 18px; /* Slightly smaller */
    height: 18px; /* Slightly smaller */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Thinner border */
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem; /* Slightly lower */
    right: 1.5rem; /* Slightly more to the left */
    background: var(--primary-color);
    color: white;
    width: 45px; /* Slightly smaller */
    height: 45px; /* Slightly smaller */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #d32f2f;
    transform: translateY(-1px); /* Subtler lift */
}

img.team_pic {
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    border: 1px solid var(--dark-color);
}

.team-header {
    position: relative; /* nécessaire pour que l'absolu se base dessus */
}

/* Nouveau conteneur pour la photo */
.team-pic-wrapper {
    position: absolute;
    top: 0;
    right: 0;

    width: 60px;
    height: 60px;

    /* on laisse dépasser l'image quand elle grossit */
    overflow: visible;

    /* pour que l'image agrandie passe AU-DESSUS du reste */
    z-index: 10;
}

/* Ta photo de profil, version de base */
.team_pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;

    /* animation fluide */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* point de zoom = centre de l'image */
    transform-origin: center center;

    /* empêche le flou pendant le scale sur certains navigateurs */
    will-change: transform;
}

/* Effet au survol */
.team-pic-wrapper:hover .team_pic {
    transform: scale(2); /* ajuste: 1.5 = léger, 2 = bien visible */
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.footer-logo {
    height: 22px;               /* taille du logo dans le flux texte */
    width: auto;
    vertical-align: middle;     /* aligne le logo avec le texte */
    filter: brightness(0) invert(1); /* optionnel : rend le logo blanc sur fond sombre */
    margin-left: 0px;           /* petit espace entre le texte et le logo */
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.6;
}

.video-background .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.7) 0%, rgba(230, 57, 70, 0.5) 100%); 
    z-index: 2; /* au-dessus de la vidéo */
    pointer-events: none; /* ne bloque pas les clics si besoin */
}
