/* @portee: public */
/* =========================================================================
   EIT GROUP — Module « Contenus » : annonces, actualités, galerie, FAQ, newsletter, domaines & métiers.
   Préfixe .ct-  · Uniquement les variables du thème (clair / sombre).
   ========================================================================= */

/* ------------------------------------------------------------ Outils communs */
.ct-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; line-height: 1.3; }
.ct-link:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-handle { cursor: grab; color: var(--text-3); width: 28px; text-align: center; font-size: 1.05rem; }
.ct-handle:hover { color: var(--text); }
.ct-ghost { opacity: .45; background: var(--brand-soft) !important; }
.ct-chosen { box-shadow: var(--shadow-2); }
.ct-drag { transform: rotate(1deg); }
.ct-thumb { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: var(--bg-sunken); }
.ct-thumb-icon { display: grid; place-items: center; font-size: 1.35rem; background: var(--bg-sunken); color: var(--text-2); }
.ct-thumb-icon.tone-info { background: var(--info-soft); color: var(--info); }
.ct-thumb-icon.tone-warning { background: var(--warning-soft); color: var(--warning); }
.ct-thumb-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.ct-thumb-icon.tone-violet { background: var(--violet-soft); color: var(--violet); }
.ct-thumb-icon.tone-success { background: var(--brand-soft); color: var(--brand-ink); }
.ct-seg-xs button { padding: .22rem .55rem; font-size: .76rem; }
.ct-dot-ok { color: var(--brand); font-size: .45rem; vertical-align: middle; }
.ct-chip-btn { cursor: pointer; font: inherit; font-size: .78rem; font-weight: 600; }
.ct-chip-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.ct-pre { white-space: pre-line; }
.ct-mini-progress { height: 4px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; max-width: 160px; }
.ct-mini-progress > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.ct-switch-sm input { width: 2.2rem; height: 1.3rem; }
.ct-switch-sm input::after { width: .95rem; height: .95rem; }
.ct-switch-sm input:checked::after { transform: translateX(.9rem); }
.ct-row td { vertical-align: middle; }
.ct-table td.col-actions { white-space: nowrap; }
.ct-card-foot { padding-top: .55rem; border-top: 1px solid var(--line); margin-top: auto; }
.ct-ajax-errors:empty { display: none; }
.ct-ajax-errors { padding: 0 1.3rem .6rem; }
.text-info { color: var(--info); }
mark.ct-mark { background: color-mix(in srgb, var(--brand) 32%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* Emplacements (pastilles) */
.ct-places { display: flex; flex-wrap: wrap; gap: .3rem; }
.ct-place { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem; border-radius: var(--r-pill); background: var(--bg-sunken); border: 1px solid var(--line); font-size: .76rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.ct-place .ph { color: var(--brand-ink); font-size: .95rem; }

/* ------------------------------------------------------------ Modale à deux volets (formulaire + aperçu) */
.ct-split-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); gap: 0; padding: 0 !important; min-height: 0; flex: 1; overflow: hidden; }
.ct-split-main { padding: 1.1rem 1.3rem; overflow-y: auto; min-height: 0; }
.ct-split-side { padding: 1.1rem 1.2rem; overflow-y: auto; background: var(--bg-sunken); border-left: 1px solid var(--line); min-height: 0; }
@media (max-width: 860px) {
  .ct-split { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .ct-split-side { border-left: 0; border-top: 1px solid var(--line); }
}
.modal.modal-xl:has(.ct-split-form) { height: min(860px, calc(100dvh - 32px)); }

/* Choix du type */
.ct-type-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.ct-type { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: .86rem; font-weight: 650; cursor: pointer; transition: all .14s; }
.ct-type input { position: absolute; opacity: 0; pointer-events: none; }
.ct-type-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--text-3); }
.ct-type.tone-info .ct-type-dot { background: var(--info); }
.ct-type.tone-warning .ct-type-dot { background: var(--warning); }
.ct-type.tone-danger .ct-type-dot { background: var(--danger); }
.ct-type.tone-violet .ct-type-dot { background: var(--violet); }
.ct-type.tone-success .ct-type-dot { background: var(--brand); }
.ct-type:has(input:checked) { border-color: var(--text); background: var(--bg-inverse); color: var(--text-inverse); }
.ct-type:has(input:focus-visible) { box-shadow: var(--ring); }

/* Choix des emplacements */
.ct-place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem; }
.ct-place-choice { position: relative; display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .85rem; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--bg-elev); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ct-place-choice:hover { border-color: var(--text-3); transform: translateY(-1px); }
.ct-place-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ct-place-choice > .ph:first-of-type { font-size: 1.35rem; color: var(--text-2); margin-top: .05rem; }
.ct-place-choice b { display: block; font-size: .9rem; }
.ct-place-choice small { display: block; font-size: .76rem; color: var(--text-3); line-height: 1.35; }
.ct-place-choice .ct-check { position: absolute; top: .55rem; right: .6rem; color: var(--brand); font-size: 1.1rem; opacity: 0; transform: scale(.6); transition: all .18s var(--ease); }
.ct-place-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ct-place-choice:has(input:checked) > .ph:first-of-type { color: var(--brand-ink); }
.ct-place-choice:has(input:checked) .ct-check { opacity: 1; transform: none; }
.ct-place-choice:has(input:focus-visible) { box-shadow: var(--ring); }
.ct-place-tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.ct-place-tabs button { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.ct-place-tabs button.is-active { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }

/* ------------------------------------------------------------ Aperçu « navigateur » */
.ct-browser { border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--bg); overflow: hidden; box-shadow: var(--shadow-2); }
.ct-browser-bar { display: flex; align-items: center; gap: .3rem; padding: .45rem .6rem; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.ct-browser-bar > i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line-strong); }
.ct-browser-url { margin-left: .5rem; flex: 1; font-size: .72rem; color: var(--text-3); background: var(--bg-sunken); border-radius: var(--r-pill); padding: .15rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-browser-body { min-height: 250px; position: relative; }
.ct-browser-body .annonce-card { box-shadow: var(--shadow-1); }
.ct-skel-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.ct-skel-logo { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bg-inverse); }
.ct-skel-pill { width: 4.5rem; height: 1.3rem; border-radius: 99px; background: var(--brand); opacity: .8; }
.ct-skel-hero { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem .9rem; }
.ct-skel-section { padding: 1rem .9rem; display: flex; flex-direction: column; gap: .7rem; }
.ct-skel-card { padding: .9rem; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: .45rem; opacity: .7; }
.ct-skel-line { display: block; height: .55rem; border-radius: 99px; background: var(--line); }
.ct-skel-line.h18 { height: 1.1rem; }
.ct-skel-line.w20 { width: 20%; } .ct-skel-line.w30 { width: 30%; } .ct-skel-line.w35 { width: 35%; } .ct-skel-line.w45 { width: 45%; }
.ct-skel-line.w50 { width: 50%; } .ct-skel-line.w60 { width: 60%; } .ct-skel-line.w80 { width: 80%; }
.ct-popup-stage { position: relative; min-height: 330px; }
.ct-popup-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.ct-popup-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 380px); max-height: none; }

