/* ═══════════════════════════════════════════════════════════
   Caly Narboni · feuille unique (site d'une page)
   Valeurs relevées sur le WordPress d'origine (Blocksy + Elementor) à
   1366, 1024, 768 et 375 px. Points de rupture d'origine conservés :
   1024 et 767 (Elementor), 999.98 et 689.98 (en-tête et marges Blocksy).
   Après toute modification : incrémenter CSS_VERSION dans config.php.
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lato-400-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/lato-700-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/playfairdisplay-latin.woff2') format('woff2');
}

:root {
    --cn-accent: #bb6f3d;
    --cn-text: #4a4a4a;
    --cn-soft: #f9fafb;
    --cn-ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --cn-shadow: 0 20px 80px 0 rgba(193, 199, 212, 0.25);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--cn-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
strong { font-weight: 700; }
svg { fill: currentColor; }

:focus-visible {
    outline: 2px solid var(--cn-accent);
    outline-offset: 3px;
}
main:focus { outline: none; }

.cn-wrap {
    width: min(1290px, 90vw);
    margin-inline: auto;
}

.cn-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.cn-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #000;
    transition: top 0.15s;
}
.cn-skip:focus { top: 16px; }

.cn-anchor { display: block; height: 0; }

/* ── En-tête : transparent, posé sur la vidéo ────────────── */
.cn-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
.cn-header__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 120px;
}
.cn-nav { grid-column: 2; }
.cn-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cn-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 30px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.12s var(--cn-ease);
}
.cn-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    margin: 0 auto;
    background: #f3f3f3;
    opacity: 0;
    transition: opacity 0.12s var(--cn-ease), width 0.12s var(--cn-ease);
}
.cn-nav a:hover,
.cn-nav a.is-active { color: #fff; }
.cn-nav a:hover::after,
.cn-nav a.is-active::after {
    width: calc(100% - 60px);
    opacity: 1;
}

.cn-social {
    grid-column: 3;
    justify-self: end;
    display: block;
}
.cn-social span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37.5px;
    height: 37.5px;
    border-radius: 100%;
    background: rgba(218, 222, 228, 0.3);
    transition: background 0.12s var(--cn-ease);
}
.cn-social svg {
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.12s var(--cn-ease);
}
.cn-social:hover span { background: var(--cn-accent); }
.cn-social:hover svg { fill: #f3f3f3; }

.cn-burger {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
/* Zone de toucher élargie sans déplacer l'icône. */
.cn-burger::before {
    content: "";
    position: absolute;
    inset: -13px;
}
.cn-burger svg {
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.12s var(--cn-ease);
}
.cn-burger:hover svg { fill: #fff; }

/* ── Tiroir du menu (sous 1000 px) ───────────────────────── */
.cn-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.cn-drawer[hidden] { display: none; }
.cn-drawer.is-open { opacity: 1; }
.cn-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(18, 21, 25, 0.98);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.25s ease-in-out;
}
.cn-drawer.is-open .cn-drawer__panel { transform: none; }
.cn-drawer__actions {
    display: flex;
    justify-content: flex-end;
    padding: 20px 25px 0;
}
.cn-drawer__close {
    display: flex;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
}
.cn-drawer__close svg {
    fill: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s, fill 0.12s;
}
.cn-drawer__close:hover svg {
    fill: #fff;
    transform: rotate(90deg);
}
.cn-drawer__nav { padding: 25px; }
.cn-drawer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cn-drawer__nav a {
    display: flex;
    padding: 5px 0;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    transition: color 0.12s var(--cn-ease);
}
.cn-drawer__nav a:hover,
.cn-drawer__nav a.is-active { color: #f3f3f3; }

/* ── Accueil : vidéo plein cadre ─────────────────────────── */
.cn-hero {
    position: relative;
    overflow: hidden;
    padding: 390px 0 330px;
    text-align: center;
    color: #fff;
    background: #000;
}
.cn-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    opacity: 0.6;
}
.cn-hero__inner {
    position: relative;
    z-index: 2;
}
.cn-hero__title {
    margin-bottom: 30px;
    font-size: 56px;
    line-height: 1.3;
    color: #fff;
}
.cn-hero__sub {
    margin-bottom: 60px;
    text-transform: uppercase;
}

.cn-spacer {
    height: 20px;
    padding-top: 10px;
    background: var(--cn-soft);
}

/* ── Meet Caly ───────────────────────────────────────────── */
.cn-meet {
    padding: 80px 0;
    background: var(--cn-soft);
}
.cn-meet__row { display: flex; }
.cn-meet__text {
    align-self: flex-start;
    width: 50%;
    padding: 70px 50px 0 0;
}
.cn-meet__text h2 {
    margin-bottom: 50px;
    font-size: 60px;
    line-height: 1.5;
}
.cn-meet__body {
    margin-bottom: 50px;
    text-align: justify;
}
.cn-meet__body p + p { margin-top: 1.5em; }
.cn-meet__photo { width: 50%; }
.cn-meet__photo img { width: 100%; }

.cn-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    text-transform: uppercase;
    color: #000;
}
.cn-link-btn svg {
    width: 1em;
    height: 1em;
}

/* ── Titres d'introduction des rubriques ─────────────────── */
.cn-intro h2 {
    font-size: 45px;
    line-height: 1.5;
    text-align: center;
}
.cn-intro p { text-align: center; }
.cn-intro--narrow {
    max-width: 500px;
    margin: 0 auto 80px;
}
.cn-intro--narrow h2 { margin-bottom: 5px; }
.cn-intro--retraites { margin-bottom: 50px; }
.cn-intro--retraites h2 { margin-bottom: 20px; }
.cn-intro__body p + p { margin-top: 1.5em; }

.cn-subtitle {
    margin-bottom: 50px;
    font-size: 30px;
    line-height: 1;
    text-align: center;
}
/* Le second sous-titre suit la grande carte : ses 50 px du dessus sont portés
   par la marge de la carte (70 + 50), deux marges de blocs voisins fusionnant. */

/* ── Cartes photo (cours, retraites) ─────────────────────── */
.cn-cours { padding: 80px 0; }
.cn-retraites {
    padding: 80px 0;
    background: var(--cn-soft);
}

.cn-cards {
    display: flex;
    gap: 35px;
}
.cn-cards > .cn-card {
    flex: 1 1 0;
    min-width: 0;
}
.cn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 492px;
    padding: 70px 40px;
    color: #fff;
    background: #000 center / cover no-repeat;
    box-shadow: var(--cn-shadow);
}
.cn-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.58;
}
.cn-card > * { position: relative; }
.cn-card--center { justify-content: center; }
.cn-card--wide { margin-bottom: 120px; }

