/* =========================================================================
   Audace Numéro — gabarit dédié aux pages "audace-et-*"
   Charte alignée sur /magazine/ : Playfair Display + Inter, teal + rose.
   Tout est scopé sous body.audace-numero-page.
   ========================================================================= */

body.audace-numero-page {
    --audace-primary: #11708E;
    --audace-primary-dark: #0c5870;
    --audace-accent: #E44993;
    --audace-bg: #f7f5f1;
    --audace-paper: #ffffff;
    --audace-ink: #181a1f;
    --audace-ink-soft: #4a4f5a;
    --audace-ink-muted: #8a8f99;
    --audace-rule: #e6e2da;
    --audace-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --audace-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: var(--audace-bg);
    font-family: var(--audace-sans);
}

/* Centrage et largeur de lecture confortable sur toute la zone de contenu */
body.audace-numero-page .elementor-widget-container {
    color: var(--audace-ink-soft);
}

/* ----------------------------------------------------------------------- */
/* HERO — couverture du numéro                                             */
/* ----------------------------------------------------------------------- */
body.audace-numero-page .audace-numero-hero {
    text-align: center;
    padding: 34px 20px 4px;
    max-width: 1080px;
    margin: 0 auto;
}

body.audace-numero-page .audace-numero-kicker {
    display: inline-block;
    font-family: var(--audace-sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--audace-accent);
    margin-bottom: 14px;
}

body.audace-numero-page .audace-numero-cover {
    display: flex;
    justify-content: center;
}

body.audace-numero-page .audace-numero-cover img {
    width: auto;
    max-width: min(340px, 70vw);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 24px 60px -18px rgba(12, 88, 112, 0.45), 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: rotate(-1.2deg);
    transition: transform 0.4s ease;
}

body.audace-numero-page .audace-numero-cover img:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* ----------------------------------------------------------------------- */
/* Masque le titre de page du thème (doublon avec le titre du portrait)     */
body.audace-numero-page .page-header { display: none; }

/* TITRE — heading widget Elementor                                        */
/* ----------------------------------------------------------------------- */
body.audace-numero-page .elementor-widget-heading .elementor-heading-title,
body.audace-numero-page .audace-portrait-title {
    font-family: var(--audace-serif) !important;
    color: var(--audace-ink) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em;
}

body.audace-numero-page h1.elementor-heading-title,
body.audace-numero-page h1.audace-portrait-title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem) !important;
    text-align: center;
    max-width: 30ch;
    margin: 10px auto 6px;
    position: relative;
    padding-bottom: 20px;
}

body.audace-numero-page h1.elementor-heading-title::after,
body.audace-numero-page h1.audace-portrait-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--audace-accent);
}

/* ----------------------------------------------------------------------- */
/* CORPS ÉDITORIAL — text-editor widget                                    */
/* ----------------------------------------------------------------------- */
/* Feuille de papier : le corps de l'article repose sur une feuille blanche
   posée sur le fond crème (ombre chuchotée, filet fin, marges larges). */
body.audace-numero-page .elementor-widget-text-editor,
body.audace-numero-page .audace-portrait-body {
    max-width: 1000px;
    margin: 14px auto 0 !important;
    padding: clamp(30px, 5vw, 60px) clamp(24px, 6vw, 68px) !important;
    background: var(--audace-paper) !important;
    border: 1px solid var(--audace-rule);
    border-radius: 3px;
    box-shadow: 0 34px 64px -44px rgba(12, 88, 112, 0.38), 0 2px 6px rgba(24, 26, 31, 0.025);
}

body.audace-numero-page .elementor-widget-text-editor p,
body.audace-numero-page .audace-portrait-body p {
    font-family: var(--audace-sans);
    font-size: 1.13rem;
    line-height: 1.7;
    color: var(--audace-ink-soft);
    margin: 0 0 0.85em;
}

body.audace-numero-page .elementor-widget-text-editor p strong,
body.audace-numero-page .audace-portrait-body p strong {
    color: var(--audace-ink);
    font-weight: 600;
}

/* Chapô : premier paragraphe du portrait, encadré comme un vrai bloc d'intro */
/* Chapô : sur la feuille blanche, simple filet d'accent (pas de carte sur carte) */
body.audace-numero-page .elementor-widget-text-editor p.audace-lead,
body.audace-numero-page .audace-portrait-body p.audace-lead {
    font-family: var(--audace-serif);
    font-size: 1.24rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--audace-ink);
    text-align: left;
    max-width: none;
    margin: 0 0 1.7em;
    padding: 2px 0 2px 22px;
    background: transparent;
    border-left: 3px solid var(--audace-accent);
    border-radius: 0;
    box-shadow: none;
}

body.audace-numero-page .elementor-widget-text-editor p.audace-lead strong,
body.audace-numero-page .audace-portrait-body p.audace-lead strong {
    font-weight: 700;
}

