@charset "UTF-8";
@import url("font-awesome.min.css");
@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Inter:wght@400;500;600;700&display=swap");

/* =========================================================
   L'ART DES RÊVES — THÈME SOMBRE ÉPURÉ
   Feuille autonome : remplace main.css + ancien custom.css
   ========================================================= */

:root {
    --bg: #080b16;
    --bg-soft: #0d1222;
    --surface: rgba(18, 24, 43, 0.88);
    --surface-solid: #12182b;
    --surface-hover: #182139;
    --border: rgba(176, 190, 225, 0.14);
    --border-strong: rgba(176, 190, 225, 0.26);
    --text: #f3f5fb;
    --text-soft: #b8c1d8;
    --text-muted: #838da8;
    --accent: #9f8cff;
    --accent-hover: #b7a8ff;
    --accent-soft: rgba(159, 140, 255, 0.13);
    --secondary: #6ec8d5;
    --danger: #ff6f85;
    --success: #64d7a0;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --header-height: 76px;
}

/* Reset et base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 0%, rgba(110, 200, 213, 0.09), transparent 34rem),
        radial-gradient(circle at 90% 8%, rgba(159, 140, 255, 0.13), transparent 38rem),
        var(--bg);
    color: var(--text-soft);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-loading *,
body.is-loading *::before,
body.is-loading *::after {
    animation: none !important;
    transition: none !important;
}

img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: #d1c8ff; }

p { margin: 0 0 1.35rem; }
strong, b { color: var(--text); font-weight: 700; }
em, i { font-style: italic; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.8em;
    color: var(--text);
    font-family: "Cinzel Decorative", Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.015em;
    text-transform: none;
}

h1 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.12rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

ul, ol { margin: 0 0 1.4rem; }
blockquote {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hidden { display: none !important; }
.align-left { text-align: left; }
.align-center, .special { text-align: center; }
.align-right, .text-end { text-align: right; }

/* Conteneurs et ancienne grille -------------------------------- */
.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container.\31 25\25 { width: min(calc(100% - 40px), 1380px); }
.container.\37 5\25 { width: min(calc(100% - 40px), 880px); }
.container.\35 0\25 { width: min(calc(100% - 40px), 680px); }
.container.\32 5\25 { width: min(calc(100% - 40px), 460px); }

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
}

.row.uniform { row-gap: 1.5rem; }
.row > * { min-width: 0; }

.\31 2u, .\31 2u\24 { width: 100%; }
.\38 u, .\38 u\24 { width: calc(66.666% - 0.5rem); }
.\36 u, .\36 u\24 { width: calc(50% - 0.75rem); }
.\34 u, .\34 u\24 { width: calc(33.333% - 1rem); }
.\33 u, .\33 u\24 { width: calc(25% - 1.125rem); }

/* En-tête et navigation ---------------------------------------- */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 3vw;
    background: rgba(8, 11, 22, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#header h1 {
    margin: 0;
    font-size: 1.08rem;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

#header h1 strong a { color: var(--text); }
#header h1 > strong + * { color: var(--text-soft); }

#nav > ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav > ul > li { position: relative; padding: 0; }

#nav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#nav > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1010;
    width: max-content;
    min-width: 220px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: rgba(15, 20, 36, 0.98);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu li { margin: 0; padding: 0; }
.dropdown-menu a {
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 7px;
    color: var(--text-soft);
    font-size: 0.9rem;
    text-align: left;
}
.dropdown-menu a:hover { background: var(--accent-soft); color: var(--text); }


/* =========================================================
   NAVIGATION MOBILE
   ========================================================= */

.navPanelToggle {
    display: none;

    position: fixed;
    top: 15px;
    right: 15px;

    z-index: 3001;

    width: 46px;
    height: 46px;

    padding: 0;

    align-items: center;
    justify-content: center;

    background: #12182b;

    border: 1px solid var(--border-strong);
    border-radius: 11px;

    color: var(--text);

    box-shadow: var(--shadow-soft);

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

body.mobile-menu-open .navPanelToggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.navPanelToggle .fa {
    pointer-events: none;

    font-size: 1.1rem;
}


/* Panneau */

#navPanel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 3000;

    width: min(86vw, 340px);

    padding: 5rem 1.25rem 2rem;

    background:
        linear-gradient(
            180deg,
            rgba(159, 140, 255, .05),
            transparent 35%
        ),
        #0d1222;

    border-left: 1px solid var(--border);

    box-shadow:
        -20px 0 50px rgba(0, 0, 0, .45);

    transform: translateX(105%);

    visibility: hidden;

    transition:
        transform .25s ease,
        visibility .25s ease;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}


/* Menu ouvert */

#navPanel.is-open {
    transform: translateX(0);

    visibility: visible;
}


/* Liens */

#navPanel nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

#navPanel nav li {
    margin: 0;

    border-bottom: 1px solid var(--border);
}

#navPanel nav a {
    display: block;

    padding: 1rem .35rem;

    color: var(--text-soft);

    font-size: .92rem;
    font-weight: 600;
}

#navPanel nav a:hover {
    color: var(--text);

    background: rgba(255, 255, 255, .035);
}


/* Fermeture */

.navPanelClose {
    position: absolute;

    top: 15px;
    right: 15px;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: rgba(255, 255, 255, .04);

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text-soft);

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    touch-action: manipulation;
}


/* Fond derrière le panneau */

#navPanelOverlay {
    position: fixed;

    inset: 0;

    z-index: 2999;

    background: rgba(0, 0, 0, .58);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

#navPanelOverlay.is-open {
    opacity: 1;

    visibility: visible;
}


/* Empêche la page de défiler derrière le menu */

body.mobile-menu-open {
    overflow: hidden;
}


/* Responsive */

@media (max-width: 980px) {

    #nav {
        display: none;
    }

    .navPanelToggle {
        display: flex;
    }

}


@media (min-width: 981px) {

    #navPanel,
    #navPanelOverlay {
        display: none;
    }

}


/* Bannière ------------------------------------------------------ */
#banner {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(360px, 56vh, 620px);
    padding: 7rem 1.25rem 5rem;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(8, 11, 22, 0.2), var(--bg)),
        linear-gradient(90deg, rgba(8, 11, 22, 0.72), rgba(8, 11, 22, 0.34)),
        url("../../images/banner.jpg") center / cover no-repeat;
}

#banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 38%, rgba(159, 140, 255, 0.17), transparent 28rem),
        linear-gradient(to bottom, transparent 55%, var(--bg));
}

#banner .container,
#banner > h2,
#banner > p { max-width: 850px; }

#banner h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.3rem);
}

#banner p {
    margin: 0 auto;
    color: #d2d8e8;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

/* Sections ------------------------------------------------------ */
.wrapper {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.wrapper.style1 { background: transparent; }
.wrapper.style2 { background: rgba(255,255,255,.018); border-block: 1px solid var(--border); }
.wrapper.style3 { background: linear-gradient(145deg, rgba(159,140,255,.08), rgba(110,200,213,.035)); }
.wrapper.special { text-align: center; }

header.major { margin-bottom: clamp(2rem, 5vw, 3.75rem); }
header.major h2 { margin-bottom: 0.55rem; }
header.major p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: none;
}

/* Cartes, boîtes et contenus ----------------------------------- */
.box,
.symbol,
.timeline-panel {
    height: 100%;
    padding: 1.55rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.box:hover,
.symbol:hover,
.timeline-panel:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.box > :last-child,
.symbol > :last-child { margin-bottom: 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature .content { width: auto; text-align: left; }
.feature .content p { color: var(--text-soft); }
.feature header p { margin-top: -.3rem; color: var(--text-muted); font-size: .88rem; }

.image { display: inline-block; overflow: hidden; border-radius: var(--radius); }
.image img { display: block; width: 100%; object-fit: cover; }
.image.fit { display: block; width: 100%; }
.image.rounded { width: 116px; height: 116px; border-radius: 50%; border: 1px solid var(--border-strong); }
.image.rounded img { width: 100%; height: 100%; border-radius: inherit; }
.image.captioned { width: 100%; background: var(--surface); border: 1px solid var(--border); }
.image.captioned h3 { margin: 0; padding: 1.2rem; }

/* Boutons ------------------------------------------------------- */
button,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .75rem 1.2rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    background: rgba(255,255,255,.085);
    border-color: rgba(255,255,255,.28);
    color: #fff;
    transform: translateY(-1px);
}

button.special,
.button.special,
input[type="submit"].special {
    background: linear-gradient(135deg, #8f78f3, #7060d6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 25px rgba(112, 96, 214, .25);
}

button.special:hover,
.button.special:hover { background: linear-gradient(135deg, #a08df8, #7c6be1); }
.button.alt { background: transparent; }
.button.big, button.big { min-height: 52px; padding: .9rem 1.55rem; font-size: 1rem; }
.button.small, button.small { min-height: 38px; padding: .55rem .85rem; font-size: .82rem; }

ul.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
ul.actions li { margin: 0; padding: 0; }
ul.actions.vertical { flex-direction: column; align-items: stretch; }
ul.actions.fit > li { flex: 1; }
ul.actions.fit .button, ul.actions.fit button { width: 100%; }
.special ul.actions, .wrapper.special ul.actions { justify-content: center; }
ul.actions.actions-center { justify-content: center; }

/* Formulaires --------------------------------------------------- */
form { margin: 0 0 1.5rem; }
label {
    display: block;
    margin: 0 0 .55rem;
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    margin: 0 0 1rem;
    padding: .8rem .95rem;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: auto; }

input::placeholder, textarea::placeholder { color: #707b98; opacity: 1; }
input:focus, select:focus, textarea:focus {
    background: rgba(255,255,255,.065);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(159,140,255,.13);
}

input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 .55rem 0 0;
    accent-color: var(--accent);
    vertical-align: -3px;
}
input[type="checkbox"] + label,
input[type="radio"] + label { display: inline; cursor: pointer; font-weight: 500; }

.login-error,
.dream-error-message {
    width: min(calc(100% - 40px), 680px);
    margin: 1.25rem auto;
    padding: .9rem 1rem;
    background: rgba(255,111,133,.12);
    border: 1px solid rgba(255,111,133,.35);
    border-radius: 10px;
    color: #ffb1bd;
    text-align: center;
}

.register-link, .login-link { display: inline-block; margin-top: 1rem; }
.signup-promo { margin-top: 1.5rem; color: var(--text-muted); }

/* Progression et étapes ---------------------------------------- */
.progress-container {
    width: 100%;
    height: 12px;
    margin: 2rem 0 2.5rem;
    overflow: hidden;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.progress-bar {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: inherit;
    color: transparent;
    font-size: 0;
    transition: width .3s ease;
}
.step { display: none; }
.step.active { display: block; }

/* Fichier et avatar -------------------------------------------- */
.file-input { display: none !important; }
.file-label {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
}
.file-label:hover { background: rgba(255,255,255,.09); }
#file-name { margin-left: .65rem; color: var(--text-muted); font-size: .82rem; }

#preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: 100%;
    margin-top: 1rem;
}
#preview-image {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
}
.delete-button { min-height: 38px; padding: .45rem .7rem; background: transparent; }
.delete-button i { color: var(--text-soft); }
.delete-button:hover i { color: var(--danger); }

/* Interrupteur -------------------------------------------------- */
.toggle-container,
.sleep-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: 100%;
    text-align: center;
}
.toggle-text, .sleep-label { margin: 0; color: var(--text-soft); font-weight: 600; }
.toggle-switch { position: relative; display: inline-block; width: 58px; height: 32px; }
.toggle-switch input { width: 0; height: 0; opacity: 0; }
.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #343d56;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    transition: .25s ease;
}
.slider::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
    transition: .25s ease;
}
.switch-text { display: none; }
.toggle-switch input:checked + .slider { background: var(--accent); }
.toggle-switch input:checked + .slider::before { transform: translateX(26px); }
.sleep-input-wrapper { display: inline-flex; align-items: center; justify-content: center; }
.sleep-input-wrapper input[type="number"] { width: 78px; margin: 0; text-align: center; }

