:root {
    /* Brand Kit Colors - Exact */
    --dark-blue: #173768;
    --green: #076c44;
    --sage: #a8cdb8;
    --teal: #71a8a9;
    --orange: #f05223;
    --cream: #fbf8ef;
    
    /* Light section backgrounds */
    --section-white: #ffffff;
    --section-cream: #faf9f6;
    --section-sage-light: #f4f9f6;
    --section-blue-light: #f5f8fc;
    
    /* Derived colors */
    --orange-dark: #d4461c;
    --dark-blue-light: #1e4a8a;
    --green-light: #0a8a58;
    --steel-teal: #2d5a8a;
    
    /* Neutrals */
    --white: #FFFFFF;
    --text-dark: #173768;
    --text-medium: #4A5568;
    --text-light: #718096;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--section-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.nav.scrolled,
.nav.nav--solid  {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(23, 55, 104, 0.1);
    padding: 0.75rem 5%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 140px;
    width: auto;
    transition: all 0.3s ease;
    background: var(--white);
    border-radius: 10px;
    padding: 6px;
}

.nav.scrolled .nav-logo-img,
.nav.nav--solid .nav-logo-img {
    height: 100px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.15rem;
}

.nav-menu li a {
    white-space: nowrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}


.nav.scrolled .nav-menu a,
.nav.nav--solid .nav-menu a {
    color: var(--dark-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.25rem;
}

.nav.scrolled .lang-switch,
.nav.nav--solid .lang-switch {
    background: #e8f0ec;
    border: 1px solid #d0ddd6;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav.scrolled .lang-switch a,
.nav.nav--solid .lang-switch a {
    color: #173768;
    font-weight: 500;
}

.lang-switch a.active {
    color: var(--white);
    background: var(--steel-teal);
}

.lang-switch a:hover:not(.active) {
    background: var(--sage);
    color: var(--dark-blue);
}

.nav-cta {
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--steel-teal);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav.scrolled .nav-cta,
.nav.nav--solid .nav-cta {
    color: var(--steel-teal);
}

.nav-cta:hover {
    background: var(--steel-teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(90, 155, 176, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav.scrolled .mobile-menu-btn span,
.nav.nav--solid .mobile-menu-btn span {
    background: var(--dark-blue);
}

/* Mobile Menu Open State */
.nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-menu.open li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu.open li:last-child {
    border-bottom: none;
}

.nav-menu.open a {
    display: block;
    padding: 1rem 0;
    color: var(--white);
    font-size: 1rem;
}

.nav.scrolled .nav-menu.open,
.nav.nav--solid .nav-menu.open {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .nav-menu.open li,
.nav.nav--solid .nav-menu.open li {
    border-bottom: 1px solid rgba(23, 55, 104, 0.1);
}

.nav.scrolled .nav-menu.open a,
.nav.nav--solid .nav-menu.open a {
    color: var(--dark-blue);
}

/* Hamburger animation */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section - UNDERWATER SEAWEED VIDEO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(23, 55, 104, 0.85) 0%, 
        rgba(23, 55, 104, 0.5) 50%,
        rgba(7, 108, 68, 0.4) 100%);
    z-index: 2;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-bg video {
    z-index: 1;
}

.hero-bg img {
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg video {
        display: none;
    }
}

/* Decorative leaf pattern on hero */
.hero-leaves {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 3;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 0 8%;
    padding-top: 45vh;
    max-width: 900px;
}

.hero-content h1,
.hero-subtitle,
.hero-cta {
    margin-left: -44px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(168, 205, 184, 0.25);
    border: 1px solid rgba(168, 205, 184, 0.4);
    border-radius: 25px;
    color: var(--sage);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-tagline svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    font-weight: 700;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--sage);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 82, 35, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--dark-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(23, 55, 104, 0.25);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
    z-index: 4;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--orange);
}

/* ============================================
   LIGHT SECTIONS WITH MADAGASCAR PHOTOS
   ============================================ */

/* Mission Section - Light with Photo */
.mission {
    padding: 7rem 8%;
    background: var(--section-blue-light);
    position: relative;
    overflow: hidden;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.mission-content {
    position: relative;
    z-index: 1;
}

.mission h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--section-sage-light);
    border-radius: 10px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.stat-label {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
}

.mission-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(23, 55, 104, 0.12);
}

.mission-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.mission-photo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-photo-badge span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-photo-badge strong {
    font-size: 1.25rem;
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .mission-photo img {
        object-position: right center;
    }
}

/* About Section - Cream with Photo */
.about {
    padding: 7rem 8%;
    background: var(--section-cream);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(23, 55, 104, 0.12);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(7, 108, 68, 0.3);
}

.about-image-accent svg {
    width: 70px;
    height: 70px;
    color: var(--white);
    opacity: 0.9;
}

.about-content {
    padding: 1rem 0;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(23, 55, 104, 0.08);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--green);
}

.feature-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Sections avec image de fond */
.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.has-bg-image .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 55, 104, 0.7);
    z-index: 1;
}

