/**
 * HYPNORIVE — hypnorive.css
 * Palette : #0A0A0F (fond) | #8ab17d (vert) | #F5F5F0 (texte)
 * Typo    : Playfair Display (titres) | Inter (corps)
 * Dark theme premium, mobile-first.
 */

/* =========================================================
   RESET & BASE
   ======================================================= */

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

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

body.hypno-body {
    background-color: var(--hypno-bg);
    color: var(--hypno-text);
    font-family: var(--hypno-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--hypno-text);
}

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

/* =========================================================
   LAYOUT UTILITIES
   ======================================================= */

.hypno-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hypno-section {
    padding: 5rem 0;
}

.hypno-section--sm {
    padding: 3rem 0;
}

.hypno-section--lg {
    padding: 7rem 0;
}

/* =========================================================
   TYPOGRAPHY
   ======================================================= */

.hypno-h1,
h1.hypno-h1 {
    font-family: var(--hypno-font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hypno-text);
}

.hypno-h2,
h2.hypno-h2 {
    font-family: var(--hypno-font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--hypno-text);
}

.hypno-h3 {
    font-family: var(--hypno-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
}

.hypno-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--hypno-text-muted);
    max-width: 640px;
}

.hypno-text-center {
    text-align: center;
}

.hypno-text-muted {
    color: var(--hypno-text-muted);
}

/* Dégradé vert sur texte */
.hypno-text-gradient {
    background: linear-gradient(135deg, #adcca4 0%, #8ab17d 60%, #c5e1bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================
   BUTTONS
   ======================================================= */

.hypno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--hypno-radius);
    font-family: var(--hypno-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all var(--hypno-transition);
    text-decoration: none;
    white-space: nowrap;
}

.hypno-btn--primary {
    background: linear-gradient(135deg, #adcca4 0%, #8ab17d 100%);
    color: var(--hypno-text);
    box-shadow: var(--hypno-shadow-primary);
}

.hypno-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(138, 177, 125, 0.55);
    color: var(--hypno-text);
}

.hypno-btn--primary:active {
    transform: translateY(0);
}

.hypno-btn--ghost {
    background: transparent;
    color: var(--hypno-text-muted);
    border: 1px solid var(--hypno-border-strong);
}

.hypno-btn--ghost:hover {
    background: var(--hypno-bg-elevated);
    color: var(--hypno-text);
    border-color: var(--hypno-primary-light);
}

.hypno-btn--outline {
    background: transparent;
    color: var(--hypno-primary-light);
    border: 1.5px solid var(--hypno-primary-light);
}

.hypno-btn--outline:hover {
    background: var(--hypno-primary);
    color: var(--hypno-text);
}

.hypno-btn--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.hypno-btn--lg {
    padding: 1.1rem 2.6rem;
    font-size: 1.05rem;
}

.hypno-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================================================
   BADGES (catégories séances)
   ======================================================= */

.hypno-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hypno-badge--apaisement {
    background: rgba(138, 177, 125, 0.25);
    color: #adcca4;
    border: 1px solid rgba(173, 204, 164, 0.3);
}

.hypno-badge--clarte {
    background: rgba(99, 179, 237, 0.15);
    color: #90CDF4;
    border: 1px solid rgba(144, 205, 244, 0.3);
}

.hypno-badge--energie {
    background: rgba(246, 173, 85, 0.15);
    color: #F6AD55;
    border: 1px solid rgba(246, 173, 85, 0.3);
}

.hypno-badge--sommeil {
    background: rgba(72, 187, 120, 0.15);
    color: #68D391;
    border: 1px solid rgba(104, 211, 145, 0.3);
}

/* =========================================================
   HEADER
   ======================================================= */

.hypno-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hypno-border);
}

.hypno-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.hypno-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hypno-logo__icon {
    font-size: 1.5rem;
    color: var(--hypno-primary-light);
    transition: transform var(--hypno-transition);
}

