/* ============================================================
   LES FLEURS DE DEM — index.css
   Style principal — haut de gamme, apaisant, élégant
   ============================================================ */

/* =================== CUSTOM PROPERTIES =================== */
:root {
    /* Palette douce et luxueuse */
    --white:         #FFFFFF;
    --cream:         #FAF7F3;
    --beige:         #EDE6DC;
    --beige-mid:     #E0D8CC;
    --sand:          #D4C9B8;
    --sage:          #7A9E7E;
    --sage-light:    #A8C5A0;
    --sage-pale:     #D8EAD5;
    --rose:          #E8C8C2;
    --rose-mid:      #D4A8A0;
    --rose-dark:     #B88878;
    --gold:          #A89070;
    --gold-light:    #C8B090;

    /* Textes */
    --text:          #3A322C;
    --text-muted:    #7D7068;
    --text-light:    #A09588;

    /* Typography */
    --font-serif:    'Cormorant Garamond', Georgia, serif;
    --font-sans:     'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizing */
    --container:     1100px;
    --container-sm:  780px;
    --nav-h:         80px;

    /* Radii */
    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-pill:   999px;

    /* Shadows */
    --shadow-sm:     0 2px 12px rgba(80,60,40,0.07);
    --shadow:        0 6px 30px rgba(80,60,40,0.10);
    --shadow-lg:     0 16px 60px rgba(80,60,40,0.14);

    /* Transitions */
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur:           0.45s;
    --dur-slow:      0.8s;

    /* Section spacing */
    --sp-section:    110px;
    --sp-section-sm: 64px;
}

/* =================== RESET & BASE =================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

input, textarea, select {
    font: inherit;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

em { font-style: italic; color: var(--rose-dark); }

p { max-width: 68ch; }

.lead-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-muted);
}

strong { font-weight: 700; color: var(--text); }

/* =================== CONTAINER =================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85em 2em;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease);
}

.btn:hover svg { transform: translateY(3px); }

/* Primary */
.btn--primary {
    background: var(--text);
    color: var(--cream);
    box-shadow: var(--shadow-sm);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rose-mid), var(--gold));
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.btn--primary:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn--primary:hover::before { opacity: 1; }

.btn--primary span,
.btn--primary svg { position: relative; z-index: 1; }

/* Outline */
.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--sand);
    padding: 0.8em 1.9em;
}

.btn--outline:hover {
    background: var(--text);
    color: var(--cream);
    border-color: var(--text);
    transform: translateY(-2px);
}

/* =================== REVEAL ANIMATIONS =================== */
.reveal, .fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.visible, .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.22s; }
.reveal:nth-child(4) { transition-delay: 0.32s; }
.reveal:nth-child(5) { transition-delay: 0.40s; }
.reveal:nth-child(6) { transition-delay: 0.48s; }

.fade-up:nth-child(2) { transition-delay: 0.15s; }
.fade-up:nth-child(3) { transition-delay: 0.30s; }
.fade-up:nth-child(4) { transition-delay: 0.45s; }
.fade-up:nth-child(5) { transition-delay: 0.60s; }
.fade-up:nth-child(6) { transition-delay: 0.72s; }

/* =================== NAVIGATION =================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                backdrop-filter var(--dur) var(--ease);
}

.site-header.scrolled {
    background: rgba(250, 247, 243, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 24px rgba(80,60,40,0.09);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--rose-dark);
    letter-spacing: 0.04em;
}

.logo-text strong {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5em 0.85em;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--rose-dark);
    border-radius: 2px;
    transition: width var(--dur) var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 60%; }

.nav-link--cta {
    background: var(--text);
    color: var(--cream) !important;
    padding: 0.6em 1.4em;
    margin-left: 0.5rem;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    background: var(--rose-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--dur) var(--ease);
}

.burger:hover { background: var(--beige); }

.burger-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger.open .burger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open .burger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(250, 247, 243, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--beige-mid);
    padding: 1.5rem 2rem;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--beige);
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--rose-dark); padding-left: 0.5rem; }

/* =================== SECTION BASE =================== */
.section {
    padding: var(--sp-section) 0;
}

.section--light  { background: var(--white); }
.section--beige  { background: var(--beige); }
.section--sage   { background: var(--sage-pale); }
.section--cream  { background: var(--cream); }

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose-mid);
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: none;
}

.section-title {
    margin-bottom: 1.5rem;
    max-width: none;
}

.section-intro {
    margin: 0 auto;
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Divider décoratif */
.section-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rose-mid), var(--gold-light), transparent);
    margin: 0 auto 1.5rem;
}

/* =================== HERO =================== */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,200,194,0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 20% 100%, rgba(168,197,160,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(212,201,184,0.25) 0%, transparent 55%),
        linear-gradient(175deg, var(--cream) 0%, var(--beige) 50%, var(--sage-pale) 100%);
}

/* Pétales canvas */
.petals-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Botanicals SVG */
.hero-botanical {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    display: flex;
    align-items: center;
    color: var(--sage);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    animation: botanicalFloat 8s ease-in-out infinite alternate;
}

@keyframes botanicalFloat {
    from { transform: translateY(-10px) rotate(-1deg); }
    to   { transform: translateY(10px) rotate(1deg); }
}

