/* =========================================================
   Wesmooze — Feuille de style
   Auteur : Référencement Du Pro
   Concept : fruits pressés, texture juteuse, respiration
   ========================================================= */

:root {
    /* Palette fruits pressés */
    --lime: #7CB342;
    --lime-deep: #558B2F;
    --lime-light: #C5E1A5;
    --framboise: #E63946;
    --mangue: #FFB800;
    --orange: #FF6B35;
    --myrtille: #6A4C93;
    --creme: #FFF9F0;
    --creme-warm: #FCEFD8;
    --vert-nuit: #1B4332;
    --texte: #2D3A2E;
    --texte-doux: #5C6B5D;

    /* Type scale */
    --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Rayons — asymétriques */
    --r-blob: 42% 58% 63% 37% / 41% 44% 56% 59%;
    --r-fruit: 68% 32% 55% 45% / 55% 60% 40% 45%;

    --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--texte);
    background: var(--creme);
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--lime-deep); text-decoration: none; }
a:hover { color: var(--framboise); }

/* ============= TYPOGRAPHIE ============= */

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.05;
    color: var(--vert-nuit);
    letter-spacing: -0.02em;
    font-variation-settings: "SOFT" 60, "opsz" 144;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.italic-juice {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
    color: var(--framboise);
}

.small-label {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lime-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.small-label::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--lime-deep);
    border-radius: 2px;
}

p { max-width: 68ch; }

/* ============= LAYOUT ============= */

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 2.4rem);
}

section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
}

/* ============= HEADER ============= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 240, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(124, 179, 66, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.2rem, 4vw, 2.4rem);
    max-width: var(--max);
    margin: 0 auto;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--vert-nuit);
    letter-spacing: -0.03em;
}
.brand:hover { color: var(--vert-nuit); }

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-main a {
    padding: 0.55rem 1.1rem;
    color: var(--texte);
    font-weight: 500;
    font-size: 0.98rem;
    border-radius: 999px;
    transition: background 0.25s, color 0.25s;
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--lime);
    color: #fff;
}

.nav-cta {
    background: var(--vert-nuit);
    color: #fff !important;
    padding: 0.7rem 1.3rem !important;
    margin-left: 0.6rem;
}
.nav-cta:hover {
    background: var(--framboise) !important;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--vert-nuit);
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-main {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--creme);
        border-bottom: 1px solid rgba(124, 179, 66, 0.2);
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }
    .nav-main.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-main a { padding: 0.9rem 1rem; border-radius: 12px; }
    .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
}

/* ============= HERO ============= */

.hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--texte-doux);
    margin-bottom: 2.2rem;
    max-width: 52ch;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-inline: auto;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-blob);
    animation: morph 18s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50%      { border-radius: 60% 40% 45% 55% / 55% 35% 65% 45%; }
}

/* Fruits flottants décoratifs */
.floater {
    position: absolute;
    width: 88px; height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    animation: float 6s ease-in-out infinite;
}
.floater.f1 { top: 5%; left: -10%; background: var(--mangue); animation-delay: 0s; }
.floater.f2 { bottom: 10%; right: -8%; background: var(--framboise); animation-delay: 1.5s; }
.floater.f3 { top: 55%; left: -14%; background: var(--myrtille); animation-delay: 3s; width: 64px; height: 64px; font-size: 2.3rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-18px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual img,
    .floater { animation: none; }
}

/* ============= BOUTONS ============= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
    background: var(--vert-nuit);
    color: #fff;
}
.btn-primary:hover {
    background: var(--framboise);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(230, 57, 70, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--vert-nuit);
    border: 2px solid var(--vert-nuit);
}
.btn-secondary:hover {
    background: var(--vert-nuit);
    color: #fff;
}

.btn-lime {
    background: var(--lime);
    color: #fff;
}
.btn-lime:hover {
    background: var(--lime-deep);
    color: #fff;
    transform: translateY(-2px);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============= SECTIONS THÉMATIQUES ============= */

.section-lime {
    background: linear-gradient(135deg, var(--lime-light) 0%, #E8F5D8 100%);
    position: relative;
}

.section-cream {
    background: var(--creme-warm);
}

.section-dark {
    background: var(--vert-nuit);
    color: var(--creme);
}
.section-dark h2, .section-dark h3 { color: var(--creme); }
.section-dark .small-label { color: var(--mangue); }
.section-dark .small-label::before { background: var(--mangue); }

/* Vague décorative entre sections */
.wave-divider {
    display: block;
    width: 100%;
    height: 60px;
}

/* ============= GRILLES DE CONTENU ============= */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 900px) {
    .three-col { grid-template-columns: 1fr; }
}

.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}
@media (max-width: 900px) {
    .four-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .four-col { grid-template-columns: 1fr; }
}

/* Étiquettes fruits — pas des cards SaaS */
.fruit-tag {
    background: #fff;
    border-radius: 22px;
    padding: 1.8rem 1.6rem;
    position: relative;
    border: 1px solid rgba(124, 179, 66, 0.15);
}

