/* ================================
   FONTS
   ================================ */
@font-face {
    font-family: 'Couture';
    src: url('fonts/Couture-Bold.otf') format('opentype'),
         url('fonts/Couture-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    /* SF Pro / System Fonts stack */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================
   CONTAINER
   ================================ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('images/couverture.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 100;
    padding: 1rem 2rem;
    background-color: #024b40;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links .btn-portail {
    background-color: #FF6B35;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-links .btn-portail:hover {
    background-color: #FF8F66;
    opacity: 1;
    transform: translateY(-1px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-bottom: 6rem;
}

/* Hero Box - Rectangle vert */
.hero-box {
    background-color: rgba(2, 75, 64, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    max-width: 650px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .hero-box {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }
}

.hero-title {
    color: #ffffff;
    font-family: 'Couture', sans-serif;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 4rem); /* Légèrement plus grand pour Couture */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ================================
   DOWNLOAD BUTTONS
   ================================ */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 600px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff;
    color: #024b40;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #f8faf9;
}

.store-button:active {
    transform: translateY(-1px);
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #024b40;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #024b40;
    margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: #f8faf9;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(2, 75, 64, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #024b40, #04a08a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #024b40;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.7;
}

/* ================================
   REMUNERATION SECTION
   ================================ */
.remuneration {
    padding: 5rem 0;
    background-color: #f8faf9;
    text-align: center;
}

.remuneration-intro {
    font-size: 1.1rem;
    color: #555555;
    max-width: 550px;
    margin: 0 auto 3rem;
}

.remuneration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .remuneration-content {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
}

/* Donut Chart SVG */
.chart-container {
    display: flex;
    justify-content: center;
}

.donut-chart-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #e67e22; /* Orange Midow */
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: #024b40; /* Vert Producteur */
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut-percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: #024b40;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.donut-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-item.producer .legend-color {
    background-color: #024b40;
}

.legend-item.midow .legend-color {
    background-color: #e67e22;
}

.legend-text {
    display: flex;
    flex-direction: column;
}

.legend-percent {
    font-size: 1.5rem;
    font-weight: 800;
    color: #024b40;
}

.legend-item.midow .legend-percent {
    color: #e67e22;
}

.legend-label {
    font-size: 0.95rem;
    color: #666666;
}

/* ================================
   STORYTELLING SECTION
   ================================ */
.storytelling {
    padding: 5rem 0;
    background-color: #ffffff;
    overflow: hidden; /* Pour l'illustration qui dépasse potentiellement */
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 900px) {
    .story-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

.story-text {
    flex: 1;
    max-width: 600px;
}

.story-title {
    text-align: left; /* Force left align inside this section */
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .story-title {
        text-align: center;
    }
}

.story-paragraph {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.story-paragraph strong {
    color: #024b40;
    font-weight: 700;
}

.story-visual {
    flex: 1;
    position: relative;
    max-width: 500px;
    width: 100%;
}

.story-image-container {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.story-image-container:hover {
    transform: rotate(0deg);
}

.story-photo {
    width: 100%;
    height: auto;
    display: block;
}

.farmer-illustration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    z-index: 2;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 5px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ================================
   CTA SECTION
   ================================ */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f7f5 0%, #e8f4f1 100%);
    text-align: center;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #024b40;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #555555;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta .store-button {
    background-color: #024b40;
    color: #ffffff;
}

.cta .store-button:hover {
    background-color: #01362e;
}

.cta .store-label {
    color: rgba(255, 255, 255, 0.8);
}

.cta .store-name {
    color: #ffffff;
}

.cta .store-icon {
    fill: #ffffff;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: #024b40;
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-family: 'Couture', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

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

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 1rem;
    width: 100%;
}

/* ================================
   LEGAL PAGES
   ================================ */
.legal-page {
    background-color: #ffffff;
    color: #333;
}

.legal-header {
    background-color: #024b40;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.legal-content {
    padding: 4rem 1.5rem;
    max-width: 800px; /* Lecture plus confortable */
}

.legal-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #024b40;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: #024b40;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: #024b40;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

.legal-content strong {
    font-weight: 600;
    color: #000;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.legal-content a {
    color: #024b40;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.7;
}

.legal-section {
    margin-bottom: 3rem;
}
