:root {
    /* Dark mode colors */
    --black: #000000;
    --white: #FFFFFF;
    --steel-grey: #6E6E6E;
    --light-grey: #BDBDBD;
    --robot-yellow: #F4C430;
    --dark-red: #8B1A1A;
    --dark-text-color: #e0e0e0;
    --text-color: var(--dark-text-color);
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.8);
    --card-border: #333333;
    --section-alt-bg: rgba(25, 25, 25, 0.8);
    
    /* Light mode colors */
    --light-text-color: #333333;
    --light-bg-color: #f8f9fa;
    --light-card-bg: #ffffff;
    --light-card-border: #e0e0e0;
    --light-section-alt-bg: #f0f0f0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="light"] {
    --text-color: var(--light-text-color);
    --bg-color: var(--light-bg-color);
    --card-bg: var(--light-card-bg);
    --card-border: var(--light-card-border);
    --section-alt-bg: var(--light-section-alt-bg);
}

/* Navigation */
.navbar {
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--robot-yellow);
    transition: background-color 0.3s;
}

.nav-link {
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--robot-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--robot-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.logo-text {
    color: var(--robot-yellow);
    font-weight: 800;
}

/* Titres */
h1, h2, h3, .section-title {
    color: var(--robot-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

h1:after, h2:after, .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--robot-yellow);
}

.section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* default elements */
h4, h5 {
  color: var(--text-color);
}

/* Paragraphes */
p, li {
    color: var(--text-color);
    line-height: 1.7;
}
.hero-section p, .hero-section li {
    color: var(--dark-text-color);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Boutons */
.btn-primary {
    background-color: var(--robot-yellow) !important;
    border-color: var(--robot-yellow) !important;
    color: var(--black) !important;
    font-weight: 600;
    border-radius: 0;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent !important;
    color: var(--robot-yellow) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 196, 48, 0.3);
}

.btn-outline-primary {
    border-color: var(--robot-yellow) !important;
    color: var(--robot-yellow) !important;
    border-radius: 0;
    padding: 10px 25px;
}

.btn-outline-primary:hover {
    background-color: var(--robot-yellow) !important;
    color: var(--black) !important;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--section-alt-bg);
    background-image: radial-gradient(circle at 1px 1px, var(--steel-grey) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Accueil */
#accueil {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("background.jpg") center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.robot-animation {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="30" width="60" height="40" rx="5" fill="%23F4C430"/><circle cx="35" cy="25" r="10" fill="%23F4C430"/><circle cx="65" cy="25" r="10" fill="%23F4C430"/><rect x="35" y="70" width="10" height="15" fill="%23F4C430"/><rect x="55" y="70" width="10" height="15" fill="%23F4C430"/><circle cx="35" cy="20" r="3" fill="%23000"/><circle cx="65" cy="20" r="3" fill="%23000"/><rect x="40" cy="40" width="20" height="5" fill="%23000"/></svg>');
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.robot-1 { top: 20%; left: 10%; animation-delay: 0s; }
.robot-2 { top: 40%; right: 15%; animation-delay: 1s; }
.robot-3 { bottom: 20%; left: 20%; animation-delay: 2s; }

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(244, 196, 48, 0.2);
    border-color: var(--robot-yellow);
}

.card-title {
    color: var(--robot-yellow);
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Équipe */
.team-section {
    position: relative;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--robot-yellow);
    box-shadow: 0 5px 15px rgba(244, 196, 48, 0.2);
}

.member-img {
    height: 250px;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.member-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(244, 196, 48, 0.1));
}

.member-img i {
    font-size: 5rem;
    color: var(--steel-grey);
}

.member-info {
    padding: 20px;
}

.member-position {
    color: var(--robot-yellow);
    font-weight: 600;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(244, 196, 48, 0.1);
    color: var(--robot-yellow);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--robot-yellow);
    color: var(--black);
    transform: translateY(-3px);
}

/* Partenaires */
.partner-logo {
    max-height: 100px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    max-width: 100%;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: var(--robot-yellow);
    transform: translateY(-5px);
}

.partner-icon {
    color: var(--robot-yellow);
    margin-bottom: 20px;
    font-size: 3rem;
}

/* Dons */
.donation-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(30, 30, 30, 0.7)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><rect width="100" height="100" fill="none"/><path d="M50 15 L75 50 L50 85 L25 50 Z" fill="%23F4C430" opacity="0.1"/></svg>');
    background-size: cover;
    border: 2px solid var(--robot-yellow);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(244, 196, 48, 0.3);
}

.donation-icon {
    font-size: 4rem;
    color: var(--robot-yellow);
    margin-bottom: 20px;
}

/* Équipes Coupe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.team-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    transition: all 0.3s ease;
}

.team-item:hover {
    border-color: var(--robot-yellow);
    transform: translateY(-5px);
}

.team-name {
    color: var(--robot-yellow);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--robot-yellow);
    padding: 50px 0 20px;
    transition: background-color 0.3s;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--robot-yellow);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--robot-yellow);
}

.footer-links a {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--robot-yellow);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(244, 196, 48, 0.1);
    color: var(--robot-yellow);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--robot-yellow);
    color: var(--black);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid var(--steel-grey);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: var(--light-grey);
}

.IMG_EQUI{
    height: 250px;
    width: 400px;
    object-fit: cover;
}

.logo{
    height : 42px;
}


/*pour faire cacher la nav bar avec un retard*/

#nav{
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
}


.home-background {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("background.jpg") center/cover no-repeat;
}

.home-background.light-background {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url("background-light.jpg") center/cover no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .robot-animation {
        display: none;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }

    .IMG_EQUI{
        height: 250px;
        width: 514px;
    }
}
