/* ============================================
   TOP AUTOS — EDITORIAL MAGAZINE v2
   Inspirations : Vogue, Hermès, McLaren editorial
   ============================================ */

:root {
    /* Palette enrichie */
    --gold: #C9A961;
    --gold-bright: #E8C572;
    --gold-deep: #8B7A3D;
    --gold-shimmer: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --ink: #0A0A0A;
    --ink-soft: #131313;
    --paper: #F8F5EF;
    --paper-soft: #EFEAE0;
    --bone: #E5DDD0;
    --mist: #C8BFB1;
    --char: #2A2620;
    --line: rgba(201, 169, 97, 0.2);

    /* Fonts */
    --serif: 'Cormorant Garamond', 'Tenor Sans', Georgia, serif;
    --serif-display: 'Tenor Sans', 'Cormorant Garamond', serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, textarea, select { font-family: inherit; cursor: pointer; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], textarea { cursor: text; }

/* Cache les curseurs custom (.cursor-dot, .cursor-ring) qui ne marchent pas bien */
.cursor-dot, .cursor-ring { display: none !important; }
button { border: none; background: none; color: inherit; }
ul { list-style: none; }

/* CUSTOM CURSOR */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--paper);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--paper);
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s, transform 0.15s var(--ease);
}
.cursor-ring.hover {
    width: 70px; height: 70px;
    border-color: var(--gold-bright);
    background: rgba(201, 169, 97, 0.1);
}
.cursor-ring.text {
    width: 90px; height: 90px;
}
.cursor-ring.text::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink);
    mix-blend-mode: difference;
}
@media (max-width: 992px) {
    body { cursor: auto; }
    button, input, a, select, textarea { cursor: pointer; }
    .cursor-dot, .cursor-ring { display: none; }
}

/* SELECTION */
::selection { background: var(--gold); color: var(--ink); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); }

/* TYPOGRAPHY */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.display {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.massive { font-size: clamp(4rem, 14vw, 16rem); line-height: 0.85; }
.huge { font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.9; }
.large { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.95; }
.medium { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; }

.italic { font-style: italic; font-weight: 400; }

.gilded,
.gilded > * {
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.outline {
    -webkit-text-stroke: 1px var(--gold);
    color: transparent;
}

/* CHAPTER MARK */
.chapter {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.chapter-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--gold);
    font-style: italic;
    line-height: 1;
    font-weight: 400;
}

/* LAYOUT */
.wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}
.wrap-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

section { padding: 8rem 0; position: relative; }
section.tight { padding: 5rem 0; }
section.spacious { padding: 12rem 0; }
section.light { background: var(--paper); color: var(--ink); }
section.cream { background: var(--paper-soft); color: var(--ink); }

/* NAVBAR */
.editorial-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.editorial-nav.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 3rem;
}

/* ===== Theme clair de la nav (au-dessus d'une section claire) =====
   Bascule sur le logo NOIR + textes sombres, sans mix-blend-mode. */
.editorial-nav.over-light .nav-menu-editorial a { color: var(--char); }
.editorial-nav.over-light .nav-menu-editorial a.active { color: var(--gold-deep); }
.editorial-nav.over-light .nav-reserve-btn { color: var(--gold-deep) !important; border-color: var(--gold-deep); }
.editorial-nav.over-light .nav-reserve-btn:hover { background: var(--gold-deep); color: var(--paper) !important; }
.editorial-nav.over-light .nav-burger-2 span { background: var(--char); }
.editorial-nav.scrolled.over-light {
    background: rgba(248,245,239,0.92);
    border-bottom-color: rgba(0,0,0,0.08);
}
/* La bascule du fichier logo (blanc <-> noir) est geree en JS via src. */
.editorial-nav .logo img { transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.editorial-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.editorial-nav .logo img {
    height: 56px;
    width: auto;
    transition: transform 0.4s var(--ease);
}
.editorial-nav.scrolled .logo img { height: 44px; }
.editorial-nav .logo:hover img { transform: scale(1.05) rotate(-2deg); }

.nav-menu-editorial {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.nav-menu-editorial a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    color: var(--paper);
    position: relative;
    padding: 0.5rem 0;
}
.nav-menu-editorial a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--ease);
}
.nav-menu-editorial a:hover::after,
.nav-menu-editorial a.active::after { width: 100%; }
.nav-menu-editorial a.active { color: var(--gold-bright); }

