/* ═══════════════════════════════════════════════════════════
   LA TABLE MÉDITERRANÉENNE — chef.css
   Page Le Chef — storytelling premium
   Distinct de index (reveal vertical) et menu (slide gauche)
   Animation : rotation légère + fade au scroll
   ═══════════════════════════════════════════════════════════ */

/* ── ANIMATION CHEF-REVEAL ───────────────────────────────── */
/* Rotation légère + montée — différent des autres pages */
.chef-reveal {
    opacity: 0;
    transform: translateY(20px) rotate(.4deg);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
        transform .7s cubic-bezier(.16, 1, .3, 1);
}

.chef-reveal.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.chef-reveal:nth-child(2) {
    transition-delay: .1s;
}

.chef-reveal:nth-child(3) {
    transition-delay: .2s;
}

.chef-reveal:nth-child(4) {
    transition-delay: .3s;
}

.chef-reveal:nth-child(5) {
    transition-delay: .4s;
}


/* ── HERO ────────────────────────────────────────────────── */
.chef-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.chef-hero-media {
    position: absolute;
    inset: 0;
}

.chef-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    animation: chefHeroZoom 14s cubic-bezier(.25, .46, .45, .94) forwards;
}

@keyframes chefHeroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

.chef-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(10, 6, 2, .15) 0%,
            rgba(10, 6, 2, .30) 40%,
            rgba(10, 6, 2, .82) 100%);
}

.chef-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.chef-hero-inner {
    width: min(var(--max-width), 100% - 2 * var(--space-md));
    margin-inline: auto;
    max-width: 700px;
}

.chef-hero-label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--or-light);
    margin-bottom: 1rem;
    display: block;
    animation: chefFadeUp .7s cubic-bezier(.16, 1, .3, 1) .3s both;
}

.chef-hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--blanc);
    line-height: 1.0;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .4);
    animation: chefFadeUp .9s cubic-bezier(.16, 1, .3, 1) .45s both;
}

.chef-hero-name em {
    display: block;
    font-style: italic;
    color: var(--or-light);
    font-size: 1.15em;
}

.chef-hero-line {
    width: 50px;
    height: 1px;
    background-color: var(--or);
    margin-bottom: 1.5rem;
    animation: chefLineGrow .8s cubic-bezier(.16, 1, .3, 1) .7s both;
}

@keyframes chefLineGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 50px;
        opacity: 1;
    }
}

.chef-hero-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: rgba(255, 255, 255, .8);
    line-height: 1.6;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
    animation: chefFadeUp .8s cubic-bezier(.16, 1, .3, 1) .85s both;
}

@keyframes chefFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicateur scroll */
.chef-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    right: clamp(1.5rem, 4vw, 4rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    color: rgba(255, 255, 255, .45);
    font-family: var(--font-body);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.chef-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .4), transparent);
}


/* ── BIOGRAPHIE ──────────────────────────────────────────── */
.chef-bio {
    background-color: var(--blanc);
    padding-block: var(--space-xl);
}

.chef-bio-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.chef-bio-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1.75rem;
    margin-top: .5rem;
}

.chef-bio-text p {
    font-size: var(--fs-md);
    line-height: 1.85;
    color: var(--gris-txt);
    margin-bottom: 1.25rem;
}

/* Distinctions */
.chef-bio-distinctions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--gris-light);
}

.distinction {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--brun-mid);
}

.distinction-icon {
    color: var(--or);
    font-size: .7rem;
    flex-shrink: 0;
}

/* Image portrait */
.chef-bio-visual {
    position: sticky;
    top: 110px;
}

.chef-bio-img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(44, 32, 22, .16);
}

.chef-bio-img-wrap img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .8s var(--ease);
}

.chef-bio-img-wrap:hover img {
    transform: scale(1.03);
}

/* Badge fondateur */
.chef-bio-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--brun);
    padding: 1rem 1.4rem;
    text-align: center;
}

.badge-year {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--or-light);
    line-height: 1;
}

.badge-txt {
    display: block;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(245, 239, 228, .6);
    margin-top: .3rem;
}


/* ── PHILOSOPHIE ─────────────────────────────────────────── */
.chef-philo {
    position: relative;
    padding-block: 0;
    overflow: hidden;
}

.chef-philo-media {
    position: absolute;
    inset: 0;
}