/* Lettrine sur le premier paragraphe de corps (ajouté par JS) */
body.audace-numero-page .elementor-widget-text-editor p.audace-dropcap::first-letter,
body.audace-numero-page .audace-portrait-body p.audace-dropcap::first-letter {
    font-family: var(--audace-serif);
    font-weight: 700;
    font-size: 3.4em;
    line-height: 0.78;
    float: left;
    margin: 0.06em 0.1em 0 0;
    color: var(--audace-primary);
}

/* Titres de section dans le portrait */
body.audace-numero-page .elementor-widget-text-editor h2,
body.audace-numero-page .audace-portrait-body h2 {
    font-family: var(--audace-serif);
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    color: var(--audace-ink);
    font-weight: 700;
    margin: 1.7em 0 0.6em;
    padding-top: 0.1em;
}

body.audace-numero-page .elementor-widget-text-editor h2 strong,
body.audace-numero-page .audace-portrait-body h2 strong {
    font-weight: 700;
    color: inherit;
}

body.audace-numero-page .elementor-widget-text-editor h2::before,
body.audace-numero-page .audace-portrait-body h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: var(--audace-primary);
    margin-bottom: 0.55em;
}

/* Séparateurs <hr> → ornement centré discret */
body.audace-numero-page .elementor-widget-text-editor hr,
body.audace-numero-page .audace-portrait-body hr {
    border: 0;
    height: auto;
    text-align: center;
    margin: 1.7em auto;
    overflow: visible;
}

body.audace-numero-page .elementor-widget-text-editor hr::before,
body.audace-numero-page .audace-portrait-body hr::before {
    content: "◆";
    color: var(--audace-accent);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
}

/* Pull-quote injectée par JS */
body.audace-numero-page .audace-pullquote {
    font-family: var(--audace-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    line-height: 1.4;
    color: var(--audace-primary-dark);
    text-align: center;
    max-width: 26ch;
    margin: 1.4em auto;
    padding: 0.3em 0;
    position: relative;
}

body.audace-numero-page .audace-pullquote::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--audace-accent);
    margin: 0 auto 0.7em;
}

/* ----------------------------------------------------------------------- */
/* FEUILLETOIR — image-carousel widget                                     */
/* ----------------------------------------------------------------------- */
body.audace-numero-page .audace-reader-head {
    text-align: center;
    max-width: 720px;
    margin: 2em auto 1.2em;
    padding: 0 22px;
}

body.audace-numero-page .audace-reader-head .audace-reader-eyebrow {
    display: block;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--audace-accent);
    margin-bottom: 8px;
}

body.audace-numero-page .audace-reader-head .audace-reader-title {
    font-family: var(--audace-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--audace-ink);
    margin: 0 0 6px;
}

body.audace-numero-page .audace-reader-head .audace-reader-sub {
    font-size: 0.98rem;
    color: var(--audace-ink-muted);
    margin: 0;
}

/* Cadre du carrousel */
body.audace-numero-page .elementor-widget-image-carousel {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 22px 10px;
}

body.audace-numero-page .elementor-widget-image-carousel .swiper-slide-image {
    border-radius: 4px;
    box-shadow: 0 18px 44px -16px rgba(12, 88, 112, 0.4);
    cursor: zoom-in;
}

/* Flèches de navigation aux couleurs de la marque */
body.audace-numero-page .elementor-widget-image-carousel .elementor-swiper-button {
    color: #fff;
    background: var(--audace-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(12, 88, 112, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
}

body.audace-numero-page .elementor-widget-image-carousel .elementor-swiper-button:hover {
    background: var(--audace-accent);
    transform: scale(1.08);
}

body.audace-numero-page .elementor-widget-image-carousel .swiper-pagination-bullet-active {
    background: var(--audace-accent);
}

/* Barre d'action sous le feuilletoir */
body.audace-numero-page .audace-reader-actions {
    text-align: center;
    margin: 18px auto 8px;
}

body.audace-numero-page .audace-reader-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--audace-sans);
    font-weight: 600;
    font-size: 0.98rem;
    color: #fff;
    background: var(--audace-primary);
    border: 0;
    border-radius: 999px;
    padding: 13px 26px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(12, 88, 112, 0.6);
    transition: background 0.2s ease, transform 0.2s ease;
}

body.audace-numero-page .audace-reader-btn:hover {
    background: var(--audace-primary-dark);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------------- */
/* LIGHTBOX plein écran — construite par JS                                */
/* ----------------------------------------------------------------------- */
.audace-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 28, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.audace-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.audace-lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    background: #fff;
}

.audace-lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.audace-lightbox__btn:hover {
    background: var(--audace-accent, #E44993);
}

.audace-lightbox__btn--prev { left: max(14px, 3vw); }
.audace-lightbox__btn--next { right: max(14px, 3vw); }

.audace-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.audace-lightbox__close:hover { background: var(--audace-accent, #E44993); }

.audace-lightbox__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.35);
    padding: 7px 16px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    body.audace-numero-page .audace-numero-hero { padding-top: 32px; }
    .audace-lightbox__btn { width: 44px; height: 44px; font-size: 22px; }
}