.nav-reserve-btn {
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--gold);
    color: var(--gold-bright) !important;
    transition: all 0.4s var(--ease);
}
.nav-reserve-btn::after { display: none; }
.nav-reserve-btn:hover {
    background: var(--gold);
    color: var(--ink) !important;
}

.nav-burger-2 { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger-2 span { width: 26px; height: 1px; background: var(--gold); transition: all 0.3s; }
.nav-burger-2.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-burger-2.open span:nth-child(2) { opacity: 0; }
.nav-burger-2.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* MARQUEE */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
    background: var(--ink-soft);
}
.marquee-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
}
.marquee-item {
    padding: 0 3rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--mist);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3rem;
    font-style: italic;
    font-weight: 300;
}
.marquee-item::after {
    content: '✦';
    color: var(--gold);
    font-size: 0.7em;
    font-style: normal;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* HERO EDITORIAL */
.hero-editorial {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 6fr 5fr;
    align-items: end;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

/* Vidéo background du hero */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero-video-bg video.loaded { opacity: 1; }
.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--ink) 0%, rgba(10,10,10,0.85) 40%, rgba(10,10,10,0.5) 100%),
        linear-gradient(180deg, transparent 0%, var(--ink) 100%);
    z-index: 1;
}
.hero-editorial > .hero-text,
.hero-editorial > .hero-feature,
.hero-editorial > .hero-index { position: relative; z-index: 2; }
.hero-text { position: relative; z-index: 10; }
.hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--mist);
}
.hero-meta-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 11vw, 11rem);
    line-height: 0.85;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}
.hero-title .swap {
    font-style: italic;
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-lede {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--bone);
    max-width: 480px;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-feature {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid var(--line);
}
.hero-feature img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 12s ease-out;
}
.hero-feature:hover img { transform: scale(1.08); }
.hero-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.8) 100%);
}
.hero-feature-caption {
    position: absolute;
    bottom: 2rem; left: 2rem; right: 2rem;
    z-index: 2;
    color: var(--paper);
}
.hero-feature-caption .label {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}
.hero-feature-caption .name {
    font-family: var(--serif);
    font-size: 1.8rem;
    line-height: 1;
}

.hero-index {
    position: absolute;
    bottom: 4rem; right: 3rem;
    z-index: 10;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-index .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(201,169,97,0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201,169,97,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(201,169,97,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,169,97,0); }
}

/* BUTTONS */
.btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    color: var(--paper);
    border-bottom: 1px solid var(--gold);
    transition: all 0.4s var(--ease);
    position: relative;
}
.btn-editorial::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease);
}
.btn-editorial:hover {
    color: var(--gold-bright);
    padding-right: 1rem;
}
.btn-editorial:hover::after { transform: translateX(8px); }

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    color: var(--gold-bright);
    border: 1px solid var(--gold);
    transition: all 0.4s var(--ease);
    background: transparent;
    position: relative;
    overflow: hidden;
}
.btn-line span { position: relative; z-index: 2; }
.btn-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}
.btn-line:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-line:hover { color: var(--ink); }

.btn-filled {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    background: var(--gold);
    color: var(--ink);
    transition: all 0.4s var(--ease);
    border: 1px solid var(--gold);
}
.btn-filled:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}

/* SPEEDOMETER divider (referencing logo) */
.speedo-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
}
.speedo-divider svg { color: var(--gold); }
.speedo-divider span {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
}

