/* ══════════════════════════════════════════════
   MYVOYANCE.NET — Template "Brume Graphite"
   Palette : #EEF2EA (graphite) / #C2A77A (or antique) / #26302A (ivoire clair)
   Fonts  : Italiana (headings) + DM Sans (body)
   ══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg: #EEF2EA;
    --bg-light: #E4EAE0;
    --bg-card: #FBFCF8;
    --bg-card-hover: #F5F8F1;

    --accent: #C2A77A;
    --accent-light: #D4BF96;
    --accent-dark: #5E7860;
    --accent-glow: rgba(194, 167, 122, 0.3);

    /* Harmonious sage gradient (buttons, accents) */
    --sage-light: #8FAA94;
    --sage: #6E8C74;
    --sage-deep: #4A6552;
    --sage-dark: #3A5344;
    --sage-glow: rgba(110, 140, 116, 0.25);

    --silver: #6A766C;
    --silver-light: #7A867C;
    --silver-muted: #9AA29C;

    --white: #26302A;
    --white-muted: #6A766C;
    --text: #3A4238;
    --text-muted: #8A8F86;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('../img/fondfog.jpg') center/cover no-repeat;
    opacity: 0.08;
    mix-blend-mode: multiply;
}

main {
    position: relative;
    z-index: 1;
    background: transparent;
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('../img/fondfog.jpg') center/cover no-repeat;
    opacity: 0.06;
    mix-blend-mode: multiply;
}

/* Fondu hero → contenu */
.hero-fade-bridge {
    position: relative;
    z-index: 2;
    height: 150px;
    margin-top: -1px;
    background: linear-gradient(to bottom, #EEF2EA 0%, rgba(238, 242, 234, 0.5) 50%, transparent 100%);
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'Italiana', serif;
    color: var(--white);
    line-height: 1.2;
    font-weight: 600;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Canvas nébuleuse (désactivé) ── */
#nebula-canvas {
    display: none;
}

/* ── Cartes flottantes — désactivées ── */

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
    background: rgba(238, 242, 234, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    border-bottom: none;
    box-shadow: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
    transition: transform var(--transition);
}

.nav-logo:hover {
    transform: scale(1.03);
}

.logo-name {
    font-family: 'Italiana', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #2B3E30 !important;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--sage-deep) !important;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-logo--has-img .logo-name,
.nav-logo--has-img .logo-sub {
    display: none;
}

.footer-brand .nav-logo .logo-name {
    font-size: 1.7rem;
}

.footer-brand .nav-logo .logo-sub {
    font-size: 0.65rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    color: var(--white-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--sage);
    border-radius: 2px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    color: #FFFFFF !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 12px var(--sage-glow);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--sage-light), var(--sage));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(110, 140, 116, 0.35);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════
   HERO — 100vh avec image + smog
   ══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
    padding: 0 2rem;
}

/* Bridge de fondu : du blanc du bas du hero vers le gris du background de la page */
.hero + section {
    position: relative;
    z-index: 2;
    margin-top: -50px !important;
    padding-top: 2.5rem !important;
}

.hero + section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -150px;
    height: 220px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to bottom,
        rgba(238, 242, 234, 0) 0%,
        rgba(238, 242, 234, 0.04) 8%,
        rgba(238, 242, 234, 0.12) 16%,
        rgba(238, 242, 234, 0.28) 26%,
        rgba(238, 242, 234, 0.5) 38%,
        rgba(238, 242, 234, 0.78) 50%,
        #EEF2EA 62%,
        #F0F3EC 74%,
        #F3F6EF 84%,
        #F5F8F2 92%,
        rgba(248, 250, 245, 0.3) 98%,
        rgba(248, 250, 245, 0) 100%
    );
}