/* Calendrier ---------------------------------------------------- */
#calendar-container {
    width: min(100%, 820px);
    margin: 2rem auto;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
#calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
#calendar-header h3 { margin: 0; }
#calendar-header button { min-height: 40px; padding: .55rem .8rem; }
#calendar { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
#calendar th { padding: .6rem .25rem; color: var(--text-muted); font-size: .76rem; font-weight: 700; }
#calendar td {
    height: 52px;
    padding: .4rem;
    background: rgba(255,255,255,.035);
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-soft);
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
#calendar td:hover { background: rgba(255,255,255,.075); border-color: var(--border); }
#calendar .today { background: var(--accent); color: #fff; font-weight: 700; }
#calendar .has-event { background: rgba(110,200,213,.17); border-color: rgba(110,200,213,.35); color: #c8f6fa; }
#calendar td.empty { background: transparent; cursor: default; pointer-events: none; }

/* Modale -------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(2,4,10,.78);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    width: min(100%, 560px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.75rem;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: var(--text-soft);
    text-align: left;
}
.close {
    position: absolute;
    top: .8rem;
    right: 1rem;
    color: var(--text-muted);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}
.close:hover { color: var(--text); }

/* Bibliothèque des symboles ------------------------------------ */
#search-bar {
    display: block;
    width: min(100%, 620px);
    margin: 0 auto 2rem;
}

#symbol-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.symbol {
    min-width: 0;
}
.symbol h3 { margin-bottom: .35rem; }
.symbol p { color: var(--text-soft); }

/* =========================================================
   DASHBOARD — Rêves récents
   ========================================================= */

.dashboard-recent-dreams {
    text-align: left;
}

.dashboard-recent-dreams header.major {
    text-align: center;
}


/* Grille */

.recent-dreams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}


/* Carte */

.recent-dream-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .045),
            transparent 48%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);

    transition:
        border-color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.recent-dream-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}


/* Date */

.recent-dream-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.recent-dream-date-icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .2);
    border-radius: 11px;

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

.recent-dream-date {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .5rem;
}

.recent-dream-date > span {
    width: 100%;

    color: var(--text-muted);

    font-size: .72rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.recent-dream-date strong {
    color: var(--text);
    font-size: .95rem;
}

.recent-dream-date small {
    color: var(--text-muted);
    font-size: .78rem;
}


/* Catégories */

.recent-dream-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;

    margin-bottom: .9rem;
}

.recent-dream-categories span {
    padding: .32rem .6rem;

    background: rgba(110, 200, 213, .09);

    border:
        1px solid
        rgba(110, 200, 213, .18);

    border-radius: 999px;

    color: #a8e1e8;

    font-size: .72rem;
    font-weight: 600;
}


/* Description */

.recent-dream-content {
    flex: 1;
}

.recent-dream-content p {
    margin: 0 0 1rem;

    color: var(--text-soft);

    font-size: .9rem;
    line-height: 1.65;
}


/* Symboles */

.recent-dream-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;

    margin-bottom: .9rem;
}

.recent-dream-symbols span {
    padding: .3rem .55rem;

    background: var(--accent-soft);

    border:
        1px solid
        rgba(159, 140, 255, .15);

    border-radius: 999px;

    color: #d8d1ff;

    font-size: .7rem;
}


/* Informations secondaires */

.recent-dream-meta {
    display: flex;
    align-items: center;
    gap: 1rem;

    min-height: 30px;
    margin-bottom: .9rem;

    color: var(--text-muted);

    font-size: .76rem;
}

.recent-dream-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.recent-dream-meta i {
    color: var(--secondary);
}


/* Bas de carte */

.recent-dream-footer {
    padding-top: .9rem;

    border-top: 1px solid var(--border);

    text-align: right;
}

.recent-dream-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    color: var(--accent-hover);

    font-size: .8rem;
    font-weight: 700;
}

.recent-dream-link:hover {
    color: #d5ceff;
}

.recent-dream-link i {
    font-size: .7rem;
    transition: transform .2s ease;
}

.recent-dream-link:hover i {
    transform: translateX(3px);
}


/* Nombre total */

.recent-dreams-more {
    margin-top: 1.25rem;

    color: var(--text-muted);

    font-size: .78rem;

    text-align: center;
}


/* Responsive */

@media (max-width: 800px) {

    .recent-dreams-grid {
        grid-template-columns: 1fr;
    }

}



/* Résultat d'interprétation ------------------------------------ */
#dream-result,
#result-interpretation,
#result-symbols,
#result-categories,
#wordcloud-section,
#graphique-reves {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
#result-image-container { margin: 1.5rem 0; text-align: center; }
#result-image { max-height: 460px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
canvas { max-width: 100%; }

/* Pied de page -------------------------------------------------- */
#footer {
    padding: 3rem 1.25rem 2rem;
    background: #060910;
    border-top: 1px solid var(--border);
    text-align: center;
}
#footer .icons {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}
#footer .icons a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-soft);
}
#footer .icons a:hover { background: var(--accent-soft); color: var(--text); }
#footer .copyright { color: var(--text-muted); font-size: .82rem; }
.icon {
    position: relative;
    border: 0;
    text-decoration: none;
}

.icon::before {
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Présentation du profil utilisateur ----------------------------- */

#profile-overview {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Image de la bannière en arrière-plan */
#profile-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        url("../../images/banner.jpg")
        center 58% / cover no-repeat;

    opacity: .32;
}

/* Voile sombre pour garder une bonne lisibilité */
#profile-overview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(8, 11, 22, .90) 0%,
            rgba(8, 11, 22, .73) 42%,
            rgba(8, 11, 22, .92) 100%
        ),
        radial-gradient(
            circle at 50% 45%,
            rgba(159, 140, 255, .10),
            transparent 35rem
        );

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profile-eyebrow {
    margin-bottom: 0.7rem;
    color: var(--accent-hover);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.user-profile-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
    width: min(100%, 820px);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background:
        linear-gradient(
            135deg,
            rgba(159, 140, 255, 0.08),
            rgba(110, 200, 213, 0.25)
        ),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.user-profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-avatar-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            rgba(159, 140, 255, 0.95),
            rgba(110, 200, 213, 0.8)
        );
    color: #fff;
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.user-profile-content {
    min-width: 0;
}

.user-profile-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--accent-hover);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.user-profile-content h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.user-profile-email {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    word-break: break-word;
}

.user-profile-email i {
    color: var(--secondary);
}

.user-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.user-profile-stat {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.user-profile-stat strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.3;
}

.user-profile-stat span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.user-profile-content .actions {
    margin-bottom: 0;
}

/* =========================================================
   DASHBOARD — Statistiques
   ========================================================= */

.dashboard-stats {
    text-align: left;
}

.dashboard-stats header.major {
    text-align: center;
}

.section-eyebrow {
    display: block;
    margin-bottom: .65rem;
    color: var(--accent-hover);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* KPI */

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-kpi {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 125px;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.stat-kpi-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, .2);
    border-radius: 12px;
    color: var(--accent-hover);
    font-size: 1.1rem;
}

.stat-kpi-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
}

.stat-kpi-value {
    display: block;
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1.15;
}

.stat-kpi-value small {
    color: var(--text-muted);
    font-size: .8rem;
}

.stat-kpi-text {
    font-family: "Inter", Arial, sans-serif;
    font-size: .96rem;
    line-height: 1.4;
}


/* Tendances */

.dream-trends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dream-trend-card {
    min-height: 150px;
    padding: 1.3rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dream-trend-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.dream-trend-heading i {
    color: var(--secondary);
}

.dream-trend-heading h3 {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: .95rem;
}

.trend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.trend-tags > span:not(.trend-empty) {
    padding: .42rem .7rem;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, .18);
    border-radius: 999px;
    color: #d8d1ff;
    font-size: .78rem;
}

.trend-empty {
    color: var(--text-muted);
    font-size: .85rem;
}

.dashboard-empty-state {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.dashboard-empty-state > i {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 2rem;
}

@media (max-width: 980px) {
    .stats-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 736px) {
    .stats-kpi-grid,
    .dream-trends-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   DASHBOARD — Calendrier des rêves
   ========================================================= */

#dream-calendar-section {
    text-align: left;
}

#dream-calendar-section header {
    text-align: center;
}

.dream-calendar-card {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.8rem);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.dream-calendar-toolbar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 1rem;
}

.dream-calendar-current {
    text-align: center;
}

.dream-calendar-current span {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.dream-calendar-current h3 {
    margin: .1rem 0 0;
    font-size: 1.5rem;
}

.calendar-nav-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}

.calendar-today-button {
    display: block;
    min-height: 34px;
    margin: .9rem auto 1.3rem;
    padding: .4rem .85rem;
    color: var(--text-muted);
    font-size: .78rem;
}