.hypno-logo:hover .hypno-logo__icon {
    transform: rotate(45deg);
}

.hypno-logo__text {
    font-family: var(--hypno-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--hypno-text);
    text-transform: uppercase;
}

.hypno-logo--sm .hypno-logo__text {
    font-size: 1rem;
}

/* Nav desktop */
.hypno-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.hypno-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: var(--hypno-radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hypno-text-muted);
    text-decoration: none;
    transition: all var(--hypno-transition);
}

.hypno-nav__link:hover {
    background: var(--hypno-bg-elevated);
    color: var(--hypno-text);
}

.hypno-nav__link--cta {
    background: linear-gradient(135deg, #adcca4, #8ab17d);
    color: var(--hypno-text) !important;
    padding: 0.5rem 1.2rem;
    box-shadow: var(--hypno-shadow-primary);
}

.hypno-nav__link--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(138, 177, 125, 0.5);
}

.hypno-nav__link--outline {
    border: 1px solid var(--hypno-border-strong);
    color: var(--hypno-text-muted) !important;
}

.hypno-nav__link--outline:hover {
    border-color: var(--hypno-text-subtle);
    color: var(--hypno-text) !important;
}

/* Burger mobile */
.hypno-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--hypno-radius);
}

.hypno-burger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hypno-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hypno-burger.is-active .hypno-burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hypno-burger.is-active .hypno-burger__line:nth-child(2) {
    opacity: 0;
}

.hypno-burger.is-active .hypno-burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.hypno-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--hypno-border);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.25s ease;
}

.hypno-mobile-menu.is-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.hypno-mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hypno-mobile-menu__list a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--hypno-radius);
    color: var(--hypno-text-muted);
    font-weight: 500;
    transition: all var(--hypno-transition);
}

.hypno-mobile-menu__list a:hover {
    background: var(--hypno-bg-elevated);
    color: var(--hypno-text);
}

/* =========================================================
   HERO SECTION
   ======================================================= */

.hypno-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138, 177, 125, 0.22) 0%, transparent 70%),
        var(--hypno-bg);
}

.hypno-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%238ab17d' opacity='0.3'/%3E%3C/svg%3E") repeat;
    opacity: 0.4;
    z-index: 0;
}

.hypno-hero__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 1.5rem;
}

.hypno-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hypno-primary-light);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--hypno-border-strong);
    border-radius: 100px;
    background: rgba(138, 177, 125, 0.12);
}

.hypno-hero__title {
    font-family: var(--hypno-font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--hypno-text);
}

.hypno-hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--hypno-text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hypno-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Orbe décoratif */
.hypno-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: hypnoOrb 8s ease-in-out infinite alternate;
}

.hypno-hero__orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(138, 177, 125, 0.25);
    top: -200px;
    left: -150px;
}

.hypno-hero__orb--2 {
    width: 350px;
    height: 350px;
    background: rgba(173, 204, 164, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -4s;
}

@keyframes hypnoOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.08);
    }
}

/* =========================================================
   SECTION BÉNÉFICES
   ======================================================= */

.hypno-benefits {
    background: var(--hypno-bg-card);
    border-top: 1px solid var(--hypno-border);
    border-bottom: 1px solid var(--hypno-border);
}

.hypno-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.hypno-benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--hypno-radius-lg);
    border: 1px solid var(--hypno-border);
    background: var(--hypno-bg-elevated);
    transition: all var(--hypno-transition);
}

.hypno-benefit-card:hover {
    border-color: var(--hypno-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(138, 177, 125, 0.2);
}

.hypno-benefit-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 177, 125, 0.3), rgba(173, 204, 164, 0.15));
    font-size: 2rem;
}

.hypno-benefit-card__title {
    font-family: var(--hypno-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--hypno-text);
}

.hypno-benefit-card__desc {
    font-size: 0.95rem;
    color: var(--hypno-text-muted);
    line-height: 1.65;
}