.has-bg-image > *:not(.section-overlay) {
    position: relative;
    z-index: 2;
}

/* Textes blancs sur fond image */
.has-bg-image .section-label,
.has-bg-image h2,
.has-bg-image h3,
.has-bg-image h4,
.has-bg-image p {
    color: #fff;
}

.values-grid-wrapper.has-bg-image .value-card {
    background: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.values-grid-wrapper.has-bg-image .value-card:hover {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.values-grid-wrapper.has-bg-image .value-card h3 {
    color: var(--dark-blue);
}

.values-grid-wrapper.has-bg-image .value-card p {
    color: var(--text-medium);
}

.values-grid-wrapper.has-bg-image .value-icon {
    background: linear-gradient(135deg, var(--green), var(--teal));
}

.values-grid-wrapper.has-bg-image .value-icon svg {
    color: #fff;
}

/* Cards sur fond image - Products */
.has-bg-image .product-card {
    background: rgba(255, 255, 255, 0.95);
}

/* Cards sur fond image - Team */
.has-bg-image .team-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.has-bg-image .team-info h3,
.has-bg-image .team-info span {
    color: #fff;
}

/* Cards sur fond image - Partners */
.has-bg-image .partner-card {
    background: rgba(255, 255, 255, 0.95);
}

/* Cards sur fond image - Testimonials */
.has-bg-image .testimonial-card {
    background: rgba(255, 255, 255, 0.95);
}

.has-bg-image .testimonial-quote {
    color: var(--text-medium);
}

.has-bg-image .testimonial-info h4 {
    color: var(--dark-blue);
}

.has-bg-image .testimonial-info span {
    color: var(--text-light);
}

/* Contact sur fond image */
.has-bg-image .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
}

.has-bg-image .contact-info .section-label,
.has-bg-image .contact-info h2,
.has-bg-image .contact-info p,
.has-bg-image .contact-item,
.has-bg-image .contact-item a {
    color: #fff;
}

.has-bg-image .contact-item svg {
    stroke: #fff;
}

/* Values Section - Sage Light */
.values {
    padding: 7rem 8% 0;
    background: var(--section-white);
    position: relative;
}

/* Wrapper avec image de fond pour la grille des valeurs */
.values-grid-wrapper {
    position: relative;
    padding: 3rem 0 4rem;
    margin: 0 -8%;
    padding-left: 8%;
    padding-right: 8%;
}

.values-grid-wrapper.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.values-grid-wrapper .section-overlay {
    display: none;
}

.values-grid-wrapper .values-grid {
    position: relative;
    z-index: 2;
}

.values-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.values-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 85%;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(23, 55, 104, 0.08);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateX(8px);
    box-shadow: 0 20px 50px rgba(23, 55, 104, 0.12);
    border-color: var(--sage);
}

.value-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.value-content {
    flex: 1;
}

