:root {
    --amd-red: #c1272d;
    --amd-green: #006233;
    --amd-gold: #d4a24c;
    --amd-dark: #1c1c1c;
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: #f7f6f4;
    color: var(--amd-dark);
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
}

.navbar-brand .brand-accent {
    color: var(--amd-red);
}

/* Navbar : reduction fluide au scroll */
.site-navbar {
    position: relative;
    padding-top: .85rem;
    padding-bottom: .85rem;
    transition:
        padding .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        background-color .35s ease,
        background-image .35s ease,
        backdrop-filter .35s ease;
    will-change: padding;
}

.site-navbar .navbar-logo {
    height: 36px;
    width: auto;
    transition: height .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}

.site-navbar .nav-link {
    transition: padding .35s ease, font-size .35s ease, opacity .25s ease;
}

.site-navbar .nav-shop-link {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.site-navbar .nav-link-mre {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    padding: .35rem .85rem !important;
    margin-right: .35rem;
    border-radius: 999px;
    background: var(--amd-red);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(193, 39, 45, .35);
}

.site-navbar .nav-link-mre:hover,
.site-navbar .nav-link-mre:focus {
    background: #a01f24;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4);
}

.site-navbar.is-compact .nav-link-mre {
    padding: .25rem .7rem !important;
}

.site-navbar .nav-shop-link:hover,
.site-navbar .nav-shop-link:focus-visible {
    color: var(--amd-gold);
}

.site-navbar .btn {
    transition: padding .35s ease, font-size .35s ease, transform .35s ease;
}

.site-navbar.is-compact {
    padding-top: .35rem;
    padding-bottom: .35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
    background-color: rgba(0, 98, 51, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-navbar.is-compact .navbar-logo {
    height: 28px;
}

.site-navbar.is-compact .nav-link {
    padding-top: .35rem;
    padding-bottom: .35rem;
    font-size: .92rem;
}

.site-navbar.is-compact .btn-sm {
    padding: .25rem .65rem;
    font-size: .8rem;
}

/* Menu flottant + flou sur toutes les pages (fusion avec hero / contenu) */
body.has-overlay-nav .site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

body.has-overlay-nav .site-navbar:not(.is-compact) {
    background-color: rgba(0, 22, 12, .42) !important;
    background-image: linear-gradient(
        180deg,
        rgba(0, 22, 12, .72) 0%,
        rgba(0, 30, 16, .38) 70%,
        rgba(0, 20, 10, .12) 100%
    );
    box-shadow: none !important;
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

body.has-overlay-nav .site-navbar.is-compact {
    background-color: rgba(0, 98, 51, .96) !important;
    background-image: none;
}

body.has-overlay-nav .site-navbar.is-compact::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--amd-green) 0 14px,
        var(--amd-gold) 14px 28px,
        var(--amd-red) 28px 42px
    );
    pointer-events: none;
}

body.has-overlay-nav .zellige-strip {
    display: none;
}

/* Pages sans bandeau : decaler le contenu sous la nav fixe */
body.has-overlay-nav main {
    padding-top: 5rem;
}

body.has-overlay-nav main:has(.hero-section),
body.has-overlay-nav main:has(.page-hero),
body.has-overlay-nav main:has(.personality-hero),
body.has-overlay-nav main:has(.hero-live--bar) {
    padding-top: 0;
}

/* Bandeau confirmation e-mail : sous la nav, jamais derriere */
.verify-email-banner {
    position: relative;
    z-index: 1025;
    padding: .65rem 0;
    background: #fff3cd;
    border-bottom: 1px solid rgba(133, 100, 4, .22);
    color: #664d03;
    font-size: .92rem;
}

body.has-overlay-nav.has-verify-banner main:has(.page-hero) > .verify-email-banner,
body.has-overlay-nav.has-verify-banner main:has(.hero-section) > .verify-email-banner,
body.has-overlay-nav.has-verify-banner main:has(.personality-hero) > .verify-email-banner {
    margin-top: 4.35rem;
}

body.has-overlay-nav.has-verify-banner main:has(.page-hero),
body.has-overlay-nav.has-verify-banner main:has(.hero-section),
body.has-overlay-nav.has-verify-banner main:has(.personality-hero) {
    padding-top: 0;
}

body.has-overlay-nav.has-verify-banner .site-flash-messages {
    margin-top: .75rem !important;
}

body.has-overlay-nav .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 7.5rem;
    padding-bottom: 4.5rem;
}

body.has-overlay-nav .page-hero {
    padding-top: 4.25rem;
    box-sizing: border-box;
}

body.has-overlay-nav .personality-hero {
    padding-top: 5rem;
    box-sizing: border-box;
}

/* Menu mobile ouvert : panneau lisible meme en mode transparent */
@media (max-width: 991.98px) {
    body.has-overlay-nav .site-navbar:not(.is-compact) .navbar-collapse.show {
        margin-top: .65rem;
        padding: .85rem 1rem;
        border-radius: .85rem;
        background: rgba(0, 70, 38, .94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
        border: 1px solid rgba(255, 255, 255, .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-navbar,
    .site-navbar .navbar-logo,
    .site-navbar .nav-link,
    .site-navbar .btn {
        transition: none;
    }
}

/* La barre de debug Symfony doit rester fixee en bas et ne jamais
   "fuir" vers le haut / la navbar. */
.sf-toolbarreset {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
}

.sf-minitoolbar {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 99999 !important;
}

.btn-primary {
    background-color: var(--amd-red);
    border-color: var(--amd-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #9e1f24;
    border-color: #9e1f24;
}

.btn-outline-primary {
    color: var(--amd-red);
    border-color: var(--amd-red);
}

.btn-outline-primary:hover {
    background-color: var(--amd-red);
    border-color: var(--amd-red);
}

.text-amd-green {
    color: var(--amd-green);
}

.bg-amd-green {
    background-color: var(--amd-green);
}

.btn-amd-green {
    background-color: var(--amd-green);
    border-color: var(--amd-green);
    color: #fff;
}

.btn-amd-green:hover,
.btn-amd-green:focus-visible {
    background-color: #004d28;
    border-color: #004d28;
    color: #fff;
}

.bg-amd-red {
    background-color: var(--amd-red);
}

.article-source {
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.article-source-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1.1rem;
    border-radius: .55rem;
    background: rgba(0, 98, 51, .08);
    color: var(--amd-green);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid rgba(0, 98, 51, .18);
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-source-link:hover,
.article-source-link:focus-visible {
    background: var(--amd-green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 98, 51, .18);
    transform: translateY(-1px);
}

/* ——— Lecture article ——— */
.article-reader {
    padding: 1.5rem 0 3.5rem;
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(0, 98, 51, .06), transparent 55%),
        radial-gradient(ellipse 50% 30% at 100% 8%, rgba(212, 162, 76, .08), transparent 50%),
        #f7f6f4;
}

.article-reader-layout {
    display: flex;
    justify-content: center;
}

.article-reader-main {
    width: 100%;
    max-width: 46rem;
}

.article-reader-header {
    margin-bottom: 1.5rem;
}

.article-reader-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
    color: var(--amd-green);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}

.article-reader-back:hover {
    color: var(--amd-red);
}

.article-reader-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    margin-bottom: .85rem;
    font-size: .875rem;
    color: #6c757d;
}

.article-reader-origin {
    font-weight: 500;
    color: #888;
}

.article-reader-source-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .65rem;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    flex-shrink: 0;
}

.article-reader-source-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .2rem;
}

.article-source-link-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    border-radius: .2rem;
}

.article-source-badge {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .55rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: .25rem;
}

.article-source-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listing-card-media--article {
    min-height: 180px;
}

.listing-card-source-fallback {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    opacity: .9;
}

.article-reader-category {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: .35rem;
    background: rgba(0, 98, 51, .1);
    color: var(--amd-green);
    font-weight: 600;
    font-size: .8rem;
    text-decoration: none;
    letter-spacing: .02em;
}

.article-reader-category:hover {
    background: var(--amd-green);
    color: #fff;
}

.article-reader-sep {
    opacity: .55;
}

.article-reader-title {
    margin: 0 0 1rem;
    font-family: Poppins, system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4.2vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -.025em;
    color: var(--amd-dark);
}

.article-reader-lead {
    margin: 0 0 1.35rem;
    font-size: 1.12rem;
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 400;
    border-left: 3px solid var(--amd-gold);
    padding-left: 1rem;
}

.article-reader-byline {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.article-reader-author {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--amd-dark);
}

.article-reader-author strong {
    display: block;
    font-size: .95rem;
    font-weight: 600;
}

.article-reader-author small {
    display: block;
    font-size: .8rem;
    color: #6c757d;
    margin-top: .1rem;
}

.article-reader-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--amd-green), #01441f);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}

.article-reader-paper {
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 14px 40px rgba(28, 28, 28, .06);
}

.article-reader-figure {
    margin: 0 0 1.5rem;
    border-radius: .75rem;
    overflow: hidden;
    background: #e9ecef;
}

.article-reader-figure-img {
    display: block;
    width: 100%;
    max-height: min(48vh, 420px);
    object-fit: cover;
}

.article-reader-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2a2a2a;
    letter-spacing: .005em;
}

.article-reader-body p {
    margin: 0 0 1.2em;
}

.article-reader-body p:last-child {
    margin-bottom: 0;
}

.article-reader-dateline {
    margin: 1.6em 0 .85em !important;
    font-size: .82rem !important;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a !important;
    line-height: 1.3 !important;
}

.article-reader-dateline time {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: .35rem;
    background: rgba(0, 0, 0, .04);
}