/* ------------------------------------------------------------ Cartes d'annonces */
.ct-ann-card { padding: 0; overflow: hidden; gap: 0; }
.ct-ann-card > .stack { padding: .9rem 1rem .7rem; }
.ct-ann-card .ct-card-foot { padding: .55rem .8rem .55rem 1rem; }
.ct-ann-cover { position: relative; height: 120px; display: grid; place-items: center; font-size: 2.4rem; background: var(--bg-sunken); color: var(--text-3); }
.ct-ann-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-ann-cover.tone-info { background: var(--info-soft); color: var(--info); }
.ct-ann-cover.tone-warning { background: var(--warning-soft); color: var(--warning); }
.ct-ann-cover.tone-danger { background: var(--danger-soft); color: var(--danger); }
.ct-ann-cover.tone-violet { background: var(--violet-soft); color: var(--violet); }
.ct-ann-cover.tone-success { background: var(--brand-soft); color: var(--brand-ink); }
.ct-ann-state { position: absolute; top: .6rem; left: .6rem; box-shadow: var(--shadow-1); }
.ct-ann-pin { position: absolute; top: .55rem; right: .6rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #000; font-size: .95rem; }
.badge.tone-dark { --b-fg: var(--text-inverse); --b-bg: var(--bg-inverse); }
.ct-table th, .ct-table td { padding-inline: .65rem; }
.ct-table td { padding-block: .6rem; }
.ct-table .ct-handle, .ct-table .ct-handle-th { padding-inline: .5rem 0; width: 22px; }
.ct-table .ct-col-main { min-width: 260px; width: 36%; }
.ct-table .ct-thumb { width: 44px; height: 44px; }
.ct-table .badge .ph { font-size: .9rem; }

/* ------------------------------------------------------------ Actualités (back-office) */
.ct-cover-thumb { width: 76px; height: 50px; border-radius: var(--r-xs); object-fit: cover; flex-shrink: 0; background: var(--bg-sunken); }
.ct-cover-thumb.lg { width: 112px; height: 70px; border-radius: var(--r-sm); }
.ct-cat { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.ct-cat .ph { color: var(--brand-ink); font-size: 1rem; }
.ct-art-card { padding: 0; overflow: hidden; gap: 0; }
.ct-art-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-sunken); overflow: hidden; }
.ct-art-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ct-art-card:hover .ct-art-cover img { transform: scale(1.04); }
.text-right { text-align: right; }

/* Éditeur d'article (écran ajusté) */
.ct-editor { grid-template-columns: minmax(0, 1fr) 340px; }
.ct-editor-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.ct-editor-tabs { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; flex-shrink: 0; }
.ct-editor-tabs .subtabs { margin-right: auto; }
.ct-editor-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.1rem 1.2rem 1.4rem; }
.ct-editor-body > .stack { min-height: 100%; }
.ct-editor-side { display: flex; flex-direction: column; gap: .9rem; overflow-y: auto; min-height: 0; padding-right: 2px; }
.ct-editor-side .panel { margin: 0; flex-shrink: 0; }
.ct-title-input { font-size: 1.25rem; font-weight: 750; font-stretch: 106%; padding-block: .7rem; }
.ct-flag { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.15rem; padding: 0 .2rem; border-radius: 4px; background: var(--bg-inverse); color: var(--text-inverse); font-size: .65rem; font-weight: 800; letter-spacing: .03em; }
.ct-rte-field { display: flex; flex-direction: column; flex: 1; }
.ct-rte-field > div { flex: 1; display: flex; flex-direction: column; }
.ct-rte-field .rte-area { max-height: none; min-height: 300px; flex: 1; }
.ct-rte-area { background: var(--bg-elev); }
.ct-status-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.ct-status-pick button { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .3rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; transition: all .14s; }
.ct-status-pick button .ph { font-size: 1.2rem; }
.ct-status-pick button:hover { border-color: var(--text-3); color: var(--text); }
.ct-status-pick button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.ct-slug { display: flex; align-items: center; gap: .3rem; }
.ct-slug .input { flex: 1; }
.ct-cover-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r); border: 1.5px dashed var(--line-strong); background: var(--bg-sunken); overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.ct-cover-drop:hover, .ct-cover-drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.ct-cover-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3; }
.ct-cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-cover-hint { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 650; color: var(--text-2); text-align: center; padding: .5rem; }
.ct-cover-hint .ph { font-size: 1.5rem; color: var(--brand-ink); }
.ct-cover-hint small { font-size: .74rem; font-weight: 500; color: var(--text-3); }
.ct-cover-drop.has-img .ct-cover-hint { opacity: 0; background: rgba(0, 0, 0, .55); color: #fff; border-radius: var(--r-sm); transition: opacity .15s; }
.ct-cover-drop.has-img .ct-cover-hint .ph, .ct-cover-drop.has-img .ct-cover-hint small { color: #fff; }
.ct-cover-drop.has-img:hover .ct-cover-hint { opacity: 1; }
.ct-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1rem !important; }
.ct-facts > div { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.ct-facts .ph { color: var(--brand-ink); font-size: 1.1rem; }
.ct-facts b { font-size: 1rem; }
.ct-facts span { font-size: .74rem; color: var(--text-3); }
.ct-art-preview { max-width: 760px; margin-inline: auto; }
.ct-art-sheet { display: flex; flex-direction: column; gap: .9rem; }
.ct-art-h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; font-stretch: 108%; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.ct-art-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 1100px) { .ct-editor { grid-template-columns: minmax(0, 1fr); } .ct-editor-side { overflow: visible; } }

/* Gestion des catégories */
.ct-cat-list { display: flex; flex-direction: column; gap: .4rem; }
.ct-cat-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-elev); }
.ct-cat-icon { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.1rem; flex-shrink: 0; }
.ct-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr)); gap: .3rem; }
.ct-icon-btn { height: 2.4rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); font-size: 1.15rem; display: grid; place-items: center; cursor: pointer; transition: all .12s; }
.ct-icon-btn:hover { border-color: var(--text-3); color: var(--text); }
.ct-icon-btn.is-active { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.ct-sel { max-width: 190px; }
.dt-toolbar .dt-search { flex-basis: 200px; }

/* ------------------------------------------------------------ Galerie (back-office) */
.ct-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; align-content: start; }
.ct-album { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.ct-album-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-sunken); overflow: hidden; }
.ct-album-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ct-album-cover > img.is-placeholder { filter: grayscale(1) brightness(.75); opacity: .55; }
.ct-album:hover .ct-album-cover > img { transform: scale(1.04); }
.ct-album-count { position: absolute; top: .6rem; left: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 99px; background: rgba(0, 0, 0, .66); color: #fff; font-size: .76rem; font-weight: 700; backdrop-filter: blur(4px); }
.ct-album-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: #fff; font-weight: 700; font-size: .88rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.ct-album-empty .ph { font-size: 1.8rem; }
.ct-album-strip { position: absolute; left: .6rem; bottom: .6rem; display: flex; }
.ct-album-strip img { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-elev); margin-right: -.55rem; box-shadow: var(--shadow-1); }
.ct-album-handle { position: absolute; top: .55rem; right: .55rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: grab; opacity: 0; transition: opacity .15s; }
.ct-album:hover .ct-album-handle { opacity: 1; }
.ct-album-body { padding: .8rem .9rem .7rem; }
.ct-photo-wall { columns: 5 180px; column-gap: .7rem; }
.ct-wall-item { break-inside: avoid; margin: 0 0 .7rem; border-radius: var(--r); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); }
.ct-wall-item img { width: 100%; display: block; cursor: zoom-in; }
.ct-wall-item figcaption { display: flex; flex-direction: column; gap: .1rem; padding: .45rem .6rem; font-size: .8rem; }