.dream-calendar-weekdays,
.dream-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
}

.dream-calendar-weekdays {
    margin-bottom: .4rem;
}

.dream-calendar-weekdays span {
    padding: .6rem .2rem;
    color: var(--text-muted);
    font-size: .74rem;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / .82;
    min-height: 68px;
    padding: .4rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-soft);
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.today {
    border-color: rgba(159, 140, 255, .55);
}

.calendar-day.has-dream {
    background: var(--accent-soft);
    border-color: rgba(159, 140, 255, .3);
    color: #fff;
    cursor: pointer;
}

.calendar-day.has-dream:hover {
    background: rgba(159, 140, 255, .2);
    transform: translateY(-1px);
}

.calendar-day-number {
    font-weight: 600;
}

.calendar-dream-indicator {
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.calendar-dream-count {
    position: absolute;
    top: 6px;
    right: 7px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: .75rem;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.calendar-dot-today {
    border: 2px solid var(--accent);
}

.calendar-dot-dream {
    background: var(--secondary);
}

.dream-modal-date {
    display: block;
    margin-bottom: .45rem;
    color: var(--accent-hover);
    font-size: .78rem;
    font-weight: 700;
}

.dream-event-modal .trend-tags {
    margin: 1rem 0 1.5rem;
}

@media (max-width: 736px) {
    .dream-calendar-weekdays,
    .dream-calendar-grid {
        gap: .2rem;
    }

    .calendar-day {
        min-height: 48px;
        padding: .2rem;
        border-radius: 8px;
        font-size: .78rem;
    }

    .calendar-dream-count {
        top: 3px;
        right: 3px;
    }

    .calendar-dream-indicator {
        bottom: 4px;
    }
}

/* =========================================================
   DASHBOARD — Analyses visuelles
   ========================================================= */

.dashboard-insights {
    text-align: left;
}

.dashboard-insights header.major {
    text-align: center;
}

.dream-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.dream-insight-card {
    min-width: 0;
    padding: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .045),
            transparent 50%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}

.dream-insight-header {
    display: flex;
    align-items: center;
    gap: .85rem;

    margin-bottom: 1.3rem;
}

.dream-insight-icon {
    display: grid;
    place-items: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .2);
    border-radius: 11px;

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

.dream-insight-header span {
    display: block;

    margin-bottom: .15rem;

    color: var(--text-muted);

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.dream-insight-header h3 {
    margin: 0;

    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
}


/* Graphique */

.dream-chart-container {
    position: relative;

    width: 100%;
    height: 330px;
}


/* Nuage de mots */

.dream-word-cloud {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: .55rem;

    min-height: 330px;
    padding: 1rem;
}

.dream-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .35rem .55rem;

    color: var(--text-soft);

    border-radius: 8px;

    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.dream-word:hover {
    color: #fff;
    background: var(--accent-soft);

    transform: translateY(-2px);
}


/* État vide */

.insight-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;

    color: var(--text-muted);

    text-align: center;
}

.insight-empty i {
    margin-bottom: .8rem;

    color: var(--border-strong);

    font-size: 2rem;
}

.insight-empty p {
    max-width: 300px;
    margin: 0;
}

/* =========================================================
   PAGE — Journal de rêves
   ========================================================= */

.dream-journal-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.25rem;

    background:
        linear-gradient(
            180deg,
            rgba(8, 11, 22, .72),
            rgba(8, 11, 22, .94)
        ),
        url("../../images/banner.jpg")
        center 55% / cover no-repeat;

    border-bottom: 1px solid var(--border);
}


.dream-journal-heading {
    max-width: 720px;
}


.dream-journal-heading h1 {
    margin: .25rem 0 .7rem;

    font-size: clamp(2rem, 4vw, 3.4rem);
}


.dream-journal-heading p {
    max-width: 650px;

    margin: 0;

    color: var(--text-soft);
}


.dream-journal-count {
    display: inline-flex;
    align-items: center;

    gap: .8rem;

    margin-top: 1.7rem;

    padding: .8rem 1rem;

    background: rgba(18, 24, 43, .72);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    backdrop-filter: blur(10px);
}


.dream-journal-count-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    background: var(--accent-soft);

    border-radius: 10px;

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


.dream-journal-count strong {
    display: block;

    color: var(--text);

    font-size: 1.15rem;
    line-height: 1.1;
}


.dream-journal-count span {
    display: block;

    margin-top: .2rem;

    color: var(--text-muted);

    font-size: .72rem;
}


/* Page */

.dream-journal-page {
    padding-top: 3rem;
}


/* Toolbar */

.dream-journal-toolbar {
    display: grid;

    grid-template-columns:
        minmax(260px, 2fr)
        repeat(3, minmax(150px, 1fr));

    gap: .8rem;

    align-items: end;

    margin-bottom: 1rem;

    padding: 1rem;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}


.dream-journal-search {
    position: relative;
}


.dream-journal-search > i {
    position: absolute;

    left: .95rem;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    pointer-events: none;
}


.dream-journal-search input {
    margin: 0;

    padding-left: 2.7rem;
}


.dream-journal-filter label {
    margin-bottom: .35rem;

    color: var(--text-muted);

    font-size: .72rem;
}


.dream-journal-filter select {
    margin: 0;
}


/* Résultats */

.dream-journal-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin: 0 0 1.25rem;

    padding: 0 .15rem;

    color: var(--text-muted);

    font-size: .78rem;
}


.dream-filter-reset {
    min-height: auto;

    padding: .35rem .55rem;

    background: transparent;

    border: 0;

    color: var(--text-muted);

    font-size: .74rem;

    box-shadow: none;
}


.dream-filter-reset:hover {
    background: transparent;

    border: 0;

    color: var(--text);

    transform: none;
}


/* Grille */

.dream-journal-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1.1rem;
}


/* Carte */

.journal-dream-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .045),
            transparent 48%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);

    transition:
        border-color .2s ease,
        transform .2s ease;
}


.journal-dream-card:hover {
    border-color: var(--border-strong);

    transform: translateY(-2px);
}


.journal-dream-card[hidden] {
    display: none;
}


/* En-tête carte */

.journal-dream-header {
    display: flex;
    align-items: center;

    gap: .85rem;

    margin-bottom: 1rem;
}


.journal-dream-icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .2);
    border-radius: 11px;

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


.journal-dream-date {
    display: flex;
    flex-wrap: wrap;

    align-items: baseline;

    gap: .25rem .5rem;
}


.journal-dream-date > span {
    width: 100%;

    color: var(--text-muted);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .07em;
    text-transform: uppercase;
}


.journal-dream-date strong {
    color: var(--text);

    font-size: .95rem;
}


.journal-dream-date small {
    color: var(--text-muted);

    font-size: .76rem;
}


/* Catégories */

.journal-dream-categories {
    display: flex;
    flex-wrap: wrap;

    gap: .4rem;

    margin-bottom: .9rem;
}


.journal-dream-categories span {
    padding: .32rem .6rem;

    background: rgba(110, 200, 213, .09);

    border:
        1px solid
        rgba(110, 200, 213, .18);

    border-radius: 999px;

    color: #a8e1e8;

    font-size: .7rem;
    font-weight: 600;
}


/* Récit */

.journal-dream-story {
    flex: 1;
}


.journal-dream-story p {
    margin: 0 0 1rem;

    color: var(--text-soft);

    font-size: .9rem;
    line-height: 1.7;
}


/* Symboles */

.journal-dream-symbols {
    display: flex;
    flex-wrap: wrap;

    gap: .4rem;

    margin-bottom: .9rem;
}


.journal-dream-symbols span {
    padding: .3rem .55rem;

    background: var(--accent-soft);

    border:
        1px solid
        rgba(159, 140, 255, .15);

    border-radius: 999px;

    color: #d8d1ff;

    font-size: .7rem;
}


/* Métadonnées */

.journal-dream-meta {
    display: flex;
    align-items: center;

    gap: 1rem;

    min-height: 30px;

    margin-bottom: .9rem;

    color: var(--text-muted);

    font-size: .75rem;
}


.journal-dream-meta span {
    display: inline-flex;
    align-items: center;

    gap: .35rem;
}


.journal-dream-meta i {
    color: var(--secondary);
}


/* Pied */

.journal-dream-footer {
    padding-top: .9rem;

    border-top: 1px solid var(--border);

    text-align: right;
}


.journal-dream-link {
    display: inline-flex;
    align-items: center;

    gap: .5rem;

    color: var(--accent-hover);

    font-size: .8rem;
    font-weight: 700;
}


.journal-dream-link:hover {
    color: #d5ceff;
}


.journal-dream-link i {
    font-size: .7rem;

    transition: transform .2s ease;
}


.journal-dream-link:hover i {
    transform: translateX(3px);
}


/* Aucun résultat */

.dream-journal-no-result {
    max-width: 560px;

    margin: 2rem auto 0;

    padding: 2.5rem;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    color: var(--text-muted);

    text-align: center;
}


.dream-journal-no-result[hidden] {
    display: none;
}


.dream-journal-no-result > i {
    margin-bottom: .8rem;

    color: var(--accent);

    font-size: 1.8rem;
}


.dream-journal-no-result h3 {
    margin-bottom: .5rem;
}


.dream-journal-no-result p {
    max-width: 400px;

    margin: 0 auto 1.3rem;
}


/* Responsive */

@media (max-width: 980px) {

    .dream-journal-toolbar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dream-journal-search {
        grid-column: 1 / -1;
    }

}


@media (max-width: 760px) {

    .dream-journal-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dream-journal-hero {
        padding: 2.4rem 0;
    }


    .dream-journal-toolbar {
        grid-template-columns: 1fr;
    }


    .dream-journal-search {
        grid-column: auto;
    }


    .dream-journal-results-bar {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================================================
   PAGE — Détail d'un rêve
   ========================================================= */

.dream-detail-hero {
    padding: 3rem 0 2.5rem;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(110, 200, 213, .09),
            transparent 30rem
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(159, 140, 255, .12),
            transparent 32rem
        );

    border-bottom: 1px solid var(--border);
}


.dream-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    margin-bottom: 2rem;

    color: var(--text-muted);

    font-size: .8rem;
    font-weight: 600;
}

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


.dream-detail-heading {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}