.article-reader-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.article-reader-footer-label {
    margin: 0 0 .65rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.article-reader-discussion {
    margin-top: 2rem;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 28px rgba(28, 28, 28, .04);
}

@media (min-width: 768px) {
    .article-reader {
        padding-top: 2.25rem;
        padding-bottom: 4rem;
    }

    .article-reader-paper {
        padding: 2rem 2.15rem 2.1rem;
    }

    .article-reader-discussion {
        padding: 1.75rem 1.65rem 1.5rem;
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    /* Fond sombre (pas le vert marque) pour eviter un flash colore
       pendant le crossfade des videos. */
    background: #0a0a0a;
    color: #fff;
    padding: 4rem 0;
    min-height: clamp(480px, 75vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.hero-section .lead {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    min-height: clamp(480px, 75vh, 720px);
    background: linear-gradient(180deg, rgba(0, 30, 15, .15) 0%, rgba(0, 20, 10, .45) 100%);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

/* Ticker bourse : barre en pied du hero (sous la meteo) */
.market-ticker {
    --ticker-h: 2.4rem;
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--ticker-h);
    min-height: var(--ticker-h);
    max-height: var(--ticker-h);
    margin: 0;
    background: linear-gradient(90deg, #043020 0%, #0a4d32 45%, #043020 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    overflow: hidden;
}

/* Force le bas du .page-hero (le flex center du hero le mettait au milieu) */
.page-hero > .market-ticker,
.market-ticker--hero-foot {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    align-self: stretch;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, .14);
    z-index: 6 !important;
}

.market-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 100%;
    padding: 0 .9rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .28);
    border-right: 1px solid rgba(255, 255, 255, .14);
    white-space: nowrap;
    z-index: 2;
}

.market-ticker-track {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

/* Une seule bande horizontale (2 copies cote a cote) qui glisse */
.market-ticker-mover {
    --ticker-shift: 50%;
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    height: 100%;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    will-change: transform;
    animation: market-ticker-scroll 22s linear infinite;
    animation-play-state: paused;
}

.market-ticker-mover.is-ready {
    animation-play-state: running !important;
}

.market-ticker-track:hover .market-ticker-mover.is-ready {
    animation-play-state: paused;
}

.market-ticker-seq {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    flex: 0 0 auto;
    gap: 1.75rem;
    height: 100%;
    padding-inline: 2rem;
    white-space: nowrap;
    vertical-align: middle;
}

.market-ticker-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: .4rem;
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.market-ticker-item strong {
    font-weight: 700;
    color: var(--amd-gold, #c9a227);
}

.market-ticker-item em {
    font-style: normal;
    font-size: .78rem;
    font-weight: 700;
}

.market-ticker-item em.is-up { color: #7ddea0; }
.market-ticker-item em.is-down { color: #ff9b9b; }

.market-ticker-item--note {
    opacity: .65;
    font-size: .72rem;
}

@keyframes market-ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-1 * var(--ticker-shift, 50%)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .market-ticker-mover,
    .market-ticker-mover.is-ready {
        animation: none !important;
        transform: none !important;
    }

    .market-ticker-seq + .market-ticker-seq {
        display: none;
    }
}

/* Live hero : horloge a gauche, meteo agrandie en bas a droite */
.hero-live {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-live-clocks {
    position: absolute;
    left: clamp(.75rem, 2.5vw, 1.75rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    width: min(190px, 34vw);
    pointer-events: auto;
}

.hero-live-clock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    padding: .35rem .25rem;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    text-align: center;
}

.hero-live-city {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.hero-live-time {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.hero-live-date {
    font-size: .78rem;
    color: rgba(255, 255, 255, .86);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.hero-live-weather {
    position: absolute;
    right: clamp(.75rem, 2.5vw, 1.75rem);
    /* Au-dessus du bandeau bourse (pied du hero) */
    bottom: calc(var(--ticker-h, 2.4rem) + .65rem);
    width: min(168px, 42vw);
    padding: .35rem .25rem;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    pointer-events: auto;
    text-align: center;
    z-index: 5;
}

.hero-live-horoscope {
    position: absolute;
    right: clamp(.75rem, 2.5vw, 1.75rem);
    top: calc(4.5rem + .55rem);
    width: min(210px, 48vw);
    padding: .65rem .75rem .55rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(18, 14, 36, .88), rgba(8, 18, 14, .82));
    border: 1px solid rgba(201, 168, 76, .35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    pointer-events: auto;
    text-align: center;
}

.hero-live-horoscope-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #f0d28a;
    margin-bottom: .4rem;
}

.hero-live-horoscope-slider {
    position: relative;
    height: 7.2rem;
    overflow: hidden;
}

.hero-live-horoscope-slide {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    padding: 0 .2rem;
}

.hero-live-horoscope-slide.is-active {
    display: flex;
}

.hero-live-horoscope-name {
    font-size: .86rem;
    font-weight: 700;
    color: #f5e0a6;
    line-height: 1.2;
}

.hero-live-horoscope-mood {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    background: rgba(201, 168, 76, .18);
    border: 1px solid rgba(201, 168, 76, .28);
    border-radius: 999px;
    padding: .12rem .5rem;
}

.hero-live-horoscope-excerpt {
    margin: 0;
    font-size: .7rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .84);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-live-horoscope-more {
    display: inline-block;
    margin-top: .4rem;
    font-size: .65rem;
    font-weight: 600;
    color: #d4b44a;
    text-decoration: none;
}

.hero-live-horoscope-more:hover {
    color: #f0d28a;
    text-decoration: underline;
}

.hero-live-weather-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .68rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    margin-bottom: .35rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.hero-live-weather-slider {
    position: relative;
    min-height: 6.2rem;
}

.hero-live-weather-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.hero-live-weather-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-live-day-name {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.hero-live-day-icon {
    font-size: 2.1rem;
    line-height: 1;
    color: #f0c14a;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

.hero-live-day-temp {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.hero-live-weather-dots {
    display: flex;
    justify-content: center;
    gap: .3rem;
    margin-top: .45rem;
}

.hero-live-weather-dot {
    width: .35rem;
    height: .35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.hero-live-weather-dot.is-active {
    background: var(--amd-gold, #c9a227);
}

.hero-live-note {
    display: block;
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
}

/* Bande météo + horoscope sous le hero — mobile / tablette uniquement */
.hero-live-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .hero-live-mobile {
        display: block;
        background: linear-gradient(180deg, #0a3d28 0%, #062a1c 100%);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        color: #fff;
        padding: .45rem .75rem;
    }

    .hero-live-mobile-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: .55rem;
        max-width: 40rem;
        margin: 0 auto;
    }

    .hero-live-mobile-inner--horo-only {
        max-width: none;
    }

    .hero-live-mobile-card {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: .65rem;
        padding: .45rem .75rem;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: .2rem;
    }

    .hero-live-mobile-card--horo {
        border-color: rgba(232, 197, 106, .28);
        background: rgba(20, 16, 8, .35);
        align-items: stretch;
        text-align: left;
        padding: .55rem .7rem .5rem;
        gap: .35rem;
    }

    .hero-live-mobile-label,
    .hero-live-mobile-title-link {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: .4rem;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #f0d28a;
        margin: 0;
        text-decoration: none;
    }

    .hero-live-mobile-title-link:hover {
        color: #ffe08a;
    }

    .hero-live-mobile-card--horo .hero-live-mobile-label {
        color: #f0d28a;
    }

    .hero-live-mobile-horo-slider {
        position: relative;
        min-height: 4.8rem;
    }

    .hero-live-mobile-horo-slide {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: .28rem;
    }

    .hero-live-mobile-horo-slide.is-active {
        display: flex;
        animation: amd-mobile-horo-fade .35s ease;
    }

    @keyframes amd-mobile-horo-fade {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-live-mobile-horo-name {
        font-size: .88rem;
        font-weight: 700;
        color: #f5e0a6;
        line-height: 1.25;
    }

    .hero-live-mobile-horo-mood {
        display: inline-block;
        font-size: .6rem;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: #1a1408;
        background: #e8c56a;
        border-radius: 999px;
        padding: .12rem .45rem;
    }

    .hero-live-mobile-horo-excerpt {
        margin: 0;
        font-size: .78rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, .9);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-live-mobile-more {
        margin-top: .1rem;
        font-size: .68rem;
        font-weight: 700;
        color: #e8c56a;
        text-decoration: none;
    }

    .hero-live-mobile-more:hover {
        color: #ffe08a;
        text-decoration: underline;
    }
}

@media (max-width: 575.98px) {
    .hero-live-mobile-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    /* Au-dessus du texte hero (badge/titre) pour ne plus masquer heure / météo */
    .page-hero--home .hero-live {
        z-index: 6;
    }

    .page-hero--home .page-hero-home-copy {
        z-index: 4;
        padding-top: 1.75rem;
    }

    .page-hero--home .hero-badge {
        display: none;
    }

    /* Heure en haut à gauche */
    .hero-live-clocks {
        top: calc(4.15rem + env(safe-area-inset-top, 0px));
        bottom: auto;
        left: .65rem;
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 0;
        width: auto;
        max-width: 42vw;
        justify-content: flex-start;
        z-index: 7;
    }

    .hero-live-clock-card {
        min-width: 0;
        padding: .15rem .2rem;
        align-items: flex-start;
        text-align: left;
    }

    .hero-live-clocks .hero-live-clock-card:nth-child(n+2) {
        display: none;
    }

    .hero-live-city,
    .hero-live-date {
        display: none;
    }

    .hero-live-time {
        font-size: 1.05rem;
        letter-spacing: .02em;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
    }

    /* Météo en haut à droite (sans icône) */
    .hero-live-weather {
        display: block;
        top: calc(4.15rem + env(safe-area-inset-top, 0px));
        right: .65rem;
        left: auto;
        bottom: auto;
        width: auto;
        max-width: 46vw;
        padding: .15rem .25rem;
        text-align: right;
        z-index: 7;
    }

    .hero-live-weather-head,
    .hero-live-weather-dots {
        display: none !important;
    }

    .hero-live-day-icon {
        display: inline-block !important;
        font-size: 1rem !important;
        line-height: 1;
        color: #f0c14a;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
    }

    .hero-live-weather-slider {
        min-height: 0 !important;
        height: auto !important;
    }

    .hero-live-weather-slide {
        position: static !important;
        inset: auto !important;
        display: none !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: .35rem !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .hero-live-weather-slide.is-active {
        display: flex !important;
    }

    .hero-live-day-name {
        font-size: .68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: rgba(255, 255, 255, .88);
        text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
    }

    .hero-live-day-temp {
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
    }

    /* Horoscope overlay masqué — titre seul dans la bande sous le hero */
    .hero-live-horoscope {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .market-ticker-label span {
        display: none;
    }

    .hero-live-time {
        font-size: 1rem;
        letter-spacing: .02em;
    }

    .hero-live-city {
        font-size: .58rem;
    }

    .page-hero--home .page-hero-home-copy {
        padding-bottom: 4.25rem;
    }
}

/* Diaporama hero (plusieurs videos/images en fondu enchaine) */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    z-index: 0;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Image plein ecran avec effet parallax : photo en contain (texte visible).
   Bandes zellige fines a gauche et a droite (meme image admin). */
.parallax-reveal {
    position: relative;
    min-height: 90vh;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-zellige {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(56px, 8vw, 120px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.parallax-zellige-left {
    left: 0;
}

.parallax-zellige-right {
    right: 0;
}

.parallax-reveal-photo {
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.parallax-reveal .parallax-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

@media (max-width: 991.98px) {
    .parallax-reveal {
        min-height: 70vh;
    }

    .parallax-zellige {
        width: clamp(36px, 7vw, 64px);
    }

    .parallax-reveal-photo {
        background-attachment: scroll;
    }
}

/* Bandeau hero des pages listes : video entiere + fond flou (pas de bandes noires). */
.page-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: min(52vw, 58vh, 560px);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: #06140c;
}

/* Accueil : meme cadre que les autres pages ; video agrandie (cover + zoom). */
.page-hero--home {
    align-items: center;
    padding-bottom: 0;
    box-sizing: border-box;
}

/*
 * Plein cadre via cover seul (pas de transform: scale — très lourd sur video).
 * blur_fill desactive cote Twig : une seule video decodee.
 */
.page-hero .hero-media,
.page-hero .hero-media--main {
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1;
}

.page-hero .hero-media--blur {
    object-fit: cover !important;
    object-position: center !important;
    filter: blur(32px) saturate(1.2) brightness(.55);
    opacity: .35;
    z-index: 0;
}

.page-hero .hero-slide {
    transform: none;
}

.page-hero--home .page-hero-home-copy {
    z-index: 4;
    max-width: min(36rem, 58vw);
    padding-inline: 1rem;
}

.page-hero--home .hero-badge {
    margin-bottom: .5rem;
    font-size: .75rem;
    padding: .35rem .85rem;
}

.page-hero--home h1 {
    font-size: clamp(1.35rem, 1.6vw + 1rem, 2rem);
    margin-bottom: .5rem !important;
    line-height: 1.2;
}

.page-hero--home p {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: .85rem !important;
    font-size: clamp(.88rem, .35vw + .8rem, 1rem);
    line-height: 1.45;
    opacity: .95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.page-hero--home .btn {
    padding: .45rem 1rem;
    font-size: .92rem;
}

.page-hero--home .hero-trust-line {
    margin-top: .7rem;
    font-size: .72rem;
    gap: .25rem .85rem;
}

.page-hero .hero-overlay {
    min-height: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 30, 15, .2) 0%,
        rgba(0, 18, 10, .42) 55%,
        rgba(0, 12, 8, .58) 100%
    );
}

@media (max-width: 767.98px) {
    .page-hero {
        height: auto;
        min-height: 300px;
        padding: 5.75rem 1rem 3.6rem;
        box-sizing: border-box;
    }

    .page-hero--home {
        min-height: 340px;
        padding-top: 5.75rem;
        padding-bottom: 3.6rem;
    }

    .page-hero--home .page-hero-home-copy {
        max-width: 92vw;
        padding-bottom: 0;
    }

    .page-hero--home .hero-trust-line {
        display: none;
    }

    .page-hero .hero-media--blur {
        filter: blur(22px) saturate(1.15) brightness(.5);
    }

    .page-hero .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 18, 10, .55) 0%,
            rgba(0, 12, 8, .62) 45%,
            rgba(0, 10, 6, .78) 100%
        );
    }

    .page-hero > .container {
        z-index: 5;
        padding-inline: .75rem;
    }

    .page-hero h1,
    .page-hero .h2 {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
        line-height: 1.15;
        margin-bottom: .35rem !important;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
    }

    .page-hero p {
        font-size: .92rem;
        line-height: 1.4;
        max-width: 22rem;
        text-shadow: 0 1px 10px rgba(0, 0, 0, .75);
    }

    .page-hero--home h1 {
        font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    }
}

.page-hero .page-hero-icon {
    position: relative;
    z-index: 4;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

@media (max-width: 767.98px) {
    .page-hero .page-hero-icon {
        display: none !important;
    }
}

.page-hero > .container {
    position: relative;
    z-index: 4;
}

.page-hero h1 {
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.page-hero p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    opacity: .95;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.card-module {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.card-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.card-module .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(193, 39, 45, .1);
    color: var(--amd-red);
    font-size: 1.5rem;
}

footer.site-footer {
    background-color: var(--amd-dark);
    color: #ccc;
    width: 100%;
    flex-shrink: 0;
}

footer.site-footer a {
    color: #eee;
    text-decoration: none;
}

footer.site-footer a:hover {
    color: var(--amd-gold);
    text-decoration: underline;
}

.site-footer-toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-bar {
    border-top: none;
}

.site-footer-bar .container {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
}

.site-footer-rights {
    color: #ccc;
    line-height: 1.3;
}

.site-footer-toggle {
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.85rem 0 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--amd-dark);
    color: #eee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer-toggle:hover,
.site-footer-toggle:focus-visible {
    color: var(--amd-gold);
    border-color: var(--amd-gold);
    outline: none;
}

.site-footer-toggle .bi {
    font-size: 0.95rem;
    line-height: 1;
}

.site-footer-panel {
    overflow: hidden;
}

.site-footer.is-collapsed .site-footer-panel[hidden] {
    display: none !important;
}

/* Sticky footer : pas de vide sous le © ; le contenu profil reste collé au footer */
body > main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.85rem; /* place pour le bouton +/- qui déborde */
}

/* Sur les pages compte : le bloc hero+carte descend vers le footer
   → même petit écart replié ou déplié (le vide va au-dessus du hero). */
body > main > .profile-hero {
    margin-top: auto;
}

.badge-subscription-active {
    background-color: var(--amd-green);
}

.badge-subscription-pending {
    background-color: var(--amd-gold);
    color: #1c1c1c;
}

/* Badge MRE vérifié (CIN/passeport validé par un admin) */
.amd-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #0b3d91;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    vertical-align: middle;
    white-space: nowrap;
}

.amd-verified-badge .bi {
    font-size: 0.85rem;
    color: #2563eb;
}

.amd-verified-badge--on-dark {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(147, 197, 253, 0.55);
}

.amd-verified-badge--on-dark .bi {
    color: #93c5fd;
}

[dir="rtl"] .navbar-nav {
    text-align: right;
}

/* ==========================================================================
   Confiance / conversion : hero renforce, bandeau de garanties, chiffres cles,
   "comment ca marche", FAQ, CTA final. Objectif : rendre la page d'accueil
   professionnelle et rassurante, pas seulement fonctionnelle.
   ========================================================================== */

.zellige-strip {
    height: 6px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--amd-green) 0 14px,
        var(--amd-gold) 14px 28px,
        var(--amd-red) 28px 42px
    );
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: .45rem 1.1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-trust-line {
    margin-top: 1.5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .92);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    justify-content: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.hero-trust-line span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.trust-bar {
    background: #fff;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.trust-bar .trust-item i {
    font-size: 1.6rem;
    color: var(--amd-green);
    flex-shrink: 0;
}

.trust-bar .trust-item strong {
    display: block;
    font-size: .88rem;
}

.section-eyebrow {
    color: var(--amd-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: .78rem;
}

.trust-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 98, 51, .1);
    color: var(--amd-green);
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Section "Liens utiles" : portails officiels marocains (emploi public,
   consulat, reclamations...), a l'image de la rubrique equivalente sur
   mre.gov.ma. */
/* Section Liens utiles avec motif zellige en transparence vers le bas */
.useful-links-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.useful-links-zellige {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: .22;
    pointer-events: none;
    z-index: 0;
    /* Le motif apparait progressivement vers le bas */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 40%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 40%, #000 100%);
}

.useful-links-section .container {
    z-index: 1;
}

.useful-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    text-decoration: none;
    color: var(--amd-dark);
    text-align: center;
    font-weight: 600;
    font-size: .88rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}

.useful-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
    border-color: var(--amd-green);
    color: var(--amd-green);
}

.useful-link-card .useful-link-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 98, 51, .1);
    color: var(--amd-green);
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.useful-link-card .useful-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.useful-link-card small {
    font-weight: 400;
    color: #777;
}

.practical-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: linear-gradient(180deg, #f7f8f6 0%, #eef1ee 100%);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.practical-logo-wrap--detail {
    height: 140px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .05);
}

.practical-logo {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Cartes section Rencontres */
.meeting-card {
    display: block;
    height: 100%;
    color: var(--amd-dark);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
    border-color: var(--amd-green);
    color: var(--amd-dark);
}

.meeting-card-photo {
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
    overflow: hidden;
}

.meeting-card-photo img,
.meeting-show-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meeting-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 98, 51, .12), rgba(193, 39, 45, .1));
    color: var(--amd-green);
    font-size: 2.5rem;
}

.meeting-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.meeting-card-title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--amd-dark);
}

.meeting-show-photo {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f3f3f3;
}

.meeting-show-placeholder {
    min-height: 280px;
    aspect-ratio: 3 / 4;
}

#meetingTabs .nav-link {
    color: var(--amd-dark);
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
}

#meetingTabs .nav-link.active {
    background: var(--amd-green);
    border-color: var(--amd-green);
    color: #fff;
}

.meeting-thread {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 14px;
}

.meeting-bubble {
    max-width: 80%;
    padding: .75rem 1rem;
    border-radius: 14px;
}

.meeting-bubble.is-mine {
    align-self: flex-end;
    background: rgba(0, 98, 51, .12);
}

.meeting-bubble.is-theirs {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
}

.meeting-bubble-meta {
    font-size: .75rem;
    color: #777;
    margin-bottom: .25rem;
}

/* Formulaire nouvelle / edit annonce rencontres */
.meeting-compose {
    position: relative;
    padding: 2.5rem 0 4rem;
    overflow: clip;
}

.meeting-compose-hero {
    position: absolute;
    inset: 0 0 auto;
    height: min(42vh, 320px);
    background:
        radial-gradient(ellipse 80% 70% at 15% 20%, rgba(193, 39, 45, .18), transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 10%, rgba(212, 162, 76, .22), transparent 50%),
        linear-gradient(165deg, #0d3d28 0%, #006233 42%, #1a4a32 100%);
    pointer-events: none;
}

.meeting-compose-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 5rem;
    background: linear-gradient(to bottom, transparent, #f7f6f4);
}

.meeting-compose-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.meeting-compose-head {
    color: #fff;
    margin-bottom: 1.75rem;
    padding-top: .25rem;
}

.meeting-compose-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: .9rem;
    margin-bottom: 1rem;
    transition: color .2s ease;
}

.meeting-compose-back:hover {
    color: #fff;
}

.meeting-compose-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .55rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--amd-gold);
}

.meeting-compose-head h1 {
    font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .65rem;
}

.meeting-compose-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}