/* États vides illustrés */
.ct-empty-art { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 3rem 1.5rem; min-height: 100%; }
.ct-empty-stack { position: relative; width: 132px; height: 104px; margin-bottom: .6rem; }
.ct-empty-stack span { position: absolute; inset: 0; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--bg-elev); box-shadow: var(--shadow-2); }
.ct-empty-stack span:nth-child(1) { transform: rotate(-9deg) translate(-14px, 6px); background: var(--bg-sunken); }
.ct-empty-stack span:nth-child(2) { transform: rotate(7deg) translate(14px, 2px); background: var(--brand-soft); }
.ct-empty-stack span:nth-child(3) { display: grid; place-items: center; font-size: 2.4rem; color: var(--brand-ink); background: linear-gradient(160deg, var(--bg-elev), var(--bg-sunken)); }
@media (prefers-reduced-motion: no-preference) {
  .ct-empty-stack span:nth-child(3) { animation: ct-float 4s var(--ease) infinite alternate; }
}
@keyframes ct-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* Album : photos */
.ct-album-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.ct-album-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.ct-album-side { display: flex; flex-direction: column; gap: .9rem; overflow-y: auto; min-height: 0; }
.ct-album-side .panel { margin: 0; overflow: hidden; }
.ct-album-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem; }
.ct-album-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-bottom: 1px solid var(--line); flex-shrink: 0; min-height: 2.9rem; }
.ct-uploader { padding: .9rem; border-bottom: 1px solid var(--line); flex-shrink: 0; transition: background .15s; }
.ct-uploader.is-over { background: var(--brand-soft); }
.ct-uploader-zone { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--r); border: 1.5px dashed var(--line-strong); background: var(--bg-sunken); cursor: pointer; transition: border-color .15s, background .15s; }
.ct-uploader-zone:hover, .ct-uploader.is-over .ct-uploader-zone { border-color: var(--brand); background: var(--bg-elev); }
.ct-uploader-icon { width: 2.8rem; height: 2.8rem; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.5rem; flex-shrink: 0; }
.ct-spin { animation: ct-spin 1s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-upload-queue { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.ct-upload-item { position: relative; width: 56px; height: 56px; border-radius: var(--r-xs); overflow: hidden; background: var(--bg-sunken); }
.ct-upload-item img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.ct-upload-item.is-ok img { opacity: 1; }
.ct-upload-bar { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .5); overflow: hidden; }
.ct-upload-bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.ct-upload-item.is-ok .ct-upload-bar, .ct-upload-item.is-err .ct-upload-bar { display: none; }
.ct-upload-ok, .ct-upload-err { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.4rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ct-upload-ok { color: var(--brand); } .ct-upload-err { color: var(--danger); }
.ct-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.ct-ph { position: relative; margin: 0; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; cursor: grab; }
.ct-ph:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ct-ph.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ct-ph-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-sunken); cursor: zoom-in; overflow: hidden; }
.ct-ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-ph-cover { position: absolute; left: .45rem; bottom: .45rem; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 99px; background: var(--brand); color: #000; font-size: .72rem; font-weight: 800; }
.ct-ph-check { position: absolute; top: .45rem; left: .45rem; width: 1.55rem; height: 1.55rem; border-radius: 7px; border: 2px solid #fff; background: rgba(0, 0, 0, .35); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; color: transparent; font-size: .85rem; }
.ct-ph-check input { position: absolute; opacity: 0; pointer-events: none; }
.ct-ph:hover .ct-ph-check, .ct-ph.is-selected .ct-ph-check { opacity: 1; }
.ct-ph.is-selected .ct-ph-check { background: var(--brand); border-color: var(--brand); color: #000; }
.ct-ph-actions { position: absolute; top: .45rem; right: .45rem; display: flex; gap: .25rem; opacity: 0; transform: translateY(-4px); transition: all .15s; }
.ct-ph:hover .ct-ph-actions { opacity: 1; transform: none; }
.ct-ph-btn { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .62); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: .95rem; backdrop-filter: blur(4px); }
.ct-ph-btn:hover { background: #000; }
.ct-ph-btn.is-danger:hover { background: var(--danger); }
.ct-ph-btn:disabled { opacity: .9; color: var(--brand); cursor: default; }
.ct-ph figcaption { display: flex; align-items: center; gap: .3rem; padding: .3rem .35rem .3rem .25rem; }
.ct-ph-caption { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: .3rem .4rem; font: inherit; font-size: .8rem; color: var(--text); }
.ct-ph-caption:hover { border-color: var(--line); }
.ct-ph-caption:focus { outline: none; border-color: var(--brand); background: var(--bg-sunken); }
.ct-ph-en { flex-shrink: 0; font-size: .62rem; font-weight: 800; padding: .12rem .3rem; border-radius: 4px; background: var(--warning-soft); color: var(--warning); cursor: pointer; }
.ct-ph-en.is-ok { background: var(--brand-soft); color: var(--brand-ink); }
.ct-album-hero { position: relative; aspect-ratio: 16 / 10; background: #000; }
.ct-album-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.ct-album-hero > div { position: absolute; inset: auto 0 0 0; padding: .9rem 1rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); display: flex; flex-direction: column; }
.ct-album-hero b { font-size: 1.1rem; font-stretch: 106%; }
.ct-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; margin: .4rem 0 0; font-size: .82rem; }
.ct-dl dt { color: var(--text-3); }
.ct-dl dd { margin: 0; font-weight: 600; min-width: 0; }
.ct-switch-inline { margin-right: .3rem; }
.ct-photo-edit { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ct-photo-edit-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--bg-sunken); }
@media (max-width: 1100px) { .ct-album-layout { grid-template-columns: minmax(0, 1fr); } .ct-album-side { overflow: visible; } }
@media (max-width: 640px) { .ct-photo-edit { grid-template-columns: 1fr; } .ct-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dt-toolbar .ct-sel { max-width: 165px; }
.dt-toolbar .dt-search { flex-basis: 180px; min-width: 160px; }

/* ------------------------------------------------------------ FAQ (back-office) */
.ct-faq-board { display: flex; flex-direction: column; gap: 1rem; }
.ct-faq-group { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; }
.ct-faq-group.is-off { opacity: .7; }
.ct-faq-group-head { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.ct-faq-list { display: flex; flex-direction: column; min-height: 3rem; }
.ct-faq-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem .7rem .4rem; border-bottom: 1px solid var(--line); background: var(--bg-elev); transition: background .12s; }
.ct-faq-row:last-child { border-bottom: 0; }
.ct-faq-row:hover { background: var(--bg-hover); }
.ct-faq-row.is-off .ct-link { color: var(--text-3); }
.ct-faq-row .ct-link { font-size: .93rem; }
.ct-faq-drop { padding: .9rem; text-align: center; font-size: .8rem; color: var(--text-3); border: 1px dashed var(--line-strong); margin: .6rem; border-radius: var(--r); }
.ct-faq-votes { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ct-faq-votes span.oui, .ct-faq-votes span.non { display: inline-flex; align-items: center; gap: .2rem; }
.ct-faq-votes span.oui { color: var(--brand-ink); } .ct-faq-votes span.non { color: var(--danger); }
.ct-vote-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg-sunken); min-width: 120px; }
.ct-vote-bar.sm { min-width: 54px; width: 54px; height: 5px; }
.ct-vote-bar .oui { background: var(--brand); }
.ct-vote-bar .non { background: var(--danger); opacity: .85; }
.ct-row-alert { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.text-danger { color: var(--danger); }
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ct-cat-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-cat-chip { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: .84rem; font-weight: 650; cursor: pointer; }
.ct-cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-cat-chip .ph { color: var(--text-3); }
.ct-cat-chip:has(input:checked) { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.ct-cat-chip:has(input:checked) .ph { color: var(--brand); }
.ct-cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.ct-cat-card { display: flex; align-items: center; gap: .7rem; padding: .8rem .8rem .8rem .3rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.ct-cat-card.is-off { opacity: .65; }
.ct-cat-icon.lg { width: 2.7rem; height: 2.7rem; font-size: 1.35rem; border-radius: var(--r); }
.ct-faq-title { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ct-faq-row { padding-block: .6rem; }

/* =========================================================================
   Site public : FAQ, actualités, galerie, newsletter
   ========================================================================= */
.ct-pub-hero { position: relative; padding-block: clamp(2.6rem, 1.4rem + 4.5vw, 5rem) clamp(1.8rem, 1rem + 2.5vw, 3rem); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.ct-pub-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); opacity: .55; z-index: -1; pointer-events: none; }
.ct-pub-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .45; z-index: -2; pointer-events: none; }
.ct-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 99px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); font-size: .8rem; font-weight: 750; letter-spacing: .02em; }
.ct-hero-title { margin: 0; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); }
.ct-linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ publique */
.ct-faq-search { position: relative; width: 100%; max-width: 640px; margin-top: .4rem; }
.ct-faq-search > .ph { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--text-3); pointer-events: none; }
.ct-faq-search input { width: 100%; height: 3.6rem; padding: 0 3rem 0 3.2rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); font: inherit; font-size: 1.05rem; box-shadow: var(--shadow-2); transition: border-color .15s, box-shadow .15s; }
.ct-faq-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring), var(--shadow-2); }
.ct-faq-search input::-webkit-search-cancel-button { display: none; }
.ct-faq-search-clear { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--bg-sunken); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.ct-faq-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.ct-faq-nav { position: sticky; top: 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.ct-faq-tab { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .7rem .85rem; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: .93rem; font-weight: 650; text-align: left; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ct-faq-tab .ph { font-size: 1.2rem; color: var(--text-3); }
.ct-faq-tab span { flex: 1; min-width: 0; }
.ct-faq-tab b { font-size: .74rem; font-weight: 800; padding: .08rem .45rem; border-radius: 99px; background: var(--bg-sunken); color: var(--text-3); }
.ct-faq-tab:hover { background: var(--bg-elev); color: var(--text); }
.ct-faq-tab.is-active { background: var(--bg-elev); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-1); }
.ct-faq-tab.is-active .ph { color: var(--brand-ink); }
.ct-faq-tab.is-active b { background: var(--brand); color: #000; }
.ct-faq-main { display: flex; flex-direction: column; gap: 2.2rem; min-width: 0; }
.ct-faq-section-title { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 750; font-stretch: 106%; margin: 0 0 .8rem; }
.ct-faq-section-icon { width: 2.2rem; height: 2.2rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.15rem; }
.ct-faq-acc { display: flex; flex-direction: column; gap: .6rem; }
.ct-faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); transition: border-color .2s, box-shadow .2s, transform .2s; scroll-margin-top: 90px; }
.ct-faq-item:hover { border-color: var(--line-strong); }
.ct-faq-item.is-open { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow-2); }
.ct-faq-item[hidden] { display: none; }
.ct-faq-q-wrap { margin: 0; font: inherit; }
.ct-faq-q { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1.05rem 1.2rem; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.02rem; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.4; }
.ct-faq-q:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-lg); }
.ct-faq-plus { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-sunken); color: var(--brand-ink); transition: transform .3s var(--ease), background .2s, color .2s; }
.ct-faq-item.is-open .ct-faq-plus { transform: rotate(135deg); background: var(--brand); color: #000; }
.ct-faq-a-inner { padding: 0 1.2rem 1.1rem; }
.ct-faq-answer { color: var(--text-2); line-height: 1.7; max-width: 72ch; }
@media (prefers-reduced-motion: no-preference) {
  .ct-faq-item.is-open .ct-faq-answer { animation: ct-fade-up .35s var(--ease) both; }
}
@keyframes ct-fade-up { from { opacity: 0; transform: translateY(6px); } }
.ct-faq-feedback { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.ct-faq-ask { font-size: .86rem; font-weight: 650; color: var(--text-2); }
.ct-faq-thanks { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 650; color: var(--brand-ink); }
.ct-faq-votes-pub { display: flex; gap: .4rem; }
.ct-vote { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text-2); font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; transition: all .15s var(--ease); }
.ct-vote .ph { font-size: 1.05rem; }
.ct-vote b { font-size: .76rem; padding: 0 .38rem; border-radius: 99px; background: var(--bg-sunken); font-variant-numeric: tabular-nums; }
.ct-vote:hover { transform: translateY(-1px); border-color: var(--text-3); color: var(--text); }
.ct-vote:active { transform: scale(.96); }
.ct-vote.is-up.is-on { background: var(--brand); border-color: var(--brand); color: #000; }
.ct-vote.is-up.is-on b { background: rgba(0, 0, 0, .15); }
.ct-vote.is-down.is-on { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.ct-vote:disabled { opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .ct-vote.is-on .ph { animation: ct-pop .35s var(--ease); } }
@keyframes ct-pop { 50% { transform: scale(1.35) rotate(-8deg); } }
.ct-faq-score { color: var(--text-3); margin-left: auto; }
.ct-faq-none { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.ct-faq-cta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.4rem 1.5rem; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-elev); }
.ct-faq-cta-icon { width: 3.2rem; height: 3.2rem; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-inverse); color: var(--brand); font-size: 1.6rem; flex-shrink: 0; }
.ct-faq-acc.is-compact .ct-faq-q { padding: .9rem 1rem; font-size: .97rem; }
@media (max-width: 900px) {
  .ct-faq-layout { grid-template-columns: minmax(0, 1fr); }
  .ct-faq-nav { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: .35rem; padding: .6rem 0; margin-inline: -16px; padding-inline: 16px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ct-faq-nav::-webkit-scrollbar { display: none; }
  .ct-faq-tab { width: auto; flex-shrink: 0; padding: .5rem .8rem; border-color: var(--line); background: var(--bg-elev); white-space: nowrap; }
  .ct-faq-tab span { flex: none; }
  .ct-faq-score { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------------ Newsletter (back-office) */
.ct-nl-preview-body { padding: 0 !important; background: var(--bg-sunken); display: flex; justify-content: center; }
.ct-nl-frame { width: 100%; height: min(70dvh, 720px); border: 0; background: #F5F6F3; transition: width .3s var(--ease); }
.ct-nl-frame.is-mobile { width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ct-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; min-height: 100%; display: flex; flex-direction: column; }
.ct-fieldset > .stack { flex: 1; }
.ct-fieldset:disabled .rte-bar { display: none; }
.ct-fieldset:disabled .rte-area { pointer-events: none; background: var(--bg-sunken); }
.ct-recip { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--bg-sunken); border: 1px solid var(--line); }
.ct-recip-icon { width: 3rem; height: 3rem; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.4rem; flex-shrink: 0; }
.ct-recip-icon.is-info { background: var(--info-soft); color: var(--info); }
.ct-recip-count { display: flex; align-items: center; gap: .5rem; font-size: 2rem; font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; }
.ct-recip-count .ph { font-size: 1.1rem; color: var(--text-3); }
.ct-steps ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; color: var(--text-2); }
.ct-steps b { color: var(--text); }
.ct-send-count { font-size: 2.4rem; font-weight: 800; font-stretch: 112%; line-height: 1; }
.ct-send .ct-send-date { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--text-inverse) 30%, transparent); color-scheme: dark; }
[data-theme="dark"] .ct-send .ct-send-date { color-scheme: light; }
.ct-nl-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.ct-nl-kpi { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-elev); }
.ct-nl-kpi span { font-size: .76rem; color: var(--text-3); font-weight: 650; }
.ct-nl-kpi b { font-size: 1.6rem; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ct-nl-kpi.is-accent { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.ct-nl-kpi.is-accent span { color: color-mix(in srgb, var(--text-inverse) 70%, transparent); }
.ct-nl-kpi.is-accent b { color: var(--brand); }
.ct-nl-progress { padding: .9rem 1rem; border-radius: var(--r); background: var(--bg-sunken); border: 1px solid var(--line); }
@media (max-width: 760px) { .ct-nl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Newsletter (site public) */
.ct-nl-badge { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; padding: .25rem .65rem; border-radius: 99px; background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); font-size: .78rem; font-weight: 750; }
.ct-nl-error { color: #FF8A80; }
.ct-nl-more { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: 0; border: 0; background: none; color: inherit; opacity: .8; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; }
.ct-nl-more:hover { opacity: 1; }
.ct-nl-doms { display: flex; flex-wrap: wrap; gap: .35rem; padding-top: .2rem; }
.ct-nl-dom { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--text-inverse) 25%, transparent); font-size: .78rem; font-weight: 650; cursor: pointer; transition: all .15s; }
.ct-nl-dom input { position: absolute; opacity: 0; pointer-events: none; }
.ct-nl-dom:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #000; }
.ct-nl-dom:has(input:focus-visible) { box-shadow: var(--ring); }
.ct-nl-done { display: flex; align-items: center; gap: .9rem; }
.ct-nl-done-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #000; font-size: 1.4rem; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .ct-nl-done-icon { animation: ct-pop .5s var(--ease); } }
@media (max-width: 760px) { .newsletter.ct-nl { grid-template-columns: minmax(0, 1fr); } }
.ct-pref-card { width: 100%; max-width: 640px; padding: 1.3rem 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); text-align: left; }
.ct-pref-doms { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-pref-dom { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg); font-size: .84rem; font-weight: 650; cursor: pointer; transition: all .15s; }
.ct-pref-dom input { position: absolute; opacity: 0; pointer-events: none; }
.ct-pref-dom .ph { color: var(--text-3); }
.ct-pref-dom:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #000; }
.ct-pref-dom:has(input:checked) .ph { color: #000; }

/* ------------------------------------------------------------ Domaines & métiers */
.ct-tree { grid-template-columns: 360px minmax(0, 1fr); }
.ct-tree-left, .ct-tree-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.ct-tree-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ct-tree-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: .5rem; }
.ct-tree-foot { padding: .55rem .9rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.ct-dom-list { display: flex; flex-direction: column; gap: .3rem; }
.ct-dom { --dc: var(--brand); position: relative; display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem .6rem .3rem; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.ct-dom:hover { background: var(--bg-hover); }
.ct-dom.is-sel { background: var(--bg-elev); border-color: color-mix(in srgb, var(--dc) 55%, var(--line)); box-shadow: var(--shadow-1), inset 3px 0 0 var(--dc); }
.ct-dom.is-off .ct-dom-name { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ct-dom-handle, .ct-met-handle { color: var(--text-3); cursor: grab; padding: .2rem; font-size: 1rem; opacity: .6; }
.ct-dom:hover .ct-dom-handle, .ct-met:hover .ct-met-handle { opacity: 1; }
.ct-dom-icon { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; font-size: 1.25rem; color: var(--dc, var(--brand)); background: color-mix(in srgb, var(--dc, var(--brand)) 14%, transparent); }
.ct-dom-name { display: block; font-weight: 700; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-dom-meta { display: block; font-size: .74rem; color: var(--text-3); margin-top: .1rem; }
.ct-dom-bar { display: block; height: 3px; border-radius: 99px; background: var(--bg-sunken); margin-top: .35rem; overflow: hidden; }
.ct-dom-bar i { display: block; height: 100%; background: var(--dc); border-radius: inherit; transition: width .6s var(--ease); }
.ct-dom-off { color: var(--text-3); }
.ct-dom-drop { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden; }
.ct-dom-drop > * { display: none !important; }
body.ct-drag-met .ct-dom-drop { pointer-events: auto; border: 2px dashed transparent; }
body.ct-drag-met .ct-dom-drop:hover { border-color: var(--dc); background: color-mix(in srgb, var(--dc) 12%, transparent); }
body.ct-drag-met .ct-dom { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.ct-drop-ghost { display: none !important; }
.ct-dom-detail { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; }
.ct-dom-hero { --dc: var(--brand); position: relative; min-height: 150px; display: flex; align-items: flex-end; background: #000; color: #fff; flex-shrink: 0; overflow: hidden; }
.ct-dom-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ct-dom-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--dc) 70%, #000) 0%, rgba(0, 0, 0, .35) 60%, transparent); mix-blend-mode: multiply; }
.ct-dom-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; width: 100%; flex-wrap: wrap; }
.ct-dom-hero-icon { width: 3.2rem; height: 3.2rem; border-radius: var(--r); display: grid; place-items: center; font-size: 1.7rem; background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); }
.ct-dom-hero h2 { margin: 0; font-size: 1.45rem; font-weight: 800; font-stretch: 110%; line-height: 1.15; }
.ct-hero-btn { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.ct-hero-btn:hover { --btn-bg: rgba(255, 255, 255, .26); }
.ct-hero-switch { color: #fff; padding: .25rem .6rem .25rem .3rem; border-radius: 99px; background: rgba(0, 0, 0, .35); }
.ct-dom-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ct-dom-stat { display: flex; flex-direction: column; padding: .75rem 1rem; border-right: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: background .15s; }
.ct-dom-stat:last-child { border-right: 0; }
a.ct-dom-stat:hover { background: var(--bg-hover); }
.ct-dom-stat b { font-size: 1.35rem; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.ct-dom-stat span { font-size: .74rem; color: var(--text-3); }
.ct-dom-desc { margin: 0; padding: .8rem 1.1rem 0; }
.ct-met-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem .5rem; flex-wrap: wrap; }
.ct-met-list { display: flex; flex-direction: column; padding: 0 .7rem 1rem; gap: .25rem; min-height: 3rem; }
.ct-met { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem .5rem .2rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-elev); transition: background .12s, border-color .12s; }
.ct-met:hover { background: var(--bg-hover); border-color: var(--line-strong); }
.ct-met.is-off { opacity: .6; }
.ct-met-name { font-weight: 650; font-size: .9rem; }
.ct-met-count { display: inline-flex; align-items: center; gap: .25rem; min-width: 3.2rem; font-size: .8rem; color: var(--text-3); }
.ct-met-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.ct-met-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; color: var(--text-3); text-align: center; }
.ct-met-empty > .ph { font-size: 2rem; }
.ct-cols { flex: 1; min-height: 0; display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .4rem; }
.ct-col { --dc: var(--brand); flex: 0 0 250px; display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden; border-top: 3px solid var(--dc); }
.ct-col.is-off { opacity: .65; }
.ct-col-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .75rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.ct-col-head:hover { background: var(--bg-hover); }
.ct-col-list { flex: 1; min-height: 3rem; overflow-y: auto; padding: .45rem; display: flex; flex-direction: column; gap: .3rem; }
.ct-col-item { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem .45rem .2rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); font-size: .84rem; font-weight: 600; cursor: grab; }
.ct-col-item.is-off { opacity: .55; }
.ct-col-item:hover { border-color: var(--line-strong); }
.ct-col-add { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: 0 .45rem .45rem; padding: .45rem; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); background: transparent; color: var(--text-2); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; }
.ct-col-add:hover { border-color: var(--brand); color: var(--brand-ink); }
.ct-th-sort { display: inline-flex; align-items: center; gap: .25rem; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.ct-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-swatch { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--bg-elev); background: var(--sw); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform .12s; position: relative; }
.ct-swatch:hover { transform: scale(1.1); }
.ct-swatch.is-active { box-shadow: 0 0 0 2px var(--text); }
.ct-swatch-custom { display: grid; place-items: center; background: conic-gradient(#5CAC30, #1D5FD0, #6D3FD6, #C62828, #F47B20, #5CAC30); color: #fff; overflow: hidden; }
.ct-swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-dom-preview { --dc: var(--brand); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev); margin-top: .5rem; box-shadow: var(--shadow-2); }
.ct-dom-preview-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--dc) 75%, #000), #000); }
.ct-dom-preview-img img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.ct-dom-preview-icon { position: absolute; left: .8rem; bottom: .8rem; width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--dc); color: #fff; font-size: 1.35rem; box-shadow: var(--shadow-2); }
.ct-dom-preview-body { padding: .8rem .9rem; display: flex; flex-direction: column; }
.ct-dom-chip { --dc: var(--brand); display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; padding: .6rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--dc); background: color-mix(in srgb, var(--dc) 12%, var(--bg-elev)); font-weight: 650; font-size: .9rem; }
.ct-dom-chip .ph { color: var(--dc); font-size: 1.1rem; }
@media (max-width: 1100px) { .ct-tree { grid-template-columns: minmax(0, 1fr); } .ct-tree-left { max-height: 360px; } .ct-dom-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-tree-tools { flex-wrap: nowrap; }
.ct-tree-tools .select { width: auto; }
@media (max-width: 640px) { .ct-tree-tools { flex-wrap: wrap; } }

/* Actualités (site public) */
.ct-news-search { position: relative; width: min(360px, 100%); }
.ct-news-search .ph { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 1.15rem; }
.ct-news-search input { width: 100%; height: 3rem; padding: 0 1rem 0 2.8rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); font: inherit; }
.ct-news-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.ct-news-cats { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.ct-news-cats::-webkit-scrollbar { display: none; }
.ct-news-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); font-size: .88rem; font-weight: 650; white-space: nowrap; text-decoration: none !important; transition: all .15s; }
.ct-news-chip b { font-size: .72rem; padding: .05rem .4rem; border-radius: 99px; background: var(--bg-sunken); color: var(--text-3); }
.ct-news-chip:hover { border-color: var(--line-strong); color: var(--text); }
.ct-news-chip.is-active { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.ct-news-chip.is-active b { background: var(--brand); color: #000; }
.ct-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.ct-news-card { display: flex; flex-direction: column; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden; color: var(--text); text-decoration: none !important; }
.ct-news-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunken); }
.ct-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ct-news-card:hover .ct-news-thumb img { transform: scale(1.05); }
.ct-news-cat { position: absolute; left: .8rem; top: .8rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .76rem; font-weight: 700; backdrop-filter: blur(6px); }
.ct-news-cat.static { position: static; background: var(--brand-soft); color: var(--brand-ink); backdrop-filter: none; }
.ct-news-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.ct-news-meta { display: flex; gap: .4rem; font-size: .8rem; color: var(--text-3); flex-wrap: wrap; }
.ct-news-body h3 { margin: 0; font-size: 1.15rem; font-weight: 750; font-stretch: 105%; line-height: 1.3; }
.ct-news-body p { margin: 0; font-size: .9rem; color: var(--text-2); }
.ct-news-more { margin-top: auto; padding-top: .3rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 700; color: var(--brand-ink); }
.ct-news-more .ph { transition: transform .2s var(--ease); }
.ct-news-card:hover .ct-news-more .ph { transform: translateX(4px); }
.ct-news-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); text-decoration: none !important; transition: box-shadow .25s, transform .25s; }
.ct-news-hero:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ct-news-hero-img { position: relative; min-height: 320px; overflow: hidden; }
.ct-news-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ct-news-hero:hover .ct-news-hero-img img { transform: scale(1.04); }
.ct-news-hero-body { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.ct-news-hero-body h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 800; font-stretch: 108%; line-height: 1.15; letter-spacing: -.01em; }
.ct-badge-une { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 99px; background: var(--brand); color: #000; font-size: .76rem; font-weight: 800; }
.ct-news-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border-radius: var(--r-xl); background: var(--bg-inverse); color: var(--text-inverse); }
.ct-btn-inv { --btn-fg: var(--text-inverse); --btn-bd: color-mix(in srgb, var(--text-inverse) 35%, transparent); --btn-bg: transparent; }
@media (max-width: 860px) { .ct-news-hero { grid-template-columns: minmax(0, 1fr); } .ct-news-hero-img { min-height: 220px; } }