.dream-detail-heading-icon {
    display: grid;
    place-items: center;

    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .22);
    border-radius: 16px;

    color: var(--accent-hover);

    font-size: 1.35rem;
}


.dream-detail-heading h1 {
    margin: .2rem 0 .35rem;

    font-size: clamp(1.8rem, 4vw, 3rem);
}


.dream-detail-heading p {
    margin: 0;

    color: var(--text-muted);
    font-size: .85rem;
}


.dream-detail-page {
    padding-top: 3rem;
}


/* Résumé */

.dream-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-bottom: 1.25rem;
}


.dream-summary-card {
    display: flex;
    align-items: center;
    gap: .9rem;

    min-width: 0;

    padding: 1.1rem;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-soft);
}


.dream-summary-icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: var(--accent-soft);

    border-radius: 11px;

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


.dream-summary-card > div:last-child {
    min-width: 0;
}


.dream-summary-card > div > span:first-child {
    display: block;

    margin-bottom: .25rem;

    color: var(--text-muted);

    font-size: .72rem;
    font-weight: 600;
}


.dream-summary-card strong {
    color: var(--text);

    font-size: 1rem;
}


/* Carte générale */

.dream-detail-card {
    margin-bottom: 1.1rem;

    padding: clamp(1.25rem, 3vw, 1.8rem);

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .035),
            transparent 48%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}


.dream-detail-card-heading {
    display: flex;
    align-items: center;

    gap: .8rem;

    margin-bottom: 1.2rem;
}


.dream-detail-card-icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .18);
    border-radius: 11px;

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


.dream-detail-card-icon.analysis {
    background: rgba(110, 200, 213, .09);

    border-color: rgba(110, 200, 213, .18);

    color: var(--secondary);
}


.dream-detail-card-heading span {
    display: block;

    margin-bottom: .1rem;

    color: var(--text-muted);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


.dream-detail-card-heading h2,
.dream-detail-card-heading h3 {
    margin: 0;

    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
}


/* Récit */

.dream-story {
    color: var(--text-soft);

    font-size: 1rem;
    line-height: 1.85;

    white-space: pre-line;
}


.dream-story p {
    margin: 0;
}


/* Grille contexte */

.dream-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;
}


.dream-detail-grid .dream-detail-card {
    margin-bottom: 0;
}


/* Tags */

.dream-detail-tags {
    display: flex;
    flex-wrap: wrap;

    gap: .45rem;
}


.dream-detail-tags > span {
    display: inline-flex;

    padding: .38rem .65rem;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .16);
    border-radius: 999px;

    color: #d8d1ff;

    font-size: .75rem;
}


.dream-detail-tags small {
    color: var(--text-muted);
}


/* Personnes et lieux */

.dream-elements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1.2rem;
}


.dream-elements-group {
    min-width: 0;
}


.dream-elements-label {
    display: flex;
    align-items: center;

    gap: .45rem;

    margin-bottom: .7rem;

    color: var(--text-muted);

    font-size: .76rem;
    font-weight: 600;
}


.dream-elements-label i {
    color: var(--secondary);
}


/* Illustration */

.dream-detail-image {
    max-width: 720px;

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}


.dream-detail-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* Analyse */

.dream-analysis-card {
    border-color: rgba(110, 200, 213, .16);
}


.dream-analysis-content {
    color: var(--text-soft);

    font-size: .94rem;
    line-height: 1.8;
}


/* Actions */

.dream-detail-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: .8rem;

    margin-top: 2rem;
}


/* Mobile */

@media (max-width: 800px) {

    .dream-detail-summary,
    .dream-detail-grid {
        grid-template-columns: 1fr;
    }


    .dream-elements-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dream-detail-heading {
        align-items: flex-start;
    }


    .dream-detail-heading-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        border-radius: 12px;
    }


    .dream-detail-actions {
        flex-direction: column;
    }


    .dream-detail-actions .button {
        width: 100%;
    }

}


/* Responsive */

@media (max-width: 900px) {

    .dream-insights-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   INTERPRÉTEUR — Choix du niveau d'analyse
   ========================================================= */

.analysis-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin: 1.5rem 0;
}


.analysis-choice-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 330px;

    padding: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .04),
            transparent 48%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.analysis-choice-card:hover:not(.locked) {
    transform: translateY(-2px);

    border-color: var(--border-strong);
}


.analysis-choice-card.selected {
    border-color: var(--accent);

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .13),
            transparent 60%
        ),
        var(--surface);
}


.analysis-choice-card > input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.analysis-choice-icon {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    margin-bottom: 1rem;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .2);
    border-radius: 11px;

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


.analysis-choice-card > strong {
    margin-bottom: .4rem;

    font-size: 1rem;
}


.analysis-choice-description {
    margin-bottom: 1rem;

    color: var(--text-muted);

    font-size: .82rem;
    line-height: 1.55;
}


.analysis-choice-card ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;

    color: var(--text-soft);

    font-size: .78rem;
}


.analysis-choice-card li {
    margin-bottom: .3rem;
}


.analysis-choice-badge {
    align-self: flex-start;

    margin-top: auto;

    padding: .32rem .6rem;

    background: rgba(100, 215, 160, .10);

    border: 1px solid rgba(100, 215, 160, .18);
    border-radius: 999px;

    color: var(--success);

    font-size: .68rem;
    font-weight: 700;
}


.analysis-choice-badge.premium {
    background: var(--accent-soft);

    border-color: rgba(159, 140, 255, .2);

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


.analysis-choice-card.locked {
    cursor: not-allowed;

    opacity: .58;
}


.analysis-choice-lock {
    display: flex;
    align-items: center;

    gap: .4rem;

    margin-top: auto;

    color: var(--text-muted);

    font-size: .7rem;
}


/* Information compte gratuit */

.free-analysis-information {
    display: flex;

    gap: .9rem;

    margin: 1.2rem 0 1.5rem;
    padding: 1rem;

    background: rgba(110, 200, 213, .06);

    border: 1px solid rgba(110, 200, 213, .15);
    border-radius: var(--radius);
}


.free-analysis-information > i {
    margin-top: .15rem;

    color: var(--secondary);
}


.free-analysis-information strong {
    display: block;

    margin-bottom: .3rem;
}


.free-analysis-information p {
    margin: .2rem 0;

    color: var(--text-muted);

    font-size: .78rem;
}


/* =========================================================
   INTERPRÉTEUR — Personnes / personnages / lieux
   ========================================================= */

.dream-entity-field {
    margin-bottom: .5rem;
}


.dream-field-help {
    margin: -.3rem 0 .7rem;

    color: var(--text-muted);

    font-size: .76rem;
}


.dream-entity-input-row {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: .6rem;
}


.dream-entity-input-row input {
    margin: 0;
}


.dream-entity-add {
    min-height: 44px;

    padding-inline: 1rem;
}


.dream-entity-selected,
.dream-entity-suggestions {
    display: flex;
    flex-wrap: wrap;

    gap: .45rem;
}


.dream-entity-selected {
    margin-top: .7rem;
}


.dream-entity-suggestions {
    margin-top: .6rem;
}


.dream-entity-chip {
    display: inline-flex;
    align-items: center;

    gap: .4rem;

    padding: .38rem .65rem;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .18);
    border-radius: 999px;

    color: #d8d1ff;

    font-size: .74rem;
}


.dream-entity-suggestion {
    display: inline-flex;

    padding: .35rem .6rem;

    background: rgba(255, 255, 255, .025);

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted);

    font-size: .72rem;

    cursor: pointer;
}


.dream-entity-suggestion:hover {
    border-color: var(--border-strong);

    color: var(--text);
}

/* =========================================================
   pastilles de suppression INTERPRETEUR DE REVE
   ========================================================= */

.dream-entity-chip-remove {
    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    padding: 0;

    background: transparent;
    border: 0;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1;

    cursor: pointer;
}

.dream-entity-chip-remove:hover {
    color: var(--danger);
    background: transparent;
    transform: none;
}

.dream-entity-suggestions-label {
    display: flex;
    align-items: center;

    margin-right: .2rem;

    color: var(--text-muted);

    font-size: .7rem;
}


@media (max-width: 760px) {

    .analysis-choice-grid {
        grid-template-columns: 1fr;
    }


    .dream-entity-input-row {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ANALYSE V2 — Structure commune
   ========================================================= */

.dream-result-section {
    padding: 4rem 0;
    background: var(--bg-soft);
}

.dream-result-header {
    text-align: center;
}

.analysis-result-mode {
    display: inline-flex;
    align-items: center;

    margin-top: .6rem;
    padding: .36rem .7rem;

    border-radius: 999px;

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: .04em;
}

.analysis-result-mode.short {
    background: rgba(110, 200, 213, .09);
    border: 1px solid rgba(110, 200, 213, .18);
    color: var(--secondary);
}

.analysis-result-mode.full {
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, .22);
    color: var(--accent-hover);
}


/* Carte */

.dream-analysis-v2-card {
    margin-bottom: 1rem;
    padding: clamp(1.2rem, 3vw, 1.6rem);

    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, .04),
            transparent 48%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}

.dream-analysis-v2-heading {
    display: flex;
    align-items: center;

    gap: .8rem;

    margin-bottom: 1.1rem;
}

.dream-analysis-v2-icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .18);
    border-radius: 11px;

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

.dream-analysis-v2-icon.hidden {
    background: rgba(159, 140, 255, .12);
}

.dream-analysis-v2-icon.recommendation {
    background: rgba(110, 200, 213, .08);
    border-color: rgba(110, 200, 213, .18);
    color: var(--secondary);
}

.dream-analysis-v2-heading span {
    display: block;

    margin-bottom: .1rem;

    color: var(--text-muted);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.dream-analysis-v2-heading h3 {
    margin: 0;

    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
}


/* Grilles */

.dream-analysis-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;
}


/* Résumé */

.dream-analysis-summary p {
    margin: 0;

    color: var(--text);

    font-size: 1rem;
    line-height: 1.8;
}


/* Tags */

.dream-analysis-tags {
    display: flex;
    flex-wrap: wrap;

    gap: .45rem;
}

.dream-analysis-tags > span {
    padding: .38rem .65rem;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .16);
    border-radius: 999px;

    color: #d8d1ff;

    font-size: .74rem;
}


/* Items d'analyse */

.dream-analysis-item,
.dream-hidden-meaning,
.dream-entity-analysis,
.dream-symbol-analysis {
    padding: .9rem 0;

    border-bottom: 1px solid var(--border);
}

