/* Variables */
:root {
    --primary-color: #2e7d32; /* Vert foncé */
    --secondary-color: #4caf50; /* Vert moyen */
    --accent-color: #00bcd4; /* Bleu turquoise */
    --light-color: #f5f5f5; /* Blanc cassé */
    --dark-color: #333; /* Noir */
    --shadow: 0 4px 20px rgba(0, 188, 212, 0.15); /* Ombre bleutée */
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header */
header {
    background-color: rgba(254,252,250,255);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex !important;
    align-items: flex-start !important; /* aligne à gauche */
}

.logo-link {
    display: flex !important;
    flex-direction: column !important; /* Texte au-dessus, logo en-dessous */
    align-items: flex-start !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 0; /* Supprime l'espace par défaut entre les éléments flex */
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0; /* Ajustez selon besoin */
    text-align: left;
    width: 100%; /* Prend toute la largeur */
    text-indent: 15px;
}

.logo {
    width: 20%; /* Largeur naturelle du logo */
    height: auto;
    margin-top: 0; /* Ajustez si nécessaire */
    align-self: flex-start; /* Alignement à gauche */
}

/* Effet au survol */
.logo-link:hover {
    transform: scale(1.02);
}



nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav .active a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Features section */
/* Features section - Cartes cliquables */
.features {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 colonnes forcées */
    gap: 1rem;
    overflow: hidden; /* Cache tout débordement */
}

.feature-card {
    flex: 1; /* Chaque carte prend une part égale */
    min-width: 0; /* Permet le rétrécissement */
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 188, 212, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--dark-color);
    margin-bottom: 0;
}

/* Effet de clic */
.feature-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo img {
    width: 150px;
    filter: brightness(-1) invert(0);
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        margin: 2rem auto;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

   
}


/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.1rem;
        margin-left: 10px;
    }
    
    .logo {
        width: 40px; /* Réduire légèrement le logo */
    }
}

/* Pour très petits écrans */
@media (max-width: 480px) {
    .company-name {
        display: none; /* On peut masquer le texte si nécessaire */
    }
}