.value-card.has-image .value-content {
    flex: 0 0 50%;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Value card avec image */
.value-card.has-image {
	display: flex;
	width: 100;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.value-image {
    align-self: stretch;
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.value-image img {
    width: 100%;
    height: 100%;         
    object-fit: cover;       
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
    
    transition: transform 0.4s ease;
}

.value-card:hover .value-image img {
    transform: scale(1.05);
}

.value-card.has-image .value-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Styles pour images sur fond image */
.values-grid-wrapper.has-bg-image .value-image {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .value-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
    }

    .value-card.has-image {
        padding: 0;
        padding-bottom: 1.5rem;
    }

    .value-image {
        flex: none;
        width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .value-image img {
        width: 100%;
        height: 100%;
    }

    .value-card.has-image .value-content {
        flex: none;
        padding: 1.5rem;
    }
}

/* Products Section - White with Photos */
.products {
    padding: 7rem 8%;
    background: var(--section-white);
    position: relative;
}

.products-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.products-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.products-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.product-card {
    background: var(--section-cream);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid transparent;
    width: 350px;
    max-width: 450px;
	display: flex;
	flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--orange));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(23, 55, 104, 0.12);
    border-color: var(--teal);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-photo {
    width: 100%;
    overflow: hidden;
	flex-shrink: 0;
}

/* FORCE LES IMAGES DE LA PAGE PRODUIT A DEVENIR UN CARRÉ PARFAIT */
.product-photo img, 
.wp-post-image { /* La classe par défaut que WordPress donne aux thumbnails */width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Force un ratio carré parfait (400x400 ou 800x800 virtuel) */
    object-fit: cover !important;    /* Centre le produit et coupe les excès proprement */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.product-photo img {
    width: 100%;
    height: 100%;
	object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-photo img {
    transform: scale(1.03);
}

.product-content {
    padding: 1.5rem;
    text-align: center;
	flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--dark-blue);
    margin-bottom: 0.6rem;
}

.product-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.product-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 0.75rem;
}

/* Impact Section - Light Blue with Photo */
.impact {
    padding: 5rem 8%;
    background: var(--section-blue-light);
    position: relative;
    overflow: hidden;
}

.impact-header-main {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.impact-header-main h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.impact-intro {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

.impact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(23, 55, 104, 0.08);
}

.impact-block:last-of-type {
    margin-bottom: 0;
}

.impact-block.reverse {
    direction: rtl;
}

.impact-block.reverse > * {
    direction: ltr;
}

.impact-block-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-block-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.impact-block-content h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.impact-block-content > p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.impact-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.impact-stat {
    text-align: center;
}

.impact-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.impact-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.impact-block-content .btn {
    margin-top: 0.5rem;
}

.impact-block-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(23, 55, 104, 0.12);
}

.impact-block-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Infographie stats par culture */
.crop-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.crop-stat-card {
    background: var(--section-sage-light);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(168, 205, 184, 0.4);
    transition: all 0.3s ease;
}

.crop-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(23, 55, 104, 0.1);
    border-color: var(--teal);
}

.crop-stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.crop-stat-name {
    font-size: 0.95rem;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.crop-stat-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crop-stat-pill {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 10px;
    padding: 0.5rem 0.5rem;
}

.crop-stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1.1;
}

.crop-stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .crop-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .crop-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Trial Results Section */
.trial-results {
    padding: 5rem 8%;
    background: var(--section-cream);
}

.trial-results-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.trial-results-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.trial-results-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
}

.trial-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(168, 205, 184, 0.4);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--teal);
}

.trial-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(23, 55, 104, 0.08);
}

.trial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.trial-table thead {
    background: var(--dark-blue);
    color: var(--white);
}

.trial-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(168, 205, 184, 0.2);
    color: var(--text-dark);
}

.trial-table tbody tr:hover {
    background: rgba(168, 205, 184, 0.1);
}

.trial-table tbody tr:last-child td {
    border-bottom: none;
}