.dream-analysis-item:first-child,
.dream-hidden-meaning:first-child,
.dream-entity-analysis:first-child,
.dream-symbol-analysis:first-child {
    padding-top: 0;
}

.dream-analysis-item:last-child,
.dream-hidden-meaning:last-child,
.dream-entity-analysis:last-child,
.dream-symbol-analysis:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dream-analysis-item strong,
.dream-hidden-meaning strong,
.dream-entity-analysis strong,
.dream-symbol-analysis strong {
    display: block;

    margin-bottom: .35rem;

    color: var(--text);
}

.dream-analysis-item p,
.dream-hidden-meaning p,
.dream-entity-analysis p,
.dream-symbol-analysis p {
    margin: 0;

    color: var(--text-soft);

    font-size: .86rem;
    line-height: 1.65;
}


/* Significations cachées */

.dream-hidden-meanings-card {
    border-color: rgba(159, 140, 255, .20);
}

.dream-hidden-meaning strong::before {
    content: "→";

    margin-right: .45rem;

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


/* Rôle personne / lieu */

.dream-entity-role {
    display: inline-flex;

    margin: 0 0 .45rem;
    padding: .22rem .5rem;

    background: rgba(110, 200, 213, .07);

    border-radius: 999px;

    color: var(--secondary);

    font-size: .68rem;
}


/* Liste contexte */

.dream-analysis-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.dream-analysis-list li {
    position: relative;

    margin-bottom: .65rem;
    padding-left: 1.1rem;

    color: var(--text-soft);

    font-size: .85rem;
}

.dream-analysis-list li::before {
    content: "";

    position: absolute;
    left: 0;
    top: .65em;

    width: 5px;
    height: 5px;

    background: var(--secondary);
    border-radius: 50%;
}


/* Recommandations */

.dream-recommendations {
    display: grid;

    gap: .7rem;
}

.dream-recommendation {
    display: flex;
    align-items: flex-start;

    gap: .8rem;

    padding: .85rem;

    background: rgba(110, 200, 213, .045);

    border: 1px solid rgba(110, 200, 213, .10);
    border-radius: var(--radius);
}

.dream-recommendation > span {
    display: grid;
    place-items: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    background: rgba(110, 200, 213, .10);

    border-radius: 50%;

    color: var(--secondary);

    font-size: .72rem;
    font-weight: 700;
}

.dream-recommendation p {
    margin: .15rem 0 0;

    color: var(--text-soft);

    font-size: .85rem;
}


/* Questions */

.dream-reflection-questions {
    display: grid;

    gap: .7rem;
}

.dream-reflection-question {
    display: flex;
    align-items: flex-start;

    gap: .8rem;

    padding: .8rem;

    background: rgba(159, 140, 255, .045);

    border-radius: var(--radius);
}

.dream-reflection-question > span {
    display: grid;
    place-items: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    background: var(--accent-soft);

    border-radius: 50%;

    color: var(--accent-hover);

    font-weight: 700;
}

.dream-reflection-question p {
    margin: .1rem 0 0;

    color: var(--text-soft);

    font-size: .85rem;
}


/* Image résultat */

.dream-result-image {
    max-width: 720px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: var(--radius);
}

.dream-result-image img {
    display: block;

    width: 100%;
}


/* Actions */

.dream-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: .8rem;

    margin-top: 2rem;
}


/* En-tête section analyse dans détail rêve */

.dream-analysis-section-heading {
    margin: 4rem 0 1.5rem;

    text-align: center;
}

.dream-analysis-section-heading h2 {
    margin: .25rem 0 .6rem;
}

.dream-analysis-section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--text-muted);
}


/* Mobile */

@media (max-width: 760px) {

    .dream-analysis-v2-grid {
        grid-template-columns: 1fr;
    }

}

.dream-analysis-divider {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 4rem 0 2.5rem;

    text-align: center;
}

.dream-analysis-divider::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    top: 50%;

    height: 1px;

    background: var(--border);
}

.dream-analysis-divider span {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: .55rem;

    padding: .45rem .9rem;

    background: var(--bg);

    color: var(--text-muted);

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.dream-analysis-divider i {
    color: var(--accent-hover);
}

.dream-entity-reference {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .38rem .65rem;

    background: var(--accent-soft);

    border: 1px solid rgba(159, 140, 255, .16);
    border-radius: 999px;

    color: #d8d1ff;

    font-size: .74rem;
}

.dream-entity-reference i {
    color: var(--secondary);

    font-size: .7rem;
}



/* =========================================================
   UNIVERS ONIRIQUE — Fiche entité
   ========================================================= */

.dream-entity-hero {
    padding: 3rem 0 3.2rem;

    background:
        linear-gradient(
            180deg,
            rgba(8, 11, 22, .68),
            rgba(8, 11, 22, .95)
        ),
        url("../../images/banner.jpg")
        center 55% / cover no-repeat;

    border-bottom: 1px solid var(--border);
}


.dream-entity-hero-content {
    display: flex;
    align-items: center;

    gap: 1.1rem;
}


.dream-entity-hero-icon {
    display: grid;
    place-items: center;

    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    background: rgba(159, 140, 255, .13);

    border: 1px solid rgba(159, 140, 255, .24);
    border-radius: 16px;

    color: var(--accent-hover);

    font-size: 1.3rem;

    backdrop-filter: blur(10px);
}


.dream-entity-hero h1 {
    margin: .2rem 0 .35rem;

    font-size: clamp(
        2rem,
        5vw,
        3.5rem
    );
}


.dream-entity-hero p {
    margin: 0;

    color: var(--text-soft);
}


.dream-entity-page {
    padding-top: 3rem;
}


/* Statistiques */

.dream-entity-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-bottom: 1.2rem;
}


.dream-entity-stat {
    padding: 1.2rem;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-soft);
}


.dream-entity-stat span {
    display: block;

    margin-bottom: .35rem;

    color: var(--text-muted);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .05em;
    text-transform: uppercase;
}


.dream-entity-stat strong {
    color: var(--text);

    font-size: 1.15rem;
}


/* Synthèse */

.dream-entity-synthesis {
    border-color:
        rgba(159, 140, 255, .20);
}


.dream-entity-synthesis > p {
    margin-bottom: .9rem;

    color: var(--text-soft);

    font-size: .95rem;
    line-height: 1.8;
}


.dream-entity-synthesis-note {
    display: block;

    color: var(--text-muted);

    font-size: .68rem;
}


/* Fréquences */

.dream-entity-frequency-list {
    display: grid;

    gap: .5rem;
}


.dream-entity-frequency {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: .7rem;

    padding: .65rem .75rem;

    background: rgba(
        255,
        255,
        255,
        .025
    );

    border-radius: 8px;
}


.dream-entity-frequency span {
    color: var(--text-soft);

    font-size: .8rem;
}


.dream-entity-frequency strong {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 28px;

    padding: 0 .45rem;

    background: var(--accent-soft);

    border-radius: 999px;

    color: var(--accent-hover);

    font-size: .7rem;
}


/* Symboles */

.dream-entity-symbol-cloud {
    display: flex;
    flex-wrap: wrap;

    gap: .45rem;
}


.dream-entity-symbol-cloud > span {
    display: inline-flex;
    align-items: center;

    gap: .4rem;

    padding: .4rem .65rem;

    background: var(--accent-soft);

    border:
        1px solid
        rgba(159, 140, 255, .15);

    border-radius: 999px;

    color: #d8d1ff;

    font-size: .75rem;
}


.dream-entity-symbol-cloud small {
    display: grid;
    place-items: center;

    min-width: 18px;
    height: 18px;

    background:
        rgba(255,255,255,.07);

    border-radius: 50%;

    color: var(--text-muted);

    font-size: .6rem;
}


/* Titre des rêves */

.dream-entity-dreams-heading {
    margin: 3.5rem 0 1.5rem;

    text-align: center;
}


.dream-entity-dreams-heading h2 {
    margin: .2rem 0 .4rem;
}


.dream-entity-dreams-heading p {
    margin: 0;

    color: var(--text-muted);
}


/* Références cliquables */

.dream-entity-reference {
    display: inline-flex;
    align-items: center;

    gap: .4rem;

    padding: .38rem .65rem;

    background: var(--accent-soft);

    border:
        1px solid
        rgba(159, 140, 255, .16);

    border-radius: 999px;

    color: #d8d1ff;

    font-size: .74rem;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}


.dream-entity-reference:hover {
    background:
        rgba(159, 140, 255, .16);

    border-color:
        rgba(159, 140, 255, .32);

    color: #fff;

    transform: translateY(-1px);
}


.dream-entity-reference > i:first-child {
    color: var(--secondary);
}


.dream-entity-arrow {
    margin-left: .15rem;

    color: var(--text-muted);

    font-size: .58rem;
}


/* Responsive */

@media (max-width: 760px) {

    .dream-entity-stats {
        grid-template-columns: 1fr;
    }


    .dream-entity-hero-content {
        align-items: flex-start;
    }


    .dream-entity-hero-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        border-radius: 12px;
    }

}





.guided-recall {
    margin-top: 1.25rem;
    padding: clamp(1.1rem, 3vw, 1.8rem);
    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, 0.09),
            rgba(110, 200, 213, 0.04)
        ),
        var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.guided-recall[hidden] {
    display: none;
}


.guided-recall-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.guided-recall-header h4 {
    margin: 0;
}

.guided-recall-close {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

.guided-recall-introduction {
    margin: 1rem 0;
    color: var(--text-muted);
}


.guided-recall-progress {
    height: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.guided-recall-progress-bar {
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--secondary)
        );
    border-radius: inherit;
    transition: width 0.25s ease;
}

.guided-recall-progress-text {
    margin: 0.45rem 0 1.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}


.guided-recall-question-area h5,
.guided-recall-result h5 {
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 1.1rem;
}

.guided-recall-help {
    margin-bottom: 1rem;
    color: var(--text-muted);
}


.guided-recall-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.guided-recall-option {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    text-align: left;
}

.guided-recall-option:hover,
.guided-recall-option.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
    transform: none;
}


.guided-recall-text-area textarea {
    min-height: 100px;
}

.guided-recall-text-area .button {
    margin-top: 0.75rem;
}


.guided-recall-navigation,
.guided-recall-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.guided-recall-result {
    margin-top: 1rem;
}