/* ── Hero Image Background ── */
.hero-img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.5) brightness(0.45) sepia(0.2) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 40% 50%, rgba(238, 242, 234, 0.2) 0%, rgba(238, 242, 234, 0.5) 50%, rgba(238, 242, 234, 0.9) 90%),
        linear-gradient(180deg, rgba(238, 242, 234, 0.1) 0%, transparent 30%, rgba(238, 242, 234, 0.7) 85%, #EEF2EA 100%);
    z-index: 1;
}

/* Smoke overlay layer — désactivé */
.hero-smoke {
    display: none;
}

/* Hero inner — 2 colonnes : texte + portrait */
.hero-inner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    background: radial-gradient(ellipse at center, rgba(238, 242, 234, 0.85) 0%, rgba(238, 242, 234, 0.6) 50%, rgba(238, 242, 234, 0.2) 75%, transparent 100%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
}

.hero-portrait {
    flex: 0 0 500px;
    position: relative;
    z-index: 5;
}

.hero-portrait > img,
.hero-portrait > picture > img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 0;
}

.hero-portrait > picture {
    display: block;
    line-height: 0;
}

.hero-portrait .frame-overlay {
    position: absolute;
    inset: -15px;
    z-index: 2;
    pointer-events: none;
}

.hero-portrait .frame-overlay img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: drop-shadow(0 0 20px rgba(194, 167, 122, 0.25));
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #13211A;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 1),
        0 0 4px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.98),
        0 0 14px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.85),
        0 0 34px rgba(248, 250, 245, 0.75),
        0 0 50px rgba(238, 242, 234, 0.6),
        0 0 70px rgba(238, 242, 234, 0.45),
        0 1px 2px rgba(255, 255, 255, 1);
    -webkit-text-stroke: 0.6px rgba(19, 33, 26, 0.3);
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.hero-title .hero-line {
    display: block;
    opacity: 0;
    transform: scale(0.5);
}

.hero-title .hero-accent {
    color: var(--accent-dark);
    -webkit-text-fill-color: var(--accent-dark);
}