.hero-botanical svg { width: 100%; height: auto; }
.hero-botanical--left  { left: 0; }
.hero-botanical--right { right: 0; transform: scaleX(-1); }

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-mid);
    font-weight: 400;
    max-width: none;
}

.hero-title {
    color: var(--text);
    line-height: 1.18;
    max-width: none;
}

/* Divider hero */
.hero-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    width: 200px;
}

.hero-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light));
}

.hero-divider span:last-child {
    background: linear-gradient(to left, transparent, var(--gold-light));
}

.hero-divider svg { width: 20px; height: 20px; flex-shrink: 0; }

.hero-text {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.85;
    max-width: 62ch;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--sand), transparent);
    margin: 0 auto;
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0.4) translateY(-10px); }
    50%       { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* =================== CONCEPT =================== */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.concept-text {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.concept-text p { color: var(--text-muted); }
.concept-text .lead-text { color: var(--text); }

.concept-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.concept-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.concept-image-wrap:hover img { transform: scale(1.04); }

.concept-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(58,50,44,0.15) 100%
    );
    pointer-events: none;
}

.concept-image-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(250,247,243,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.concept-image-badge svg { width: 32px; height: 32px; color: var(--sage); }

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--cream);
    border: 1px solid var(--beige-mid);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--sage);
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.value-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0 auto; }

/* =================== SERVICES =================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-img-wrap {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.service-card:hover .service-img-wrap img { transform: scale(1.06); }

.service-body {
    padding: 1.75rem 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-icon {
    width: 36px;
    height: 36px;
    color: var(--sage);
}

.service-icon svg { width: 100%; height: 100%; }

.service-body h3 {
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--text);
}

.service-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Services note */
.services-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--sage-pale);
    border-radius: var(--radius);
    padding: 1.25rem 1.75rem;
    max-width: 680px;
    margin: 0 auto;
}

.services-note svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; }
.services-note p { font-size: 0.9rem; color: var(--text-muted); margin: 0; max-width: none; }

/* =================== À PROPOS =================== */
.apropos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.apropos-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.apropos-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.apropos-img-wrap:hover img { transform: scale(1.04); }

.apropos-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* SVG botanical déco */
.contact-botanical {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    width: 80px;
    opacity: 0.12;
    color: var(--sage);
    pointer-events: none;
}

.apropos-quote {
    background: var(--white);
    border-left: 3px solid var(--rose-mid);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.quote-mark { width: 28px; height: 28px; color: var(--rose); flex-shrink: 0; margin-top: 0.2rem; }
.apropos-quote p { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: var(--text-muted); margin: 0; }

.apropos-text {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.apropos-text .section-eyebrow { text-align: left; }
.apropos-text .section-title { text-align: left; max-width: none; }
.apropos-text .section-divider { margin: 0 0 0.5rem; }
.apropos-text p { color: var(--text-muted); }
.apropos-text .lead-text { color: var(--text); }

/* Pillars */
.apropos-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pillar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.pillar strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--text); }
.pillar p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* =================== CONTACT =================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--beige-mid);
    position: relative;
    overflow: hidden;
}

.contact-info-inner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.contact-info-inner > p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-details svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; }

.contact-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-light);
    margin: 0;
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--beige-mid);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-group:last-of-type { margin-bottom: 0; }

label {
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-muted);
}

label span { color: var(--rose-dark); margin-left: 2px; }

input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--cream);
    border: 1.5px solid var(--beige-mid);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    outline: none;
    -webkit-appearance: none;
}

input::placeholder, textarea::placeholder {
    color: var(--text-light);
    font-style: italic;
}

input:focus, textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122,158,126,0.15);
    background: var(--white);
}

input.error, textarea.error {
    border-color: var(--rose-dark);
    box-shadow: 0 0 0 3px rgba(180,120,100,0.12);
}

textarea { resize: vertical; min-height: 130px; }

.form-error {
    font-size: 0.78rem;
    color: var(--rose-dark);
    display: block;
    min-height: 1.1em;
}

.form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.form-rgpd {
    font-size: 0.76rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 38ch;
    margin: 0;
}

.form-rgpd a { text-decoration: underline; color: var(--text-muted); }
.form-rgpd a:hover { color: var(--rose-dark); }

/* Submit button states */
.btn--submit { min-width: 140px; justify-content: center; }

.btn-loading {
    display: none;
}

.btn-loading svg {
    width: 18px;
    height: 18px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn--submit.is-loading .btn-text  { display: none; }
.btn--submit.is-loading .btn-loading { display: inline-flex; }

/* Success */
.form-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--sage-pale);
    border: 1px solid var(--sage-light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    color: var(--text);
}

.form-success[hidden] { display: none; }
.form-success svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; }
.form-success p { font-size: 0.9rem; margin: 0; max-width: none; }

/* =================== LEGAL PAGES =================== */
.legal-page {
    padding-top: calc(var(--nav-h) + 4rem);
    padding-bottom: 5rem;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.legal-page h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 0.75rem;
    color: var(--text);
    border-bottom: 1px solid var(--beige-mid);
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-muted);
}

.legal-page p, .legal-page li {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 80ch;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page a { color: var(--rose-dark); text-decoration: underline; }
.legal-page em { font-style: italic; color: var(--text-light); font-size: 0.85rem; }
.legal-page section { margin-bottom: 0.5rem; }
