/* ==================== VARIABLES CSS ==================== */
:root {
    /* Couleurs principales - À personnaliser selon votre charte graphique */
    --primary-color: #f59e0b; /* Orange/jaune solaire */
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    
    --secondary-color: #0ea5e9; /* Bleu ciel */
    --secondary-dark: #0284c7;
    
    --accent-color: #10b981; /* Vert écologique */
    
    /* Couleurs neutres */
    --dark-color: #1e293b;
    --dark-light: #334155;
    --gray-color: #64748b;
    --light-gray: #cbd5e1;
    --lighter-gray: #f1f5f9;
    --white-color: #ffffff;
    
    /* Typographie */
    --body-font: 'Inter', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    
    /* Poids de police */
    --font-light: 300;
    --font-regular: 400;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Espacements */
    --header-height: 4rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive typography */
@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--white-color);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button,
input,
textarea,
select {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: none;
    outline: none;
}

/* ==================== CLASSES RÉUTILISABLES ==================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 5rem 0;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--primary-color);
}

/* Boutons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-semibold);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.button--secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.button--secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.button--white {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.button--white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.button--full {
    width: 100%;
}

/* ==================== HEADER & NAVIGATION ==================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    transition: var(--transition);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    height: 3rem;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--dark-color);
    font-weight: var(--font-semibold);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* Sélecteur de langue */
.nav__item:has(span.nav__link) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__item span.nav__link {
    font-weight: var(--font-bold);
    cursor: default;
}

.nav__item span.nav__link::after {
    display: none;
}

.nav__toggle,
.nav__close {
    display: none;
}

/* Menu mobile */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white-color);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

/* ==================== HOME / HERO SECTION ==================== */
.home {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white-color) 100%);
}

.home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.home__brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.home__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.home__logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.home__company-name {
    font-size: 3rem;
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
}

.home__description {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

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

.home__image {
    position: relative;
}

.home__hero-card {
    width: 100%;
    min-height: 400px;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 100%),
        url('../images/IMG_7425.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    text-align: center;
    padding: 2rem;
}

.home__image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .home__container {
        grid-template-columns: 1fr;
    }
    
    .home__image {
        order: -1;
    }

    .home__hero-card {
        min-height: 280px;
        font-size: 1.25rem;
        padding: 1.5rem;
    }
    
    .home__brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .home__logo {
        width: 100px;
        height: 100px;
    }
    
    .home__company-name {
        font-size: 2.5rem;
    }
}

/* ==================== SOLUTIONS ==================== */
.solutions {
    background-color: var(--white-color);
}

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

.solution__card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--lighter-gray);
}

.solution__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.solution__card--featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--white-color) 100%);
}

.solution__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
}

.solution__icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution__icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-dark);
}

.solution__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.solution__description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.solution__features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution__features li {
    color: var(--dark-light);
}

.solution__features strong {
    color: var(--primary-color);
}

/* ==================== EXPERTISE ==================== */
.expertise {
    background-color: var(--lighter-gray);
}

.expertise__highlight {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    text-align: center;
}

.expertise__icon-large {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.expertise__icon-large svg {
    width: 3rem;
    height: 3rem;
    color: var(--primary-dark);
}

.expertise__highlight h3 {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.expertise__lead {
    font-size: 1.125rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
}

.expertise__image {
    margin: 3rem auto;
    max-width: 900px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.expertise__image img {
    width: 100%;
    height: auto;
    display: block;
}

.expertise__image-caption {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.expertise__image-caption i {
    font-size: 1.5rem;
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise__item {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.expertise__item h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.expertise__item p {
    color: var(--gray-color);
}

/* Tableau de comparaison */
.expertise__comparison {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.expertise__comparison h4 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--h3-font-size);
}

.comparison__table {
    display: grid;
    gap: 0.5rem;
}

.comparison__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--lighter-gray);
    border-radius: 0.5rem;
    align-items: center;
}

.comparison__row--header {
    background-color: var(--dark-color);
    color: var(--white-color);
    font-weight: var(--font-semibold);
}

.comparison__row > div {
    text-align: center;
}

.comparison__row > div:first-child {
    text-align: left;
    font-weight: var(--font-semibold);
}

@media screen and (max-width: 768px) {
    .comparison__row {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: 0.5rem;
    }
    
    .comparison__row > div:first-child {
        text-align: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--light-gray);
    }
}

/* ==================== CERTIFICATIONS ==================== */
.certifications {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.certifications__content {
    max-width: 1000px;
    margin: 0 auto;
}

.certifications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.certification__card {
    background-color: var(--white-color);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.certification__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certification__badge {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certification__card h3 {
    font-size: var(--h4-font-size);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.certification__card p {
    color: var(--gray-color);
    font-size: var(--small-font-size);
    line-height: 1.6;
}

.certifications__highlight {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.certifications__highlight p {
    margin: 0;
    color: var(--dark-color);
}

.certifications__highlight strong {
    color: var(--accent-color);
}

/* ==================== AVANTAGES ==================== */
.benefits {
    background-color: var(--white-color);
}

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

.benefit__card {
    text-align: center;
    padding: 2rem;
    background-color: var(--lighter-gray);
    border-radius: 1rem;
    transition: var(--transition);
}

.benefit__card:hover {
    background-color: var(--white-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.benefit__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit__card h3 {
    font-size: var(--h4-font-size);
    margin-bottom: 0.5rem;
}

.benefit__card p {
    color: var(--gray-color);
}

/* ==================== FORMULAIRE DE DEVIS ==================== */
.quote {
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white-color) 100%);
}

.quote__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.quote__info h3 {
    margin-bottom: 1rem;
}

.quote__info p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.quote__checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote__checklist li {
    color: var(--dark-light);
    font-weight: var(--font-semibold);
}

/* Formulaire */
.quote__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form__section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__section h4 {
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lighter-gray);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group label {
    font-weight: var(--font-semibold);
    color: var(--dark-color);
}

.form__group input,
.form__group textarea,
.form__group select {
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    transition: var(--transition);
    background-color: var(--white-color);
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form__radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio__label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.radio__label:hover {
    border-color: var(--primary-color);
    background-color: rgba(245, 158, 11, 0.05);
}

.radio__label input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form__group--checkbox {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox__label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox__label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.form__note {
    text-align: center;
    color: var(--gray-color);
    font-size: var(--small-font-size);
    margin-top: -1rem;
}

@media screen and (max-width: 968px) {
    .quote__container {
        grid-template-columns: 1fr;
    }
}

/* ==================== CALL TO ACTION ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
}

.cta__container {
    text-align: center;
    padding: 3rem 2rem;
}

.cta__container h2 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.cta__container p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo img {
    height: 3rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.footer__certifications {
    color: var(--primary-light);
    font-size: var(--small-font-size);
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.footer__certifications strong {
    color: var(--primary-light);
}

.footer__title {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    color: var(--light-gray);
    font-size: var(--small-font-size);
}

/* ==================== SCROLL BAR ==================== */
::-webkit-scrollbar {
    width: 0.6rem;
    background-color: var(--lighter-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

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

/* Animation au scroll (à activer avec JavaScript) */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .home__buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}
