/* Variables */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #00bcd4;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --shadow: 0 4px 20px rgba(0, 188, 212, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2 {
    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;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
}

.logo-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 0.75rem; /* Espace entre logo et texte */
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0;
    text-align: left;
    width: auto;
    text-indent: 0;
    white-space: nowrap;
}

.logo {
    width: 60px;
    height: auto;
    margin-top: 0;
    align-self: center;
}

.logo-link:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem;
    width: auto;
    height: auto;
    color: var(--dark-color);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
}

.menu-toggle i {
    display: block;
}

.menu-toggle.open i {
    transform: rotate(0deg);
}

nav {
    margin-left: 2rem;
}

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;
}

/* 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-links h2, .footer-contact h2 {
    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-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Section Organisation */
.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.intro .subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.services article {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.services article:hover {
    transform: translateY(-5px);
}

.services .icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.services .content {
    flex: 1;
}

.services h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.services ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.valeur-ajoutee {
    background: var(--accent-color);
    color: #4caf50;
}

.valeur-ajoutee h2 {
    color: #333;
}

.valeur-ajoutee ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.valeur-ajoutee li::before {
    content: "✔️ ";
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--light-color);
}

a:focus-visible,
button:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.menu-toggle:focus-visible {
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .logo-container {
        align-items: center;
        display: flex;
    }

    .logo-link {
        gap: 0.5rem;
        align-items: center;
    }

    .company-name {
        font-size: 1rem;
    }

    .logo {
        width: 50px;
    }

    .menu-toggle {
        display: inline-flex;
        align-self: center;
        margin-top: 0;
    }

    nav {
        width: 100%;
        margin-left: 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1rem 1.5rem;
        border-radius: 10px;
        background-color: rgba(254,252,250,255);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    }

    nav.open ul {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 0.5rem 0;
    }

    nav ul li {
        width: 100%;
    }

    .services article {
        flex-direction: column;
        text-align: center;
    }

    .services .icon {
        margin-bottom: 1rem;
    }

    .intro h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .company-name {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .intro h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        align-items: flex-start;
    }

    .company-name {
        font-size: 0.95rem;
    }

    .logo {
        width: 45px;
    }

    .intro h1 {
        font-size: 1.6rem;
    }
}