/* SECTION HEADERS */
.section-head-ed {
    margin-bottom: 5rem;
}
.section-head-ed .chapter-line {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.section-head-ed h2 {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.02em;
    max-width: 900px;
}
.section-head-ed .lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--mist);
    max-width: 600px;
    margin-top: 1.5rem;
    line-height: 1.5;
}
section.light .section-head-ed .lede { color: var(--char); }

/* SERVICES EDITORIAL */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
}
.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    align-items: start;
    transition: all 0.5s var(--ease);
    cursor: pointer;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 2rem; padding-right: 2rem; }
.service-row:hover .service-arrow { transform: translateX(20px); color: var(--gold-bright); }
.service-num {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
}
.service-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    font-weight: 300;
}
.service-desc {
    font-size: 1rem;
    color: var(--mist);
    line-height: 1.7;
}
.service-arrow {
    color: var(--gold);
    font-size: 1.5rem;
    transition: all 0.4s var(--ease);
    text-align: right;
}

/* BENTO / EDITORIAL VEHICLE GRID */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    grid-auto-rows: minmax(280px, auto);
}
.editorial-card {
    position: relative;
    overflow: hidden;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    transition: all 0.7s var(--ease);
    cursor: pointer;
}
.editorial-card:hover { border-color: var(--gold); }
.editorial-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease);
}
.editorial-card:hover img { transform: scale(1.05); }
.card-meta {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, transparent 30%, transparent 60%, rgba(10,10,10,0.9) 100%);
    z-index: 2;
}
.card-meta .top { display: flex; justify-content: space-between; }
.card-meta .index {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
}
.card-meta .bottom { color: var(--paper); }
.card-meta .brand {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}
.card-meta .name {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1;
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.card-meta .price {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold-bright);
}

.card-feature { grid-column: span 7; grid-row: span 2; }
.card-tall { grid-column: span 5; grid-row: span 2; }
.card-wide { grid-column: span 8; }
.card-small { grid-column: span 4; }
.card-med { grid-column: span 6; }

@media (max-width: 992px) {
    .card-feature, .card-tall, .card-wide, .card-small, .card-med { grid-column: span 12; grid-row: auto; }
}

/* SPLIT SECTIONS */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}
.split-section.reverse > div:first-child { order: 2; }
.split-side {
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-image {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}
.split-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}
.split-image:hover img { transform: scale(1.05); }

/* PULL QUOTE */
.pull-quote {
    text-align: center;
    padding: 6rem 0;
    max-width: 1100px;
    margin: 0 auto;
}
.pull-quote .mark {
    font-family: var(--serif);
    font-size: 8rem;
    color: var(--gold);
    line-height: 0.5;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.pull-quote p {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
}
.pull-quote cite {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-style: normal;
}

/* STATS EDITORIAL */
.stats-editorial {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat-editorial {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat-editorial:last-child { border-right: 0; }
.stat-editorial .num {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.stat-editorial .label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--mist);
}

/* TESTIMONIALS HORIZONTAL */
.testimonials-scroll {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding: 2rem 3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonial-ed {
    flex: 0 0 480px;
    scroll-snap-align: start;
    padding: 3rem;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    transition: all 0.5s var(--ease);
}
.testimonial-ed:hover { border-color: var(--gold); }
.testimonial-ed .stars { color: var(--gold); letter-spacing: 0.4em; margin-bottom: 1.5rem; }
.testimonial-ed .text {
    font-family: var(--serif);
    font-size: 1.4rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--bone);
    margin-bottom: 2rem;
}
.testimonial-ed .author { display: flex; align-items: center; gap: 1rem; }
.testimonial-ed .author-letter {
    width: 50px; height: 50px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.3rem;
}
.testimonial-ed .author-info strong { display: block; }
.testimonial-ed .author-info small { color: var(--mist); font-size: 0.8rem; }

/* FOOTER EDITORIAL */
.footer-editorial {
    background: var(--ink);
    border-top: 1px solid var(--line);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.footer-mega {
    font-family: var(--serif);
    font-size: clamp(5rem, 18vw, 22rem);
    line-height: 0.85;
    font-weight: 300;
    text-align: center;
    color: var(--ink-soft);
    -webkit-text-stroke: 1px var(--gold-deep);
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    user-select: none;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.footer-col ul li {
    padding: 0.4rem 0;
    color: var(--mist);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}
.footer-col ul li a { display: block; transition: padding 0.3s var(--ease); }
.footer-col ul li:hover { color: var(--gold-bright); }
.footer-col ul li:hover a { padding-left: 0.6rem; }
.footer-bottom-ed {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--mist);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* REVEAL ANIMATIONS */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-line {
    overflow: hidden;
}
.reveal-line > * {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease);
}
.reveal-line.visible > * { transform: translateY(0); }

.reveal-mask {
    position: relative;
    overflow: hidden;
}
.reveal-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1.4s var(--ease);
}
.reveal-mask.visible::after { transform: scaleX(0); transform-origin: left; }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ============ WHATSAPP FLOATING BUTTON ============ */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s var(--ease);
    cursor: pointer;
}
.wa-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.4;
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}
.wa-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}
.wa-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--gold);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(-6px); }