.cn-card__head h3,
.cn-card__head h4 {
    margin-bottom: 4px;
    font-size: 33px;
    line-height: 1;
    text-align: center;
    color: #fff;
    overflow-wrap: break-word;
}
.cn-card__head h4.is-small { font-size: 30px; }
/* Dernières retraites : le corps du titre suit la largeur de la carte quand
   elle rétrécit (tablette, mobile), pour que le mot le plus long,
   « COLLECTIONIST » (8,2 fois le corps), tienne sur une ligne. À l'origine il
   était coupé en « COLLECTIONIS / T ». Inchangé en large écran (33 et 30 px). */
.cn-retraites .cn-cards .cn-card__head { container-type: inline-size; }
.cn-retraites .cn-cards h4 { font-size: min(33px, 12cqi); }
.cn-retraites .cn-cards h4.is-small { font-size: min(30px, 12cqi); }
.cn-card__head p {
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}
.cn-card__head--lg {
    margin-bottom: 50px;
    padding: 10px;
}
.cn-card__head--lg p { font-size: 24px; }
.cn-card__cta { text-align: center; }

.cn-bg-cours-punch-boxing             { background-image: url('/assets/img/cours-punch-boxing.webp'); }
.cn-bg-cours-pilates-riise            { background-image: url('/assets/img/cours-pilates-riise.webp'); }
.cn-bg-cours-prives                   { background-image: url('/assets/img/cours-prives.webp'); }
.cn-bg-retraite-interlude-marrakech   { background-image: url('/assets/img/retraite-interlude-marrakech.webp'); }
.cn-bg-retraite-interlude-oasis-house { background-image: url('/assets/img/retraite-interlude-oasis-house.webp'); }
.cn-bg-retraite-interlude-namo-ryokan { background-image: url('/assets/img/retraite-interlude-namo-ryokan.webp'); }
.cn-bg-retraite-riise-collectionist   { background-image: url('/assets/img/retraite-riise-collectionist.webp'); }