.chef-philo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.chef-philo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(20, 12, 5, .88) 0%,
            rgba(20, 12, 5, .70) 60%,
            rgba(20, 12, 5, .45) 100%);
}

.chef-philo-inner {
    position: relative;
    z-index: 2;
    padding-block: var(--space-xl);
    max-width: 780px;
}

.chef-philo-inner .section-label {
    color: var(--or-light);
}

.chef-philo-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    color: var(--creme);
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.chef-philo-title em {
    font-style: italic;
    color: var(--or-light);
}

.chef-philo-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.chef-philo-cols p {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    color: rgba(245, 239, 228, .75);
    line-height: 1.85;
    font-weight: 300;
}


/* ── TIMELINE ────────────────────────────────────────────── */
.chef-parcours {
    background-color: var(--creme);
    padding-block: var(--space-xl);
}

.chef-timeline {
    position: relative;
    max-width: 800px;
    margin-inline: auto;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-left: 60px;
}

/* Ligne verticale */
.chef-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--or-light), var(--gris-light));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.75rem;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0 1.5rem;
    align-items: start;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    color: var(--or);
    letter-spacing: .06em;
    padding-top: .2rem;
    text-align: right;
    grid-column: 1;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    /* relatif au padding-left du parent */
    top: .35rem;
    width: 10px;
    height: 10px;
    background-color: var(--or-light);
    border-radius: 50%;
    border: 2px solid var(--creme);
    box-shadow: 0 0 0 3px rgba(184, 151, 90, .3);
}

.timeline-dot--gold {
    background-color: var(--or);
    width: 14px;
    height: 14px;
    left: -42px;
    top: .25rem;
    box-shadow: 0 0 0 4px rgba(184, 151, 90, .25);
}

.timeline-content {
    grid-column: 2;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--brun);
    margin-bottom: .4rem;
}

.timeline-content p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--gris-txt);
    line-height: 1.7;
    font-weight: 300;
}

.timeline-content--highlight h3 {
    color: var(--or-dark);
    font-size: 1.4rem;
}

.timeline-content--highlight p {
    color: var(--brun-mid);
}


/* ── PRODUCTEURS ─────────────────────────────────────────── */
.chef-producteurs {
    background-color: var(--blanc);
    padding-block: var(--space-xl);
}

.chef-prod-intro {
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
    font-size: var(--fs-md);
    color: var(--gris-txt);
    line-height: 1.75;
    margin-top: 1rem;
}

.chef-prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.prod-card {
    background-color: var(--creme);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease);
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(44, 32, 22, .1);
}

.prod-card-img {
    overflow: hidden;
    height: 220px;
}

.prod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.prod-card:hover .prod-card-img img {
    transform: scale(1.06);
}

.prod-card-body {
    padding: 1.5rem;
}

.prod-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--or-dark);
    border: 1px solid var(--or-light);
    padding: .2rem .55rem;
    border-radius: 2px;
    margin-bottom: .75rem;
}

.prod-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--brun);
    margin-bottom: .5rem;
}

.prod-card-body p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--gris-txt);
    line-height: 1.65;
    font-weight: 300;
}


/* ── CTA ─────────────────────────────────────────────────── */
.chef-cta {
    background-color: var(--brun);
    padding-block: var(--space-lg);
    text-align: center;
}

.chef-cta-inner {
    max-width: 560px;
    margin-inline: auto;
}

.chef-cta .section-label {
    color: var(--or-light);
}

.chef-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--creme);
    margin-bottom: 1rem;
}

.chef-cta p {
    font-size: var(--fs-md);
    color: rgba(245, 239, 228, .65);
    margin-bottom: 2rem;
    line-height: 1.75;
}


/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .chef-bio-grid {
        grid-template-columns: 1fr 360px;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .chef-hero-scroll {
        display: none;
    }

    .chef-hero-name {
        font-size: clamp(2.8rem, 10vw, 4.5rem);
    }

    /* Bio */
    .chef-bio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chef-bio-visual {
        position: static;
    }

    .chef-bio-img-wrap img {
        height: 420px;
    }

    /* Philo */
    .chef-philo-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Timeline */
    .chef-timeline {
        padding-left: 48px;
    }

    .chef-timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: -33px;
    }

    .timeline-dot--gold {
        left: -35px;
    }

    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 0 1rem;
    }

    .timeline-year {
        font-size: .75rem;
    }

    /* Producteurs */
    .chef-prod-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .chef-hero-name {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }
}