/*
Theme Name: Recycleau
Theme URI: https://www.recycleau.info
Description: Thème landing page pour recycleau.info — Distributeur exclusif ClearFox® By Breizho® et micro-station Biocell® en Haute-Saône, Jura, Doubs et Territoire de Belfort. A. Guillemin.
Author: Recycleau Franche-Comté
Version: 1.0.0
Text Domain: recycleau
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
    background: #0f3a3a;
    font-size: 0.82em;
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #67e8f9;
}
.topbar a { color: #67e8f9; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 28px; }
.topbar-right span { display: flex; align-items: center; gap: 6px; }

/* ═══════════ HEADER ═══════════ */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 #ccfbf1;
    transition: box-shadow 0.3s;
}
.site-header:hover { box-shadow: 0 4px 20px rgba(15,58,58,0.06); }
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, #134e4a, #0d9488);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15em;
    box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35em;
    font-weight: 700;
    color: #0f3a3a;
    letter-spacing: -0.03em;
}
.logo-text span { color: #2d6a4f; font-weight: 500; }

/* HAMBURGER */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f3a3a;
    margin: 5px 0;
    transition: all 0.3s;
}

/* NAV */
.main-nav { display: flex; gap: 4px; align-items: center; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block;
    color: #475569;
    font-size: 0.92em;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.25s;
    position: relative;
}
.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #2d6a4f;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a:hover { color: #0f3a3a; background: #ccfbf1; }
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav li.current-menu-item a,
.main-nav li.current_page_item a { color: #0f3a3a; background: #ccfbf1; }
.main-nav li.current-menu-item a::before,
.main-nav li.current_page_item a::before { transform: scaleX(1); }

/* Last menu item = CTA button (orange) */
.main-nav li:last-child a {
    background: linear-gradient(135deg, #2d6a4f, #1a3a2a) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,106,79,0.25);
    transition: all 0.3s;
}
.main-nav li:last-child a::before { display: none; }
.main-nav li:last-child a:hover {
    background: linear-gradient(135deg, #1a3a2a, #0b1d1a) !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.35);
    transform: translateY(-1px);
}

/* ═══════════ HERO (si utilisé) ═══════════ */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f3a3a 0%, #134e4a 50%, #0d9488 100%);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15,58,58,0.92) 0%, rgba(15,58,58,0.7) 50%, rgba(15,58,58,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-kicker {
    color: #6dbc8e;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-kicker::before { content: ''; width: 36px; height: 2px; background: #6dbc8e; }
.hero h1 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.12;
    max-width: 600px;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}
.hero p {
    color: #a7f3d0;
    font-size: 1.1em;
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-white { background: #fff; color: #0f3a3a; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.btn-white:hover { background: #ccfbf1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: #0f3a3a; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); color: #fff; }
.btn-primary { background: linear-gradient(135deg, #2d6a4f, #1a3a2a); color: #fff; box-shadow: 0 2px 10px rgba(45,106,79,0.25); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(45,106,79,0.35); transform: translateY(-2px); color: #fff; }
/* Backward compat: .btn-green redirigé sur la palette orange */
.btn-green { background: linear-gradient(135deg, #2d6a4f, #1a3a2a); color: #fff; box-shadow: 0 2px 10px rgba(45,106,79,0.25); }
.btn-green:hover { box-shadow: 0 8px 28px rgba(45,106,79,0.35); transform: translateY(-2px); color: #fff; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 80px 0; }
.section-gray { background: #f0fdfa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ═══════════ PAGE CONTENT ═══════════ */
.page-hero {
    background: linear-gradient(135deg, #0f3a3a, #134e4a);
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 2.2em; font-weight: 700; }
.page-content { max-width: 900px; margin: 0 auto; padding: 56px 32px; }
.page-content h2 { font-family: 'Outfit', sans-serif; font-size: 1.5em; color: #0f3a3a; margin: 2em 0 0.8em; font-weight: 600; }
.page-content p { margin-bottom: 1.2em; line-height: 1.75; color: #444; }
.page-content a { color: #0d9488; font-weight: 500; }
.page-content a:hover { text-decoration: underline; color: #134e4a; }
.page-content img { border-radius: 10px; margin: 1.5em 0; }

/* ═══════════ FRONT PAGE WRAPPER ═══════════ */
/* Quand la home utilise la landing HTML personnalisée, pas de padding parasite */
.front-page-content { padding: 0; margin: 0; }
.front-page-content > *:first-child { margin-top: 0; }

/* ═══════════ CTA ═══════════ */
.cta-box {
    background: linear-gradient(135deg, #0f3a3a 0%, #134e4a 50%, #0d9488 100%);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(109,188,142,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-box h2 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 2em; margin-bottom: 14px; position: relative; }
.cta-box p { color: #a7f3d0; font-size: 1.08em; max-width: 500px; margin: 0 auto 28px; line-height: 1.65; position: relative; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: #042f2e; color: #94a3b8; padding: 50px 0 24px; }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.site-footer h5 { font-family: 'Outfit', sans-serif; color: #fff; font-size: 1.1em; margin-bottom: 12px; }
.site-footer h6 { color: #67e8f9; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 12px; }
.site-footer p { font-size: 0.9em; line-height: 1.7; }
.site-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #94a3b8; font-size: 0.9em; transition: color 0.2s; }
.site-footer li a:hover { color: #6dbc8e; }
.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 16px 32px 0;
    border-top: 1px solid #134e4a;
    display: flex;
    justify-content: space-between;
    font-size: 0.84em;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #6dbc8e; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
    .hero h1 { font-size: 2.2em; }
    .hero { height: 420px; }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 4px;
    }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 1.7em; }
    .hero { height: 380px; }
    .topbar { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════ FIX MENU COMPLET ═══════════ */
.site-header ul.main-nav {
    display: flex !important;
    gap: 4px;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-header ul.main-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.site-header ul.main-nav li a {
    display: block;
    color: #475569;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92em;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
    position: relative;
}
.site-header ul.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #2d6a4f;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header ul.main-nav li a:hover {
    color: #0f3a3a;
    background: #ccfbf1;
}
.site-header ul.main-nav li a:hover::after {
    transform: scaleX(1);
}
.site-header ul.main-nav li.current-menu-item a,
.site-header ul.main-nav li.current_page_item a {
    color: #0f3a3a;
    background: #ccfbf1;
}
.site-header ul.main-nav li.current-menu-item a::after,
.site-header ul.main-nav li.current_page_item a::after {
    transform: scaleX(1);
}
/* Dernier item = bouton CTA orange */
.site-header ul.main-nav li:last-child a {
    background: linear-gradient(135deg, #2d6a4f, #1a3a2a) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,106,79,0.25);
    transition: all 0.3s;
}
.site-header ul.main-nav li:last-child a::after { display: none; }
.site-header ul.main-nav li:last-child a:hover {
    background: linear-gradient(135deg, #1a3a2a, #0b1d1a) !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.35);
    transform: translateY(-1px);
}

/* ═══════════ FIX FOOTER ═══════════ */
.site-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer ul li {
    list-style: none !important;
}

/* ═══════════ RESPONSIVE MENU ═══════════ */
@media (max-width: 960px) {
    .site-header ul.main-nav {
        display: none !important;
    }
    .site-header ul.main-nav.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 4px;
    }
}

/* ═══════════════════════════════════════════════════ */
/* ═════════ LANDING PAGE AQUACLEAR.FR ═════════════ */
/* ═══════════════════════════════════════════════════ */

.ac-landing * { box-sizing: border-box; }
.ac-landing { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: #2c3e50; line-height: 1.6; max-width: 100%; }
.ac-landing h1, .ac-landing h2, .ac-landing h3, .ac-landing h4 { margin: 0 0 16px; line-height: 1.25; color: #134e4a; }
.ac-landing p { margin: 0 0 14px; }
.ac-landing ul { margin: 0 0 14px; padding-left: 22px; }
.ac-landing li { margin-bottom: 6px; }
.ac-landing a { color: #134e4a; text-decoration: none; }

/* HERO V2 - photo pleine largeur puis bloc texte */
.ac-hero { margin-bottom: 40px; border-radius: 8px; overflow: hidden; background: none; padding: 0; }
.ac-hero-photo { margin: 0; padding: 0; line-height: 0; }
.ac-hero-photo img { width: 100% !important; height: 420px !important; object-fit: cover; display: block; max-width: 100% !important; margin: 0; }
.ac-hero-text { background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%); color: #fff; padding: 48px 24px; text-align: center; }
.ac-hero-text h1 { color: #fff !important; font-size: 2.1em; margin-bottom: 18px; font-weight: 700; }
.ac-hero-text .ac-hero-sub { font-size: 1.15em; color: #ccfbf1; max-width: 720px; margin: 0 auto 28px; }
.ac-hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ac-btn { display: inline-block; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 1.05em; text-decoration: none; transition: all .2s; }
.ac-btn-primary { background: #2d6a4f; color: #fff !important; }
.ac-btn-primary:hover { background: #1a3a2a; color: #fff !important; }
.ac-btn-outline { background: transparent; color: #fff !important; border: 2px solid #fff; }
.ac-btn-outline:hover { background: #fff; color: #134e4a !important; }

/* SECTIONS */
.ac-section { padding: 40px 24px; margin-bottom: 20px; }
.ac-section-title { font-size: 1.7em; text-align: center; margin-bottom: 30px; color: #134e4a; }
.ac-section-title::after { content: ''; display: block; width: 60px; height: 3px; background: #2d6a4f; margin: 14px auto 0; }

/* ABOUT 2 COL */
.ac-two-col { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.ac-two-col > div { flex: 1 1 320px; }
.ac-badge-list { background: #f8f9fa; border-left: 4px solid #2d6a4f; padding: 20px 24px; border-radius: 4px; }
.ac-badge-list strong { color: #134e4a; }

/* PRODUCT CARD */
.ac-product { background: #f8f9fa; border-radius: 8px; padding: 36px; margin-bottom: 24px; }
.ac-product h3 { font-size: 1.4em; margin-bottom: 16px; color: #134e4a; }
.ac-product-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.ac-product-point { background: #fff; padding: 18px; border-radius: 6px; border-left: 3px solid #2d6a4f; }
.ac-product-point strong { color: #134e4a; display: block; margin-bottom: 6px; font-size: 1.02em; }
.ac-product-point p { font-size: .93em; color: #555; margin: 0; }

/* PRODUCT 2-COL (texte + schéma) */
.ac-product-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; margin-bottom: 24px; }
.ac-product-image { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin: 0; }
.ac-product-image img { width: 100% !important; height: auto !important; display: block; border-radius: 4px; max-width: 100% !important; }
.ac-product-image figcaption { font-size: .85em; color: #555; text-align: center; margin-top: 8px; font-style: italic; }

/* GALERIE INSTALLATIONS */
.ac-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ac-gallery-item { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); background: #fff; transition: transform .2s, box-shadow .2s; }
.ac-gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.ac-gallery-item img { width: 100% !important; height: 220px !important; object-fit: cover; display: block; max-width: 100% !important; }
.ac-gallery-item figcaption { padding: 12px 16px; font-size: .92em; color: #134e4a; background: #f0fdfa; font-weight: 500; }

/* LIEN BREIZHO */
.ac-breizho-cta { text-align: center; margin-top: 28px; }
.ac-link-breizho { display: inline-block; padding: 14px 26px; background: #134e4a; color: #fff !important; border-radius: 6px; font-weight: 600; transition: all .2s; border: 2px solid #134e4a; }
.ac-link-breizho:hover { background: #0d9488; border-color: #0d9488; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(19,78,74,0.25); color: #fff !important; }

/* SERVICES GRID */
.ac-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-service { background: #fff; border: 1px solid #ccfbf1; border-radius: 8px; padding: 22px; }
.ac-service-icon { width: 42px; height: 42px; background: #ccfbf1; color: #134e4a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3em; margin-bottom: 14px; font-weight: 700; }
.ac-service h4 { font-size: 1.05em; margin-bottom: 8px; color: #134e4a; }
.ac-service p { font-size: .92em; color: #555; margin: 0; }

/* ZONE */
.ac-zone { background: #f8f9fa; padding: 40px 24px; border-radius: 8px; }
.ac-zone-dept { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.ac-zone-dept > div { background: #fff; padding: 22px; border-radius: 6px; border-top: 4px solid #2d6a4f; }
.ac-zone-dept h4 { color: #2d6a4f; font-size: 1.1em; margin-bottom: 10px; font-weight: 700; letter-spacing: .5px; }
.ac-zone-dept p { font-size: .95em; color: #444; margin: 0; }

/* CONTACT */
.ac-contact { background: #134e4a; color: #fff; padding: 48px 24px; border-radius: 8px; text-align: center; }
.ac-contact h2 { color: #fff !important; }
.ac-contact p { color: #ccfbf1; }
.ac-contact-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin: 28px 0; font-size: 1.05em; }
.ac-contact-info > div { display: flex; align-items: center; gap: 8px; }
.ac-contact-info a { color: #6dbc8e !important; font-weight: 600; }
.ac-contact-address { font-style: italic; color: #a7f3d0; margin-top: 12px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .ac-product-split { grid-template-columns: 1fr; }
  .ac-product-points { grid-template-columns: repeat(2, 1fr); }
  .ac-services { grid-template-columns: repeat(2, 1fr); }
  .ac-gallery { grid-template-columns: repeat(2, 1fr); }
  .ac-zone-dept { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ac-hero-photo img { height: 260px !important; }
  .ac-hero-text { padding: 32px 18px; }
  .ac-hero-text h1 { font-size: 1.5em; }
  .ac-section { padding: 24px 14px; }
  .ac-product { padding: 24px 18px; }
  .ac-product-points { grid-template-columns: 1fr; }
  .ac-services { grid-template-columns: 1fr; }
  .ac-gallery { grid-template-columns: 1fr; }
  .ac-gallery-item img { height: 180px !important; }
}

/* ═══════════ LIGHTBOX ═══════════ */
.ac-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    cursor: zoom-out;
    animation: ac-fade-in 0.2s ease;
}
.ac-lightbox-overlay.open { display: flex; }
.ac-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    cursor: default;
}
.ac-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.2em;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: opacity 0.2s;
}
.ac-lightbox-close:hover { opacity: 0.7; }
@keyframes ac-fade-in { from { opacity: 0; } to { opacity: 1; } }