.guided-recall-result textarea {
    min-height: 190px;
}

/* =========================================================
   LANGAGE SYMBOLIQUE PERSONNEL
   ========================================================= */

.personal-symbol-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.personal-symbol-card {
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.personal-symbol-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.personal-symbol-heading > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--accent-soft);
    border-radius: 12px;
    color: var(--accent-hover);
}

.personal-symbol-heading span {
    display: block;
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personal-symbol-heading h3 {
    margin: 0;
}

.personal-symbol-count {
    margin: 1.15rem 0 0.7rem;
    color: var(--text-muted);
}

.personal-symbol-summary {
    white-space: pre-line;
    color: var(--text-soft);
}

.personal-symbol-evidence {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.personal-symbol-evidence h4 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.personal-symbol-evidence article {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.personal-symbol-evidence article:last-child {
    border-bottom: 0;
}

.personal-symbol-evidence span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.personal-symbol-evidence p {
    margin: 0.35rem 0;
    color: var(--text-soft);
}

.personal-symbol-evidence a {
    font-size: 0.84rem;
}


/* =========================================================
   RÊVE LE PLUS PROCHE / MODE ARCHÉOLOGUE
   ========================================================= */

.archaeology-layers {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.archaeology-layers article {
    padding: 0.9rem 1rem;
    background: rgba(159, 140, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.archaeology-layers strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.archaeology-layers p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

#result-closest-dream-link {
    margin-top: 1rem;
}


/* =========================================================
   DASHBOARD — MÉMOIRE ONIRIQUE
   ========================================================= */

.dream-memory-section {
    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, 0.08),
            rgba(110, 200, 213, 0.035)
        );
}

.dream-memory-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.dream-memory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.dream-memory-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.dream-memory-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: 12px;
    color: var(--accent-hover);
}

.dream-memory-card-header span,
.dream-memory-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dream-memory-card-header h3 {
    margin: 0.1rem 0 0;
    font-size: 1.08rem;
}

.dream-memory-closest,
.dream-memory-layers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.dream-memory-closest p {
    margin: 0.5rem 0 0.75rem;
    color: var(--text-soft);
}

.dream-memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dream-memory-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.dream-memory-tags i {
    color: var(--accent-hover);
}

.dream-memory-link,
.dream-memory-current-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.84rem;
}

.dream-memory-layers {
    display: grid;
    gap: 0.65rem;
}

.dream-memory-layer {
    padding: 0.75rem 0.85rem;
    background: rgba(110, 200, 213, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.dream-memory-layer strong {
    display: block;
    color: var(--text);
}

.dream-memory-layer small {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dream-memory-current-link {
    margin-top: auto;
    padding-top: 1.2rem;
}

/* Pastilles cliquables du dashboard */

.trend-tags > a.trend-tag-link {
    display: inline-flex;
    align-items: center;
    padding: .42rem .7rem;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, .32);
    border-radius: 999px;
    color: var(--accent-hover);
    font-size: .82rem;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.trend-tags > a.trend-tag-link:hover {
    background: rgba(159, 140, 255, .24);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}


/* Fiche d’un symbole */

.dream-symbol-related-dream {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.dream-symbol-related-dream:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dream-symbol-related-dream > span {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
}

.dream-symbol-related-dream p {
    margin: .4rem 0;
    color: var(--text-soft);
}

.dream-symbol-related-dream a {
    font-size: .84rem;
}


/* =========================================================
   ACCUEIL — POURQUOI ENREGISTRER SES RÊVES
   ========================================================= */

.dream-benefits-section {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(159, 140, 255, 0.08),
            transparent 34rem
        ),
        rgba(255, 255, 255, 0.018);
}

.dream-benefits-section header.major {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.dream-benefits-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1050px;
    margin: 0 auto;
}

.dream-benefit-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 1.7rem);
    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, 0.07),
            rgba(110, 200, 213, 0.025)
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.dream-benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.dream-benefit-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, 0.25);
    border-radius: 15px;
    color: var(--accent-hover);
    font-size: 1.2rem;
}

.dream-benefit-content {
    min-width: 0;
}

.dream-benefit-content h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.dream-benefit-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.7;
}


/* =========================================================
   ACCUEIL — ACCOMPAGNEMENT PROGRESSIF
   ========================================================= */

.home-journey-section {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(159, 140, 255, 0.08),
            transparent 38rem
        ),
        rgba(255, 255, 255, 0.018);
}

.home-journey-section header.major {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-journey-section header.major > p {
    max-width: 760px;
}

.home-journey-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-journey-card {
    position: relative;
    display: grid;
    grid-template-columns:
        72px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background:
        linear-gradient(
            120deg,
            rgba(159, 140, 255, 0.075),
            rgba(110, 200, 213, 0.025)
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.home-journey-card:nth-child(2) {
    margin-left: clamp(0rem, 5vw, 4rem);
}

.home-journey-number {
    position: absolute;
    top: 0.75rem;
    right: 1.15rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.home-journey-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, 0.28);
    border-radius: 18px;
    color: var(--accent-hover);
    font-size: 1.4rem;
}

.home-journey-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    min-width: 0;
}

.home-journey-content > span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--secondary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-journey-content h3 {
    max-width: 650px;
    margin: 0 0 0.8rem;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    line-height: 1.35;
}

.home-journey-content p {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.8;
}

.home-journey-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--accent-hover);
    font-size: 0.88rem;
    font-weight: 600;
}

.home-journey-link i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.home-journey-link:hover i {
    transform: translateX(3px);
}

.home-journey-action {
    margin-top: 2rem;
    text-align: center;
}


/* =========================================================
   SECTION — PRÉSENTATION DE L'ANALYSE
   ========================================================= */

.home-analysis-section {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(159, 140, 255, 0.1),
            transparent 38rem
        ),
        var(--bg);
}

.home-analysis-section header.major {
    max-width: 950px;
    margin-right: auto;
    margin-left: auto;
}

.home-analysis-layout {
    display: grid;
    grid-template-columns:
        minmax(340px, 0.85fr)
        minmax(500px, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.home-analysis-content {
    min-width: 0;
}

.home-analysis-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-analysis-content > h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.home-analysis-introduction {
    color: var(--text-soft);
    line-height: 1.8;
}

.home-analysis-features {
    display: grid;
    gap: 0.85rem;
    margin: 1.6rem 0;
}

.home-analysis-feature {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.home-analysis-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--accent-soft);
    border: 1px solid rgba(159, 140, 255, 0.25);
    border-radius: 12px;
    color: var(--accent-hover);
}

.home-analysis-feature strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text);
}

.home-analysis-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}


/* Modes d’analyse */

.home-analysis-modes {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.6rem 0;
}

.home-analysis-mode {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-analysis-mode.featured {
    background:
        linear-gradient(
            145deg,
            rgba(159, 140, 255, 0.13),
            rgba(110, 200, 213, 0.035)
        );
    border-color: rgba(159, 140, 255, 0.35);
}

.home-analysis-mode > span {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.home-analysis-mode h4 {
    margin: 0.3rem 0 0.5rem;
    font-size: 0.95rem;
}

.home-analysis-mode h4 i {
    margin-right: 0.35rem;
    color: var(--accent-hover);
}

.home-analysis-mode p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.55;
}


/* Galerie */

.home-analysis-gallery {
    min-width: 0;
}

.home-analysis-main-capture,
.home-analysis-secondary-captures > a {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.home-analysis-main-capture img,
.home-analysis-secondary-captures img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

.home-analysis-main-capture img {
    max-height: 480px;
}

.home-analysis-main-capture > span,
.home-analysis-secondary-captures a > span {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    padding: 0.55rem 0.7rem;
    background: rgba(8, 11, 22, 0.9);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-soft);
    font-size: 0.72rem;
    text-align: center;
}

.home-analysis-secondary-captures {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.home-analysis-secondary-captures img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}


/* Mémoire des entités */

.home-analysis-memory {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 1000px;
    margin: clamp(3rem, 7vw, 5rem) auto 0;
    padding: clamp(1.4rem, 4vw, 2rem);
    background:
        linear-gradient(
            120deg,
            rgba(110, 200, 213, 0.07),
            rgba(159, 140, 255, 0.06)
        ),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
}

.home-analysis-memory-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: rgba(110, 200, 213, 0.1);
    border: 1px solid rgba(110, 200, 213, 0.25);
    border-radius: 16px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.home-analysis-memory h3 {
    margin: 0.3rem 0 0.65rem;
    font-size: 1.25rem;
}

.home-analysis-memory p {
    margin: 0;
    color: var(--text-soft);
}


/* =========================================================
   INTERPRÉTEUR — TYPOGRAPHIE UNIFIÉE Pas dream interpretation
   ========================================================= */

#dream-interpretation-form {
    --interpreter-heading-size: 1rem;
    --interpreter-text-size: 0.92rem;
    --interpreter-small-size: 0.8rem;
}

/* Titres des grandes étapes : restent visibles, sans police décorative */
#dream-interpretation-form > .step > h3 {
    margin: 0 0 1.5rem;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

/* Titres de champs et titres dans les encadrés */
#dream-interpretation-form label,
#dream-interpretation-form .guided-recall-launcher p,
#dream-interpretation-form .guided-recall-header h4,
#dream-interpretation-form .guided-recall-question-area h5,
#dream-interpretation-form .guided-recall-result h5 {
    margin: 0;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: var(--interpreter-heading-size);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

/* Même style pour tous les textes d'aide */
#dream-interpretation-form .dream-field-help,
#dream-interpretation-form .guided-recall-introduction,
#dream-interpretation-form .guided-recall-help,
#dream-interpretation-form .guided-recall-result > p {
    margin: 0.35rem 0 0.85rem;

    color: var(--text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: var(--interpreter-text-size);
    font-weight: 400;
    line-height: 1.6;
}

/* Espacement identique entre chaque groupe du formulaire */
#dream-interpretation-form .dream-entity-field {
    margin-bottom: 2rem;
}

/* Le cadre d'aide garde un seul niveau visuel clair */
#dream-interpretation-form .guided-recall-launcher {
    display: grid;
    gap: 0.8rem;

    margin-top: 1rem;
    padding: 1.1rem 1.2rem;

    text-align: left;
}

#dream-interpretation-form .guided-recall-launcher p {
    color: var(--text-soft);
}