.meeting-compose-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.meeting-compose-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 8px 28px rgba(0, 40, 20, .06);
}

.meeting-compose-panel-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.15rem;
    padding-bottom: .95rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.meeting-compose-panel-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    color: var(--amd-dark);
}

.meeting-compose-panel-head p {
    margin: 0;
    font-size: .88rem;
    color: #6a6a6a;
    line-height: 1.4;
}

.meeting-compose-step {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--amd-green);
    box-shadow: 0 4px 12px rgba(0, 98, 51, .28);
}

.meeting-compose-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}

.meeting-compose-fields--prefs {
    grid-template-columns: 1fr 1fr;
}

.meeting-field--full {
    grid-column: 1 / -1;
}

.meeting-field label {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--amd-dark);
}

.meeting-field .form-control,
.meeting-field .form-select {
    border-radius: 10px;
    border-color: rgba(0, 0, 0, .12);
    padding: .65rem .85rem;
    font-size: .95rem;
    background-color: #fbfbfa;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.meeting-field .form-control:focus,
.meeting-field .form-select:focus {
    border-color: var(--amd-green);
    box-shadow: 0 0 0 .2rem rgba(0, 98, 51, .15);
    background-color: #fff;
}

.meeting-field textarea.form-control {
    min-height: 9rem;
    resize: vertical;
}

.meeting-field .invalid-feedback,
.meeting-field ul {
    font-size: .82rem;
    margin-top: .35rem;
}

.meeting-photo-row {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.meeting-photo-preview {
    width: 112px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 98, 51, .12), rgba(193, 39, 45, .1));
    color: var(--amd-green);
    font-size: 2.4rem;
    border: 1px solid rgba(0, 0, 0, .06);
}

