/* ===== LA MAISON ===== */

.rev-maison-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    background: radial-gradient(ellipse at 50% 60%, rgba(234, 200, 128, 0.03), var(--rev-black-deep));
}

/* Timeline */
.rev-timeline {
    position: relative;
    padding: 2rem 0 2rem 3rem;
}

.rev-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--rev-gold-dark), transparent);
}

.rev-tl-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.rev-tl-item::before {
    content: '';
    position: absolute;
    left: -3.3rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--rev-gold);
}

.rev-tl-year {
    font-family: var(--rev-font-heading);
    font-size: 1.5rem;
    color: var(--rev-gold);
    margin-bottom: 0.25rem;
}

.rev-tl-text {
    color: #a4a4a4;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Nez */
.rev-nez-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.rev-nez-card {
    border: var(--rev-border);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--rev-transition);
    background: var(--rev-black-soft);
}

.rev-nez-card:hover {
    border-color: rgba(234, 200, 128, 0.3);
}

.rev-nez-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: var(--rev-black-elevated);
    border: var(--rev-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Valeurs */
.rev-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.rev-pillar {
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .rev-pillars-grid { grid-template-columns: 1fr 1fr; }
    .rev-nez-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .rev-pillars-grid { grid-template-columns: 1fr; }
}


/* ===== V2 : timeline enrichie, bios parfumeurs, Le Geste Juste ===== */

/* Timeline : titre d'etape */
.rev-tl-title {
    font-family: var(--rev-font-heading);
    font-size: 1.05rem;
    color: var(--rev-text-primary);
    margin: 0 0 0.5rem;
}

/* Les Nez : intro + cartes bios */
.rev-nez-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--rev-text-secondary);
    line-height: 1.9;
}
.rev-nez-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.rev-nez-sep {
    grid-column: 1 / -1;
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--rev-gold-muted), transparent);
}
.rev-nez-sep--lead {
    max-width: 1000px;
    margin: 2.5rem auto 3rem;
}
.rev-nez-card {
    text-align: left;
    padding: 0;
    border: none;
    background: transparent;
}
.rev-nez-photo {
    width: 100%;
    aspect-ratio: 788.13 / 672.69;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    -webkit-mask: url('../images/Nez/MasquePhoto.svg') no-repeat center / contain;
    mask: url('../images/Nez/MasquePhoto.svg') no-repeat center / contain;
}
.rev-nez-card--mirror .rev-nez-photo {
    -webkit-mask-image: url('../images/Nez/MasquePhotoMirror.svg');
    mask-image: url('../images/Nez/MasquePhotoMirror.svg');
}
.rev-nez-name {
    font-family: var(--rev-font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--rev-gold);
    margin: 0;
}
.rev-nez-count {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rev-text-muted);
    margin: 0.4rem 0 0;
}
.rev-nez-parfums {
    font-size: 0.8rem;
    color: var(--rev-text-secondary);
    font-style: italic;
    margin: 0.6rem 0 1.1rem;
    line-height: 1.6;
}
.rev-nez-bio {
    font-size: 0.9rem;
    color: #a4a4a4;
    line-height: 1.8;
    margin: 0;
}

/* ===== INTERVIEW BUTTON (carte Nez) ===== */
.rev-nez-interview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
    padding: 0.55rem 1.3rem 0.55rem 1.05rem;
    background: transparent;
    border: 1px solid rgba(234, 200, 128, 0.4);
    color: var(--rev-gold);
    font-family: var(--rev-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease;
}
.rev-nez-interview-btn:hover,
.rev-nez-interview-btn:focus-visible {
    border-color: var(--rev-gold);
    background: rgba(234, 200, 128, 0.07);
    outline: none;
}
.rev-nez-interview-btn .bi-play-circle {
    font-size: 1.05rem;
    line-height: 1;
}