/* Titres de la fenêtre de reconstitution */
#dream-interpretation-form .guided-recall-header h4 {
    font-size: 1.05rem;
}

#dream-interpretation-form .section-eyebrow,
#dream-interpretation-form .guided-recall-progress-text,
#dream-interpretation-form .dream-entity-suggestions-label {
    font-family: "Inter", Arial, sans-serif;
    font-size: var(--interpreter-small-size);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Champs, suggestions et pastilles homogènes */
#dream-interpretation-form input,
#dream-interpretation-form textarea,
#dream-interpretation-form .dream-entity-chip,
#dream-interpretation-form .dream-entity-suggestion {
    font-family: "Inter", Arial, sans-serif;
}

#dream-interpretation-form .dream-entity-chip,
#dream-interpretation-form .dream-entity-suggestion {
    font-size: 0.8rem;
}

/* =========================================================
   ZONE DE DESCRIPTION DU RÊVE
   ========================================================= */

#dream-interpretation-form .dream-description-panel {
    width: 100%;
    padding: 1.2rem;

    background: rgba(18, 24, 43, 0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: left;
}

#dream-interpretation-form .dream-description-panel > label {
    display: block;
    margin-bottom: 0.6rem;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

#dream-interpretation-form .dream-description-panel > textarea {
    display: block;
    width: 100%;
    margin-bottom: 0.85rem;
}

/* Aide intégrée sous la description */
#dream-interpretation-form .dream-description-assist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;

    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 10px;
}

#dream-interpretation-form .dream-description-assist p {
    margin: 0;

    color: var(--text-soft);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
}

#dream-interpretation-form .dream-description-assist .button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
}

/* Fenêtre de reconstitution */
#dream-interpretation-form .dream-description-panel > .guided-recall {
    display: block;
    clear: both;
    width: 100%;

    margin: 1rem 0 0;
    padding: 1.1rem;

    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: none;
    text-align: left;
}

#dream-interpretation-form .dream-description-panel
.guided-recall-header h4 {
    margin: 0;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

#dream-interpretation-form .dream-description-panel
.guided-recall-introduction {
    font-size: 0.82rem;
}


/* Respecte l'attribut hidden de la reconstitution guidée */
#dream-interpretation-form
.dream-description-panel
> .guided-recall[hidden] {
    display: none !important;
}


/* =========================================================
   INTERPRÉTEUR — STRUCTURE ET ÉCHELLE TYPOGRAPHIQUE
   ========================================================= */

#banner.interpreter-page {
    display: block;
    min-height: auto;

    padding:
        clamp(3rem, 6vw, 5rem)
        1.25rem
        clamp(4rem, 7vw, 6rem);

    text-align: left;
}

#banner.interpreter-page > .container {
    width: min(
        calc(100% - 40px),
        900px
    );
    max-width: 900px;
}


/* En-tête principal de la page */

#banner.interpreter-page
> .container
> header.major {
    margin: 0 auto 2rem;
    text-align: center;
}

#banner.interpreter-page
> .container
> header.major h2 {
    max-width: none;
    margin: 0 0 0.65rem;

    font-size: clamp(
        2rem,
        4vw,
        3.15rem
    );

    line-height: 1.12;
}

#banner.interpreter-page
> .container
> header.major p {
    margin: 0 auto;

    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
}


/* Barre de progression */

#banner.interpreter-page
.progress-container {
    height: 8px;
    margin: 0 0 2.25rem;
}


/* En-tête de chaque étape */

#dream-interpretation-form
.dream-step-heading {
    margin-bottom: 1.25rem;
    text-align: left;
}