.cn-btn {
    display: inline-block;
    padding: 16px 60px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    transition: all 0.3s;
}
.cn-btn:hover,
.cn-btn:focus {
    color: #000;
    background: #fff;
}

/* ── Évènements & Workshops ──────────────────────────────── */
.cn-workshops {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 130px 0;
}
.cn-workshops h2 {
    font-size: 35px;
    line-height: 1;
    text-align: center;
}
.cn-workshops__cta { text-align: center; }

.cn-carousel {
    position: relative;
    padding-bottom: 30px;
    --cn-per: 3;
    --cn-gap: 8px;
}
/* Sans JavaScript : défilement horizontal natif. Avec : piloté par main.js. */
.cn-carousel__viewport {
    overflow-x: auto;
    scrollbar-width: none;
}
.cn-carousel__viewport::-webkit-scrollbar { display: none; }
.cn-carousel.is-ready .cn-carousel__viewport {
    overflow: hidden;
    touch-action: pan-y;
}
.cn-carousel__track {
    display: flex;
    gap: var(--cn-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.cn-carousel.is-ready .cn-carousel__track {
    transition: transform 0.5s ease;
    will-change: transform;
}
.cn-carousel.is-ready .cn-carousel__track.is-instant { transition: none; }
.cn-carousel__slide {
    flex: 0 0 calc((100% - (var(--cn-per) - 1) * var(--cn-gap)) / var(--cn-per));
    min-width: 0;
}
.cn-carousel__slide figure { margin: 0; }
.cn-carousel__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}
.cn-carousel__slide figcaption {
    margin-top: 7px;
    font-size: 14px;
    text-align: center;
}
.cn-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    text-align: center;
}
.cn-carousel__dots button {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eaeaea;
    cursor: pointer;
}
.cn-carousel__dots button[aria-current="true"] { background: #000; }

/* ── Contact ─────────────────────────────────────────────── */
.cn-contact {
    padding: 80px 0;
    background: var(--cn-soft);
}
.cn-contact__row { display: flex; }
.cn-contact__photo { width: 50%; }
.cn-contact__photo img { width: 100%; }
.cn-contact__anchor { width: 0; }
.cn-contact__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 100px;
    width: 50%;
    padding: 90px 35px;
    background: #fff;
    box-shadow: var(--cn-shadow);
}
.cn-infobox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.cn-infobox__icon {
    display: block;
    width: 40px;
    height: 40px;
    color: #000;
}
.cn-infobox__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}
.cn-infobox__content { width: 100%; }
.cn-infobox h3 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}
.cn-infobox p {
    font-size: 16px;
    overflow-wrap: anywhere;
}