.meeting-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meeting-photo-fields {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.meeting-file-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 98, 51, .35);
    background: rgba(0, 98, 51, .06);
    color: var(--amd-green);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    margin-bottom: .65rem;
    transition: background .2s ease, border-color .2s ease;
}

.meeting-file-btn:hover {
    background: rgba(0, 98, 51, .12);
    border-color: var(--amd-green);
}

.meeting-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.meeting-file-input input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.meeting-help {
    margin: 0;
    font-size: .82rem;
    color: #777;
    line-height: 1.4;
}

.meeting-compose-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-top: .35rem;
    padding-top: .25rem;
}

.meeting-compose-submit {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding-inline: 1.35rem;
    box-shadow: 0 8px 20px rgba(193, 39, 45, .28);
}

@media (max-width: 767.98px) {
    .meeting-compose {
        padding: 1.5rem 0 3rem;
    }

    .meeting-compose-fields,
    .meeting-compose-fields--prefs {
        grid-template-columns: 1fr;
    }

    .meeting-compose-panel {
        padding: 1.1rem 1rem 1.2rem;
        border-radius: 14px;
    }

    .meeting-compose-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .meeting-compose-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.meeting-bubble-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.stats-band {
    background: linear-gradient(135deg, var(--amd-green) 0%, #01441f 100%);
    color: #fff;
    padding: 3.5rem 0;
}

.stats-band .stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
}

.stats-band .stat-label {
    opacity: .85;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: .35rem;
}

.stats-fallback {
    background: linear-gradient(135deg, var(--amd-green) 0%, #01441f 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.stats-fallback i {
    font-size: 2.25rem;
    margin-bottom: .75rem;
}

.how-step {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
}

.how-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--amd-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 18px rgba(193, 39, 45, .3);
}

.faq-section .accordion-item {
    border: none;
    border-radius: .75rem !important;
    overflow: hidden;
    margin-bottom: .75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.faq-section .accordion-button {
    font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: rgba(0, 98, 51, .08);
    color: var(--amd-green);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 98, 51, .25);
}

.final-cta {
    background: linear-gradient(135deg, var(--amd-red) 0%, #7d1418 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

/* Masquage uniquement si JS a demarre (html.js-reveal) — sinon contenu visible. */
html.js-reveal .reveal-item {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

html.js-reveal .reveal-item.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.payment-badges {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}

.payment-badges .badge-pill {
    background: #fff;
    color: var(--amd-dark);
    border-radius: 6px;
    padding: .35rem .65rem;
    font-weight: 700;
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    letter-spacing: .3px;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

.footer-contact-form .form-control,
.footer-contact-form .form-select {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: #f2f2f2;
}

.footer-contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, .45);
}

.footer-contact-form .form-control:focus,
.footer-contact-form .form-select:focus {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(0, 98, 51, .55);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(0, 98, 51, .2);
}

.footer-contact-form .form-select option {
    color: #222;
}

.footer-brand-title {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

footer.site-footer h6,
footer.site-footer h5 {
    font-weight: 700;
}

/* Pages legales (mentions, confidentialite, CGU) */
.legal-header {
    background: linear-gradient(135deg, var(--amd-green) 0%, #01441f 100%);
}

.legal-content {
    line-height: 1.75;
}

.legal-content h2 {
    color: var(--amd-green);
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.list-group-item.active {
    background-color: var(--amd-green);
    border-color: var(--amd-green);
}

[dir="rtl"] .legal-content,
[dir="rtl"] .how-step,
[dir="rtl"] .trust-bar .trust-item {
    text-align: right;
}

/* Bouton flèche retour en haut */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1.15rem;
    z-index: 1040;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--amd-red);
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(193, 39, 45, .3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.9);
    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .35s cubic-bezier(.22, 1, .36, 1),
        background-color .2s ease,
        box-shadow .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top.is-ascending {
    background: var(--amd-green);
    box-shadow: 0 6px 16px rgba(0, 98, 51, .35);
    pointer-events: none;
}

.back-to-top.is-ascending i,
.back-to-top.is-ascending .back-to-top-image {
    animation: back-to-top-rise .7s cubic-bezier(.22, 1, .36, 1) infinite;
}

.back-to-top.has-image {
    width: 36px;
    height: 36px;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    -webkit-appearance: none;
    appearance: none;
}

.back-to-top.has-image:hover,
.back-to-top.has-image:focus-visible,
.back-to-top.has-image:active,
.back-to-top.has-image.is-ascending,
.back-to-top.has-image.is-ascending:hover {
    background: transparent !important;
    box-shadow: none !important;
}

.back-to-top-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .22));
    transition: transform .25s ease, filter .25s ease;
}

.back-to-top.has-image:hover .back-to-top-image,
.back-to-top.has-image:focus-visible .back-to-top-image {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}

@keyframes back-to-top-rise {
    0% {
        transform: translateY(3px);
        opacity: .55;
    }
    60% {
        transform: translateY(-4px);
        opacity: 1;
    }
    100% {
        transform: translateY(-6px);
        opacity: .35;
    }
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #9e1f24;
    box-shadow: 0 6px 16px rgba(193, 39, 45, .4);
    outline: none;
}

.back-to-top.is-ascending:hover {
    background: var(--amd-green);
}

.back-to-top:active {
    transform: translateY(1px) scale(.96);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 1rem;
}

/* ——— Personnalités ——— */
.personality-card {
    display: block;
    color: inherit;
    transition: transform .2s ease;
}

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

.personality-card-photo {
    aspect-ratio: 3 / 4;
    border-radius: .75rem;
    overflow: hidden;
    background: #e8ebe9;
    margin-bottom: .75rem;
}

.personality-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.personality-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #9aa89f;
}

.personality-profile {
    --pp-ink: #0f1f17;
    --pp-mist: rgba(255, 255, 255, .78);
}

.personality-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, rgba(212, 162, 76, .18), transparent 55%),
        linear-gradient(145deg, #043021 0%, var(--amd-green) 48%, #014a28 100%);
    padding: 1.5rem 0 3rem;
    isolation: isolate;
}

.personality-hero-bg {
    position: absolute;
    inset: -8%;
    background-image: var(--hero-photo);
    background-size: cover;
    background-position: center 20%;
    filter: blur(28px) saturate(1.05);
    transform: scale(1.08);
    opacity: .35;
    z-index: 0;
    animation: personality-hero-drift 18s ease-in-out infinite alternate;
}

.personality-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(4, 32, 22, .92) 0%, rgba(0, 98, 51, .72) 52%, rgba(4, 32, 22, .55) 100%),
        linear-gradient(to top, rgba(4, 24, 16, .55), transparent 42%);
    pointer-events: none;
}

.personality-hero-inner {
    position: relative;
    z-index: 2;
}

.personality-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.35rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .62);
}

.personality-breadcrumb a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.personality-breadcrumb a:hover {
    color: #fff;
    border-bottom-color: var(--amd-gold);
}

.personality-hero-grid {
    display: grid;
    gap: 1.75rem;
    align-items: end;
}

@media (min-width: 768px) {
    .personality-hero-grid {
        grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: center;
    }
}

.personality-photo-wrap {
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

.personality-photo-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1.15rem;
    border: 1px solid rgba(212, 162, 76, .45);
    pointer-events: none;
    animation: personality-frame-in .7s ease both;
}

.personality-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
    animation: personality-photo-in .75s cubic-bezier(.22, 1, .36, 1) both;
}

.personality-photo--empty {
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, .45);
}

.personality-hero-copy {
    animation: personality-copy-in .8s cubic-bezier(.22, 1, .36, 1) .08s both;
}

.personality-kicker {
    display: inline-block;
    margin: 0 0 .65rem;
    padding: .28rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1c1c1c;
    background: var(--amd-gold);
    border-radius: .3rem;
}

.personality-name {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 700;
    margin: 0 0 .75rem;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.personality-hero-quote,
.personality-hero-lead {
    margin: 0 0 1.25rem;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--pp-mist);
}

.personality-hero-quote {
    font-style: italic;
    border-left: 3px solid var(--amd-gold);
    padding-left: .9rem;
}

.personality-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
    margin: 0 0 1.35rem;
}

.personality-meta > div {
    margin: 0;
    padding: .7rem .85rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .55rem;
    backdrop-filter: blur(8px);
}

.personality-meta dt {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 .2rem;
}

.personality-meta dd {
    margin: 0;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
}

.personality-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.personality-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: .45rem;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, .06);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.personality-hero-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: var(--amd-gold);
    color: #fff;
    transform: translateY(-1px);
}

.personality-hero-btn--yt:hover { border-color: #ff6b6b; }
.personality-hero-btn--spotify:hover { border-color: #1db954; }

.personality-body {
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 98, 51, .06), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 20%, rgba(212, 162, 76, .07), transparent 45%),
        #f4f2ee;
    padding: 2.5rem 0 3.5rem;
}

.personality-body-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .personality-body-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 2.5rem;
        align-items: start;
    }
}

.personality-main {
    min-width: 0;
}

.personality-section {
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid rgba(15, 31, 23, .08);
}

.personality-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.personality-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--pp-ink);
    letter-spacing: -.01em;
}

