/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7a3d;
    --primary-dark: #1e5a2c;
    --primary-light: #4a9d5a;
    --secondary-color: #f39c12;
    --accent-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.cta-nav {
    background: var(--secondary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-nav:hover,
.cta-nav.active {
    background: #e67e22;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
}

.badge-gratuit {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    background: var(--bg-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================
   BUTTONS & CTA
   ========================================== */
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.cta-button-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.cta-button-secondary {
    background: var(--primary-color);
    margin-left: 1rem;
}

.cta-button-secondary:hover {
    background: var(--primary-dark);
}

.cta-center {
    text-align: center;
    margin: 2rem 0;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.process-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ==========================================
   BENEFITS GRID
   ========================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-light);
}

/* ==========================================
   PROCESS STEPS
   ========================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
}

/* ==========================================
   ELIGIBILITY & STATS
   ========================================== */
.eligibility {
    background: var(--bg-gray);
    padding: 3rem 2rem;
    border-radius: 10px;
}

.eligibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.eligibility-checklist ul,
.eligibility-info ul {
    list-style: none;
    margin-top: 1rem;
}

.eligibility-checklist li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
}

/* ==========================================
   DISCOVER GRID
   ========================================== */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.discover-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    position: relative;
}

.discover-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.discover-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.link-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* ==========================================
   FINAL CTA
   ========================================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 10px;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

/* ==========================================
   PAGE CONTENT (for content pages)
   ========================================== */
.page-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.content-section h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.highlight-box,
.cta-nav {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    max-width: 160px;
    white-space: normal;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

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

.process-list,
.problem-list,
.solution-list,
.eligibility-list,
.obligations-list {
    list-style: none;
    counter-reset: item;
}

.process-list > li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.process-list > li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-gray);
    color: var(--primary-color);
    font-weight: 600;
}

.related-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-links h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-links ul {
    list-style: none;
}

.related-links li {
    margin-bottom: 0.5rem;
}

.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-links a:hover {
    text-decoration: underline;
}

/* ==========================================
   DETAILED STEPS (AGRI-TH-117 page)
   ========================================== */
.steps-detailed {
    margin: 2rem 0;
}

.step-detailed {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 10px;
}

.step-detailed .step-number {
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.document-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.document-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.document-card ul {
    margin: 0;
    list-style: none;
}

.document-card li:before {
    content: "• ";
    color: var(--secondary-color);
    font-weight: 700;
}

.process-cee {
    margin: 2rem 0;
}

.process-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 10px;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.benefits-detailed {
    margin: 2rem 0;
}

.benefit-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 10px;
}

.benefit-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

blockquote.testimonial {
    background: var(--bg-gray);
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    margin: 2rem 0;
    font-style: italic;
}

blockquote.testimonial footer {
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================
   FAQ PAGE
   ========================================== */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 10px;
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0 1rem 2rem;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ==========================================
   FORM STYLES (Demande page)
   ========================================== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.form-step {
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 0.5rem;
}

.lead-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-info {
    margin-top: 1rem;
    color: var(--text-light);
}

.form-success {
    background: var(--bg-gray);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.form-success ul {
    text-align: left;
    max-width: 500px;
    margin: 1.5rem auto;
}

.reassurance {
    margin: 4rem 0;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reassurance-item {
    text-align: center;
    padding: 1.5rem;
}

.reassurance-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reassurance-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-alternative {
    background: var(--bg-gray);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==========================================
   LEGAL PAGES STYLES
   ========================================== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumb {
    background: var(--bg-gray);
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-light);
}

.breadcrumb-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-content a:hover {
    text-decoration: underline;
}

.legal-content {
    margin: 2rem 0;
}

.legal-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.legal-wrapper h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.legal-wrapper h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-wrapper p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.legal-list li {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.6;
}

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

.legal-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-wrapper a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.intro-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    background: var(--bg-gray);
}

.last-update {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    text-align: center;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .eligibility-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    section {
        padding: 0 1rem;
    }
    
    .page-content {
        padding: 0 1rem;
    }
    
    .cta-button-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}