/* ============ PAGE TRANSITION LOADER ============ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99997;
    pointer-events: none;
    background: var(--ink);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-transition.active { transform: translateY(0); }
.page-transition.leaving { transform: translateY(-100%); }
.page-transition .center-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s 0.2s var(--ease);
}
.page-transition.active .center-logo { opacity: 1; }
.page-transition .center-logo img { height: 80px; }
.page-transition .center-logo .line {
    width: 80px; height: 1px;
    background: var(--gold);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s 0.3s var(--ease);
}
.page-transition.active .center-logo .line { transform: scaleX(1); }

/* ============ DARK / LIGHT THEME ============ */
body.light {
    --ink: #FAF8F3;
    --ink-soft: #FFFFFF;
    --paper: #1A1410;
    --paper-soft: #F0EBE0;
    --bone: #2A2620;
    --mist: #555;
    --char: #1A1410;
    --line: rgba(139, 122, 61, 0.25);
}
body.light .editorial-loader { background: #FAF8F3; }
body.light .footer-mega { color: #F0EBE0; -webkit-text-stroke: 1px var(--gold-deep); }
body.light .pull-quote .mark { opacity: 0.5; }

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 6.5rem;
    z-index: 9000;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink-soft);
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.theme-toggle:hover { background: var(--gold); color: var(--ink); transform: rotate(20deg); }

@media (max-width: 600px) {
    .wa-float { width: 52px; height: 52px; bottom: 1.5rem; right: 1.5rem; font-size: 1.4rem; }
    .wa-tooltip { display: none; }
    .theme-toggle { right: 5rem; bottom: 1.5rem; width: 38px; height: 38px; }
}

/* ============ WISHLIST ============ */
.wishlist-fab {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 9000;
    width: 50px; height: 50px;
    background: var(--ink);
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s var(--ease);
    position: relative;
}
.wishlist-fab:hover { background: var(--gold); color: var(--ink); transform: scale(1.05); }
.wishlist-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--gold);
    color: var(--ink);
    border-radius: 50px;
    min-width: 22px; height: 22px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
}