/* ===== VIDEO MODAL ===== */
.rev-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}
.rev-video-modal.is-open {
    display: flex;
    animation: revModalFadeIn 0.35s ease both;
}
@keyframes revModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.rev-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.rev-video-modal__panel {
    position: relative;
    width: min(100%, 1200px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rev-video-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.rev-video-modal__title {
    font-family: var(--rev-font-heading);
    font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--rev-gold);
    margin: 0;
    letter-spacing: 0.02em;
}
.rev-video-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(234, 200, 128, 0.35);
    background: transparent;
    color: var(--rev-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rev-video-modal__close:hover {
    border-color: var(--rev-gold);
    background: rgba(234, 200, 128, 0.1);
}

/* Stage 16:9 contenant <video> + bouton central + barre controles
   max-height: contraint par le viewport pour eviter le clip header/controles
   sur paysage mobile et laptops courts. Utilise 100dvh sur iOS pour echapper
   au bug de la barre URL safari qui mange ~50px. */
.rev-video-modal__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    background: #000;
    overflow: hidden;
    border: 1px solid rgba(234, 200, 128, 0.15);
}
.rev-video-modal__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Bouton play geant centre (sur poster, avant lecture) */
.rev-video-modal__poster-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(72px, 9vw, 96px);
    height: clamp(72px, 9vw, 96px);
    border-radius: 50%;
    border: 1.5px solid rgba(234, 200, 128, 0.85);
    background: rgba(8, 8, 10, 0.45);
    color: var(--rev-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    padding-left: 6px; /* compense l'optique du triangle play */
    z-index: 2;
}
.rev-video-modal__poster-play:hover {
    background: rgba(234, 200, 128, 0.15);
    border-color: var(--rev-gold);
    transform: translate(-50%, -50%) scale(1.06);
}
.rev-video-modal.is-playing .rev-video-modal__poster-play { display: none; }

/* Barre de controles bas */
.rev-video-modal__controls {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.75rem 1rem 0.85rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.rev-video-modal.is-playing.is-idle .rev-video-modal__controls {
    opacity: 0;
    pointer-events: none;
}
.rev-vctrl {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 10, 0.55);
    color: #f0e8d6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.rev-vctrl:hover,
.rev-vctrl:focus-visible {
    color: var(--rev-gold);
    border-color: rgba(234, 200, 128, 0.6);
    outline: none;
}
.rev-vctrl--quality {
    width: auto;
    padding: 0 0.85rem;
    font-family: var(--rev-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.rev-vctrl-time {
    flex: 0 0 auto;
    color: rgba(245, 240, 235, 0.85);
    font-family: var(--rev-font-body);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    padding: 0 0.4rem;
    white-space: nowrap;
}
.rev-vctrl-progress {
    flex: 1 1 auto;
    position: relative;
    height: 22px;
    cursor: pointer;
    user-select: none;
}
.rev-vctrl-progress__bar,
.rev-vctrl-progress__buffer,
.rev-vctrl-progress__fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    border-radius: 2px;
    pointer-events: none;
    transition: height 0.2s ease;
}
.rev-vctrl-progress__bar    { width: 100%; background: rgba(255,255,255,0.18); }
.rev-vctrl-progress__buffer { width: 0;    background: rgba(255,255,255,0.32); }
.rev-vctrl-progress__fill   { width: 0;    background: var(--rev-gold); }
.rev-vctrl-progress:hover .rev-vctrl-progress__bar,
.rev-vctrl-progress:hover .rev-vctrl-progress__buffer,
.rev-vctrl-progress:hover .rev-vctrl-progress__fill {
    height: 5px;
}

/* Fullscreen : la stage prend tout l'ecran, controles flottants par-dessus
   IMPORTANT : la spec CSS interdit de comma-grouper :fullscreen avec un
   selecteur prefixe (-webkit/-moz) — toute la regle deviendrait invalide
   sur les navigateurs qui ne connaissent pas l'un d'eux. On duplique. */
.rev-video-modal__stage:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
}
.rev-video-modal__stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
}
.rev-video-modal__stage:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
}
.rev-video-modal__stage:fullscreen .rev-video-modal__video {
    width: 100%;
    height: 100%;
}
.rev-video-modal__stage:-webkit-full-screen .rev-video-modal__video {
    width: 100%;
    height: 100%;
}
.rev-video-modal__stage:-moz-full-screen .rev-video-modal__video {
    width: 100%;
    height: 100%;
}

/* Lock scroll body quand modal active.
   padding-right compense la disparition de la scrollbar (--rev-modal-sbw injectee
   par maison.js au load) — evite le saut horizontal de ~15px sur Windows. */
body.rev-modal-open {
    overflow: hidden;
    padding-right: var(--rev-modal-sbw, 0);
}

/* Mobile : header plus compact, controles touch-friendly (min 40px) */
@media (max-width: 640px) {
    .rev-video-modal { padding: 0.5rem; }
    .rev-video-modal__header { padding: 0 0.25rem; }
    .rev-vctrl { width: 40px; height: 40px; font-size: 1rem; }
    .rev-vctrl--quality { width: auto; padding: 0 0.75rem; font-size: 0.68rem; height: 40px; }
    .rev-vctrl-time { font-size: 0.7rem; padding: 0 0.2rem; }
    /* Zone de tap de la progress bar plus large */
    .rev-vctrl-progress { height: 28px; }
}

/* Le Geste Juste */
.rev-geste-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.rev-geste-item h3 {
    font-family: var(--rev-font-heading);
    font-size: 1.3rem;
    color: var(--rev-gold);
    margin-bottom: 1rem;
}
.rev-geste-item p {
    color: #a4a4a4;
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 768px) {
    .rev-nez-grid { grid-template-columns: 1fr; }
    .rev-geste-grid { grid-template-columns: 1fr; gap: 2rem; }
}