/* ── Pied de page ────────────────────────────────────────── */
.cn-footer { background: #000; }
.cn-footer__row {
    padding: 25px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
.cn-footer a { transition: color 0.12s var(--cn-ease); }
.cn-footer a:hover { color: #f3f3f3; }

/* ── Page introuvable ────────────────────────────────────── */
.cn-plain .cn-header {
    position: relative;
    background: #000;
}
.cn-404 {
    padding: 100px 0 120px;
    text-align: center;
    background: var(--cn-soft);
}
.cn-404 h1 {
    margin-bottom: 20px;
    font-size: 45px;
    line-height: 1.3;
}
.cn-404 p { margin-bottom: 40px; }

/* ═══════════════════════════════════════════════════════════
   Tablette (Elementor : 1024 px et moins)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cn-hero { padding: 290px 0 240px; }
    .cn-hero__title { font-size: 70px; }

    .cn-meet { margin-bottom: 80px; }
    .cn-meet__row { flex-wrap: wrap; }
    .cn-meet__text {
        width: 100%;
        padding: 0;
    }
    .cn-meet__text h2 {
        font-size: 35px;
        text-align: center;
    }
    .cn-meet__body { text-align: center; }
    .cn-meet__cta {
        margin-bottom: 50px;
        text-align: center;
    }

    .cn-cours { margin-bottom: 90px; }
    .cn-intro h2 { font-size: 35px; }
    .cn-intro--narrow { margin-bottom: 50px; }

    .cn-card { padding: 50px 25px; }

    .cn-retraites { margin-bottom: 90px; }

    .cn-workshops { padding: 90px 0 80px; }

    .cn-contact { margin-bottom: 80px; }
    .cn-contact__row { flex-wrap: wrap; }
}

/* Carrousel : 3 vues à partir de 1024 px, 2 de 767 à 1023, 1 en dessous
   (seuils du carrousel d'origine, décalés d'un pixel par rapport aux autres). */
@media (max-width: 1023.98px) {
    .cn-carousel { --cn-per: 2; }
}
@media (max-width: 766.98px) {
    .cn-carousel { --cn-per: 1; }
}

/* En-tête et tiroir (Blocksy : sous 1000 px) */
@media (max-width: 999.98px) {
    .cn-header__row {
        grid-template-columns: 1fr auto;
        height: 70px;
    }
    .cn-nav { display: none; }
    .cn-social {
        grid-column: 1;
        justify-self: start;
    }
    .cn-social span {
        width: 42.5px;
        height: 42.5px;
    }
    .cn-social svg {
        width: 17px;
        height: 17px;
    }
    .cn-burger {
        display: flex;
        grid-column: 2;
    }
    .cn-drawer__panel { width: 65vw; }
}

/* ═══════════════════════════════════════════════════════════
   Mobile (Elementor : 767 px et moins)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .cn-hero { padding: 220px 0 200px; }
    .cn-hero__title { font-size: 30px; }
    .cn-hero__sub {
        margin-bottom: 50px;
        font-size: 10px;
    }

    .cn-meet { margin-bottom: 0; }
    .cn-meet__row { row-gap: 50px; }
    .cn-meet__text h2 {
        margin-bottom: 35px;
        font-size: 30px;
    }
    .cn-meet__body {
        margin-bottom: 35px;
        font-size: 14px;
        text-align: justify;
    }
    .cn-meet__cta { margin-bottom: 0; }
    .cn-meet__photo { width: 100%; }

    .cn-cours { margin-bottom: 0; }
    .cn-intro h2 { font-size: 30px; }
    .cn-intro--narrow {
        max-width: none;
        margin-bottom: 35px;
    }
    .cn-intro--retraites { margin-bottom: 35px; }

    .cn-cards { flex-direction: column; }
    .cn-cards > .cn-card { flex: none; }
    .cn-card { padding: 60px 35px 70px; }

    .cn-retraites {
        margin-bottom: 0;
        padding: 0;
    }

    .cn-workshops { padding: 40px 0 0; }
    .cn-workshops h2 { padding: 0 30px; }

    .cn-contact { margin-bottom: 50px; }
    .cn-contact__row { row-gap: 50px; }
    .cn-contact__photo { width: 100%; }
    .cn-contact__anchor { width: 100%; }
    .cn-contact__panel {
        width: 100%;
        padding: 15% 10%;
    }

    .cn-404 { padding: 60px 0 80px; }
    .cn-404 h1 { font-size: 30px; }
}

/* Marges et tiroir (Blocksy : sous 690 px) */
@media (max-width: 689.98px) {
    .cn-wrap { width: 88vw; }
    .cn-drawer__panel { width: 90vw; }
    .cn-drawer__nav a { font-size: 20px; }
    .cn-footer__row { padding: 15px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cn-carousel.is-ready .cn-carousel__track,
    .cn-drawer,
    .cn-drawer__panel,
    .cn-btn { transition: none; }
}