.wishlist-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--ink);
    border-left: 1px solid var(--gold);
    z-index: 9100;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    display: flex;
    flex-direction: column;
}
.wishlist-panel.open { transform: translateX(0); }
.wishlist-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.wishlist-eyebrow {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.wishlist-head h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
}
.wishlist-head h3 em { font-style: italic; color: var(--gold); }
.wishlist-body { flex: 1; overflow-y: auto; padding: 1rem; }
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    margin-bottom: 0.5rem;
}
.wishlist-item img { width: 60px; height: 45px; object-fit: cover; }
.wishlist-item strong { display: block; font-family: var(--serif); font-size: 1rem; }
.wishlist-item small { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); }
.wishlist-foot {
    padding: 1.5rem;
    border-top: 1px solid var(--line);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 8500;
    background: var(--ink-soft);
    border: 1px solid var(--gold);
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(120%);
    opacity: 0;
    animation: cookieSlide 0.6s 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cookieSlide { to { transform: translateY(0); opacity: 1; } }
.cookie-banner.hidden { animation: cookieOut 0.5s ease forwards; }
@keyframes cookieOut { to { transform: translateY(120%); opacity: 0; } }

.cookie-banner .cookie-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr auto;
    gap: 2rem;
    align-items: center;
}
.cookie-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.cookie-eyebrow i { margin-right: 0.5rem; }
.cookie-text h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.cookie-text h4 em { font-style: italic; color: var(--gold); }
.cookie-text p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.5;
}
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cookie-options label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bone);
    cursor: pointer;
}
.cookie-options input[type=checkbox] {
    accent-color: var(--gold);
    width: 16px; height: 16px;
}
.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ck-btn {
    padding: 0.8rem 1.4rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}
.ck-btn:hover { background: rgba(212,175,55,0.1); }
.ck-btn.ck-accept { background: var(--gold); color: var(--ink); }
.ck-btn.ck-accept:hover { background: var(--gold-bright); }
.ck-btn.ck-refuse { border-color: var(--line); color: var(--mist); }

@media (max-width: 992px) {
    .cookie-banner { bottom: 1rem; left: 1rem; right: 1rem; padding: 1.5rem; }
    .cookie-banner .cookie-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .cookie-actions { flex-direction: row; flex-wrap: wrap; }
}

/* LOADER */
.editorial-loader {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 1s var(--ease), visibility 1s;
}
.editorial-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
    width: 140px;
    margin-bottom: 2rem;
}
.loader-bar {
    width: 240px;
    height: 1px;
    background: var(--ink-soft);
    overflow: hidden;
    position: relative;
}
.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--gold);
    animation: fill 2s var(--ease) forwards;
}
@keyframes fill {
    0% { width: 0%; }
    100% { width: 100%; }
}
.loader-text {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-top: 1.5rem;
}

/* FORM EDITORIAL */
.form-ed-group { margin-bottom: 2.5rem; position: relative; }
.form-ed-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.form-ed-input, .form-ed-select, .form-ed-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 0;
    color: var(--paper);
    font-size: 1.1rem;
    font-family: var(--serif);
    transition: all 0.3s var(--ease);
}
section.light .form-ed-input,
section.light .form-ed-select,
section.light .form-ed-textarea { color: var(--ink); border-bottom-color: rgba(0,0,0,0.2); }
.form-ed-input:focus, .form-ed-select:focus, .form-ed-textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}
.form-ed-select option { background: var(--ink); color: var(--paper); }
.form-ed-textarea { resize: vertical; min-height: 100px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .wrap, .wrap-narrow { padding: 0 1.5rem; }
    .editorial-nav { padding: 1rem 1.5rem; }
    .nav-menu-editorial {
        position: fixed;
        inset: 80px 0 0 0;
        background: var(--ink);
        flex-direction: column;
        justify-content: flex-start;
        padding: 4rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.6s var(--ease);
    }
    .nav-menu-editorial.open { transform: translateX(0); }
    .nav-burger-2 { display: flex; }
    .hero-editorial { grid-template-columns: 1fr; padding: 8rem 1.5rem 4rem; }
    .stats-editorial { grid-template-columns: 1fr 1fr; }
    .stat-editorial:nth-child(2) { border-right: 0; }
    .split-section { grid-template-columns: 1fr; }
    .split-section.reverse > div:first-child { order: initial; }
    .split-side { padding: 4rem 1.5rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 60px 1fr; gap: 1rem; }
    .service-row > *:nth-child(3), .service-row > *:nth-child(4) { grid-column: 2; }
    /* Menu mobile ouvert : fond sombre garanti sous le logo */
    .editorial-nav:has(.nav-menu-editorial.open) {
        background: var(--ink);
        border-bottom: 1px solid var(--line);
    }
}

