/**
 * Homepage — sections : hero, categories, values, testimonial, trust, instagram.
 * Phase 1 refonte Madame's Home : palette rose poudré + Frank Ruhl Libre + Josefin Sans.
 * Cf. _claude/PLAN-refonte-ui-ux-madameshome.md
 */

/* ============ HERO ÉDITORIAL — Madame's Home ============ */
.sfc-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    background-size: cover;
    background-position: center;
    color: var(--color-ink);
    overflow: hidden;
    padding-block: var(--space-section-large);
    isolation: isolate;
}

.sfc-hero--inner {
    min-height: 50vh;
}

/* Couche image de fond (Ken Burns lent). Active uniquement si --sfc-hero-img défini. */
.sfc-hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--sfc-hero-img);
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
    animation: sfc-hero-kenburns 18s var(--ease-in-out) infinite alternate;
}

@keyframes sfc-hero-kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.06) translate(-1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
    .sfc-hero__bg { animation: none; }
}

.sfc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(250, 246, 242, 0.0)  0%,
        rgba(250, 246, 242, 0.10) 60%,
        rgba(250, 246, 242, 0.35) 100%);
    pointer-events: none;
    z-index: -1;
}

.sfc-hero--has-image {
    color: var(--color-white);
}

.sfc-hero--has-image .sfc-hero__overlay {
    background: linear-gradient(180deg,
        rgba(26, 26, 26, 0.10) 0%,
        rgba(26, 26, 26, 0.45) 100%);
}

.sfc-hero__inner {
    position: relative;
    text-align: center;
    max-width: 880px;
    z-index: 1;
}

/* Eyebrow rose poudré — signature MH (tracking large + mini filets). */
.sfc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-5);
}

.sfc-hero__eyebrow::before,
.sfc-hero__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-primary);
}

.sfc-hero--has-image .sfc-hero__eyebrow {
    color: var(--color-primary-soft);
}
.sfc-hero--has-image .sfc-hero__eyebrow::before,
.sfc-hero--has-image .sfc-hero__eyebrow::after {
    background: var(--color-primary-soft);
}

/* Titre éditorial — Frank Ruhl Libre italic, fluide. */
.sfc-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: var(--text-hero);
    line-height: var(--leading-tight);
    color: inherit;
    margin: 0 0 var(--space-5);
    letter-spacing: var(--tracking-tight);
}

.sfc-hero__subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: var(--color-ink-soft);
    margin: 0 auto var(--space-7);
    max-width: 640px;
}

.sfc-hero--has-image .sfc-hero__subtitle {
    color: rgba(255, 255, 255, 0.86);
}

.sfc-hero__cta {
    margin-top: var(--space-2);
}

.sfc-hero__cta svg {
    transition: transform var(--duration-base) var(--ease-spring);
}

.sfc-hero__cta:hover svg {
    transform: translateX(4px);
}

/* Scroll-cue — chevron qui pulse, fade-in 1.2s. */
.sfc-hero__scrollcue {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    opacity: 0;
    animation: sfc-hero-scrollcue-in var(--duration-slower) var(--ease-out) 1.2s forwards,
               sfc-hero-scrollcue-bounce 2.4s var(--ease-in-out) 2s infinite;
    z-index: 1;
}

.sfc-hero--has-image .sfc-hero__scrollcue {
    color: var(--color-primary-soft);
}

@keyframes sfc-hero-scrollcue-in {
    to { opacity: 0.85; }
}

@keyframes sfc-hero-scrollcue-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .sfc-hero__scrollcue { animation: sfc-hero-scrollcue-in 600ms forwards; }
}

/* ============ CATEGORIES ============ */
.sfc-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.sfc-categories__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-base);
}

.sfc-categories__card:hover {
    transform: translateY(-4px);
}

.sfc-categories__circle {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    background: var(--color-secondary);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(201, 169, 97, 0.4);
    transition: var(--transition-base);
}

.sfc-categories__card:hover .sfc-categories__circle {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.sfc-categories__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sfc-categories__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-cream) 100%);
}

