/* ------------------------------ */
/* VARIABLES */
/* ------------------------------ */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #222;
    --transition-speed: 0.3s;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ------------------------------ */
/* RESET */
/* ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: var(--text-color);
    line-height: 1.7;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ------------------------------ */
/* TYPOGRAPHY */
/* ------------------------------ */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* LINKS */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}
a:hover {
    color: var(--secondary-color);
}

/* ------------------------------ */
/* CTA BUTTON */
/* ------------------------------ */
.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-speed);
    border: none;
}
.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ------------------------------ */
/* HEADER */
/* ------------------------------ */
.main-header {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0; 
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ------------------------------ */
/* LOGO */
/* ------------------------------ */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    max-width: 160px; 
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 110px;
    }
}

/* OLD logo text (désactivé si tu utilises le logo image) */
.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ------------------------------ */
/* NAVIGATION DESKTOP */
/* ------------------------------ */
.main-nav { 
    display: flex; /* Nav visible sur desktop */
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 4px;
    position: relative;
    text-decoration: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -3px;
    left: 0;
    transition: 0.3s;
}

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

/* ------------------------------ */
/* LANGUAGES */
/* ------------------------------ */
.language-selector .lang-btn {
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
}

.language-selector .lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ------------------------------ */
/* BURGER MENU (Mobile) */
/* ------------------------------ */
.burger-menu {
    display: none; /* Caché sur desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-menu .bar {
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: 0.3s;
}

.burger-menu.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 7px);
}

.burger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7px);
}

/* ------------------------------ */
/* MOBILE MENU */
/* ------------------------------ */
.main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-nav.open .nav-list {
    flex-direction: column;
    gap: 30px;
}

.main-nav.open a {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */
@media (max-width: 1024px) {
    .main-nav {
        display: none; /* Nav cachée par défaut sur mobile */
    }

    .burger-menu {
        display: flex; /* Burger visible sur mobile */
    }
}

/* ------------------------------ */
/* SECTIONS */
/* ------------------------------ */
section {
    padding: 70px 0;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
                url('images/accord_hygiene_hero_image.JPEG') center/cover;
    min-height: 430px;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero h1 { font-size: 3rem; }
.hero p { font-size: 1.25rem; }

/* ------------------------------ */
/* QUI SOMMES NOUS ? - COLONNES INTUITIVES */
/* ------------------------------ */
.about-posters-horizontal {
    display: flex;
    justify-content: center;
    gap: 20px; /* espace entre les colonnes */
    margin-top: 30px;
    flex-wrap: wrap; /* s'adapte aux petits écrans */
}

.poster-column {
    flex: 1 1 45%; /* chaque colonne prend ~45% de l'espace */
    max-width: 300px; /* limite la largeur pour que ce ne soit pas trop grand */
}

.poster-column .poster {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* petit effet moderne */
    transition: transform 0.3s ease;
}

.poster-column .poster:hover {
    transform: scale(1.05); /* léger zoom au survol */
}

/* Responsive */
@media (max-width: 768px) {
    .poster-column {
        flex: 1 1 100%; /* empile verticalement sur mobile */
        max-width: 100%;
    }
}

/* ------------------------------ */
/* PROCESSUS VERTICAL EN COLONNES */
/* ------------------------------ */
.process-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    background: white;
    flex: 1 1 calc(33% - 20px); /* 3 colonnes sur grand écran */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.final-step {
    background: var(--secondary-color);
    color: white;
}

.final-step .step-number {
    color: white;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */
@media (max-width: 992px) {
    .process-step {
        flex: 1 1 calc(50% - 20px); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 600px) {
    .process-step {
        flex: 1 1 100%; /* 1 colonne sur mobile */
    }
}

/* ------------------------------ */
/* GALLERY CSS AUTOPLAY */
/* ------------------------------ */

.gallery-section {
    text-align: center;
    padding: 50px 0;
}

.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-wrapper {
    display: flex;
    width: 400%; /* 4 images = 400% */
    animation: slideAuto 16s infinite;
}

.gallery-slide {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ---- AUTOPLAY ANIMATION ---- */
/* 4 images → 0%, 25%, 50%, 75%, 100% */
@keyframes slideAuto {
    0%   { transform: translateX(0%); }
    20%  { transform: translateX(0%); }

    25%  { transform: translateX(-100%); }
    45%  { transform: translateX(-100%); }

    50%  { transform: translateX(-200%); }
    70%  { transform: translateX(-200%); }

    75%  { transform: translateX(-300%); }
    95%  { transform: translateX(-300%); }

    100% { transform: translateX(0%); }
}

@media (max-width: 768px) {
    .gallery-slide {
        height: 280px;
    }
}

/* ------------------------------ */
/* SERVICES */
/* ------------------------------ */
.services-section { background: var(--light-bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 35px;
}
.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.35s;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.service-img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 15px;
}

/* ------------------------------ */
/* PROCESS */
/* ------------------------------ */
#process { background: white; }
.product-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ------------------------------ */
/* ARTICLES */
/* ------------------------------ */
#articles .service-card {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

#articles .service-card:hover {
    transform: translateY(-5px);
}

#articles .service-card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

#articles .service-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

#articles .service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* ------------------------------ */
/* FAQ */
/* ------------------------------ */
.faq-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0;
}

.faq-item .faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.4s ease;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-toggle {
    font-weight: bold;
    transition: transform 0.3s, color 0.3s;
    color: var(--primary-color);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    color: #4CAF50; /* vert vif pour montrer que c'est ouvert */
}

/* ------------------------------ */
/* CONTACT FORM STYLING */
/* ------------------------------ */
.contact-section {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px;
}
.contact-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
}
.contact-section p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 6px;
    border: none;
    padding: 14px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .cta-button {
    width: 55%;
    margin: auto;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form .cta-button:hover {
    background: #ff6600;
}

/* Confirmation message */
#formMessage {
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }
    .contact-form .cta-button {
        width: 80%;
    }
}

/* ------------------------------ */
/* FOOTER STYLING */
/* ------------------------------ */
footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 40px 20px 20px; /* plus petit padding en bas pour le copyright */
    font-size: 0.9rem;
    line-height: 1.5;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6600;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.footer-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    text-align: center;
}

.footer-right .footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* SVG social icons styling */
.footer-right .footer-social a svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.footer-right .footer-social a:hover svg {
    transform: scale(1.2);
    fill: #ff6600;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 15px;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer-left, .footer-right {
        text-align: left;
    }
}