.result-positive {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(7, 108, 68, 0.1);
    color: var(--green);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.trial-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trial-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.trial-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trial-cta p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Partners Section - Cream with scrolling logos */
.partners {
    padding: 5rem 0;
    background: var(--section-cream);
    overflow: hidden;
    position: relative;
}

.partners-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.partners-header h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.partners .section-label {
    display: inline-flex !important;
    color: var(--green) !important; 
}

.partners .section-label::before {
    content: '' !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background: var(--orange) !important; 
}

.partners-track {
    display: flex;
    animation: scrollLogos 25s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

/* Ancien style partner-logo supprimé - voir section carrousel partenaires */

/* CTA Section - White with accent border */
.cta {
    padding: 6rem 8%;
    background: var(--section-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 8 C20 18, 20 30, 30 40 C40 30, 40 18, 30 8' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1.25rem;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: var(--orange);
}

.cta .btn-primary:hover {
    background: var(--white);
    color: var(--green);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    padding: 4.5rem 8% 1.5rem;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(168, 205, 184, 0.2);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    background: var(--white);
    border-radius: 10px;
    padding: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(168, 205, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--orange);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--sage);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--sage);
}

/* Testimonials Section */
.testimonials {
    padding: 7rem 8%;
    background: var(--section-white);
    position: relative;
}

.testimonials-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.testimonials-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark-blue);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(23, 55, 104, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Photo en haut, agrandie et centrée */
.testimonial-photo {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #e8f0f5;
}

.testimonial-photo .testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-info {
    margin-bottom: 1rem;
}

.testimonial-info h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.rating-stars .star {
    font-size: 1rem;
    color: var(--text-light);
}

.rating-stars .star--filled {
    color: #f59e0b;
}

.testimonial-quote {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--sage);
    margin-bottom: 1rem;
}

/* Ancien style author - non utilisé maintenant */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 205, 184, 0.3);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-info strong {
    display: block;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

/* Team Section */
.team {
    padding: 7rem 8%;
    background: var(--section-sage-light);
    position: relative;
}

.team-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.team-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.team-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(23, 55, 104, 0.15);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.team-card h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Popup biographie au survol */
.team-card {
    position: relative;
}

.team-card.has-bio {
    cursor: pointer;
}

.team-bio-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 400px;
    max-width: 90vw;
    background: var(--dark-blue);
    color: var(--white);
    padding: 1.25rem;
    padding-top: 2.5rem;
    padding-right: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.team-bio-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: var(--dark-blue);
}

.team-bio-popup p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.team-bio-close {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.team-bio-close:hover {
    opacity: 1;
}

/* Desktop: hover */
@media (hover: hover) {
    .team-card:hover .team-bio-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile: clic */
@media (hover: none), (max-width: 768px) {
     .team-bio-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        max-height: 75vh;
        overflow-y: auto;
        z-index: 999999;
        opacity: 0;
        visibility: hidden;
    }

    .team-bio-popup.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .team-bio-close {
        display: block;
    }

    .team-bio-popup::after {
        display: none;
    }

    .team-card:has(.team-bio-popup.active) {
        z-index: 100;
        position: relative;
    }
	 body.bio-popup-open {
        overflow: hidden;
    }
}

.team-position {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Conteneur principal fixe */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

/* État affiché (animé) */
.toast-container.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Style de la boîte */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    padding: 14px 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Variantes Succès / Erreur */
.toast-container.success .toast-content {
    border-left: 5px solid #28a745;
    color: #155724;
}

.toast-container.error .toast-content {
    border-left: 5px solid #dc3545;
    color: #721c24;
}

/* Contact Section */
.contact-section {
    padding: 7rem 8%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e4a8a 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info .section-label {
    color: var(--sage);
}

.contact-info .section-label::before {
    background: var(--sage);
}

.contact-info h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--sage);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--sage);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#contact-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

#contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-messages {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-messages.success {
    background: #e6f4ea;
    color: #1e7e34;
    border-left: 4px solid #1e7e34;
}