.personality-section-title i {
    color: var(--amd-green);
    font-size: 1.1rem;
}

.personality-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: .5rem;
    background: linear-gradient(90deg, rgba(212, 162, 76, .55), transparent);
}

.personality-section-hint {
    color: #6c757d;
    font-size: .9rem;
    margin: -.35rem 0 1rem;
}

.personality-subsection-title {
    font-size: .95rem;
    font-weight: 600;
    color: #5a6a60;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.personality-bio {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2a332e;
    max-width: 68ch;
}

.personality-bio p {
    margin: 0 0 1.1rem;
}

.personality-bio p:last-child {
    margin-bottom: 0;
}

.personality-bio-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--amd-green);
    margin: 1.75rem 0 .75rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid rgba(212, 162, 76, .35);
}

.personality-bio-sub {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--pp-ink);
    margin: 1.35rem 0 .55rem;
}

.personality-quote {
    border-left: 3px solid var(--amd-gold);
    padding: .5rem 0 .5rem 1rem;
    margin: 0 0 1.25rem;
    font-style: italic;
    color: #444;
}

.personality-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .personality-aside {
        position: sticky;
        top: 5.5rem;
    }
}

.personality-aside-panel {
    background: #fff;
    border: 1px solid rgba(15, 31, 23, .08);
    border-radius: .85rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 10px 28px rgba(28, 28, 28, .04);
}

.personality-aside-panel--muted {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: .25rem 0;
}

.personality-aside-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
    margin: 0 0 .85rem;
}

.personality-back-link {
    color: var(--amd-green);
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
}

.personality-back-link:hover {
    text-decoration: underline;
}

.personality-links--stack {
    flex-direction: column;
    align-items: stretch;
}

.personality-links--stack .personality-link {
    justify-content: flex-start;
}

@keyframes personality-hero-drift {
    from { transform: scale(1.08) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

@keyframes personality-photo-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes personality-frame-in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes personality-copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .personality-hero-bg,
    .personality-photo,
    .personality-photo-wrap::after,
    .personality-hero-copy {
        animation: none;
    }
}

.personality-media-card {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.personality-media-poster {
    aspect-ratio: 2 / 3;
    border-radius: .5rem;
    overflow: hidden;
    background: #e8ebe9;
    margin-bottom: .5rem;
    position: relative;
}

.personality-media-poster--video {
    aspect-ratio: 16 / 9;
}

.personality-media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.personality-media-teaser-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: inherit;
}

.personality-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 2rem;
    transition: background .2s ease;
}

.personality-media-teaser-link:hover .personality-media-play {
    background: rgba(0, 0, 0, .42);
}

.personality-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #9aa89f;
}

.personality-media-caption {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    font-size: .9rem;
}

.personality-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}

.personality-media-action {
    font-size: .78rem;
    color: #4a5c52;
    text-decoration: none;
}

.personality-media-action:hover {
    color: #1a2e24;
    text-decoration: underline;
}

.personality-media-action--yt {
    color: #c4302b;
}

.personality-album {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .5rem;
}

.personality-album-links {
    display: flex;
    gap: .75rem;
    font-size: 1.25rem;
}

.personality-album-links a {
    color: var(--amd-green);
}

.personality-awards {
    margin: 0;
    padding-left: 1.1rem;
}

.personality-awards li {
    margin-bottom: .4rem;
}

.personality-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.personality-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    color: var(--amd-dark);
    text-decoration: none;
    font-weight: 500;
    transition: border-color .15s ease, background .15s ease;
}

.personality-link:hover {
    border-color: var(--amd-green);
    background: #eef5f0;
    color: var(--amd-green);
}

.personality-link--yt:hover { color: #c00; border-color: #c00; background: #fff5f5; }
.personality-link--spotify:hover { color: #1db954; border-color: #1db954; background: #f0fff5; }

.personality-gallery-item {
    display: block;
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    background: #e8ebe9;
}

.personality-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.personality-gallery-item:hover img {
    transform: scale(1.04);
}

.personality-news-card {
    display: block;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 31, 23, .08);
    border-radius: .75rem;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.personality-news-card:hover {
    border-color: var(--amd-green);
    box-shadow: 0 12px 28px rgba(28, 28, 28, .06);
    transform: translateY(-2px);
}

.personality-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .35rem;
    display: block;
}

.personality-subs {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .5rem;
    margin: 0;
}

.personality-audience {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
}

.personality-audience-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .65rem;
    row-gap: .05rem;
    align-items: center;
    padding: .55rem .65rem;
    background: #f7f6f4;
    border-radius: .5rem;
}

.personality-audience-item i {
    grid-row: 1 / span 2;
    font-size: 1.2rem;
    color: var(--amd-green);
}

.personality-audience-item strong {
    font-size: 1.05rem;
    color: var(--amd-dark);
    line-height: 1.2;
}

.personality-audience-item span {
    font-size: .75rem;
    color: #6c757d;
}

.personality-tracks {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.personality-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid rgba(15, 31, 23, .07);
    border-radius: .65rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.personality-track:hover {
    border-color: rgba(0, 98, 51, .25);
    box-shadow: 0 8px 20px rgba(28, 28, 28, .05);
}

.personality-track-main {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex: 1;
    min-width: 0;
}

.personality-track-num {
    font-size: .75rem;
    font-weight: 700;
    color: var(--amd-gold);
    letter-spacing: .04em;
    padding-top: .2rem;
}

.personality-track-title {
    font-size: 1rem;
    display: block;
}

.personality-track-views {
    display: block;
    font-size: .85rem;
    color: #6c757d;
}

.personality-track-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.personality-track-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: .4rem;
    border: 1px solid rgba(0, 0, 0, .1);
    text-decoration: none;
    color: var(--amd-dark);
    font-size: .85rem;
    font-weight: 500;
}

.personality-track-link--spotify:hover {
    color: #1db954;
    border-color: #1db954;
    background: #f0fff5;
}

.personality-track-link--yt:hover {
    color: #c00;
    border-color: #c00;
    background: #fff5f5;
}

/* ——— Forum & commentaires actualités ——— */
.forum-page {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 98, 51, .08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(193, 39, 45, .05), transparent 50%),
        #f7f6f3;
    min-height: 50vh;
}

.forum-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
}

.forum-breadcrumb a {
    color: var(--amd-green);
    text-decoration: none;
}

.forum-topic-hero {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 30px rgba(28, 28, 28, .04);
}

@media (min-width: 992px) {
    .forum-topic-hero {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

.forum-topic-title {
    font-family: Poppins, system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--amd-dark);
    margin: .5rem 0 .75rem;
    line-height: 1.25;
}

.forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    color: #6c757d;
    font-size: .9rem;
}

.forum-topic-meta i {
    color: var(--amd-green);
    margin-right: .25rem;
}

.forum-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(0, 98, 51, .08);
    color: var(--amd-green);
}

.forum-pill--pin {
    background: rgba(212, 162, 76, .15);
    color: #9a6d1a;
}

.forum-pill--lock {
    background: rgba(108, 117, 125, .12);
    color: #6c757d;
}

.forum-article-card {
    padding: 1.1rem 1.2rem;
    border-radius: .85rem;
    background: linear-gradient(160deg, #f4faf6 0%, #fff 70%);
    border: 1px solid rgba(0, 98, 51, .15);
}

.forum-article-card-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--amd-green);
    font-weight: 600;
    margin-bottom: .35rem;
}

.forum-article-card-title {
    display: block;
    font-weight: 600;
    color: var(--amd-dark);
    text-decoration: none;
    margin-bottom: .5rem;
}

.forum-article-card-title:hover {
    color: var(--amd-green);
}

.forum-article-card-excerpt {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: .85rem;
}

.forum-category-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .forum-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.forum-category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.forum-category-card:hover {
    border-color: rgba(0, 98, 51, .35);
    box-shadow: 0 12px 28px rgba(0, 98, 51, .08);
    transform: translateY(-2px);
    color: inherit;
}

.forum-category-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .7rem;
    display: grid;
    place-items: center;
    background: rgba(0, 98, 51, .08);
    color: var(--amd-green);
    font-size: 1.2rem;
}

.forum-category-card-title {
    font-size: 1.05rem;
    margin: 0 0 .25rem;
    color: var(--amd-dark);
}

.forum-category-card-desc {
    margin: 0;
    font-size: .875rem;
    color: #6c757d;
}

.forum-category-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #6c757d;
}

.forum-category-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.forum-topic-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.forum-topic-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.forum-topic-row:hover {
    border-color: rgba(0, 98, 51, .3);
    box-shadow: 0 8px 20px rgba(28, 28, 28, .05);
    color: inherit;
}

.forum-topic-row-main {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    min-width: 0;
}

.forum-topic-row-flags {
    display: flex;
    gap: .35rem;
    padding-top: .2rem;
}

.forum-topic-row-title {
    display: block;
    color: var(--amd-dark);
}

.forum-topic-row-meta {
    font-size: .825rem;
    color: #6c757d;
    margin-top: .15rem;
}

.forum-topic-row-stats {
    display: flex;
    gap: 1rem;
    color: #6c757d;
    font-size: .875rem;
    white-space: nowrap;
}

.forum-discussion {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.forum-discussion-header {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: .75rem;
}

.forum-discussion-title {
    font-family: Poppins, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    margin: 0 0 .35rem;
    color: var(--amd-dark);
}

.forum-discussion-subtitle {
    color: #6c757d;
    font-size: .95rem;
}

.forum-discussion-forum-link {
    font-size: .875rem;
    color: var(--amd-green);
    text-decoration: none;
    font-weight: 500;
}

.forum-discussion-forum-link:hover {
    text-decoration: underline;
}

.forum-discussion-count {
    font-size: .875rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.forum-discussion-gate {
    padding: 1.1rem 1.25rem;
    border-radius: .75rem;
    background: rgba(0, 98, 51, .05);
    border: 1px dashed rgba(0, 98, 51, .25);
    margin-bottom: 1.5rem;
}

.forum-composer-panel {
    margin-top: 1.75rem;
    padding: 1.35rem 1.4rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 12px 28px rgba(28, 28, 28, .04);
}

.forum-composer-panel-title {
    font-size: 1.15rem;
    margin: 0 0 .25rem;
    color: var(--amd-dark);
}

.forum-composer-panel-subtitle {
    color: #6c757d;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.forum-composer {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.forum-composer--after-thread {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.forum-composer--inline {
    margin: .75rem 0 0;
    padding: .85rem;
    border-radius: .65rem;
    background: #f8f9f7;
    border: 1px solid rgba(0, 0, 0, .06);
}

.forum-composer-label {
    font-weight: 600;
    color: var(--amd-dark);
    font-size: .95rem;
}

.forum-composer-input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .65rem;
    padding: .85rem 1rem;
    resize: vertical;
    min-height: 6rem;
    background: #fff;
    color: var(--amd-dark);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.forum-composer-input:focus {
    outline: none;
    border-color: var(--amd-green);
    box-shadow: 0 0 0 .2rem rgba(0, 98, 51, .12);
}

.forum-composer--inline .forum-composer-input {
    min-height: 4.5rem;
}

.forum-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
}

.forum-composer-hint {
    font-size: .8rem;
    color: #6c757d;
}

.forum-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-thread--page {
    margin-bottom: .5rem;
}

.forum-thread-empty {
    margin: 0;
    padding: 1.25rem;
    text-align: center;
    color: #6c757d;
    background: rgba(0, 0, 0, .02);
    border-radius: .75rem;
}

.forum-comment {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
}

.forum-comment--reply {
    margin-top: .65rem;
    background: #fbfbfa;
    border-color: rgba(0, 0, 0, .05);
}

.forum-comment-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, var(--amd-green), #01441f);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.forum-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    align-items: baseline;
    margin-bottom: .4rem;
}

