img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* PREMIUM TOKENS - Light Theme */
    --bg: #fcfdfd; /* Très clair, presque blanc */
    --bg-alt: #f0f4f4; /* Teinte légèrement différente pour l'alternance */
    --text: #1a1a2e;
    --text-muted: #4a5568;
    --accent: #2d6a4f; /* Vert écologique profond */
    --accent-light: #40916c;
    --accent-ultra-light: #d8f3dc;
    --white: #ffffff;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 15px; /* Haute densité demandée */
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* === STRUCTURAL BASELINES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 60px 0; /* Spécifié 50-60px */
    position: relative;
    overflow: hidden;
}

/* Slant Dividers */
.slant-divider {
    position: absolute;
    width: 100%;
    height: 60px;
    background: inherit;
    z-index: 1;
}

.slant-top {
    top: -30px;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.slant-bottom {
    bottom: -30px;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

/* === NAVIGATION === */
/* Top Nav Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-links {
    display: none; /* Mobile first */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-link {
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        position: relative;
        padding: 5px 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: var(--transition);
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }
}

/* Bottom Tab Bar (Mandatory) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--white);
    border-top: 1px solid var(--bg-alt);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    flex: 1;
    padding: 5px 0;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.tab-item.active {
    color: var(--accent);
}

/* Main content padding to avoid bottom nav overlap */
main {
    padding-bottom: 65px;
    padding-top: 70px;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.btn-primary:hover, .btn-ghost:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === HERO SECTION (Diagonal Split) === */
.hero {
    height: calc(100vh - 135px);
    min-height: 500px;
    padding: 0;
    display: flex;
    position: relative;
}

.hero-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-content {
    flex: 1;
    background: var(--accent-ultra-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 2;
}

.hero-image {
    flex: 1.2;
    position: relative;
    margin-left: -15%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
    }
    .hero-split {
        flex-direction: column;
    }
    .hero-content {
        clip-path: none;
        padding: 60px 20px;
    }
    .hero-image {
        height: 300px;
        margin-left: 0;
    }
}

/* === Z-PATTERN SECTIONS === */
.z-pattern-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .z-pattern-row {
        grid-template-columns: 1fr 1.2fr;
    }
    .z-pattern-row.reverse {
        grid-template-columns: 1.2fr 1fr;
    }
    .z-pattern-row.reverse .z-image {
        order: 1;
    }
    .z-pattern-row.reverse .z-content {
        order: 2;
    }
}

.z-image {
    position: relative;
    height: 400px;
}

.z-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === GRID / CARDS === */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* High density cards */
.feature-card {
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-alt);
    text-align: left;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* === ANIMATED INFOGRAPHIC === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--accent);
    display: block;
}

.stat-bar-container {
    width: 100%;
    height: 10px;
    background: var(--bg-alt);
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 1.5s ease-out;
}

/* === VIDEO SECTION === */
.video-placeholder {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 30px;
    box-shadow: 0 0 0 15px rgba(255,255,255,0.2);
    transition: var(--transition);
}

.video-placeholder:hover .play-overlay {
    background: rgba(0,0,0,0.4);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 0 25px rgba(255,255,255,0.3);
}

/* === TESTIMONIALS (Video Style) === */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.testimonial-video-thumb {
    position: relative;
    height: 200px;
}

.testimonial-video-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.testimonial-content {
    padding: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 14px;
    margin: 0;
}

.author-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* === AWARDS BAR === */
.awards-bar {
    background: var(--bg-alt);
    padding: 30px 0;
}

.awards-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: var(--transition);
}

.award-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.award-icon {
    font-size: 30px;
    color: var(--accent);
}

.award-label {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* === FOOTER (Newsletter) === */
.footer {
    background: var(--bg-alt);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer-logo .brand {
    margin-bottom: 15px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--white);
    font-size: 14px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 15px 0;
    background: var(--bg-alt);
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--accent);
}

.breadcrumbs span {
    margin: 0 8px;
}

/* === FAQ ACCORDION === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid var(--bg-alt);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--accent-ultra-light);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 14px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.faq-item.active .ph-caret-down {
    transform: rotate(180deg);
}

/* === PRICING === */
.pricing-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.price {
    font-size: 3rem;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 10px;
    font-size: 14px;
}

/* === BLOG / ARTICLES === */
.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
}

.article-content p {
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 2rem;
    font-style: italic;
    background: var(--accent-ultra-light);
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* === CONTACT FORM === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ultra-light);
}

/* === UTILS === */
.text-center { text-align: center; }
.mb-large { margin-bottom: 60px; }
.bg-alt { background: var(--bg-alt); }
.glass { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); }

/* Custom Background Blobs (Glassmorphism effect) */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-ultra-light));
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}

.blob-1 { top: 10%; left: 5%; }
.blob-2 { bottom: 10%; right: 5%; }