.form-messages.error {
    background: #fdecea;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(168, 205, 184, 0.3);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(113, 168, 169, 0.1);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.form-success h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner a {
    color: var(--sage);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--green);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--green-light);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    border-color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .mission-grid,
    .about-grid,
    .impact-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .impact-block.reverse {
        direction: ltr;
    }

    .impact-block-image {
        order: -1;
    }

    .mission-photo {
        order: -1;
    }

    .mission-photo img {
        height: 350px;
    }

    .impact-block-image img {
        height: 280px;
    }

    .impact-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1150px) {
    /* Cache le menu et le bouton contact */
    .nav-menu {
        display: none;
    }
    .nav-actions .nav-cta {
        display: none;
    }
    /* Affiche le hamburger */
    .mobile-menu-btn {
        display: flex;
    }
}
@media (min-width: 1101px) {
    .nav-actions .nav-cta {
        display: inline-flex !important;
    }
}
@media (max-width: 1100px) {
    .nav-menu {
        gap: clamp(0.3rem, 0.8vw, 0.6rem);
    }
    .nav-menu a {
        font-size: 0.72rem;
    }
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-logo-img {
        height: 80px;
    }

    .nav.scrolled .nav-logo-img,
	.nav.nav--solid .nav-logo-img {
        height: 60px;
    }

    .hero-content {
        padding: 0 5%;
    }

    .hero-content h1,
    .hero-subtitle,
    .hero-cta {
        margin-left: 0;
    }

    .mission-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .impact-block-content h3 {
        font-size: 1.25rem;
    }

    .cta-wrapper {
        padding: 3rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 5%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   TRIALS PAGE - FILTERS & TABLE
   ================================ */

.trials-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--section-cream);
    border-radius: 8px;
}

.trials-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trials-filter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sage);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    min-width: 180px;
}

.trials-filter:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(7, 108, 68, 0.1);
}

.trials-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-sm svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.trials-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trials-table thead {
    background: var(--green);
    color: white;
}

.trials-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trials-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.trials-table tbody tr:hover {
    background: var(--section-cream);
}

.trials-table tbody tr:last-child td {
    border-bottom: none;
}

.yield-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(7, 108, 68, 0.1);
    color: var(--green);
    border-radius: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .trials-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .trials-filters {
        flex-direction: column;
    }

    .trials-filter {
        width: 100%;
    }

    .trials-actions {
        justify-content: center;
    }

    .trials-table thead {
        display: none;
    }

    .trials-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .trials-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem;
        border-bottom: 1px solid #f5f5f5;
    }

    .trials-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-medium);
    }

    .trials-table td:last-child {
        border-bottom: none;
    }
}

/* ============ SECTION PARTENAIRES ============ */
.partners {
    padding: 7rem 8%;
    background: var(--section-white);
    position: relative;
}
.partners-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.partners-header .section-label {
    display: inline-block;
    color: var(--green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.partners-description {
    color: var(--text-medium);
    line-height: 1.6;
}


/* Grille partenaires centrée */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
}
.partner-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: calc(50% - 1rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.partner-link { text-decoration: none; color: inherit; display: block; }
.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}
.partner-card:hover .partner-logo img { filter: grayscale(0%); }
.partner-description {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}
.partner-name-fallback {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ==========================================================================
   Pages spécifiques (Résultats, Produits)
   ========================================================================== */

/* Header de page avec fond vert */
.page-header--green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: white;
    padding: 10rem 2rem 4rem;
    text-align: center;
}

/* Header de page avec photo */
.page-header--photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 10rem 2rem 4rem;
    text-align: center;
}

.page-header--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,55,104,0.6) 0%, rgba(23,55,104,0.4) 100%);
    z-index: 1;
}

.page-header--photo .container {
    position: relative;
    z-index: 2;
}

.page-header--photo .section-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.page-header--green .container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header--green .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header--green .page-intro {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Page Résultats d'essais */
.trials-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trials-stats {
    padding: 3rem 0;
    background: #f9f9f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.stat-card .stat-label {
    display: block;
    color: #666;
    margin-top: 0.5rem;
}

.stat-card--highlight {
    background: var(--dark-blue);
}

.stat-card--highlight .stat-number,
.stat-card--highlight .stat-label {
    color: white;
}

.trials-table-section {
    padding: 4rem 0;
}

.trials-table-section .section-title {
    font-size: 1.75rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.trials-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trials-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trials-filter {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 180px;
}

.table-responsive {
    overflow-x: auto;
}

.trials-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(23, 55, 104, 0.08);
}

.trials-table th,
.trials-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(168, 205, 184, 0.2);
}