.forum-comment-author {
    color: var(--amd-dark);
}

.forum-comment-meta time {
    font-size: .8rem;
    color: #6c757d;
}

.forum-comment-content {
    white-space: pre-line;
    color: #2a2a2a;
    line-height: 1.55;
}

.forum-comment-actions {
    margin-top: .65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
}

.report-toggle {
    position: relative;
}

.report-toggle-summary {
    list-style: none;
    cursor: pointer;
    color: #8a8a8a;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    user-select: none;
}

.report-toggle-summary::-webkit-details-marker {
    display: none;
}

.report-toggle-summary:hover {
    color: #c1272d;
}

.report-form {
    margin-top: .5rem;
    padding: .75rem;
    background: #f7f6f4;
    border-radius: .5rem;
    max-width: 280px;
}

.meeting-bubble-report {
    margin-top: .35rem;
}

.meeting-bubble.is-mine .report-toggle-summary {
    color: rgba(255, 255, 255, .7);
}

.forum-vote {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.forum-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
    color: #6c757d;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .825rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.forum-vote-btn:hover {
    border-color: rgba(0, 98, 51, .35);
    color: var(--amd-green);
}

.forum-vote-btn--like.is-active {
    color: var(--amd-green);
    border-color: rgba(0, 98, 51, .4);
    background: rgba(0, 98, 51, .08);
}

.forum-vote-btn--dislike.is-active {
    color: var(--amd-red);
    border-color: rgba(193, 39, 45, .35);
    background: rgba(193, 39, 45, .08);
}

.forum-vote-btn--dislike:hover {
    border-color: rgba(193, 39, 45, .35);
    color: var(--amd-red);
}

.forum-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: .5rem 0 .25rem;
}

.forum-emoji-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: .45rem;
    background: transparent;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.forum-emoji-btn:hover {
    background: rgba(0, 98, 51, .08);
    border-color: rgba(0, 98, 51, .2);
    transform: scale(1.08);
}

.forum-comment-reply-btn {
    border: 0;
    background: transparent;
    color: var(--amd-green);
    font-size: .85rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.forum-comment-reply-btn:hover {
    color: var(--amd-red);
}

.forum-comment-replies {
    margin-top: .85rem;
    padding-left: .25rem;
    border-left: 2px solid rgba(0, 98, 51, .15);
    padding-left: .85rem;
}

.forum-locked-banner {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: .75rem;
    background: #f1f3f5;
    color: #6c757d;
}

.forum-access-alert {
    border-radius: .75rem;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity .2s ease, visibility .2s ease;
        transform: none;
    }

    .back-to-top.is-visible {
        transform: none;
    }

    .back-to-top.is-ascending i,
    .back-to-top.is-ascending .back-to-top-image {
        animation: none;
    }
}

/* ========== Auth (login / register) — plein écran, sans nav ========== */
.auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #0a100c;
    color: #f7f3ea;
    overflow-x: hidden;
}

.auth-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a100c;
}

.auth-media-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.auth-media-fallback {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(212, 162, 76, .22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 70%, rgba(0, 98, 51, .45), transparent 50%),
        linear-gradient(160deg, #0d1f16 0%, #1a0a0a 55%, #0a100c 100%);
}

.auth-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(8, 14, 11, .72) 0%, rgba(8, 14, 11, .45) 42%, rgba(8, 14, 11, .55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 26rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    animation: auth-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-shell:has(.auth-panel--wide) {
    width: min(100%, 32rem);
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: .15rem;
}

.auth-brand-logo {
    height: clamp(36px, 6vw, 48px);
    width: auto;
    margin-bottom: .65rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}

.auth-brand-name {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.85rem, 4.5vw, 2.45rem);
    letter-spacing: .04em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.auth-brand-tagline {
    margin: .4rem 0 0;
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(247, 243, 234, .72);
}

.auth-panel {
    padding: clamp(1.35rem, 3.5vw, 1.85rem);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .08) inset,
        0 24px 48px rgba(0, 0, 0, .28);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    margin-bottom: 1.35rem;
    padding: .28rem;
    border-radius: .75rem;
    background: rgba(0, 0, 0, .22);
}

.auth-tab {
    text-align: center;
    padding: .55rem .75rem;
    border-radius: .55rem;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(247, 243, 234, .62);
    transition: color .2s ease, background .2s ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.auth-tab.is-active {
    color: #0a100c;
    background: linear-gradient(135deg, #e8c97a, var(--amd-gold));
    box-shadow: 0 4px 14px rgba(212, 162, 76, .35);
}

.auth-title {
    margin: 0 0 .35rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
}

.auth-lead {
    margin: 0 0 1.15rem;
    font-size: .88rem;
    line-height: 1.45;
    color: rgba(247, 243, 234, .7);
}

.auth-note {
    margin: 0 0 1rem;
    padding: .7rem .85rem;
    border-radius: .55rem;
    font-size: .78rem;
    line-height: 1.4;
    color: rgba(247, 243, 234, .85);
    background: rgba(212, 162, 76, .12);
    border: 1px solid rgba(212, 162, 76, .28);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.auth-field > label,
.auth-field .form-label,
.auth-check label {
    margin: 0;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(247, 243, 234, .62);
}

.auth-field input,
.auth-field select,
.auth-field textarea,
.auth-input,
.auth-form .form-control,
.auth-form .form-select {
    width: 100%;
    margin: 0;
    padding: .72rem .9rem;
    border-radius: .55rem;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-field input::placeholder,
.auth-input::placeholder {
    color: rgba(247, 243, 234, .35);
}

.auth-field input:focus,
.auth-field select:focus,
.auth-input:focus,
.auth-form .form-control:focus,
.auth-form .form-select:focus {
    outline: none;
    border-color: rgba(212, 162, 76, .65);
    background: rgba(0, 0, 0, .38);
    box-shadow: 0 0 0 3px rgba(212, 162, 76, .18);
    color: #fff;
}

.auth-field select option {
    color: #1c1c1c;
    background: #fff;
}

.auth-field .invalid-feedback,
.auth-field .form-error-message,
.auth-form .invalid-feedback,
.auth-form ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .75rem;
    color: #ffb4b8;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .15rem;
}

.auth-check label {
    text-transform: none;
    letter-spacing: .01em;
    font-size: .8rem;
    line-height: 1.4;
    color: rgba(247, 243, 234, .78);
    cursor: pointer;
}

.auth-checkbox,
.auth-check input[type="checkbox"] {
    margin-top: .2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--amd-gold);
    flex-shrink: 0;
}

.auth-submit {
    margin-top: .35rem;
    width: 100%;
    padding: .85rem 1.1rem;
    border: 0;
    border-radius: .6rem;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--amd-green), #014a28);
    box-shadow: 0 10px 24px rgba(0, 98, 51, .35);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 98, 51, .42);
    color: #fff;
}

.auth-submit:active {
    transform: none;
}

.auth-alert {
    margin-bottom: .85rem;
    padding: .7rem .85rem;
    border-radius: .55rem;
    font-size: .82rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.auth-alert a {
    color: inherit;
    text-decoration: underline;
}

.auth-alert-danger {
    background: rgba(193, 39, 45, .22);
    border-color: rgba(193, 39, 45, .4);
    color: #ffd6d8;
}

.auth-alert-info,
.auth-alert-success {
    background: rgba(0, 98, 51, .25);
    border-color: rgba(0, 98, 51, .4);
    color: #d8f5e4;
}

.auth-alert-warning {
    background: rgba(212, 162, 76, .18);
    border-color: rgba(212, 162, 76, .35);
    color: #f5e6c8;
}

.auth-flashes {
    margin-bottom: .75rem;
}

.auth-legal {
    margin: 0;
    text-align: center;
    font-size: .72rem;
    color: rgba(247, 243, 234, .45);
}

.auth-legal a {
    color: rgba(247, 243, 234, .55);
    text-decoration: none;
    transition: color .2s ease;
}

.auth-legal a:hover,
.auth-legal a:focus-visible {
    color: var(--amd-gold);
}

.auth-legal span {
    margin: 0 .45rem;
}

@media (max-width: 575.98px) {
    .auth-stage {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

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

    .auth-panel {
        max-height: none;
    }

    .auth-shell:has(.auth-panel--wide) {
        width: min(100%, 26rem);
    }

    /* Ne pas couper le formulaire : le bouton « Rejoindre » doit rester accessible */
    .auth-panel--wide {
        max-height: none;
        overflow: visible;
    }

    .auth-submit {
        position: sticky;
        bottom: 0.75rem;
        z-index: 3;
    }

    .cf-turnstile {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell {
        animation: none;
    }

    .auth-submit {
        transition: none;
    }

    .auth-submit:hover,
    .auth-submit:focus-visible {
        transform: none;
    }
}


/* ==========================================================================
   Listing cards + detail (emploi / immobilier)
   ========================================================================== */

.listing-chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: .35rem;
    background: rgba(28, 28, 28, .07);
    color: #444;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .02em;
}

.listing-chip--green {
    background: rgba(0, 98, 51, .1);
    color: var(--amd-green);
}

.listing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .85rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover,
.listing-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
    outline: none;
}

.listing-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(0, 98, 51, .06), rgba(212, 162, 76, .08)),
        #f0eeea;
    color: rgba(0, 98, 51, .35);
    font-size: 2.4rem;
}