.sfc-categories__title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin: 0 0 8px;
}

.sfc-categories__samples {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Apparition en cascade au scroll (.is-visible posée par main.js, délai par carte
 * via data-reveal-delay). Animation (et non transition) pour ne pas écraser la
 * transition de survol existante sur la carte. */
.sfc-categories__card.sfc-reveal {
    opacity: 0;
}

.sfc-categories__card.sfc-reveal.is-visible {
    opacity: 1;
    animation: sfc-cat-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sfc-cat-reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .sfc-categories__card.sfc-reveal { opacity: 1; }
    .sfc-categories__card.sfc-reveal.is-visible { animation: none; }
}

/* ============ VALUES ============ */
.sfc-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1080px;
    margin: 0 auto;
}

.sfc-values__item {
    text-align: center;
    padding: 0 12px;
}

.sfc-values__icon {
    display: inline-flex;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.sfc-values__icon svg {
    width: 48px;
    height: 48px;
}

.sfc-values__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.sfc-values__desc {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Les blocs .sfc-quote__* et .sfc-traiteur__* (Yvonne épicerie/traiteur)
 * ont été retirés en Phase 1. Cf. _claude/PLAN-refonte-ui-ux-madameshome.md.
 */

/* ============ TESTIMONIAL ============ */
.sfc-testimonial__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.sfc-testimonial__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-ui);
    background: var(--color-secondary);
    position: relative;
}

.sfc-testimonial__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfc-testimonial__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.25), transparent 60%),
        linear-gradient(135deg, var(--color-secondary), var(--color-cream));
}

.sfc-testimonial__quote {
    margin: 0 0 16px;
    border: 0;
    padding: 0;
}

.sfc-testimonial__quote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.5;
    color: var(--color-primary);
    margin: 0;
}

.sfc-testimonial__ornament {
    display: inline-flex;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.sfc-testimonial__author {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-style: normal;
}

/* CTA navy final — partagé entre plusieurs templates (home + traiteur +
   prestation), donc reste ici dans homepage.css (sera déplacé dans main.css
   si nécessaire le jour où homepage.css devient strictement homepage-only). */
.sfc-cta-final {
    text-align: center;
}

.sfc-cta-final h2 {
    color: var(--color-cream);
}

.sfc-cta-final p {
    color: rgba(245, 237, 224, 0.85);
    max-width: 640px;
    margin: 0 auto 28px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .sfc-categories__grid { grid-template-columns: repeat(2, 1fr); }
    .sfc-values__grid     { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .sfc-testimonial__grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .sfc-hero { min-height: 70vh; padding-block: 60px; }
    .sfc-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .sfc-categories__circle { width: 150px; height: 150px; }
    .sfc-values__grid { grid-template-columns: 1fr; gap: 2rem; max-width: 420px; }
    .sfc-testimonial__grid { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
    .sfc-testimonial__media { max-width: 320px; margin: 0 auto; }
    /* Aligner le bloc citation (quote + ornement + auteur) sous l'image
       centrée — sinon le texte tombe à gauche alors que l'image est centrée. */
    .sfc-testimonial__content {
        text-align: center;
        max-width: 520px;
        margin-inline: auto;
    }
    .sfc-testimonial__quote p { margin-inline: auto; }
}

@media (max-width: 480px) {
    .sfc-categories__grid { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
    .sfc-categories__circle { width: 180px; height: 180px; }
}

/* ============================================================
 * Section Instagram (feed Smash Balloon)
 * ============================================================ */
.sfc-insta__header {
    margin-bottom: 36px;
}

.sfc-insta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.sfc-insta__eyebrow::before,
.sfc-insta__eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}

.sfc-insta__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px;
    line-height: 1.15;
}

.sfc-insta__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.6;
}

.sfc-insta__feed {
    margin: 0 auto;
}

.sfc-insta__cta {
    margin-top: 32px;
}

.sfc-insta__cta .sfc-btn svg {
    width: 18px;
    height: 18px;
}