/* ============================================================
   SMARTPHONE - refonte <= 768px puis <= 480px
   ============================================================ */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .wrap, .wrap-narrow { padding: 0 1.25rem; }
    .editorial-nav { padding: 0.9rem 1.25rem; }
    .editorial-nav .logo img { height: 42px; }
    .editorial-nav.scrolled .logo img { height: 38px; }

    /* Toute grille 12 colonnes s'empile */
    .grid-12 { display: block; }
    .grid-12 > * { grid-column: 1 / -1 !important; width: 100%; }
    .grid-12 > * + * { margin-top: 2.5rem; }

    /* Grilles 2 colonnes inline -> 1 colonne */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Espacements verticaux des sections reduits */
    section[style*="padding: 10rem 0"] { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
    section[style*="padding: 8rem 0"]  { padding-top: 4rem !important;   padding-bottom: 4rem !important; }
    section.light, section.cream { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    section.spacious { padding: 5rem 0; }

    /* HERO */
    .hero-editorial {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 7rem 1.25rem 3.5rem !important;
        align-items: start;
    }
    .hero-meta { gap: 1rem; margin-bottom: 1.5rem; font-size: 0.65rem; flex-wrap: wrap; }
    .hero-meta-line { width: 32px; }
    .hero-title { font-size: clamp(3rem, 16vw, 5rem); margin-bottom: 1.75rem; }
    .hero-lede { font-size: 1.15rem; max-width: 100%; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
    .hero-actions .btn-line,
    .hero-actions .btn-editorial { text-align: center; }
    .hero-feature { aspect-ratio: 16/11; }
    .hero-feature-caption { bottom: 1.25rem; left: 1.25rem; right: 1.25rem; }
    .hero-feature-caption .name { font-size: 1.4rem; }
    .hero-index { display: none; }

    /* Typo display */
    .display.huge { font-size: clamp(2.5rem, 12vw, 4rem); }
    .display.large { font-size: clamp(2.2rem, 10vw, 3.2rem); }

    /* Marquee plus discret */
    .marquee-item { font-size: 1.4rem; }

    /* Pull quote */
    .pull-quote p { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .pull-quote .mark { font-size: 4rem; }

    /* Services en pile */
    .service-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.75rem 0;
    }
    .service-row > * { grid-column: 1 !important; }
    .service-title { font-size: 1.8rem; }
    .service-arrow { display: none; }

    /* Split / partenaires */
    .split-section { grid-template-columns: 1fr; }
    .split-image { min-height: 260px; }
    .split-side { padding: 3rem 1.25rem; }

    /* Footer */
    .footer-editorial { padding: 4rem 0 1.5rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
    .footer-bottom-ed { flex-direction: column; align-items: flex-start; gap: 0.5rem; text-align: left; }
    .footer-mega { font-size: clamp(4rem, 26vw, 9rem); }

    /* Bouton WhatsApp un peu plus petit */
    .wa-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
    .editorial-nav .logo img { height: 38px; }
    .nav-menu-editorial { padding: 3rem 1.5rem; gap: 1.5rem; }
    .nav-menu-editorial a { font-size: 0.85rem; }

    .hero-title { font-size: clamp(2.6rem, 17vw, 4rem); }
    .hero-lede { font-size: 1.05rem; }

    .display.huge { font-size: clamp(2.1rem, 13vw, 3.2rem); }
    .display.large { font-size: clamp(1.9rem, 11vw, 2.8rem); }

    .section-head-ed h2 { font-size: clamp(2rem, 11vw, 3rem); }
    .service-title { font-size: 1.55rem; }

    /* Footer en une colonne sur tres petit ecran */
    .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
}