/* =========================================================
   SECTION APERÇU SÉANCES (accueil)
   ======================================================= */

.hypno-featured-title {
    margin-bottom: 0.75rem;
}

.hypno-featured-lead {
    margin-bottom: 3rem;
}

/* =========================================================
   GRILLE SÉANCES (bibliothèque)
   ======================================================= */

.hypno-seances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.hypno-seance-card {
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border);
    border-radius: var(--hypno-radius-lg);
    overflow: hidden;
    transition: all var(--hypno-transition);
    display: flex;
    flex-direction: column;
}

.hypno-seance-card:hover {
    border-color: var(--hypno-border-strong);
    transform: translateY(-5px);
    box-shadow: var(--hypno-shadow-primary);
}

.hypno-seance-card__img-link {
    display: block;
    overflow: hidden;
}

.hypno-seance-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hypno-seance-card:hover .hypno-seance-card__img {
    transform: scale(1.05);
}

.hypno-seance-card__body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hypno-seance-card__title {
    font-family: var(--hypno-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.hypno-seance-card__title a {
    color: var(--hypno-text);
    text-decoration: none;
}

.hypno-seance-card__title a:hover {
    color: var(--hypno-primary-light);
}

.hypno-seance-card__duration {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--hypno-text-subtle);
    margin-top: auto;
}

/* =========================================================
   FILTRES CATÉGORIES
   ======================================================= */

.hypno-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.55rem 1.35rem;
    border-radius: 100px;
    border: 1.5px solid var(--hypno-border);
    background: transparent;
    color: var(--hypno-text-muted);
    font-family: var(--hypno-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--hypno-transition);
}

.filter-btn:hover {
    border-color: var(--hypno-border-strong);
    color: var(--hypno-text);
    background: var(--hypno-bg-elevated);
}

.filter-btn.is-active {
    background: var(--hypno-primary);
    border-color: var(--hypno-primary);
    color: var(--hypno-text);
    box-shadow: var(--hypno-shadow-primary);
}

.hypno-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--hypno-text-muted);
    font-size: 1rem;
}

/* Spinner de chargement */
#filter-loading {
    display: none;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.hypno-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hypno-border);
    border-top-color: var(--hypno-primary-light);
    border-radius: 50%;
    animation: hypnoSpin 0.8s linear infinite;
}

@keyframes hypnoSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   FICHE SÉANCE (single-seance)
   ======================================================= */

.hypno-seance-header {
    position: relative;
    height: 40vh;
    min-height: 280px;
    overflow: hidden;
}

.hypno-seance-header__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.hypno-seance-header__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--hypno-bg), transparent);
}

.hypno-seance-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hypno-seance-meta__duration {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--hypno-text-subtle);
}

.hypno-seance-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--hypno-text-muted);
    margin-bottom: 2.5rem;
}

.hypno-seance-desc p {
    margin-bottom: 1.25rem;
}

/* Bouton retour */
.hypno-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hypno-text-subtle);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color var(--hypno-transition);
}

.hypno-back-link:hover {
    color: var(--hypno-text);
}

/* Badge séance complétée */
.hypno-completed-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--hypno-radius);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* =========================================================
   LECTEUR AUDIO CUSTOM
   ======================================================= */

.hypno-player-wrapper {
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border-strong);
    border-radius: var(--hypno-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--hypno-shadow);
}

/* Cacher l'audio natif */
#hypno-audio {
    display: none;
}

.hypno-player {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Ligne principale : play + temps */
.hypno-player__main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hypno-player__play-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #adcca4, #8ab17d);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--hypno-transition);
    box-shadow: var(--hypno-shadow-primary);
}

.hypno-player__play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(138, 177, 125, 0.6);
}

/* Icônes SVG play/pause */
.icon-play,
.icon-pause {
    fill: #fff;
}

.icon-pause {
    display: none;
}