.fruit-tag .icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fruit-tag.a .icon { background: var(--mangue); }
.fruit-tag.b .icon { background: var(--framboise); color: #fff; }
.fruit-tag.c .icon { background: var(--lime); color: #fff; }
.fruit-tag.d .icon { background: var(--myrtille); color: #fff; }

.fruit-tag h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.fruit-tag p { font-size: 0.96rem; color: var(--texte-doux); }

/* Image ronde organique */
.round-img {
    border-radius: var(--r-blob);
    animation: morph 22s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.15);
}

/* ============= STATS BANDE ============= */

.stats-band {
    background: var(--framboise);
    color: #fff;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
@media (max-width: 700px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 500;
    display: block;
    line-height: 1;
}
.stat-label {
    font-size: 0.92rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ============= FORMULE / TARIF ============= */

.formule-card {
    background: #fff;
    border-radius: 28px;
    padding: 2.5rem;
    border: 2px solid var(--lime-light);
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.formule-card.featured {
    border-color: var(--framboise);
    transform: scale(1.03);
}
.formule-card:hover { transform: translateY(-4px); }
.formule-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.formule-badge {
    position: absolute;
    top: -14px;
    left: 2rem;
    background: var(--framboise);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.formule-title { font-size: 1.6rem; margin-bottom: 0.6rem; }
.formule-price {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--vert-nuit);
    margin: 1rem 0;
    line-height: 1;
}
.formule-price small {
    font-size: 0.9rem;
    color: var(--texte-doux);
    font-family: var(--sans);
    display: block;
    margin-top: 0.4rem;
}
.formule-list { list-style: none; margin: 1.5rem 0; }
.formule-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-bottom: 1px dashed rgba(124, 179, 66, 0.25);
    font-size: 0.95rem;
}
.formule-list li::before {
    content: "◉";
    color: var(--lime);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============= PROCESS ============= */

.process-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}
.process-step .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--lime);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
}
.process-step:nth-child(2) .num { background: var(--mangue); color: var(--vert-nuit); }
.process-step:nth-child(3) .num { background: var(--framboise); }
.process-step:nth-child(4) .num { background: var(--myrtille); }

.process-step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--texte-doux); }

/* ============= FORMULAIRE ============= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.info-block {
    background: var(--creme-warm);
    border-radius: 28px;
    padding: 2.2rem;
}
.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(27, 67, 50, 0.15);
}
.info-item:last-child { border-bottom: none; }
.info-item .icon {
    width: 42px; height: 42px;
    background: var(--vert-nuit);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.info-item strong { display: block; color: var(--vert-nuit); margin-bottom: 0.15rem; }
.info-item span { color: var(--texte-doux); font-size: 0.95rem; }

.contact-form {
    background: #fff;
    padding: 2.2rem;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.06);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vert-nuit);
    margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(124, 179, 66, 0.3);
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--creme);
    color: var(--texte);
    transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--lime);
    background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--texte-doux);
    margin: 1rem 0;
}
.check-line input { margin-top: 0.2rem; }

/* ============= FOOTER ============= */

.site-footer {
    background: var(--vert-nuit);
    color: var(--creme);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -60px;
}

/* Fruits décoratifs dans le footer */
.footer-fruits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.footer-fruits span {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
}
.footer-fruits span:nth-child(1) { top: 20%; left: 5%; transform: rotate(-15deg); }
.footer-fruits span:nth-child(2) { top: 60%; right: 8%; transform: rotate(20deg); font-size: 4rem; }
.footer-fruits span:nth-child(3) { bottom: 15%; left: 30%; transform: rotate(-8deg); font-size: 2.5rem; }
.footer-fruits span:nth-child(4) { top: 30%; right: 30%; transform: rotate(45deg); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--creme);
    display: block;
}
.footer-tag {
    font-family: var(--serif);
    font-style: italic;
    color: var(--mangue);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
.footer-desc {
    color: rgba(255, 249, 240, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--mangue);
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
    color: rgba(255, 249, 240, 0.75);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--lime-light); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 249, 240, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 249, 240, 0.55);
    position: relative;
    z-index: 2;
}
.footer-bottom a {
    color: rgba(255, 249, 240, 0.7);
    margin-left: 1.2rem;
}
.footer-bottom a:hover { color: var(--lime-light); }

/* ============= PAGE TITLE (pages internes) ============= */

.page-title {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--creme-warm) 0%, var(--lime-light) 100%);
    position: relative;
    overflow: hidden;
}
.page-title h1 { margin-bottom: 0.8rem; }
.page-title .lead {
    font-size: 1.2rem;
    color: var(--texte-doux);
    max-width: 60ch;
}
.crumb {
    font-size: 0.85rem;
    color: var(--lime-deep);
    margin-bottom: 1rem;
}
.crumb a { color: var(--lime-deep); }

/* ============= UTILITAIRES ============= */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.image-cover {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Alerte succès formulaire */
.form-alert {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}
.form-alert.success {
    background: var(--lime-light);
    color: var(--lime-deep);
    border-left: 4px solid var(--lime);
    display: block;
}