.listing-card-media--logo {
    height: 168px;
    padding: 1.25rem;
}

.listing-card-media--logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.listing-card-media--photo {
    height: 200px;
    overflow: hidden;
}

.listing-card-media--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.listing-card:hover .listing-card-media--photo img {
    transform: scale(1.04);
}

.listing-card-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    padding: .28rem .7rem;
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    background: var(--amd-green);
}

.listing-card-badge.is-sale {
    background: var(--amd-red);
}

.listing-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.35rem;
}

.listing-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .7rem;
}

.listing-card-title {
    margin: 0 0 .45rem;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-company {
    margin: 0 0 .65rem;
    color: #666;
    font-size: .9rem;
}

.listing-card-meta {
    margin: auto 0 0;
    color: #7a7a7a;
    font-size: .85rem;
}

.listing-card-price {
    margin: .75rem 0 0;
    color: var(--amd-green);
    font-size: 1.15rem;
    font-weight: 700;
}

.listing-card-price span {
    font-size: .85rem;
    font-weight: 600;
    opacity: .8;
}

.listing-detail {
    padding: 1.5rem 0 3.5rem;
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(0, 98, 51, .06), transparent 55%),
        radial-gradient(ellipse 50% 30% at 100% 8%, rgba(212, 162, 76, .08), transparent 50%),
        #f7f6f4;
}

.listing-detail-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.5rem;
    color: var(--amd-green);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}

.listing-detail-back:hover {
    color: var(--amd-red);
}

.listing-detail-grid {
    display: grid;
    gap: 1.75rem 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .listing-detail-grid {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
}

.listing-detail-header {
    margin-bottom: 1.35rem;
}

.listing-detail-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .55rem;
    margin-bottom: .85rem;
    font-size: .875rem;
    color: #6c757d;
}

.listing-detail-sep {
    opacity: .5;
}

.listing-detail-title {
    margin: 0 0 .85rem;
    font-weight: 700;
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--amd-dark);
}

.listing-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.15rem;
    margin: 0;
    color: #555;
    font-size: .98rem;
}

.listing-detail-meta i {
    color: var(--amd-green);
    margin-right: .25rem;
}

.listing-detail-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.listing-detail-section-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--amd-dark, #1a1a1a);
}

.listing-detail-description {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: .85rem;
    padding: 1.5rem 1.6rem 1.35rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.listing-detail-prose p {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #3a3a3a;
}

.listing-detail-prose p:last-child {
    margin-bottom: 0;
}

.listing-detail-empty-copy {
    margin: 0;
    color: #777;
    font-size: .98rem;
}

.listing-detail-body p {
    margin-bottom: 1rem;
}

.listing-detail-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.listing-detail-footer-label {
    margin: 0 0 .65rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #888;
}

.listing-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

@media (min-width: 576px) {
    .listing-specs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.listing-specs li {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .65rem;
    padding: .85rem 1rem;
}

.listing-specs-label {
    display: block;
    margin-bottom: .2rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #888;
}

.listing-specs strong {
    font-size: 1.05rem;
    color: var(--amd-dark);
}

.listing-detail-aside {
    position: relative;
}

@media (min-width: 992px) {
    .listing-detail-aside {
        position: sticky;
        top: 5.5rem;
    }
}

.listing-detail-panel {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .07);
    border: 1px solid rgba(0, 0, 0, .05);
}

.listing-detail-media {
    position: relative;
    background:
        linear-gradient(145deg, rgba(0, 98, 51, .06), rgba(212, 162, 76, .08)),
        #f0eeea;
}

.listing-detail-media--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.75rem;
}

.listing-detail-media--logo img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.listing-detail-media--photo {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.listing-detail-media--photo img {
    display: block;
    width: 100%;
    height: clamp(260px, 42vw, 420px);
    object-fit: cover;
}

.listing-detail-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    color: rgba(0, 98, 51, .3);
    font-size: 3.5rem;
}

.listing-detail-media-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .35rem .8rem;
    border-radius: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    background: var(--amd-green);
}

.listing-detail-media-badge.is-sale {
    background: var(--amd-red);
}

.listing-detail-panel-body {
    padding: 1.35rem 1.4rem 1.5rem;
}

.listing-detail-panel-label {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.listing-detail-panel-company {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--amd-dark);
}

.listing-detail-panel-city {
    margin: 0 0 1.15rem;
    color: #666;
    font-size: .92rem;
}

.listing-detail-price {
    margin: 0 0 1.15rem;
    font-size: 1.85rem;
    font-weight: 750;
    line-height: 1.1;
    color: var(--amd-green);
    letter-spacing: -.02em;
}

.listing-detail-price span {
    font-size: 1rem;
    font-weight: 600;
    opacity: .75;
}

.listing-detail-facts {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    color: #444;
    font-size: .95rem;
}

.listing-detail-facts li {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.listing-detail-facts li:last-child {
    border-bottom: none;
}

.listing-detail-facts i {
    color: var(--amd-green);
    width: 1.1rem;
    text-align: center;
}

.listing-detail-contact {
    margin-bottom: 1.2rem;
    padding-top: .25rem;
    color: #444;
    font-size: .95rem;
}

.listing-detail-contact a {
    color: inherit;
    text-decoration: none;
}

.listing-detail-contact a:hover {
    color: var(--amd-red);
}

.listing-detail-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.listing-detail-cta,
.listing-detail-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .listing-card,
    .listing-card-media--photo img {
        transition: none;
    }

    .listing-card:hover .listing-card-media--photo img {
        transform: none;
    }
}

/* ——— Recherche emploi (Jobzyn) ——— */
.job-search-panel {
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(0, 98, 51, .06), rgba(212, 162, 76, .08)),
        #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.job-search-panel-head {
    margin-bottom: 1rem;
}

.job-search-panel-title {
    margin: 0 0 .25rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.job-search-panel-sub {
    color: #666;
    font-size: .92rem;
}

.job-search-reset {
    color: var(--amd-green);
    font-size: .9rem;
    text-decoration: none;
    font-weight: 500;
}

.job-search-reset:hover {
    color: var(--amd-red);
}

/* ——— Voir tout / CTA sections ——— */
.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem .45rem 1rem;
    border-radius: .65rem;
    background: #fff;
    border: 1px solid rgba(0, 98, 51, .22);
    color: var(--amd-green);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.see-all i {
    font-size: .95rem;
    transition: transform .2s ease;
}

.see-all:hover,
.see-all:focus-visible {
    background: var(--amd-green);
    border-color: var(--amd-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 98, 51, .18);
}

.see-all:hover i,
.see-all:focus-visible i {
    transform: translateX(3px);
}

/* ——— Accueil : section emploi ——— */
.home-jobs-section {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(0, 98, 51, .05), transparent 55%),
        radial-gradient(ellipse 45% 40% at 100% 100%, rgba(193, 39, 45, .04), transparent 50%),
        #f7f6f4;
}

.home-job-card .listing-card-media--logo {
    height: 140px;
}

.home-job-card .listing-card-title {
    -webkit-line-clamp: 2;
    font-size: 1rem;
}

.home-job-card .listing-card-company {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .home-job-card .listing-card-media--logo {
        height: 120px;
    }
}

.btn-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: .55rem;
    background: rgba(0, 98, 51, .08);
    border: 1px solid rgba(0, 98, 51, .18);
    color: var(--amd-green);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-card-cta i {
    transition: transform .2s ease;
}

.btn-card-cta:hover,
.btn-card-cta:focus-visible {
    background: var(--amd-green);
    border-color: var(--amd-green);
    color: #fff;
    transform: translateY(-1px);
}

.btn-card-cta:hover i,
.btn-card-cta:focus-visible i {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .see-all,
    .see-all i,
    .btn-card-cta,
    .btn-card-cta i {
        transition: none;
    }

    .see-all:hover,
    .see-all:focus-visible,
    .btn-card-cta:hover,
    .btn-card-cta:focus-visible {
        transform: none;
    }

    .see-all:hover i,
    .see-all:focus-visible i,
    .btn-card-cta:hover i,
    .btn-card-cta:focus-visible i {
        transform: none;
    }
}

.jobzyn-external-btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem .65rem .7rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid rgba(0, 98, 51, .2);
    color: var(--amd-dark);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.jobzyn-external-btn:hover,
.jobzyn-external-btn:focus-visible {
    transform: translateY(-1px);
    border-color: var(--amd-green);
    background: rgba(0, 98, 51, .06);
    box-shadow: 0 8px 20px rgba(0, 98, 51, .12);
    color: var(--amd-dark);
}

.jobzyn-external-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .55rem;
    background: var(--amd-green);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.jobzyn-external-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.jobzyn-external-btn-text strong {
    font-size: .95rem;
    font-weight: 700;
}

.jobzyn-external-btn-text small {
    font-size: .75rem;
    color: #6b6b6b;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .jobzyn-external-btn {
        transition: none;
    }

    .jobzyn-external-btn:hover,
    .jobzyn-external-btn:focus-visible {
        transform: none;
    }
}

/* Bandeau cookies RGPD */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-radius: .85rem;
    background: rgba(0, 40, 22, .94);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}
.cookie-banner-text {
    flex: 1 1 240px;
    font-size: .9rem;
}
.cookie-banner-text p {
    opacity: .9;
    margin-top: .35rem;
}
.cookie-banner-text a {
    color: var(--amd-gold);
}
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ——— Pages d'erreur (404 / 403 / …) ——— */
.error-page {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 4rem;
    color: #fff;
    overflow: hidden;
}
.error-page-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 90% 70% at 15% 10%, rgba(0, 98, 51, .55), transparent 55%),
        radial-gradient(ellipse 80% 60% at 90% 90%, rgba(193, 39, 45, .4), transparent 50%),
        linear-gradient(165deg, #0a1f14 0%, #16251c 42%, #1c1214 100%);
}
.error-page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(30deg, transparent 40%, rgba(212, 162, 76, .5) 40%, rgba(212, 162, 76, .5) 42%, transparent 42%),
        linear-gradient(-30deg, transparent 40%, rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, .35) 42%, transparent 42%);
    background-size: 28px 48px;
}
.error-page-inner {
    position: relative;
    max-width: 36rem;
}
.error-page-brand {
    color: var(--amd-gold);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: .35rem;
}
.error-page-code {
    font-size: clamp(5rem, 22vw, 8.5rem);
    font-weight: 700;
    line-height: .9;
    margin: 0;
    color: rgba(255, 255, 255, .1);
    user-select: none;
}
.error-page-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    margin: .35rem 0 1rem;
}
.error-page-text {
    font-size: 1.05rem;
    opacity: .88;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}