#hypno-play-btn.is-playing .icon-play {
    display: none;
}

#hypno-play-btn.is-playing .icon-pause {
    display: block;
}

.hypno-player__time {
    font-family: var(--hypno-font-body);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--hypno-text-subtle);
    white-space: nowrap;
    margin-left: auto;
}

/* Barre de progression */
.hypno-player__progress-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Fill visuel par-dessous */
.hypno-player__progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #adcca4, #c5e1bc);
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.1s linear;
}

#hypno-progress {
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--hypno-bg-elevated);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    border: none;
}

#hypno-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hypno-primary-light);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(138, 177, 125, 0.25);
    transition: transform var(--hypno-transition);
}

#hypno-progress::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Volume */
.hypno-player__volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hypno-player__mute-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--hypno-text-subtle);
    padding: 0.2rem;
    transition: color var(--hypno-transition);
    line-height: 1;
}

.hypno-player__mute-btn:hover {
    color: var(--hypno-text);
}

.hypno-player__mute-btn.is-muted {
    opacity: 0.45;
}

#hypno-volume {
    width: 100px;
    height: 3px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--hypno-bg-elevated);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

#hypno-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hypno-text-subtle);
    cursor: pointer;
}

/* =========================================================
   FORMULAIRES AUTH
   ======================================================= */

.hypno-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(138, 177, 125, 0.18), transparent 65%),
        var(--hypno-bg);
    padding: 3rem 1.5rem;
}

.hypno-auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border);
    border-radius: var(--hypno-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--hypno-shadow);
}

.hypno-auth-card__logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hypno-auth-card__title {
    font-family: var(--hypno-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--hypno-text);
}

.hypno-auth-card__subtitle {
    text-align: center;
    color: var(--hypno-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Formulaire */
.hypno-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hypno-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hypno-form__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hypno-text-muted);
}

.hypno-form__input-wrap {
    position: relative;
}

.hypno-form__input {
    width: 100%;
    padding: 0.875rem 1.1rem;
    background: var(--hypno-bg-elevated);
    border: 1.5px solid var(--hypno-border);
    border-radius: var(--hypno-radius);
    color: var(--hypno-text);
    font-family: var(--hypno-font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--hypno-transition);
}

.hypno-form__input:focus {
    border-color: var(--hypno-primary-light);
    box-shadow: 0 0 0 3px rgba(138, 177, 125, 0.15);
}

.hypno-form__input::placeholder {
    color: var(--hypno-text-subtle);
}

.hypno-password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--hypno-text-subtle);
    padding: 0.2rem;
}

.hypno-form__hint {
    font-size: 0.8rem;
    color: var(--hypno-text-subtle);
    margin-top: 0.2rem;
    min-height: 1.2em;
}

/* Messages d'erreur / succès */
.hypno-form__error {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: var(--hypno-radius);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    font-size: 0.9rem;
}

.hypno-form__success {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: var(--hypno-radius);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86EFAC;
    font-size: 0.9rem;
    text-align: center;
}

.hypno-form__submit {
    width: 100%;
    margin-top: 0.5rem;
}

.hypno-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--hypno-text-subtle);
}

.hypno-auth-footer a {
    color: var(--hypno-primary-light);
    font-weight: 500;
}

.hypno-auth-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   PAGE PROFIL
   ======================================================= */

.hypno-profile-page {
    min-height: 80vh;
    padding: 4rem 0;
}

.hypno-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hypno-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8ab17d, #adcca4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hypno-font-heading);
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
}

.hypno-profile-info {
    flex: 1;
}

