/* ===== INGENIUM Solar Energy - Styles CSS ===== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Open+Sans:wght@400;600&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --jaune-solaire: #F7C600;
    --noir-profond: #111111;
    --blanc-pur: #FFFFFF;
    --gris-clair: #F4F4F4;
    --gris-moyen: #666666;
    
    /* Typographies */
    --font-titres: 'Poppins', sans-serif;
    --font-textes: 'Open Sans', sans-serif;
    
    /* Espacements */
    --padding-section: 80px 0;
    --padding-mobile: 60px 0;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-hover: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-textes);
    line-height: 1.6;
    color: var(--noir-profond);
    background-color: var(--blanc-pur);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-hover);
}

ul {
    list-style: none;
}

/* ===== UTILITAIRES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-hover);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--jaune-solaire);
    color: var(--noir-profond);
}

.btn-primary:hover {
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(17, 17, 17, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanc-pur);
    border: 2px solid var(--blanc-pur);
}

.btn-secondary:hover {
    background-color: var(--blanc-pur);
    color: var(--noir-profond);
}

.section-title {
    font-family: var(--font-titres);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--noir-profond);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gris-moyen);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blanc-pur);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-titres);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--noir-profond);
}

.logo span {
    color: var(--jaune-solaire);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition-hover);
    position: relative;
}

.nav-link:hover {
    color: var(--jaune-solaire);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jaune-solaire);
    transition: var(--transition-hover);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--noir-profond);
    transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)), url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--blanc-pur);
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-titres);
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--padding-section);
}

.section-dark {
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
}

.section-light {
    background-color: var(--gris-clair);
}

.section-yellow {
    background-color: var(--jaune-solaire);
    color: var(--noir-profond);
}

/* ===== GRILLES ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background-color: var(--blanc-pur);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-hover);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--jaune-solaire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: var(--transition-hover);
}

.card:hover .card-icon {
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
}

.card h3 {
    font-family: var(--font-titres);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--noir-profond);
}

.card p {
    color: var(--gris-moyen);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-titres);
    margin-bottom: 20px;
    color: var(--jaune-solaire);
}

.footer-section p,
.footer-section a {
    margin-bottom: 10px;
    transition: var(--transition-hover);
}

.footer-section a:hover {
    color: var(--jaune-solaire);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: var(--gris-moyen);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --padding-section: var(--padding-mobile);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--blanc-pur);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition-smooth);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.4) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--blanc-pur);
}

.hero-title {
    font-family: var(--font-titres);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.2s both;
}

/* Navigation dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background-color: var(--jaune-solaire);
    border-color: var(--blanc-pur);
    transform: scale(1.2);
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--blanc-pur);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background-color: var(--jaune-solaire);
    color: var(--noir-profond);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        display: none;
    }
}