.trials-table th {
    background: var(--dark-blue);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trials-table tbody tr:hover {
    background: rgba(168, 205, 184, 0.1);
}

.trials-table tbody tr:last-child td {
    border-bottom: none;
}

.yield-badge {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Trials Gallery - Marquee continu */
.trials-gallery {
    padding: 2rem 0;
    background: var(--section-light);
    overflow: hidden;
}

.marquee-carousel {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-slide {
    flex-shrink: 0;
    width: 280px;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.marquee-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Garde les visages visibles */
    transition: transform 0.3s ease;
}

.marquee-slide:hover img {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-slide {
        width: 200px;
        height: 140px;
    }

    .marquee-track {
        animation-duration: 30s;
    }
}

.marquee-slide {
    cursor: pointer;
}

/* Lightbox popup */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.trials-cta {
    padding: 4rem 0;
    background: #f9f9f9;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cta-box h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta-box p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Single Product Page */
.single-seaweed_product .site-main {
    padding-top: 100px;
}

.single-seaweed_product .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header--green {
        padding: 8rem 1.5rem 3rem;
    }
    
    .page-header--green .page-title {
        font-size: 2rem;
    }
    
    .trials-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trials-filters {
        flex-direction: column;
    }
    
    .trials-filter {
        width: 100%;
    }
    
    .trials-table th,
    .trials-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.product-single {
    padding-top: 0;
}

.product-header {
    padding: 14rem 2rem 4rem;
    color: white;
}

.product-header--marine {
    background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
}

.product-header--soil {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

.product-header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.product-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.product-header-image {
    flex-shrink: 0;
    max-width: 400px;
}
	
.product-header-image img {
    max-width: 100%;
	height: auto;
    border-radius: 16px;
	display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-body {
    padding: 4rem 0;
}

.product-body .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.testimonial-card-full *,
.product-body .section-content * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
	line-height: inherit !important;
}

.product-section--full {
    grid-column: 1 / -1;
}

.product-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-content {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.section-content p,
.section-content ul,
.section-content ol,
.section-content li {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.75rem;
}

.section-content ul,
.section-content ol {
    padding-left: 1.5rem;
}

.section-content ul {
    list-style: disc;
}

.section-content ol {
    list-style: decimal;
}

.section-content p:last-child,
.section-content ul:last-child,
.section-content ol:last-child {
    margin-bottom: 0;
}

.section-content strong {
    color: #333;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

.dosage-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9f4;
    border-radius: 8px;
    border-left: 4px solid var(--green);
}

.crops-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.crop-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffff;
    border-radius: 8px;
}

.crop-icon {
    width: 24px;
    height: 24px;
}

.crop-name {
	color: #555;
}

.product-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .product-header {
        padding: 2rem 1.5rem 2rem;
    }

    .product-header-content {
        grid-template-columns: 1fr;
        text-align: center;
		justify-items: center;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-header-image {
        order: -1;
		max-width: 100%; 
        width: 280px;
        margin: 0 auto 1.5rem; 
    }
	
	.product-header-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .product-cta .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Mobile - Boutons centrés et textes justifiés
   ========================================================================== */
@media (max-width: 768px) {
    /* Empêcher le scroll horizontal sur mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Centrage des boutons sur mobile */
    .hero-content {
        text-align: center;
    }
    .hero-cta {
        margin-left: auto;
        margin-right: auto;
    }

    .impact .btn-secondary,
    .trial-cta .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .trial-cta {
        text-align: center;
    }

    /* Justification des textes longs sur mobile */
    .mission-text,
    .about-text p,
    .value-text,
    .impact-text,
    .partners-description,
    .team-description,
    .testimonials-description,
    .testimonial-quote,
    .partner-description,
    .product-description,
    section p {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

/* ==========================================================================
   iOS Mobile Fixes - iPhone 13 / iPhone SE
   ========================================================================== */
@media (max-width: 480px) {
    /* Fix: Titre Hero */
    .hero-content {
        padding-top: 180px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content h1,
    .hero-subtitle,
    .hero-cta {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    /* Fix: Logo */
    .nav-logo-img {
        height: 60px;
    }

    .nav.scrolled .nav-logo-img {
        height: 50px;
    }

    /* Fix: Sélecteur de langue compact */
    .lang-switch {
        padding: 0.15rem;
    }

    .lang-switch a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 375px) {
    .hero-content {
        padding-top: 160px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-logo-img {
        height: 50px;
    }

    .lang-switch a {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}
