/* DESIGN SYSTEM & VARIABLES */
:root {
    --forest: #1E3A2F; /* Deep Forest Green */
    --terra: #A94F30; /* Terracotta assombri pour WCAG AA */
    --cream: #F4ECD8; /* Craft Cream */
    --offwhite: #FBF7EC;
    --dark: #2A2A26;
    
    --font-heading: 'Fraunces', serif;
    --font-body: 'Source Serif 4', serif;
}

/* TYPOGRAPHIE AUTO-HÉBERGÉE (Placeholders chemins) */
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/source-serif.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: 2.25rem; } /* ~36px mobile, ajusté en media query */
h2 { font-size: 1.8rem; margin-bottom: 1.5rem;}
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--terra); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #8a3f25; }

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.measure {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
section {
    padding: 5rem 0;
}
.center-text { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

/* SECTIONS (Couleurs & Motifs) */
.light-section {
    background-color: var(--cream);
    color: var(--dark);
}
.dark-section {
    background-color: var(--forest);
    color: var(--cream);
}
.dark-section h1, .dark-section h2, .dark-section h3 {
    color: var(--cream);
}

/* ÉLÉMENT SIGNATURE : Le Tissage (Weave) */
/* Un motif SVG subtil appliqué en data-URI */
.bg-weave-animated {
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 10h40v1H0zM0 30h40v1H0zM10 0h1v40h-1zM30 0h1v40h-1z" fill="%23F4ECD8" fill-opacity="0.05"/></svg>');
    background-position: center;
    position: relative;
}
.bg-weave-animated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--forest);
    animation: fadeWeave 2s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}
.bg-weave-light {
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 10h40v1H0zM0 30h40v1H0zM10 0h1v40h-1zM30 0h1v40h-1z" fill="%231E3A2F" fill-opacity="0.03"/></svg>');
}
.weave-divider {
    border-top: 1px solid rgba(169, 79, 48, 0.2); /* Ligne terracotta très fine */
}
@keyframes fadeWeave {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* TOPBAR */
.topbar {
    background-color: var(--cream);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 58, 47, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 40px;
    width: auto;
}

/* HERO */
.hero {
    padding: 6rem 0;
    text-align: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.micro-text {
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: var(--font-body);
}

/* BOUTONS (CTA) */
.btn-primary {
    display: inline-block;
    background-color: var(--terra);
    color: var(--cream);
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 44px; /* Cible tactile */
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #8a3f25;
    color: var(--cream);
    transform: translateY(-2px);
    outline: 2px solid var(--cream);
    outline-offset: 2px;
}
/* Micro-interaction Tissage bouton */
.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: var(--cream);
    transition: left 0.4s ease;
}
.btn-primary:hover::after {
    left: 0;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* COMPOSANTS SPECIFIQUES */
.box-terracotta {
    border-left: 4px solid var(--terra);
    background-color: rgba(169, 79, 48, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
}
.honesty-box {
    border: 1px solid var(--terra);
    padding: 1.5rem;
    background-color: var(--offwhite);
    text-align: center;
}

/* GRILLES */
.benefits-grid, .quotes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.benefit-card {
    padding: 1.5rem;
    background-color: var(--offwhite);
    border: 1px solid rgba(30, 58, 47, 0.1);
}
.icon-thread {
    width: 24px;
    height: 24px;
    margin-bottom: 1rem;
    background-color: var(--terra); /* Placeholder icône */
    clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); /* Faux trait de fil */
}

/* VERBATIMS */
.verbatim-card {
    background-color: var(--offwhite);
    padding: 1.5rem;
    border-left: 3px solid var(--terra);
    font-style: italic;
}
.verbatim-card footer {
    font-size: 0.85rem;
    margin-top: 1rem;
    color: #666;
    font-style: normal;
}

/* LISTES ET ÉTAPES */
.steps-list {
    list-style-type: none;
    counter-reset: steps;
}
.steps-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.steps-list li::before {
    counter-increment: steps;
    content: counter(steps) ".";
    position: absolute;
    left: 0;
    color: var(--terra);
    font-weight: bold;
    font-family: var(--font-heading);
}

/* PRICING */
.pricing-card {
    border: 1px solid rgba(244, 236, 216, 0.2);
    padding: 2rem;
}

/* FAQ ACCORDION */
details {
    background-color: var(--offwhite);
    margin-bottom: 1rem;
    border: 1px solid rgba(30, 58, 47, 0.1);
}
summary {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--forest);
    list-style: none; /* Cache la flèche native selon navigateurs */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    color: var(--terra);
    font-size: 1.5rem;
    line-height: 1;
}
details[open] summary::after { content: '-'; }
details p {
    padding: 0 1.2rem 1.2rem 1.2rem;
    margin: 0;
}

/* FORMULAIRE */
.audit-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(244, 236, 216, 0.2);
}
.form-group {
    margin-bottom: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.95rem;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--cream);
    border: 1px solid transparent;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(169, 79, 48, 0.3);
}
.rgpd-notice {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.4;
}
.link-light {
    color: var(--cream);
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background-color: var(--forest);
    color: var(--cream);
    padding: 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(244, 236, 216, 0.1);
}
.footer-links a { color: var(--cream); text-decoration: underline; }

/* ANIMATIONS AU SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (min-width: 768px) {
    h1 { font-size: 3.25rem; }
    .benefits-grid, .quotes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}