/* Hero title reveal — slow zoom from depth */
.hero.revealed .hero-title .hero-line:nth-child(1) {
    animation: titleDepth 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero.revealed .hero-title .hero-line:nth-child(2) {
    animation: titleDepth 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes titleDepth {
    0% { opacity: 0; transform: scale(0.5); }
    30% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero reveal animation */
.hero.revealed .hero-badge {
    animation: heroReveal 0.8s ease forwards 0.2s;
}
.hero-subtitle p + p {
    margin-top: 1rem;
}

.hero.revealed .hero-subtitle {
    animation: heroReveal 0.8s ease forwards 0.6s;
}
.hero.revealed .hero-buttons {
    animation: heroReveal 0.8s ease forwards 0.8s;
}

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

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroReveal 0.8s ease forwards 1.2s;
}

.hero-scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Fondu bas du hero vers le contenu */
/* Bordure dorée bas du hero avec footsec.png */
.hero-bottom-border {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 6;
    pointer-events: none;
    line-height: 0;
    overflow: hidden;
    height: 20px;
}

.hero-bottom-border img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    filter: brightness(1.1);
}

/* ══════════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.3;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    color: #FFFFFF;
    box-shadow: 0 4px 20px var(--sage-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sage-light), var(--sage));
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(110, 140, 116, 0.35);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: var(--silver-light);
    border: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(194, 167, 122, 0.08);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.1em;
    transition: transform var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-text {
    display: inline;
}

/* ══════════════════════════════════════════════
   SECTIONS — Commun
   ══════════════════════════════════════════════ */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    margin-bottom: 1rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .section-title {
        white-space: normal;
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
}

.section-desc {
    font-size: 1.05rem;
    color: var(--white-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-padding {
    padding: 6rem 0;
    margin-top: 0;
}

/* ══════════════════════════════════════════════
   DIVISEUR — Séparateur doré céleste
   ══════════════════════════════════════════════ */
.fog-divider {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 0;
    pointer-events: none;
}

.fog-divider img {
    display: inline-block;
    max-width: 780px;
    width: 100%;
    height: auto;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Fog divider juste après le hero */
.hero + .fog-divider {
    position: relative;
    z-index: 4;
}

/* Première section après le hero */
.hero + .fog-divider + .split-section,
.hero + .fog-divider + section {
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.hero + .fog-divider + .split-section::before,
.hero + .fog-divider + section::before {
    content: none;
}

/* ══════════════════════════════════════════════
   SPLIT SECTIONS — Alternance 50/50
   ══════════════════════════════════════════════ */
.split-section {
    padding: 5rem 0;
    margin-top: 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.split-section.layout-reverse .split-grid {
    direction: rtl;
}

.split-section.layout-reverse .split-grid > * {
    direction: ltr;
}

.split-grid .split-content {
    margin-top: 0;
}

/* Première section après hero */

/* Bloc texte pleine largeur sous le grid */
.split-fullwidth {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-fullwidth .split-text {
    max-width: 100%;
}

.split-fullwidth .btn {
    align-self: flex-start;
}

.split-section.layout-reverse .split-grid .split-content {
    margin-top: 0;
    align-self: center;
}

.split-section.layout-reverse .split-grid .split-visual {
    margin-top: 5rem;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-content .btn {
    align-self: center;
}

.split-content .section-tag {
    margin-bottom: 0;
}

.split-content .section-title {
    text-align: left;
    margin-bottom: 0;
}

.split-text {
    color: var(--white-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.split-text strong {
    color: var(--white);
    font-weight: 600;
}

.split-visual {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    padding: 5px;
    background: linear-gradient(145deg,
        var(--accent) 0%,
        var(--accent-light) 15%,
        rgba(194, 167, 122, 0.2) 30%,
        rgba(212, 191, 150, 0.5) 50%,
        rgba(194, 167, 122, 0.2) 70%,
        var(--accent-light) 85%,
        var(--accent) 100%);
    box-shadow:
        0 0 10px rgba(194, 167, 122, 0.25),
        0 0 30px rgba(194, 167, 122, 0.15),
        0 0 60px rgba(194, 167, 122, 0.08),
        inset 0 0 20px rgba(194, 167, 122, 0.1),
        0 15px 50px rgba(94, 120, 96, 0.08);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.split-visual:hover {
    box-shadow:
        0 0 15px rgba(194, 167, 122, 0.4),
        0 0 45px rgba(194, 167, 122, 0.2),
        0 0 80px rgba(194, 167, 122, 0.1),
        inset 0 0 25px rgba(194, 167, 122, 0.15),
        0 20px 60px rgba(94, 120, 96, 0.09);
    transform: translateY(-2px);
}

.split-visual img {
    width: 100%;
    border-radius: 6px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Lueur et ornements — désactivés */
.split-visual::before,
.split-visual::after {
    content: none;
}

/* Image sans cadre */
.split-visual.split-visual-naked {
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    transform-origin: center center;
}

.split-visual.split-visual-naked:hover {
    box-shadow: none;
    transform: none;
}

.split-visual.split-visual-naked::before,
.split-visual.split-visual-naked::after {
    content: none;
}

.split-visual.split-visual-naked img {
    border-radius: 0;
}

/* ══════════════════════════════════════════════
   FLIP CARDS
   ══════════════════════════════════════════════ */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.flip-card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
    border-radius: var(--radius);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: transparent;
    border: none;
    box-shadow: none;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    border: none;
    transform: rotateY(180deg);
}

.flip-card-back p {
    color: #FFFFFF;
    font-size: 0.95rem;
    line-height: 1.7;
}

.flip-icon {
    margin-bottom: 1.2rem;
    color: var(--accent-light);
    transition: color var(--transition);
}

.flip-icon img {
    width: 48px;
    height: 48px;
    filter: brightness(1) invert(0) sepia(0) saturate(1);
    transition: filter var(--transition);
}

.flip-card:hover .flip-icon img,
.flip-card:focus .flip-icon img {
    filter: brightness(1.2);
}

.flip-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.flip-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ══════════════════════════════════════════════
   TIMELINE / PROCESSUS
   ══════════════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(194, 167, 122, 0.1));
}

.timeline-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 0 15px var(--accent-glow);
}

.step-content {
    background: transparent;
    border: none;
    padding: 1.5rem;
    box-shadow: none;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--white-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   ACCORDÉONS
   ══════════════════════════════════════════════ */
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--white-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.6rem 0 0;
    transition: color var(--transition);
    text-align: left;
}

.accordion-trigger:hover {
    color: var(--accent-light);
}

.accordion-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition);
}

.accordion-icon::before {
    top: 50%;
    left: 3px;
    right: 3px;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    transform: translateX(-50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-panel.open {
    max-height: 500px;
    padding-top: 0.8rem;
}

.accordion-panel p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   CARDS SPÉCIALITÉS
   ══════════════════════════════════════════════ */
.specialites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-card {
    background: transparent;
    border: none;
    padding: 1.8rem;
    transition: all var(--transition);
    box-shadow: none;
}

.spec-card:hover {
    transform: translateY(-3px);
}

.spec-icon {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.spec-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(1) invert(0) sepia(0) saturate(1);
}

.spec-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.spec-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--accent-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0 0;
    transition: color var(--transition);
}

.spec-toggle:hover {
    color: var(--accent);
}

.spec-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.spec-detail.open {
    max-height: 300px;
    padding-top: 0.8rem;
}

.spec-detail p {
    color: var(--white-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   ENGAGEMENTS
   ══════════════════════════════════════════════ */
.engagements-grid,
.engagements-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.engagement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    transition: all var(--transition);
    box-shadow: none;
}

.engagement-item:hover {}

.engagement-check {
    color: var(--accent-light);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.engagement-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.2rem;
}

.engagement-item p {
    color: var(--white-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   SECTION FINALE / CTA
   ══════════════════════════════════════════════ */
.final-cta {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(194, 167, 122, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.final-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 3rem;
    align-items: center;
}

.final-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.final-price {
    font-family: 'Italiana', serif;
    font-size: 3.5rem;
    color: var(--accent-light);
    margin: 1.5rem 0;
    text-shadow: 0 0 30px rgba(194, 167, 122, 0.35);
}

.final-text {
    color: var(--white-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.final-text strong {
    color: var(--white);
}

.final-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-portrait img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.final-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    position: relative;
    background: rgba(251, 252, 248, 0.55);
    border: 1px solid rgba(110, 140, 116, 0.55);
    border-radius: 2px;
    overflow: visible;
    transition: all var(--transition);
    box-shadow: 0 2px 14px rgba(74, 101, 82, 0.06);
    margin-bottom: 1rem;
    padding: 8px;
    background-image:
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%234A6552' transform='rotate(45 7 7)'%3E%3Crect x='0' y='6.2' width='14' height='1.6'/%3E%3Crect x='6.2' y='0' width='1.6' height='14'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%234A6552' transform='rotate(45 7 7)'%3E%3Crect x='0' y='6.2' width='14' height='1.6'/%3E%3Crect x='6.2' y='0' width='1.6' height='14'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%234A6552' transform='rotate(45 7 7)'%3E%3Crect x='0' y='6.2' width='14' height='1.6'/%3E%3Crect x='6.2' y='0' width='1.6' height='14'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%234A6552' transform='rotate(45 7 7)'%3E%3Crect x='0' y='6.2' width='14' height='1.6'/%3E%3Crect x='6.2' y='0' width='1.6' height='14'/%3E%3C/g%3E%3C/svg%3E");
    background-position: -7px -7px, calc(100% + 7px) -7px, -7px calc(100% + 7px), calc(100% + 7px) calc(100% + 7px);
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-color: rgba(251, 252, 248, 0.55);
}

.faq-item::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(74, 101, 82, 0.3);
    pointer-events: none;
    transition: border-color var(--transition);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: rgba(110, 140, 116, 0.8);
    background-color: rgba(251, 252, 248, 0.75);
}

.faq-item:hover::before {
    border-color: rgba(74, 101, 82, 0.5);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.3rem;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
    position: relative;
    z-index: 1;
}

.faq-question h3 {
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
    z-index: 1;
}

.faq-answer.open {
    max-height: 500px;
}

.faq-answer.open.faq-answer--tall {
    max-height: 2000px;
}

.faq-answer p {
    padding: 0 1.5rem 1.2rem;
    color: var(--white-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer p + p {
    padding-top: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 1.5rem 1.2rem 3rem;
    color: var(--white-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer ul li,
.faq-answer ol li {
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════
   TRUST BAR — sales-page benefit strip
   ══════════════════════════════════════════════ */
.trust-bar {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-item {
    background: transparent;
    border: none;
    padding: 2rem 1.3rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    box-shadow: none;
}

.trust-item:hover {
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: block;
    text-shadow: 0 0 12px rgba(194, 167, 122, 0.4);
}

.trust-title {
    font-family: 'Italiana', serif;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .trust-item {
        padding: 1.3rem 0.8rem;
    }
}

/* ══════════════════════════════════════════════
   INFO GRID — 2-column sales boxes
   ══════════════════════════════════════════════ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-box {
    background: transparent;
    border: none;
    padding: 2.2rem;
    transition: all var(--transition);
    position: relative;
    box-shadow: none;
}

.info-box:hover {
    transform: translateY(-3px);
}

.info-box-title {
    font-family: 'Italiana', serif;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.info-box-lead {
    color: var(--white-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

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

/* ══════════════════════════════════════════════
   CTA CALLOUT — final highlighted block
   ══════════════════════════════════════════════ */
.cta-callout {
    background: linear-gradient(145deg, rgba(110, 140, 116, 0.14), rgba(74, 101, 82, 0.22));
    border: 1px solid rgba(110, 140, 116, 0.55);
    border-radius: 2px;
    padding: 2.8rem 2.4rem;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 28px rgba(74, 101, 82, 0.08);
    background-image:
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='%234A6552' transform='rotate(45 9 9)'%3E%3Crect x='0' y='8' width='18' height='2'/%3E%3Crect x='8' y='0' width='2' height='18'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='%234A6552' transform='rotate(45 9 9)'%3E%3Crect x='0' y='8' width='18' height='2'/%3E%3Crect x='8' y='0' width='2' height='18'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='%234A6552' transform='rotate(45 9 9)'%3E%3Crect x='0' y='8' width='18' height='2'/%3E%3Crect x='8' y='0' width='2' height='18'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='%234A6552' transform='rotate(45 9 9)'%3E%3Crect x='0' y='8' width='18' height='2'/%3E%3Crect x='8' y='0' width='2' height='18'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(145deg, rgba(110, 140, 116, 0.14), rgba(74, 101, 82, 0.22));
    background-position: -9px -9px, calc(100% + 9px) -9px, -9px calc(100% + 9px), calc(100% + 9px) calc(100% + 9px), 0 0;
    background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px, 100% 100%;
    background-repeat: no-repeat;
}

.cta-callout::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(74, 101, 82, 0.3);
    pointer-events: none;
    border-radius: 1px;
}

.cta-callout > * {
    position: relative;
    z-index: 1;
}

.cta-callout-text {
    font-family: 'Italiana', serif;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #2B3E30;
    margin: 0 auto 1.8rem;
    max-width: 720px;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.cta-callout-actions {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-callout {
        padding: 2rem 1.4rem;
    }
    .cta-callout-text {
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    border-top: none;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--silver-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: none;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal {
    font-size: 0.78rem !important;
    margin-top: 0.4rem;
    opacity: 0.7;
}

/* ══════════════════════════════════════════════
   STICKY CTA
   ══════════════════════════════════════════════ */
.sticky-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    color: #FFFFFF;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(194, 167, 122, 0.35);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition);
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(194, 167, 122, 0.45);
    color: #FFFFFF;
}

.sticky-cta-pulse {
    display: none;
}

.sticky-cta-icon {
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════
   ANIMATIONS - Scroll reveal
   ══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.glow-text {
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(194, 167, 122, 0.15);
}

/* ══════════════════════════════════════════════
   CADRE MYSTIQUE — Overlay sur images
   ══════════════════════════════════════════════ */
.split-visual-framed {
    position: relative;
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.split-visual-framed:hover {
    box-shadow: none;
    transform: none;
}

.split-visual-framed::before,
.split-visual-framed::after {
    content: none;
}

.split-visual-framed .frame-overlay {
    position: absolute;
    inset: -30px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(194, 167, 122, 0.3));
}

.split-visual-framed .frame-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.split-visual-framed > img:first-child {
    border-radius: 12px;
    position: relative;
    z-index: 1;
    width: 80%;
    margin: 10% auto;
}

/* ── Section encadrée — désactivé ── */

/* ── Section atmosphère — désactivé ── */

/* ══════════════════════════════════════════════
   FOOTER LOGO
   ══════════════════════════════════════════════ */
.footer-brand .nav-logo--has-img .logo-name,
.footer-brand .nav-logo--has-img .logo-sub {
    display: none;
}

.footer-brand .nav-logo img {
    height: 45px;
}

/* ══════════════════════════════════════════════
   MENTIONS LÉGALES
   ══════════════════════════════════════════════ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--silver-light);
}

.legal-content p {
    color: var(--white-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--white);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-section.layout-reverse .split-grid {
        direction: ltr;
    }

    .split-content .section-title {
        text-align: center;
    }

    .split-content {
        text-align: center;
    }

    .split-grid .split-content,
    .split-section.layout-reverse .split-grid .split-content,
    .split-grid .split-visual,
    .split-section.layout-reverse .split-grid .split-visual {
        margin-top: 0;
    }

    .section-padding,
    .split-section {
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(238, 242, 234, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-portrait {
        flex: 0 0 auto;
        max-width: 280px;
    }

    .hero-portrait > img,
    .hero-portrait > picture > img {
        width: 65%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .final-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .final-content {
        text-align: center;
    }

    .final-buttons {
        justify-content: center;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .flip-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sticky-cta-text {
        display: none;
    }

    .sticky-cta {
        padding: 1rem;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }

    .sticky-cta-icon {
        font-size: 1.3rem;
    }
}

/* ══════════════════════════════════════════════
   MYSTIC FRAMES — esoteric sage ornaments
   ══════════════════════════════════════════════ */
.mystic-frame {
    position: relative;
    display: inline-block;
}

/* ── Rectangular frame (hero portrait) ── */
.mystic-frame--rect {
    padding: 22px;
}

.mystic-frame--rect::before,
.mystic-frame--rect::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition: opacity var(--transition);
}

/* Outer thin sage border */
.mystic-frame--rect::before {
    inset: 0;
    border: 1px solid var(--sage);
    opacity: 0.55;
}

/* Inner finer border — double-line effect */
.mystic-frame--rect::after {
    inset: 10px;
    border: 1px solid var(--sage-deep);
    opacity: 0.35;
}

/* Corner ornaments — rhombus stars */
.mystic-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 3;
    pointer-events: none;
}

.mystic-corner::before,
.mystic-corner::after {
    content: "";
    position: absolute;
    background: var(--sage-deep);
    transform: translate(-50%, -50%) rotate(45deg);
    top: 50%;
    left: 50%;
}

.mystic-corner::before {
    width: 14px;
    height: 2px;
}

.mystic-corner::after {
    width: 2px;
    height: 14px;
}

.mystic-corner--tl { top: -12px; left: -12px; }
.mystic-corner--tr { top: -12px; right: -12px; }
.mystic-corner--bl { bottom: -12px; left: -12px; }
.mystic-corner--br { bottom: -12px; right: -12px; }

/* Top/Bottom center crests — celestial symbols */
.mystic-crest {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--sage-deep);
    font-size: 1.3rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--sage);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 0 3px var(--bg);
}

.mystic-crest--top { top: -17px; }
.mystic-crest--bottom { bottom: -17px; }

/* ── Circular frame (cercle medallion) ── */
.mystic-frame--circle {
    padding: 0;
    position: relative;
}

.mystic-circle-wrap {
    position: relative;
    display: inline-block;
    padding: 26px;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.mystic-circle-wrap > picture {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}

.mystic-circle-wrap > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Outer thin sage circular ring */
.mystic-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.mystic-ring--outer {
    inset: 0;
    border: 1px solid var(--sage);
    opacity: 0.55;
}

.mystic-ring--inner {
    inset: 12px;
    border: 1px dashed var(--sage-deep);
    opacity: 0.4;
}

/* Cardinal point celestial symbols */
.mystic-card {
    position: absolute;
    color: var(--sage-deep);
    font-size: 1.3rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--sage);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 0 3px var(--bg);
}

.mystic-card--n { top: -5px; left: 50%; transform: translateX(-50%); }
.mystic-card--s { bottom: -5px; left: 50%; transform: translateX(-50%); }
.mystic-card--e { right: -5px; top: 50%; transform: translateY(-50%); }
.mystic-card--w { left: -5px; top: 50%; transform: translateY(-50%); }

/* Hover subtle glow */
.mystic-frame:hover .mystic-corner::before,
.mystic-frame:hover .mystic-corner::after,
.mystic-frame:hover .mystic-card,
.mystic-frame:hover .mystic-crest {
    color: var(--sage);
}

@media (max-width: 768px) {
    .mystic-frame--rect { padding: 14px; }
    .mystic-frame--rect::after { inset: 6px; }
    .mystic-corner { width: 18px; height: 18px; }
    .mystic-corner::before { width: 10px; }
    .mystic-corner::after { height: 10px; }
    .mystic-corner--tl { top: -9px; left: -9px; }
    .mystic-corner--tr { top: -9px; right: -9px; }
    .mystic-corner--bl { bottom: -9px; left: -9px; }
    .mystic-corner--br { bottom: -9px; right: -9px; }
    .mystic-crest, .mystic-card { width: 28px; height: 28px; font-size: 1.05rem; }
    .mystic-circle-wrap { padding: 18px; }
}

/* ══════════════════════════════════════════════
   ESOTERIC BACKGROUND DECORATIONS — animated
   ══════════════════════════════════════════════ */
.esoteric-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.esoteric-sym {
    position: absolute;
    color: var(--sage);
    opacity: 0.4;
    font-family: 'DM Sans', sans-serif;
    user-select: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 6px rgba(110, 140, 116, 0.5));
}

/* Individual symbol positioning + sizes + animation assignments */
.esoteric-sym--1  { top:  8%; left:  6%; font-size: 1.6rem; animation: esotericTwinkle 7s ease-in-out 0.2s infinite, esotericDrift 22s ease-in-out 0s infinite; }
.esoteric-sym--2  { top: 14%; left: 92%; font-size: 2.4rem; animation: esotericTwinkle 9s ease-in-out 1.1s infinite, esotericFloat 28s ease-in-out 0s infinite; color: var(--sage-deep); }
.esoteric-sym--3  { top: 26%; left: 14%; font-size: 1.2rem; animation: esotericTwinkle 6s ease-in-out 2s infinite, esotericDrift 18s ease-in-out 0s infinite reverse; }
.esoteric-sym--4  { top: 34%; left: 82%; font-size: 0.9rem; animation: esotericTwinkle 5s ease-in-out 0.8s infinite, esotericFloat 24s ease-in-out 0s infinite reverse; }
.esoteric-sym--5  { top: 44%; left:  4%; font-size: 1.4rem; animation: esotericTwinkle 8s ease-in-out 3s infinite, esotericSpin 40s linear 0s infinite; color: var(--sage-deep); }
.esoteric-sym--6  { top: 52%; left: 88%; font-size: 2rem;   animation: esotericTwinkle 10s ease-in-out 1.5s infinite, esotericFloat 32s ease-in-out 0s infinite; }
.esoteric-sym--7  { top: 62%; left: 22%; font-size: 1.1rem; animation: esotericTwinkle 6.5s ease-in-out 0.6s infinite, esotericDrift 20s ease-in-out 0s infinite; }
.esoteric-sym--8  { top: 68%; left: 76%; font-size: 1.8rem; animation: esotericTwinkle 9.5s ease-in-out 2.4s infinite, esotericFloat 26s ease-in-out 0s infinite reverse; color: var(--sage-deep); }
.esoteric-sym--9  { top: 78%; left: 10%; font-size: 1.3rem; animation: esotericTwinkle 7.5s ease-in-out 1.8s infinite, esotericDrift 24s ease-in-out 0s infinite reverse; }
.esoteric-sym--10 { top: 84%; left: 60%; font-size: 1rem;   animation: esotericTwinkle 5.5s ease-in-out 0.3s infinite, esotericFloat 30s ease-in-out 0s infinite; }
.esoteric-sym--11 { top: 90%; left: 90%; font-size: 1.5rem; animation: esotericTwinkle 8.5s ease-in-out 2.8s infinite, esotericSpin 50s linear 0s infinite reverse; }
.esoteric-sym--12 { top: 96%; left: 36%; font-size: 1.1rem; animation: esotericTwinkle 6s ease-in-out 1.4s infinite, esotericDrift 22s ease-in-out 0s infinite; color: var(--sage-deep); }

/* Orbital rings — slow rotating concentric circles */
.esoteric-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(110, 140, 116, 0.18);
    pointer-events: none;
    will-change: transform;
}

.esoteric-orbit::before {
    content: '\2726';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--sage);
    font-size: 0.9rem;
    opacity: 0.5;
    filter: drop-shadow(0 0 4px rgba(110, 140, 116, 0.4));
}

.esoteric-orbit--1 {
    width: 260px;
    height: 260px;
    top: 18%;
    left: -100px;
    animation: esotericSpin 80s linear infinite;
}

.esoteric-orbit--2 {
    width: 340px;
    height: 340px;
    top: 55%;
    right: -140px;
    left: auto;
    animation: esotericSpin 110s linear infinite reverse;
    border-color: rgba(74, 101, 82, 0.14);
}

.esoteric-orbit--3 {
    width: 200px;
    height: 200px;
    top: 85%;
    left: 40%;
    animation: esotericSpin 95s linear infinite;
    border-color: rgba(110, 140, 116, 0.12);
}

/* Keyframes */
@keyframes esotericTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    40%      { opacity: 0.7; transform: scale(1); }
    60%      { opacity: 0.85; transform: scale(1.08); }
}

@keyframes esotericDrift {
    0%, 100% { translate: 0 0; }
    25%      { translate: 12px -8px; }
    50%      { translate: -6px -18px; }
    75%      { translate: -14px 6px; }
}

@keyframes esotericFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -22px; }
}

@keyframes esotericSpin {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

/* Make sure main content sits above decorations */
.navbar, main, .footer { position: relative; z-index: 1; }
.navbar { z-index: 1000; }

/* Twinkle+drift need to compose — use separate animation layers */
@media (prefers-reduced-motion: reduce) {
    .esoteric-sym, .esoteric-orbit { animation: none !important; opacity: 0.3; }
}

@media (max-width: 768px) {
    .esoteric-sym--2, .esoteric-sym--6, .esoteric-sym--8, .esoteric-sym--11 { display: none; }
    .esoteric-orbit--1, .esoteric-orbit--2 { display: none; }
}