/* Article */
.ct-reading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.ct-reading span { display: block; height: 100%; background: var(--brand); box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 60%, transparent); transition: width .1s linear; }
.ct-crumb { display: flex; align-items: center; gap: .5rem; color: var(--text-3); }
.ct-crumb a { color: var(--text-2); font-weight: 650; }
.ct-crumb a:hover { color: var(--brand-ink); }
.ct-art-title { margin: 0; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.08; }
.ct-art-byline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.ct-art-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #000; font-size: 1.2rem; flex-shrink: 0; }
.ct-art-avatar img, .ct-art-avatar svg { width: 100%; height: 100%; object-fit: contain; }
.ct-art-cover { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-sunken); box-shadow: var(--shadow-2); }
.ct-art-cover img { width: 100%; height: 100%; object-fit: cover; }
.ct-prose { max-width: none; font-size: 1.06rem; }
.ct-prose h2 { font-size: 1.5rem; } .ct-prose h3 { font-size: 1.2rem; }
.ct-prose a { color: var(--brand-ink); font-weight: 650; }
.ct-share { display: flex; gap: .35rem; flex-wrap: wrap; }
.ct-share-btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); font-size: 1.15rem; cursor: pointer; transition: all .15s var(--ease); text-decoration: none !important; }
.ct-share-btn:hover { background: var(--brand); border-color: var(--brand); color: #000; transform: translateY(-2px); }
.ct-art-end { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ct-art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ct-art-nav-item { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.ct-art-nav-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.ct-art-nav-item.is-next { text-align: right; }
@media (max-width: 640px) { .ct-art-nav { grid-template-columns: 1fr; } .ct-art-nav-item.is-next { text-align: left; } }

/* Galerie (site public) */
.ct-gal-counters { display: flex; gap: .6rem; }
.ct-gal-counters > div { display: flex; flex-direction: column; align-items: center; min-width: 6rem; padding: .7rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); }
.ct-gal-counters b { font-size: 1.8rem; font-weight: 800; font-stretch: 112%; line-height: 1; }
.ct-gal-counters span { font-size: .78rem; color: var(--text-3); }
.ct-gal-sub { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ct-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 240px; gap: 1rem; }
.ct-albums.is-small { grid-auto-rows: 200px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ct-album-pub { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; background: #000; color: #fff; text-decoration: none !important; isolation: isolate; }
.ct-album-pub.is-feature { grid-column: span 2; grid-row: span 2; }
.ct-album-pub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .8s var(--ease), opacity .3s; }
.ct-album-pub:hover img { transform: scale(1.06); opacity: 1; }
.ct-album-pub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .85)); z-index: 1; }
.ct-album-pub-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.ct-album-pub-title { font-size: 1.15rem; font-weight: 750; font-stretch: 106%; line-height: 1.2; }
.ct-album-pub.is-feature .ct-album-pub-title { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.ct-album-pub-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 99px; background: var(--brand); color: #000; font-size: .74rem; font-weight: 750; }
.ct-album-pub-go { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transform: scale(.8); opacity: 0; transition: all .25s var(--ease); }
.ct-album-pub:hover .ct-album-pub-go { transform: none; opacity: 1; }
.ct-mosaic { columns: 4 240px; column-gap: .8rem; }
.ct-mosaic.is-album { columns: 3 280px; }
.ct-mosaic-item { position: relative; display: block; break-inside: avoid; margin-bottom: .8rem; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunken); cursor: zoom-in; }
.ct-mosaic-item img { width: 100%; display: block; transition: transform .6s var(--ease), filter .3s; }
.ct-mosaic-item:hover img { transform: scale(1.04); }
.ct-mosaic-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.6rem .8rem .7rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .25s var(--ease); }
.ct-mosaic-item:hover .ct-mosaic-cap, .ct-mosaic-item:focus-visible .ct-mosaic-cap { opacity: 1; transform: none; }
.ct-gal-empty { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 1rem; border-radius: var(--r-xl); border: 1px dashed var(--line-strong); background: radial-gradient(ellipse at 50% 0%, var(--brand-soft), transparent 70%); }
.ct-gal-empty-art { display: flex; gap: .7rem; margin-bottom: .6rem; }
.ct-gal-empty-art span { width: 4rem; height: 5rem; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 1.6rem; color: var(--brand-ink); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ct-gal-empty-art span:nth-child(odd) { transform: translateY(10px) rotate(-4deg); }
.ct-gal-empty-art span:nth-child(even) { transform: rotate(4deg); }
@media (prefers-reduced-motion: no-preference) {
  .ct-gal-empty-art span { animation: ct-float 3.6s var(--ease) infinite alternate; }
  .ct-gal-empty-art span:nth-child(2n) { animation-delay: .6s; }
}
.ct-gal-hero { position: relative; overflow: hidden; background: #000; color: #fff; padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) clamp(1.8rem, 1rem + 2.5vw, 3rem); }
.ct-gal-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(1.1); }
.ct-gal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .85)); }
.ct-gal-hero-inner { position: relative; z-index: 2; }
.ct-gal-hero .lead { color: rgba(255, 255, 255, .82); }
.ct-gal-hero .ct-crumb, .ct-gal-hero .ct-crumb a { color: rgba(255, 255, 255, .8); }
.ct-gal-hero .ct-news-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 650; }
.ct-gal-hero .ct-news-chip.is-active { background: var(--brand); border-color: var(--brand); color: #000; }
@media (max-width: 640px) { .ct-album-pub.is-feature { grid-column: auto; grid-row: span 1; } .ct-albums { grid-auto-rows: 210px; } }

/* Cartes d'annonces publiques (partiel front/partials/annonce-cartes) */
.ct-ann-pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.ct-ann-pub { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.ct-ann-pub:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ct-ann-pub::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--b-fg, var(--brand)); z-index: 1; }
.ct-ann-pub-img { aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-sunken); }
.ct-ann-pub-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-ann-pub-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.2rem 1.4rem; flex: 1; }
.ct-ann-pub-body h3 { margin: 0; font-size: 1.12rem; font-weight: 750; font-stretch: 105%; line-height: 1.3; }
.ct-ann-pub-body p { margin: 0; font-size: .92rem; color: var(--text-2); }

/* Écrans tactiles : les actions révélées au survol restent visibles */
@media (hover: none) {
  .ct-ph-actions, .ct-ph-check, .ct-album-handle, .ct-album-pub-go { opacity: 1; transform: none; }
  .ct-mosaic-cap { opacity: 1; transform: none; }
  .ct-cover-drop.has-img .ct-cover-hint { opacity: .9; }
}
@media (max-width: 640px) {
  .ct-uploader-zone .btn { display: none; }
  .ct-uploader-zone { padding: .75rem; }
}