.error-page-actions .btn-outline-light:hover {
    color: var(--amd-dark);
}

/* —— Profil / avatar / activité —— */
.profile-hero {
    position: relative;
    color: #fff;
    padding: 2.5rem 0 3.25rem;
    margin-bottom: -2.5rem;
    overflow: hidden;
}
.profile-hero--compact {
    padding: 1.75rem 0 2.75rem;
    margin-bottom: -1.75rem;
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 85% 10%, rgba(212, 162, 76, .28), transparent 55%),
        linear-gradient(135deg, #01441f 0%, var(--amd-green) 48%, #0a4d2e 100%);
}
.profile-hero-bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amd-green), var(--amd-gold), var(--amd-red));
}
.profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
}
.profile-hero-kicker {
    margin: 0 0 .2rem;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
}
.profile-hero-name {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}
.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: .45rem 0 0;
    font-size: .92rem;
    opacity: .88;
}
.profile-hero-meta .bi {
    margin-right: .3rem;
}
.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}
.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
}
.profile-pill--ok {
    background: rgba(212, 162, 76, .25);
    border-color: rgba(212, 162, 76, .45);
}
.profile-pill--warn {
    background: rgba(193, 39, 45, .22);
    border-color: rgba(193, 39, 45, .4);
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(15, 61, 46, .12);
    color: var(--amd-green);
    font-weight: 700;
    flex-shrink: 0;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar--lg {
    width: 5rem;
    height: 5rem;
    font-size: 1.75rem;
}
.profile-avatar--hero {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 1.6rem;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    background: linear-gradient(145deg, #0a4d2e, #01441f);
    color: #fff;
}
.profile-avatar--nav {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.1rem;
    background: transparent;
}
.profile-avatar--nav .bi {
    font-size: 1.35rem;
    line-height: 1;
}
.profile-avatar-edit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-dashboard {
    position: relative;
    z-index: 2;
    padding-bottom: 3.5rem;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.25rem;
}
.profile-stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 98, 51, .1);
    box-shadow: 0 10px 28px rgba(28, 28, 28, .05);
}
.profile-stat-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 98, 51, .08);
    color: var(--amd-green);
    font-size: 1.15rem;
}
.profile-stat-value {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--amd-dark);
    line-height: 1.2;
}
.profile-stat-label {
    margin: .15rem 0 0;
    font-size: .8rem;
    color: rgba(28, 28, 28, .55);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.profile-panel {
    background: #fff;
    border: 1px solid rgba(0, 98, 51, .1);
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 12px 32px rgba(28, 28, 28, .05);
}
.profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(0, 98, 51, .08);
}
.profile-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.profile-panel-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--amd-green);
    text-decoration: none;
}
.profile-panel-link:hover {
    color: var(--amd-red);
}

.profile-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}
.profile-facts li {
    display: grid;
    gap: .15rem;
}
.profile-facts-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(28, 28, 28, .5);
    font-weight: 600;
}
.profile-facts strong {
    font-size: .98rem;
    font-weight: 600;
    color: var(--amd-dark);
}
.profile-bio {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 98, 51, .08);
}
.profile-bio p {
    margin: .35rem 0 0;
    color: rgba(28, 28, 28, .78);
    line-height: 1.55;
}

.profile-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.profile-activity-item {
    display: flex;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(0, 98, 51, .07);
}
.profile-activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.profile-activity-item:first-child {
    padding-top: 0;
}
.profile-activity-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 98, 51, .08);
    color: var(--amd-green);
    flex-shrink: 0;
}
.profile-activity-item--order .profile-activity-icon {
    background: rgba(193, 39, 45, .1);
    color: var(--amd-red);
}
.profile-activity-item--meeting .profile-activity-icon {
    background: rgba(212, 162, 76, .18);
    color: #9a6f1f;
}
.profile-activity-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.profile-activity-label {
    color: var(--amd-dark);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
}
a.profile-activity-label:hover {
    color: var(--amd-green);
}
.profile-activity-date {
    font-size: .82rem;
    color: rgba(28, 28, 28, .5);
}

.profile-empty {
    text-align: center;
    padding: 1.75rem 1rem;
    color: rgba(28, 28, 28, .55);
}
.profile-empty .bi {
    font-size: 1.75rem;
    color: var(--amd-green);
    opacity: .55;
    display: block;
    margin-bottom: .5rem;
}
.profile-orders-wrap {
    overflow-x: auto;
}
.profile-orders-wrap .table {
    margin-bottom: 0;
}
.profile-form .form-label {
    font-weight: 600;
    font-size: .9rem;
}

.profile-edit {
    max-width: 760px;
}
.profile-edit .profile-panel {
    margin-bottom: 1.1rem;
}
.profile-edit .profile-panel-head h2 {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.profile-edit .profile-panel-head .bi {
    color: var(--amd-green);
    font-size: 1.05rem;
}
.profile-avatar--xl {
    width: 7rem;
    height: 7rem;
    font-size: 2rem;
    border: 3px solid rgba(0, 98, 51, .15);
    box-shadow: 0 10px 24px rgba(28, 28, 28, .08);
    background: linear-gradient(145deg, #0a4d2e, #01441f);
    color: #fff;
}
.profile-photo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
}
.profile-photo-fields {
    flex: 1 1 220px;
    min-width: 0;
}
.profile-file-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.1rem;
    border-radius: .85rem;
    background: rgba(0, 98, 51, .08);
    border: 1px dashed rgba(0, 98, 51, .35);
    color: var(--amd-green);
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.profile-file-btn:hover {
    background: rgba(0, 98, 51, .14);
    border-color: var(--amd-green);
    color: #01441f;
}
.profile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.profile-photo-fields {
    position: relative;
}
.profile-help {
    margin: .55rem 0 0;
    font-size: .82rem;
    color: rgba(28, 28, 28, .55);
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
}
.profile-field {
    display: grid;
    gap: .35rem;
}
.profile-field label,
.profile-form .profile-field .form-label {
    margin: 0;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(28, 28, 28, .55);
}
.profile-input,
.profile-form .profile-input {
    width: 100%;
    border: 1px solid rgba(0, 98, 51, .18);
    border-radius: .85rem;
    padding: .7rem .9rem;
    background: #fff;
    color: var(--amd-dark);
    font-size: .95rem;
    line-height: 1.35;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.profile-input:focus,
.profile-form .profile-input:focus {
    outline: none;
    border-color: var(--amd-green);
    box-shadow: 0 0 0 .2rem rgba(0, 98, 51, .12);
}
.profile-input--area {
    min-height: 7.5rem;
    resize: vertical;
}
.profile-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .35rem 0 2rem;
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(0, 98, 51, .1);
    box-shadow: 0 12px 32px rgba(28, 28, 28, .05);
}
.profile-edit-actions .btn-primary {
    background: var(--amd-green);
    border-color: var(--amd-green);
}
.profile-edit-actions .btn-primary:hover {
    background: #01441f;
    border-color: #01441f;
}
.profile-form .form-error,
.profile-form ul li {
    color: var(--amd-red);
    font-size: .85rem;
}

@media (max-width: 991.98px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-stats {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575.98px) {
    .profile-hero-main {
        align-items: flex-start;
    }
    .profile-hero-actions {
        width: 100%;
    }
    .profile-hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-edit-actions .btn {
        flex: 1 1 auto;
    }
}

/* Pagination listes publiques */
.site-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 98, 51, .12);
    background:
        linear-gradient(135deg, rgba(0, 98, 51, .05), rgba(212, 162, 76, .08)),
        #fff;
    box-shadow: 0 10px 28px rgba(28, 28, 28, .05);
}

.site-pagination-info {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.site-pagination-info-mark {
    width: .35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amd-green), var(--amd-gold));
    flex-shrink: 0;
}

.site-pagination-meta {
    margin: 0;
    font-size: .9rem;
    font-weight: 500;
    color: #556;
    letter-spacing: .01em;
}

.site-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .65rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    color: var(--amd-dark);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.site-pagination-link:hover {
    border-color: rgba(0, 98, 51, .45);
    color: var(--amd-green);
    background: rgba(0, 98, 51, .06);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 98, 51, .12);
}

.site-pagination-link:focus-visible {
    outline: 2px solid rgba(0, 98, 51, .45);
    outline-offset: 2px;
}

.site-pagination-link.is-current {
    background: linear-gradient(145deg, #0a7340, var(--amd-green) 55%, #014d28);
    border-color: transparent;
    color: #fff;
    box-shadow:
        0 8px 18px rgba(0, 98, 51, .28),
        0 0 0 1px rgba(212, 162, 76, .35);
    transform: none;
}

.site-pagination-link.is-current:hover {
    color: #fff;
    background: linear-gradient(145deg, #0a7340, var(--amd-green) 55%, #014d28);
    transform: none;
    box-shadow:
        0 8px 18px rgba(0, 98, 51, .28),
        0 0 0 1px rgba(212, 162, 76, .35);
}

.site-pagination-link--nav {
    min-width: auto;
    padding-inline: .85rem;
    font-size: .84rem;
    letter-spacing: .01em;
}

.site-pagination-nav-label {
    display: none;
}

.site-pagination-link.is-disabled {
    opacity: .38;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.site-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 2.4rem;
    color: #8a8a8a;
    font-weight: 700;
    letter-spacing: .08em;
}

@media (min-width: 576px) {
    .site-pagination-nav-label {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .site-pagination {
        flex-direction: column;
        align-items: stretch;
        padding: .9rem;
    }

    .site-pagination-list {
        justify-content: center;
    }

    .site-pagination-link {
        min-width: 2.2rem;
        height: 2.2rem;
    }
}

/* —— Alertes accueil —— */
.home-alerts {
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.home-alert {
    padding: .85rem 0;
}

.home-alert--info {
    background: #f3f7f4;
    color: #1f3d2a;
}

.home-alert--warning {
    background: #fff8e8;
    color: #5c4500;
}

.home-alert--urgent {
    background: #fdeced;
    color: #6b1c22;
}

.home-alert-inner {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.home-alert-icon {
    font-size: 1.15rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.home-alert-copy {
    flex: 1;
    min-width: 0;
}

.home-alert-title {
    display: block;
    font-size: .98rem;
}

.home-alert-body {
    margin-top: .2rem;
    font-size: .9rem;
    opacity: .92;
}

.home-alert-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    font-size: .88rem;
    font-weight: 600;
    color: inherit;
}

.home-alert-dismiss {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .65;
    padding: .15rem;
    line-height: 1;
}

.home-alert-dismiss:hover {
    opacity: 1;
}