#dream-interpretation-form
.dream-step-number {
    display: block;
    margin-bottom: 0.35rem;

    color: var(--accent);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

#dream-interpretation-form
.dream-step-heading h3,
#dream-interpretation-form
> .step
> h3 {
    margin: 0;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}


/* Champ de date */

#dream-interpretation-form
.dream-night-field {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.2rem;

    background: rgba(18, 24, 43, 0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: left;
}

#dream-interpretation-form
.dream-night-field label {
    margin-bottom: 0.55rem;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

#dream-interpretation-form
.dream-night-field input {
    margin-bottom: 0.55rem;
}


/* Tous les textes d’aide */

#dream-interpretation-form
.form-help,
#dream-interpretation-form
.dream-field-help,
#dream-interpretation-form
.guided-recall-introduction,
#dream-interpretation-form
.guided-recall-help {
    margin: 0;

    color: var(--text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}


/* Libellés de champs */

#dream-interpretation-form label,
#dream-interpretation-form
.dream-description-panel > label {
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}


/* Zone principale du formulaire */

#dream-interpretation-form
.dream-description-panel {
    padding: 1.2rem;
}

#dream-interpretation-form
.dream-description-panel textarea {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Aide de reconstitution */

#dream-interpretation-form
.dream-description-assist p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}


/* Version mobile */

@media (max-width: 736px) {

    #banner.interpreter-page {
        padding:
            2.5rem
            1rem
            4rem;
    }

    #banner.interpreter-page
    > .container {
        width: 100%;
    }

    #banner.interpreter-page
    > .container
    > header.major h2 {
        font-size: 2rem;
    }

    #dream-interpretation-form
    .dream-step-heading h3,
    #dream-interpretation-form
    > .step
    > h3 {
        font-size: 1.2rem;
    }

    #dream-interpretation-form
    .dream-night-field,
    #dream-interpretation-form
    .dream-description-panel {
        padding: 1rem;
    }
}

/* =========================================================
   INTERPRÉTEUR — PANNEAUX DE CHAMPS
   ========================================================= */

#dream-interpretation-form
.dream-field-panel {
    width: 100%;
    padding: 1.2rem;

    background: rgba(18, 24, 43, 0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: left;
}


/*
 * La grille possède déjà son propre espacement.
 * On supprime donc l’ancienne grande marge des entités.
 */
#dream-interpretation-form
.dream-entity-field.dream-field-panel {
    margin-bottom: 0;
}


/* Titre des panneaux */

#dream-interpretation-form
.dream-field-panel > label {
    display: block;
    margin: 0 0 0.35rem;

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}


/* Texte explicatif */

#dream-interpretation-form
.dream-field-panel
.dream-field-help {
    margin: 0 0 0.85rem;

    color: var(--text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.55;
}


/* Zone Étais-je présent ? */

#dream-interpretation-form
.dream-presence-panel
.toggle-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    width: 100%;
    text-align: left;
}

#dream-interpretation-form
.dream-presence-content {
    display: grid;
    gap: 0.25rem;
}

#dream-interpretation-form
.dream-presence-title {
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

#dream-interpretation-form
.dream-presence-help {
    color: var(--text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.55;
}


/* L’interrupteur ne doit pas se comprimer */

#dream-interpretation-form
.dream-presence-panel
.toggle-switch {
    flex: 0 0 auto;
    margin: 0;
}


/* Mobile */

@media (max-width: 600px) {

    #dream-interpretation-form
    .dream-field-panel {
        padding: 1rem;
    }

    #dream-interpretation-form
    .dream-presence-panel
    .toggle-container {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Les zones de texte remplissent proprement leur panneau */

#dream-interpretation-form
.dream-field-panel > textarea {
    display: block;
    width: 100%;
    margin-bottom: 0;
}


/* Introduction facultative d’une étape */

#dream-interpretation-form
.dream-step-introduction {
    max-width: 650px;
    margin: 0.5rem 0 0;

    color: var(--text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}


/* Panneau de qualité du sommeil */

#dream-interpretation-form
.dream-sleep-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    text-align: left;
}

#dream-interpretation-form
.dream-sleep-content {
    min-width: 0;
}

#dream-interpretation-form
.dream-sleep-content label {
    margin-bottom: 0.25rem;
}

#dream-interpretation-form
.dream-sleep-content .form-help {
    margin: 0;
}

#dream-interpretation-form
.dream-sleep-panel
.sleep-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.55rem;

    flex: 0 0 auto;
}

#dream-interpretation-form
.dream-sleep-panel
input[type="number"] {
    width: 80px;
    margin: 0;
    text-align: center;
}

#dream-interpretation-form
.sleep-scale {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}


/* Espacement régulier entre les panneaux */

#dream-interpretation-form
.row.uniform {
    gap: 1.25rem;
}


/* Mobile */

@media (max-width: 600px) {

    #dream-interpretation-form
    .dream-sleep-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ============================================================
   RÊVES PARTAGÉS
   ============================================================ */

.shared-dreams-hero {
    padding-bottom: 4rem;
}

.shared-invitation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.shared-panel,
.shared-result-card,
.shared-settings,
.shared-connection-row,
.shared-empty-state {
    background: rgba(22, 27, 48, 0.92);
    border: 1px solid rgba(144, 125, 255, 0.22);
    border-radius: 18px;
}

.shared-panel {
    padding: 2rem;
}

.shared-panel h3,
.shared-result-card h3,
.shared-settings h3 {
    margin: 0.4rem 0 0.8rem;
}

.shared-panel-label {
    color: #9e8cff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shared-code {
    margin: 1.5rem 0;
    padding: 1rem;

    color: #ffffff;
    background: rgba(126, 102, 238, 0.13);
    border: 1px solid rgba(158, 140, 255, 0.35);
    border-radius: 12px;

    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
}

.shared-panel form .button {
    margin-top: 1rem;
}

.shared-connections-list {
    display: grid;
    gap: 1rem;
}

.shared-connection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
}

.shared-connection-row h3 {
    margin: 0.3rem 0 0;
}

.shared-inline-actions {
    display: flex;
    gap: 0.75rem;
    margin: 0;
}

.shared-status {
    color: #b8acd9;
    font-size: 0.85rem;
}

.shared-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.5rem;
    background: #9e8cff;
    border-radius: 50%;
}

.shared-partner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.shared-partner-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    padding: 0.8rem 1.1rem;

    color: #bbb5d0;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;

    text-decoration: none;
}

.shared-partner-tab:hover,
.shared-partner-tab.is-active {
    color: #ffffff;
    background: rgba(126, 102, 238, 0.2);
    border-color: rgba(158, 140, 255, 0.5);
}

.shared-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.shared-result-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.6rem;
}

.shared-result-wide {
    grid-column: 1 / -1;
}

.shared-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: #a998ff;
    background: rgba(126, 102, 238, 0.16);
    border: 1px solid rgba(158, 140, 255, 0.3);
    border-radius: 14px;
}

.shared-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.shared-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.55rem 0.8rem;

    color: #f2efff;
    background: rgba(126, 102, 238, 0.14);
    border: 1px solid rgba(158, 140, 255, 0.28);
    border-radius: 999px;
}

.shared-tag small {
    color: #9e8cff;
    font-size: 0.72rem;
}

.shared-private {
    color: #9992ae;
    font-style: italic;
}

.shared-nights {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.shared-night {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem;

    background: rgba(255, 255, 255, 0.035);
    border-radius: 11px;
}

.shared-night span {
    color: #a9a3ba;
    font-size: 0.85rem;
}

.shared-settings {
    display: grid;
    grid-template-columns:
        minmax(240px, 0.75fr)
        minmax(320px, 1.25fr)
        auto;
    align-items: start;
    gap: 2rem;

    margin-top: 2rem;
    padding: 2rem;
}

.shared-permissions {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.shared-permission {
    padding: 0.8rem 1rem;

    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.shared-settings form {
    margin: 0;
}

.shared-danger-button {
    color: #ffb6c1 !important;
    border-color: rgba(255, 113, 137, 0.35) !important;
}

.shared-empty-state {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    text-align: center;
}

.shared-empty-state > i {
    margin-bottom: 1rem;
    color: #9e8cff;
    font-size: 2rem;
}

.shared-flashes {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.shared-flash {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 11px;
}

.shared-flash-success {
    color: #c7f9df;
    background: rgba(42, 180, 112, 0.12);
    border: 1px solid rgba(42, 180, 112, 0.28);
}

.shared-flash-error {
    color: #ffc1cb;
    background: rgba(220, 75, 99, 0.12);
    border: 1px solid rgba(220, 75, 99, 0.28);
}

.shared-flash-info {
    color: #d6ceff;
    background: rgba(126, 102, 238, 0.12);
    border: 1px solid rgba(126, 102, 238, 0.28);
}


.shared-dashboard-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;

    padding: 1.8rem 2rem;

    background:
        linear-gradient(
            135deg,
            rgba(126, 102, 238, 0.13),
            rgba(22, 27, 48, 0.96)
        );
    border: 1px solid rgba(158, 140, 255, 0.25);
    border-radius: 18px;
}

.shared-dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    color: #a998ff;
    background: rgba(126, 102, 238, 0.17);
    border: 1px solid rgba(158, 140, 255, 0.3);
    border-radius: 16px;

    font-size: 1.25rem;
}

.shared-dashboard-content h2 {
    margin: 0.3rem 0 0.6rem;
}

.shared-dashboard-content p {
    margin: 0;
}


/* ============================================================
   PAGE DES CATÉGORIES
   ============================================================ */

.category-hero .major {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
}

.category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;

    max-width: 1150px;
    margin: 0 auto 3rem;
}

.category-navigation-link {
    padding: 0.65rem 0.9rem;

    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 999px;

    font-family: "Inter", Arial, sans-serif;
    font-size: 0.78rem;
    text-decoration: none;
}

.category-navigation-link:hover,
.category-navigation-link.is-active {
    color: #ffffff;
    background: rgba(126, 102, 238, 0.17);
    border-color: rgba(159, 140, 255, 0.48);
}

.category-detail-list {
    display: grid;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.category-detail-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.5rem;

    padding: 2rem;

    background: rgba(20, 25, 45, 0.82);
    border: 1px solid var(--border);
    border-radius: 18px;

    scroll-margin-top: 110px;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.category-detail-card:target,
.category-detail-card.is-selected {
    background:
        linear-gradient(
            135deg,
            rgba(126, 102, 238, 0.13),
            rgba(20, 25, 45, 0.96)
        );
    border-color: rgba(159, 140, 255, 0.58);
    box-shadow:
        0 0 0 1px rgba(159, 140, 255, 0.08),
        0 18px 45px rgba(0, 0, 0, 0.18);
}

.category-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    color: #a997ff;
    background: rgba(126, 102, 238, 0.15);
    border: 1px solid rgba(159, 140, 255, 0.3);
    border-radius: 16px;

    font-size: 1.25rem;
}

.category-detail-number {
    color: #55d8eb;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-detail-content h2 {
    margin: 0.35rem 0 0.85rem;
}

.category-detail-summary {
    color: #ffffff;
    font-size: 1.04rem;
    line-height: 1.75;
}

.category-detail-lower {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(260px, 0.8fr);
    gap: 1.5rem;

    margin-top: 1.5rem;
}

.category-detail-lower h3 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.category-clues {
    margin: 0;
}

.category-clues li {
    margin-bottom: 0.4rem;
    color: var(--text-soft);
}

.category-question {
    padding: 1.25rem;

    background: rgba(255, 255, 255, 0.035);
    border-left: 3px solid #9f8cff;
    border-radius: 0 12px 12px 0;
}

.category-question span {
    color: #9f8cff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-question p {
    margin: 0.6rem 0 0;
    color: #ffffff;
}

.category-journal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin-top: 1.5rem;

    color: #a997ff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.category-journal-link:hover {
    color: #ffffff;
}


.dashboard-category-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-category-link:hover {
    color: #aa98ff;
}

.dream-category-link {
    display: inline-flex;
    align-items: center;

    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.dream-category-link:hover {
    color: #ffffff;
    border-color: rgba(159, 140, 255, 0.58);
    background: rgba(126, 102, 238, 0.22);
}


/* =========================================================
   DÉCORATION DISCRÈTE DE LA PAGE D'ACCUEIL
   ========================================================= */

.home-analysis-section,
.home-journey-section,
.dream-benefits-section {
    position: relative;
    overflow: hidden;
}

.home-analysis-section::before,
.home-journey-section::before,
.dream-benefits-section::before {
    content: "✦   ·   ✧   ·   ✦";

    position: absolute;
    top: 2rem;
    right: 4vw;

    color: rgba(183, 168, 255, 0.35);
    font-size: 0.8rem;
    letter-spacing: 0.6rem;
    pointer-events: none;
}

.home-analysis-section::after {
    content: "";

    position: absolute;
    top: 0;
    left: 7%;

    width: 1px;
    height: 180px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(159, 140, 255, 0.45),
        transparent
    );

    pointer-events: none;
}

.home-analysis-section > .container,
.home-journey-section > .container,
.dream-benefits-section > .container {
    position: relative;
    z-index: 1;
}


@media (max-width: 736px) {
    .category-detail-card {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .category-detail-lower {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {
    .shared-dashboard-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shared-dashboard-icon {
        margin: 0 auto;
    }
}


@media (max-width: 900px) {
    .shared-invitation-grid,
    .shared-results-grid {
        grid-template-columns: 1fr;
    }

    .shared-result-wide {
        grid-column: auto;
    }

    .shared-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .shared-connection-row,
    .shared-night {
        align-items: stretch;
        flex-direction: column;
    }

    .shared-inline-actions {
        flex-direction: column;
    }

    .shared-inline-actions .button {
        width: 100%;
    }

    .shared-result-card {
        grid-template-columns: 1fr;
    }

    .shared-code {
        font-size: 1.2rem;
    }
}


/* Version mobile */
@media (max-width: 650px) {

    #dream-interpretation-form .dream-description-assist {
        align-items: stretch;
        flex-direction: column;
    }

    #dream-interpretation-form .dream-description-assist .button {
        width: 100%;
    }

}

/* Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
    :root { --header-height: 66px; }
    #header { padding-right: 70px; }
    #nav { display: none; }
    #symbol-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .navPanelToggle { display: flex; }
    .feature-grid { grid-template-columns: 1fr; }
    .\34 u, .\34 u\24 { width: calc(50% - .75rem); }

    .home-analysis-layout {
        grid-template-columns: 1fr;
    }

    .home-analysis-gallery {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 736px) {
    body { font-size: 15px; }
    #header { position: sticky; padding-left: 18px; }
    #header h1 { font-size: .92rem; }
    #banner { min-height: 390px; padding-top: 5rem; }
    .wrapper { padding: 3.5rem 0; }
    .container,
    .container.\31 25\25,
    .container.\37 5\25,
    .container.\35 0\25,
    .container.\32 5\25 { width: min(calc(100% - 28px), var(--container)); }
    .row { gap: 1rem; }
    .\38 u, .\38 u\24,
    .\36 u, .\36 u\24,
    .\34 u, .\34 u\24,
    .\33 u, .\33 u\24,
    .\31 2u\24\28medium\29,
    .\31 2u\24\28small\29,
    .\31 2u\24\28xsmall\29 { width: 100% !important; }
    .feature { grid-template-columns: 84px minmax(0,1fr); padding: 1rem; }
    .image.rounded { width: 84px; height: 84px; }
    #symbol-list { grid-template-columns: 1fr; }
    #calendar-container { padding: .75rem; }
    #calendar { border-spacing: 3px; }
    #calendar td { height: 44px; padding: .2rem; font-size: .8rem; }
    .user-profile-card { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .user-profile-avatar {width: 125px; height: 125px; }
    .user-profile-email,
    .user-profile-content .actions { justify-content: center; }
    .guided-recall-options {
        grid-template-columns: 1fr;
    }

    .guided-recall-navigation,
    .guided-recall-result-actions {
        flex-direction: column;
    }

    .guided-recall-navigation .button,
    .guided-recall-result-actions .button {
        width: 100%;
    }
    .personal-symbol-grid {
        grid-template-columns: 1fr;
    }
    .dream-memory-grid {
        grid-template-columns: 1fr;
    }
    .dream-benefits-grid {
        grid-template-columns: 1fr;
    }

    .home-journey-card,
    .home-journey-card:nth-child(2) {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 1rem;
        margin-left: 0;
        padding: 1.25rem;
    }

    .home-journey-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 1.1rem;
    }

}

@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    .feature { grid-template-columns: 1fr; }
    .image.rounded { width: 72px; height: 72px; }
    ul.actions, .special ul.actions { flex-direction: column; align-items: stretch; }
    ul.actions .button, ul.actions button { width: 100%; }
    #calendar-header { flex-wrap: wrap; justify-content: center; }
    .user-profile-stats { grid-template-columns: 1fr; }
    .dream-benefit-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0.85rem;
        padding: 1.1rem;
    }

    .dream-benefit-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1rem;
    }
    .home-journey-card,
    .home-journey-card:nth-child(2) {
        grid-template-columns: 1fr;
    }

    .home-journey-number {
        font-size: 3.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