.hypno-profile-name {
    font-family: var(--hypno-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hypno-profile-email {
    font-size: 0.95rem;
    color: var(--hypno-text-muted);
}

/* Statistique */
.hypno-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hypno-stat-card {
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border);
    border-radius: var(--hypno-radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.hypno-stat-card__value {
    font-family: var(--hypno-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hypno-primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hypno-stat-card__label {
    font-size: 0.875rem;
    color: var(--hypno-text-muted);
}

/* Historique */
.hypno-history-title {
    font-family: var(--hypno-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--hypno-text);
}

.hypno-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hypno-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border);
    border-radius: var(--hypno-radius);
    transition: border-color var(--hypno-transition);
    flex-wrap: wrap;
}

.hypno-history-item:hover {
    border-color: var(--hypno-border-strong);
}

.hypno-history-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(138, 177, 125, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.hypno-history-item__info {
    flex: 1;
    min-width: 0;
}

.hypno-history-item__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hypno-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hypno-history-item__date {
    font-size: 0.8rem;
    color: var(--hypno-text-subtle);
    margin-top: 0.2rem;
}

.hypno-history-item__duration {
    font-size: 0.85rem;
    color: var(--hypno-text-muted);
    white-space: nowrap;
    margin-left: auto;
}

.hypno-history-empty {
    text-align: center;
    padding: 3rem;
    color: var(--hypno-text-muted);
    background: var(--hypno-bg-card);
    border: 1px solid var(--hypno-border);
    border-radius: var(--hypno-radius-lg);
}

/* =========================================================
   FOOTER
   ======================================================= */

.hypno-footer {
    background: var(--hypno-bg-card);
    border-top: 1px solid var(--hypno-border);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.hypno-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.hypno-footer__tagline {
    font-size: 0.9rem;
    color: var(--hypno-text-muted);
    margin-top: 0.75rem;
}

.hypno-footer__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.hypno-footer__links a {
    font-size: 0.875rem;
    color: var(--hypno-text-subtle);
    transition: color var(--hypno-transition);
}

.hypno-footer__links a:hover {
    color: var(--hypno-text);
}

.hypno-footer__bottom {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hypno-border);
}

.hypno-footer__copy {
    font-size: 0.825rem;
    color: var(--hypno-text-subtle);
}

/* =========================================================
   POST CONTENT (index.php fallback)
   ======================================================= */

.hypno-post {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hypno-post-title {
    font-family: var(--hypno-font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.hypno-post-content {
    line-height: 1.8;
    color: var(--hypno-text-muted);
}

/* =========================================================
   RESPONSIVE — TABLETTE (≤ 768px)
   ======================================================= */

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

    .hypno-burger {
        display: flex;
    }

    .hypno-hero {
        min-height: 80vh;
        text-align: left;
    }

    .hypno-hero__content {
        text-align: left;
    }

    .hypno-lead {
        margin-left: 0;
    }

    .hypno-hero__actions {
        justify-content: flex-start;
    }

    .hypno-footer__inner {
        grid-template-columns: 1fr;
    }

    .hypno-profile-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hypno-auth-card {
        padding: 2rem 1.5rem;
    }

    .hypno-player__volume {
        display: none;
    }

    /* Masquer volume sur mobile */
}

/* =========================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ======================================================= */

@media (max-width: 480px) {
    .hypno-section {
        padding: 3rem 0;
    }

    .hypno-seances-grid {
        grid-template-columns: 1fr;
    }

    .hypno-benefits__grid {
        grid-template-columns: 1fr;
    }

    .hypno-hero__actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hypno-filters {
        gap: 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .hypno-history-item {
        flex-wrap: wrap;
    }

    .hypno-history-item__duration {
        margin-left: 0;
    }
}

/* =========================================================
   OVERRIDES DIVI (ciblés et minimaux)
   ======================================================= */

/* Forcer fond sombre sur les wrappers DIVI */
#page-container,
.et-l,
.et_pb_section {
    background-color: var(--hypno-bg) !important;
}

/* Désactiver les styles de boutons DIVI par défaut sur les pages custom */
.hypno-auth-page .et_pb_button,
.hypno-auth-page .et_pb_button_module_wrapper {
    display: none !important;
}