/* Castra Time V2 — accueil (base Révision 4). Mobile d'abord ; tablette ≥ 768px ; ordinateur ≥ 1024px. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/source-serif-4-latin-500-normal.woff2) format("woff2"); }
/* Polices de secours ajustées pour limiter les décalages pendant le chargement */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 98%; descent-override: 27%; line-gap-override: 0%; }

body.ctv2 {
  --navy: #061018; --navy-2: #07121C; --ink: #0A1622; --ink-2: #2B3540; --muted: #5A6470; --line: #ECEDEF;
  --gold: #D5AD71; --gold-hi: #E2BE86; --gold-ink: #8A6731; --gold-ico: #9C7536; --cream: #FBF5EC; --tile: #F6F5F5; --ivory: #F1EBE1;
  --red: #D24545; --red-ink: #B42828;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --gutter: 16px; --nav-h: 64px;
  margin: 0; padding: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
body.ctv2 *, body.ctv2 *::before, body.ctv2 *::after { box-sizing: border-box; }
/* 0.5.2 — fond clair garanti même si un autre CSS (ancien thème) impose un fond sombre à body */
html body.ctv2 { background-color: #FFFFFF !important; color: var(--ink) !important; }
:where(body.ctv2) a { color: inherit; text-decoration: none; }
:where(body.ctv2) img { max-width: 100%; height: auto; display: block; }
:where(body.ctv2) ul { list-style: none; margin: 0; padding: 0; }
:where(body.ctv2) :is(h1, h2, h3, p, figure, blockquote) { margin: 0; }
:where(body.ctv2) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* Lien d'évitement du thème (Blocksy) : remplacé par celui de V2 ; textes réservés aux lecteurs d'écran */
body.ctv2 .skip-link { display: none !important; }
body.ctv2 .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ctv2 :focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; border-radius: 4px; }
body.ctv2.ctv2-locked { overflow: hidden; }

.ctv2-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ctv2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctv2-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--navy); color: #fff !important; padding: 10px 14px; border-radius: 6px; }
.ctv2-skip:focus { top: 8px; }
.ctv2-d, .ctv2-d-flex { display: none !important; }
.ctv2-ico { flex-shrink: 0; }

/* Boutons */
.ctv2-btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; background: var(--gold); color: var(--ink) !important; font-size: 16px; font-weight: 600; border-radius: 6px; transition: background .15s; }
.ctv2-btn-gold:hover { background: var(--gold-hi); }
.ctv2-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--ink); border-radius: 8px; }
.ctv2-iconbtn:hover { color: var(--gold-ink); }
.ctv2-cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

/* Titres de section */
.ctv2-section { padding: 28px 0 8px; }
#collections, #ctv2-main { scroll-margin-top: 76px; }
.ctv2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ctv2-head > div { min-width: 0; }
.ctv2-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px !important; }
.ctv2-h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--ink); }
.ctv2-headlink { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink); }
.ctv2-headlink .ctv2-ico { color: var(--gold-ink); }
.ctv2-headlink:hover { color: var(--gold-ink); }

/* 1. Barre d'annonce */
.ctv2-topbar { background: var(--navy); color: #E4E8EC; font-size: 12px; line-height: 1.3; }
.ctv2-topbar__inner { padding: 8px 8px; }
.ctv2-topbar__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ctv2-topbar__list li { display: flex; align-items: center; gap: 7px; padding: 2px 6px; min-width: 0; }
.ctv2-topbar__list li + li { border-left: 1px solid #22303C; }
.ctv2-topbar__list .ctv2-ico { color: var(--gold); }
.ctv2-topbar__phone { display: none; }

/* 2. En-tête */
.ctv2-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.ctv2-header__inner { height: 68px; padding: 0 6px; display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; }
.ctv2-logo { justify-self: center; display: flex; }
.ctv2-logo img { width: 56px; height: 56px; }
.ctv2-nav { display: none; }
.ctv2-header__actions { display: flex; justify-content: flex-end; align-items: center; }

/* Menu mobile et recherche */
.ctv2-drawer, .ctv2-search { position: fixed; inset: 0; z-index: 200; }
.ctv2-drawer[hidden], .ctv2-search[hidden] { display: none; }
.ctv2-drawer__backdrop, .ctv2-search__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 24, .55); }
.ctv2-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; display: flex; flex-direction: column; overflow-y: auto; padding: 8px 16px 24px; animation: ctv2-slide .2s ease-out; }
@keyframes ctv2-slide { from { transform: translateX(-100%); } to { transform: none; } }
.ctv2-drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ctv2-drawer__head img { width: 48px; height: 48px; }
.ctv2-drawer__links a { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.ctv2-drawer__links a[aria-current] { color: var(--gold-ink); }
.ctv2-drawer__contact { margin-top: auto; padding-top: 20px; display: grid; gap: 4px; }
.ctv2-drawer__contact a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.ctv2-drawer__contact .ctv2-ico { color: var(--gold-ink); }
.ctv2-search__panel { position: relative; background: #fff; padding: 14px var(--gutter); display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 30px rgba(6,16,24,.18); animation: ctv2-drop .18s ease-out; }
@keyframes ctv2-drop { from { transform: translateY(-100%); } to { transform: none; } }
.ctv2-search__form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1.5px solid #D9DCE0; border-radius: 8px; padding: 0 6px 0 12px; height: 52px; }
.ctv2-search__form:focus-within { border-color: var(--gold); }
.ctv2-search__form .ctv2-ico { color: var(--muted); }
.ctv2-search__form input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; font: 16px var(--sans); color: var(--ink); background: transparent; height: 100%; padding: 0; -webkit-appearance: none; }
.ctv2-search__submit { height: 40px; padding: 0 14px; border-radius: 6px; background: var(--navy) !important; color: #fff !important; font-size: 14px; font-weight: 600; }

/* 3. Héros — mobile */
.ctv2-hero { position: relative; background: var(--navy-2); color: #fff; overflow: hidden; }
.ctv2-hero picture { display: block; }
.ctv2-hero__img { width: 100%; height: 540px !important; object-fit: cover; object-position: 50% 28%; }
.ctv2-hero__shade { position: absolute; inset: 0; pointer-events: none; height: 540px;
  background: linear-gradient(180deg, rgba(7,18,28,.75) 0, rgba(7,18,28,0) 120px), linear-gradient(180deg, rgba(7,18,28,0) 300px, rgba(7,18,28,.85) 432px, #07121C 540px); }
.ctv2-hero__content > * { position: relative; z-index: 1; }
.ctv2-hero__content > .ctv2-hero__eyebrow { position: absolute; z-index: 1; top: 22px; left: 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; color: var(--gold); }
.ctv2-hero__content { position: static; margin-top: -150px; padding: 0 20px 52px; display: flex; flex-direction: column; gap: 14px; }
.ctv2-hero__title { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.06; text-shadow: 0 2px 12px rgba(0,0,0,.5); color: #fff; }
.ctv2-hero__title span { color: var(--gold); }
.ctv2-hero__text { font-size: 16px; line-height: 1.55; color: #DCE1E6; }
.ctv2-hero__cta { width: 100%; margin-top: 4px; }
.ctv2-hero__trust { display: none; }

/* 4. Confiance — mobile : feuille blanche 2 × 2 */
.ctv2-trust { position: relative; margin-top: -24px; background: #fff; border-radius: 22px 22px 0 0; }
.ctv2-trust__grid { padding-top: 22px; padding-bottom: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.ctv2-trust__grid li, .ctv2-trust__link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ctv2-trust__link { min-height: 44px; }
.ctv2-trust__link:hover strong { color: var(--gold-ink); }
.ctv2-trust__grid li > span:last-child, .ctv2-trust__link > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctv2-trust__grid strong { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ctv2-trust__grid li span span { font-size: 12px; color: var(--muted); }
.ctv2-roundico { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--gold-ico); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ctv2-roundico .ctv2-ico { width: 21px; height: 21px; }

/* 5. Collections — mobile : défilement horizontal */
.ctv2-collections__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; }
.ctv2-collections__track::-webkit-scrollbar { display: none; }
.ctv2-col { position: relative; flex: 0 0 160px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: #0B151E; scroll-snap-align: start; isolation: isolate; }
.ctv2-col__img { width: 100%; height: auto !important; aspect-ratio: 384 / 326; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.ctv2-col:hover .ctv2-col__img { transform: scale(1.04); }
.ctv2-col__shade { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 384 / 326; z-index: -1; background: linear-gradient(180deg, rgba(11,21,30,0) 55%, rgba(11,21,30,.85) 88%, #0B151E 100%); }
.ctv2-col__body { position: relative; margin-top: -26px; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 2px; color: #fff; flex: 1; }
.ctv2-col__eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ctv2-col__name { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; }
.ctv2-col__text { display: none; font-size: 14px; color: #E4E8EC; }
.ctv2-col__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #E4E8EC; margin-top: 4px; }
.ctv2-col__btn .ctv2-ico { color: var(--gold); width: 14px; height: 14px; }

/* 6. Produits — mobile : exactement 2 par ligne, 4 cartes (comme R4) */
.ctv2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
/* Sous-grille : image, nom, prix et bouton s'alignent sur toute la ligne, quelle que soit la longueur du nom */
.ctv2-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; min-width: 0; }
@supports not (grid-template-rows: subgrid) { .ctv2-card { display: flex; flex-direction: column; gap: 8px; } }
.ctv2-card--desktop-only { display: none; }
.ctv2-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--tile); border-radius: 8px; overflow: hidden; }
.ctv2-card__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.ctv2-card:hover .ctv2-card__img { transform: scale(1.04); }
.ctv2-card__title { font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); align-self: start; }
.ctv2-card__title a { display: block; min-height: 44px; }
.ctv2-card__name { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
.ctv2-card__title a:hover { color: var(--gold-ink); }
.ctv2-card__meta { display: flex; flex-direction: column; gap: 4px; align-self: start; }
.ctv2-card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.ctv2-card__rating .ctv2-ico { color: var(--gold); fill: var(--gold); }
.ctv2-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ctv2-price__now { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ctv2-price__was { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; text-decoration-thickness: 1px; }
.ctv2-card__price .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctv2-card__stock { font-size: 12px; font-weight: 600; color: var(--muted); }
.ctv2-btn-cart { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--red); color: var(--red-ink) !important; background: #fff; font-size: 14px; font-weight: 600; border-radius: 6px; padding: 0 10px; text-align: center; line-height: 1.2; transition: background .15s, gap .15s; }
.ctv2-btn-cart:hover { background: #FDF0F0; gap: 10px; }
.ctv2-btn-cart > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctv2-btn-cart .ctv2-ico { flex-shrink: 0; }

/* 7. Bannière */
.ctv2-promo { position: relative; margin-top: 20px; background: #000204; color: #fff; overflow: hidden; isolation: isolate; }
.ctv2-promo__visual { position: absolute; top: 0; bottom: 0; right: 0; width: 170px; z-index: -1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 55% 50%, #2E2418 0%, #120E0A 48%, rgba(0,2,4,0) 78%); }
.ctv2-promo__visual img { width: 100%; height: auto !important; max-height: 92%; object-fit: contain; opacity: .9; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.ctv2-promo__inner { padding-top: 30px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 24px; }
.ctv2-promo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 250px; }
.ctv2-promo__text .ctv2-btn-gold { white-space: nowrap; }
.ctv2-promo__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ctv2-promo__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.12; color: #fff; }
.ctv2-promo__desc { font-size: 15px; line-height: 1.5; color: #DCE1E6; }
.ctv2-promo__text .ctv2-btn-gold { min-height: 48px; padding: 0 20px; font-size: 15px; }
.ctv2-promo__perks { display: grid; gap: 14px; border: 1px solid #2E3A46; border-radius: 8px; background: rgba(10,20,29,.92); padding: 18px; }
.ctv2-promo__perks li { display: flex; align-items: center; gap: 12px; }
.ctv2-promo__perks li > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.ctv2-promo__perks strong { font-size: 14px; font-weight: 600; }
.ctv2-promo__perks li > span:last-child > span { font-size: 12px; color: #AEB6BF; }
.ctv2-promo__perkico { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 8. Pourquoi Castra — mobile 2 × 2 */
.ctv2-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.ctv2-why__grid li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ctv2-why__grid li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.ctv2-why__grid strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ctv2-why__grid li > span:last-child > span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ctv2-roundico--lg { width: 44px; height: 44px; }

/* 9. Avis vérifiés */
.ctv2-reviews__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 6px; }
.ctv2-review { flex: 0 0 280px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ctv2-review__stars { display: flex; gap: 2px; color: #D9DCE0; }
.ctv2-review__stars .is-on { color: var(--gold); fill: var(--gold); }
.ctv2-review blockquote p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.ctv2-review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.ctv2-review figcaption strong { font-size: 14px; color: var(--ink); }
.ctv2-review figcaption a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }

/* 10. Instagram */
.ctv2-insta { padding-bottom: 28px; }
.ctv2-insta__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
.ctv2-insta__track::-webkit-scrollbar { display: none; }
.ctv2-insta__tile { position: relative; flex: 0 0 120px; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--tile); scroll-snap-align: start; }
.ctv2-insta__tile img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.ctv2-insta__tile:hover img { transform: scale(1.05); }

/* 11. Pied de page — mobile */
.ctv2-footer { background: var(--navy); color: #C9D0D8; font-size: 14px; }
.ctv2-footer a:hover { color: var(--gold); }
.ctv2-footer__grid { padding-top: 28px; padding-bottom: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.ctv2-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.ctv2-footer__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1px #2E3A46, 0 0 0 4px var(--navy), 0 0 0 5px var(--gold); display: flex; align-items: center; justify-content: center; }
.ctv2-footer__badge img { width: 72px; height: 72px; }
.ctv2-footer__brand p { line-height: 1.55; color: #AEB6BF; }
.ctv2-footer__cta { min-height: 50px; font-size: 15px; }
.ctv2-footer__social { display: flex; margin-left: -10px; }
.ctv2-footer__social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #E4E8EC; }
.ctv2-footer__col { display: flex; flex-direction: column; min-width: 0; }
.ctv2-footer__col a, .ctv2-footer__col > span { display: flex; align-items: center; gap: 10px; min-height: 40px; overflow-wrap: anywhere; }
.ctv2-footer__col .ctv2-ico { color: var(--gold); }
.ctv2-footer__title { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 4px !important; }
.ctv2-footer__contact { grid-column: 1 / -1; }
.ctv2-footer__bottom { border-top: 1px solid #1C2833; padding-top: 14px; padding-bottom: 20px; margin-bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: #9AA4AF; }
.ctv2-footer__cod { display: inline-flex; align-items: center; gap: 8px; color: #E4E8EC; }
.ctv2-footer__cod .ctv2-ico { color: var(--gold); }

/* Avis de la boutique WooCommerce (option « store notice ») : bandeau en haut de page, jamais par-dessus la barre mobile */
body.ctv2 .woocommerce-store-notice { position: relative !important; top: auto !important; bottom: auto !important; z-index: 1; margin: 0; padding: 10px 52px 10px var(--gutter); background: var(--gold); color: var(--ink); font-size: 13px; line-height: 1.45; text-align: left; box-shadow: none; }
body.ctv2 .woocommerce-store-notice a, body.ctv2 .woocommerce-store-notice__dismiss-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body.ctv2 .woocommerce-store-notice a.woocommerce-store-notice__dismiss-link { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 0; text-decoration: none; }
body.ctv2 .woocommerce-store-notice__dismiss-link::before { content: "×"; font-size: 22px; line-height: 1; }

/* 12. Navigation mobile */
.ctv2-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; box-shadow: 0 -4px 16px rgba(6,16,24,.06); }
.ctv2-bottomnav > a, .ctv2-bottomnav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ctv2-bottomnav [aria-current] { color: var(--gold-ink); font-weight: 600; }
.ctv2-bottomnav [aria-current] .ctv2-ico { color: var(--gold-ico); fill: var(--gold); }
.ctv2-bottomnav__icowrap { position: relative; display: inline-flex; }
.ctv2-bottomnav .ctv2-cart-count { top: -6px; right: -12px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; }

/* ——— Tablette ≥ 768px ——— */
@media (min-width: 768px) {
  body.ctv2 { --gutter: 32px; padding-bottom: 0; }
  .ctv2-bottomnav { display: none; }
  .ctv2-d { display: inline !important; } .ctv2-m { display: none !important; }
  .ctv2-d-flex { display: inline-flex !important; }

  .ctv2-topbar { font-size: 13px; }
  .ctv2-topbar__inner { min-height: 44px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 8px 28px; }
  .ctv2-topbar__list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .ctv2-topbar__list li { padding: 0; } .ctv2-topbar__list li + li { border: 0; }
  .ctv2-topbar__list li:nth-child(3) { display: none; }
  .ctv2-topbar__phone { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #E4E8EC; white-space: nowrap; }
  .ctv2-topbar__phone .ctv2-ico { color: var(--gold); }
  .ctv2-header__inner { height: 76px; padding: 0 var(--gutter); grid-template-columns: 140px minmax(0, 1fr) 140px; }
  .ctv2-logo img { width: 62px; height: 62px; }

  .ctv2-hero__img { position: absolute; inset: 0; height: 100% !important; object-position: 72% 50%; }
  .ctv2-hero__shade { height: auto; background:
    linear-gradient(90deg, rgba(7,18,28,.94) 0%, rgba(7,18,28,.78) 42%, rgba(7,18,28,.2) 68%, rgba(7,18,28,0) 82%),
    linear-gradient(0deg, rgba(7,18,28,.85) 0, rgba(7,18,28,0) 220px); }
  .ctv2-hero__content { position: relative; margin: 0 auto; min-height: 560px; padding-top: 64px; padding-bottom: 56px; gap: 22px; justify-content: center; }
  .ctv2-hero__content > .ctv2-hero__eyebrow { position: static; font-size: 13px; letter-spacing: .16em; }
  .ctv2-hero__title { font-size: 50px; line-height: 1.05; max-width: 400px; letter-spacing: -.01em; text-shadow: none; }
  .ctv2-hero__title span { color: inherit; }
  .ctv2-hero__text { font-size: 17px; line-height: 1.6; max-width: 360px; color: #D3D8DE; }
  .ctv2-hero__cta { width: auto; align-self: flex-start; min-height: 56px; padding: 0 32px; }

  .ctv2-trust { margin-top: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .ctv2-trust__grid { padding-top: 26px; padding-bottom: 26px; gap: 20px 24px; }
  .ctv2-trust__grid strong { font-size: 15px; }
  .ctv2-trust__grid li span span { font-size: 13px; }
  .ctv2-roundico { width: 52px; height: 52px; } .ctv2-roundico .ctv2-ico { width: 24px; height: 24px; }

  .ctv2-section { padding: 48px 0 16px; }
  .ctv2-head { margin-bottom: 24px; gap: 24px; }
  .ctv2-eyebrow { font-size: 13px; letter-spacing: .14em; margin-bottom: 8px !important; }
  .ctv2-h2 { font-size: 34px; line-height: 1.1; }

  .ctv2-collections__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow: visible; }
  .ctv2-col { flex: none; border-radius: 10px; }
  .ctv2-col__body { margin-top: -54px; padding: 0 22px 22px; gap: 4px; }
  .ctv2-col__eyebrow { font-size: 12px; letter-spacing: .18em; }
  .ctv2-col__name { font-size: 40px; }
  .ctv2-col__text { display: block; font-size: 15px; }
  .ctv2-col__btn { align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--gold); border-radius: 6px; font-size: 15px; color: #fff; gap: 10px; transition: background .15s; }
  .ctv2-col:hover .ctv2-col__btn { background: rgba(213,173,113,.16); }

  .ctv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .ctv2-card--desktop-only { display: grid; }
  @supports not (grid-template-rows: subgrid) { .ctv2-card--desktop-only { display: flex; } }
  .ctv2-card__title { font-size: 15px; font-weight: 500; }
  .ctv2-price__now { font-size: 18px; }
  .ctv2-price__was { font-size: 13px; }

  .ctv2-promo { margin-top: 40px; }
  .ctv2-promo__visual { right: auto; left: 40%; width: 34%; background: radial-gradient(ellipse at 50% 50%, #2E2418 0%, #120E0A 45%, rgba(0,2,4,0) 75%); }
  .ctv2-promo__visual img { max-height: 86%; width: auto; max-width: 100%; }
  .ctv2-promo__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; min-height: 340px; padding-top: 48px; padding-bottom: 48px; }
  .ctv2-promo__text { max-width: 330px; gap: 16px; }
  .ctv2-promo__title { font-size: 36px; }
  .ctv2-promo__desc { font-size: 16px; }
  .ctv2-promo__perks { width: 270px; flex-shrink: 0; padding: 24px; gap: 20px; }

  .ctv2-why__grid { gap: 28px 24px; }
  .ctv2-why__grid li { flex-direction: row; gap: 16px; }
  .ctv2-why__grid strong { font-size: 16px; }
  .ctv2-why__grid li > span:last-child > span { font-size: 14px; line-height: 1.55; }
  .ctv2-roundico--lg { width: 56px; height: 56px; } .ctv2-roundico--lg .ctv2-ico { width: 26px; height: 26px; }

  .ctv2-reviews__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; }
  .ctv2-review { padding: 22px; }

  .ctv2-insta { padding-bottom: 56px; }
  .ctv2-insta__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow: visible; }
  .ctv2-insta__tile { flex: none; }

  .ctv2-footer__grid { padding-top: 48px; padding-bottom: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .ctv2-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 24px; }
  .ctv2-footer__brand p { max-width: 460px; }
  .ctv2-footer__cta { display: none; }
  .ctv2-footer__social { grid-column: 2; }
  .ctv2-footer__contact { grid-column: auto; }
  .ctv2-footer__bottom { font-size: 13px; padding-top: 22px; padding-bottom: 28px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ctv2-promo__visual { display: none; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .ctv2-price__now { font-size: 16px; }
  .ctv2-price__was { font-size: 12px; }
}

/* ——— Ordinateur ≥ 1024px ——— */
@media (min-width: 1024px) {
  body.ctv2 { --gutter: 40px; }
  .ctv2-topbar__list li:nth-child(3) { display: flex; }
  .ctv2-header__inner { height: 84px; display: flex; justify-content: space-between; gap: 24px; }
  .ctv2-header__menu { display: none; }
  .ctv2-logo { justify-self: auto; flex-shrink: 0; }
  .ctv2-logo img { width: 70px; height: 70px; }
  .ctv2-nav { display: block; }
  .ctv2-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; font-weight: 500; }
  .ctv2-nav > ul > li { position: relative; }
  .ctv2-nav > ul > li > a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
  .ctv2-nav > ul > li > a:hover { color: var(--gold-ink); }
  .ctv2-nav > ul > li > a[aria-current] { color: var(--gold-ink); border-bottom-color: var(--gold); }
  .ctv2-nav__sub { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(6,16,24,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .ctv2-nav__has-sub:hover .ctv2-nav__sub, .ctv2-nav__has-sub:focus-within .ctv2-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .ctv2-nav__sub a { display: flex; min-height: 40px; align-items: center; padding: 0 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
  .ctv2-nav__sub a:hover { background: var(--cream); color: var(--gold-ink); }
  .ctv2-header__actions { gap: 4px; }

  .ctv2-hero__content { min-height: 660px; padding-top: 88px; padding-bottom: 64px; gap: 24px; justify-content: flex-start; }
  .ctv2-hero__shade { background:
    linear-gradient(90deg, rgba(7,18,28,.92) 0%, rgba(7,18,28,.72) 34%, rgba(7,18,28,.15) 56%, rgba(7,18,28,0) 70%),
    linear-gradient(0deg, rgba(7,18,28,.85) 0, rgba(7,18,28,.55) 100px, rgba(7,18,28,0) 220px); }
  .ctv2-hero__title { font-size: clamp(56px, 5vw, 72px); line-height: 1.04; max-width: 640px; }
  .ctv2-hero__text { font-size: 18px; max-width: 520px; }
  .ctv2-hero__cta { min-height: 58px; padding: 0 34px; margin-top: 6px; }
  .ctv2-hero__trust { display: flex; gap: 30px; padding-top: 26px; }
  .ctv2-hero__trust li { display: flex; align-items: center; gap: 14px; }
  .ctv2-hero__trust li + li { border-left: 1px solid #22303C; padding-left: 30px; }
  .ctv2-hero__trust .ctv2-ico { color: var(--gold); stroke-width: 1.3; }
  .ctv2-hero__trust li > span { display: flex; flex-direction: column; gap: 3px; }
  .ctv2-hero__trust strong { font-size: 15px; font-weight: 600; }
  .ctv2-hero__trust li > span > span { font-size: 13px; color: #AEB6BF; }

  .ctv2-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 30px; padding-bottom: 30px; gap: 24px; }
  .ctv2-trust__grid li, .ctv2-trust__link { gap: 16px; }

  .ctv2-section { padding: 60px 0 16px; }
  .ctv2-h2 { font-size: 40px; }
  .ctv2-head { margin-bottom: 26px; }

  .ctv2-collections__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .ctv2-col__name { font-size: clamp(36px, 3.4vw, 48px); }

  .ctv2-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
  .ctv2-card { row-gap: 10px; }
  .ctv2-card__media { border-radius: 6px; }
  .ctv2-card__title { font-size: 15px; }

  .ctv2-promo { margin-top: 48px; }
  .ctv2-promo__visual { left: 36%; width: 36%; }
  .ctv2-promo__inner { padding-top: 60px; padding-bottom: 60px; }
  .ctv2-promo__text { max-width: 470px; gap: 18px; }
  .ctv2-promo__title { font-size: 46px; line-height: 1.08; }
  .ctv2-promo__desc { font-size: 18px; }
  .ctv2-promo__text .ctv2-btn-gold { min-height: 52px; padding: 0 28px; }
  .ctv2-promo__perks { width: 300px; padding: 26px; gap: 22px; }

  .ctv2-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

  .ctv2-insta__track { gap: 16px; }

  .ctv2-footer__grid { padding-top: 56px; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
  .ctv2-footer__brand { grid-column: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .ctv2-footer__badge { width: 104px; height: 104px; box-shadow: 0 0 0 1px #2E3A46, 0 0 0 5px var(--navy), 0 0 0 6px var(--gold); }
  .ctv2-footer__badge img { width: 90px; height: 90px; }
  .ctv2-footer__brand p { line-height: 1.65; }
  .ctv2-footer__social { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.ctv2 *, body.ctv2 *::before, body.ctv2 *::after { animation: none !important; transition: none !important; }
}

/* ——— 0.5.0 : menus des catégories réelles, cartes de collection photo produit, titres limités ——— */
/* Menu mobile : rubrique des catégories (« Marques » par défaut) avec le nombre réel de montres */
.ctv2-drawer__label { margin: 18px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.ctv2-drawer__cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ctv2-drawer__cats a[aria-current] { color: var(--gold-ink); font-weight: 600; }
.ctv2-drawer__count { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Cartes produit de l'accueil : nom limité à 3 lignes (prix et bouton restent alignés grâce à la sous-grille) */
.ctv2-card__name { -webkit-line-clamp: 3; }
/* Collections de l'accueil : photo réelle d'une montre sur fond clair, texte sous l'image (pas de logo) */
.ctv2-col--product { background: var(--navy, #061018); }
.ctv2-col--product .ctv2-col__media { display: block; aspect-ratio: 384 / 326; background: var(--tile, #F6F5F5); overflow: hidden; }
.ctv2-col--product .ctv2-col__img { width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: contain; padding: 7%; box-sizing: border-box; z-index: auto; }
.ctv2-col--product .ctv2-col__shade { display: none; }
.ctv2-col--product .ctv2-col__body { margin-top: 0; padding-top: 12px; }
.ctv2-col--product .ctv2-col__name { font-size: 22px; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .ctv2-col--product .ctv2-col__body { margin-top: 0; padding-top: 18px; }
  .ctv2-col--product .ctv2-col__name { font-size: 32px; }
}
@media (min-width: 1024px) {
  .ctv2-nav__sub { min-width: 260px; max-height: min(70vh, 560px); overflow-y: auto; }
  .ctv2-nav__sub a { justify-content: space-between; gap: 18px; }
  .ctv2-nav__sub a[aria-current] { background: var(--cream); color: var(--gold-ink); font-weight: 600; }
  .ctv2-nav__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .ctv2-nav__label { margin: 8px 12px 0; padding: 10px 0 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
  .ctv2-col--product .ctv2-col__name { font-size: clamp(28px, 2.6vw, 38px); }
}
/* 0.5.0 (test mobile) : texte d'aide de la recherche lisible en entier sur les petits écrans (même apparence) */
@media (max-width: 413px) {
  .ctv2-search__panel { gap: 6px; }
  .ctv2-search__form { gap: 6px; padding-left: 10px; }
  .ctv2-search__form input[type=search]::placeholder { font-size: 14px; }
  .ctv2-search__submit { padding: 0 10px; font-size: 13.5px; }
}
@media (max-width: 374px) {
  .ctv2-search__panel { padding-left: 12px; padding-right: 8px; }
  .ctv2-search__submit { padding: 0 8px; }
}

/* ——— 0.5.3 : bouton mode clair / mode sombre (Soleil / Lune) ——— */
.ctv2-header__left { display: flex; align-items: center; }
html:not(.ctv2-theme-ready) .ctv2-theme-toggle { display: none !important; } /* sans JavaScript : pas de bouton inutile */
.ctv2-theme-toggle__sun { display: none; }
html[data-ctv2-theme="dark"] .ctv2-theme-toggle__sun { display: block; }
html[data-ctv2-theme="dark"] .ctv2-theme-toggle__moon { display: none; }
.ctv2-theme-toggle:hover { color: var(--gold-ink); }
.ctv2-theme-toggle--d { display: none; }
@media (min-width: 1024px) {
  .ctv2-header__left { display: none; }
  .ctv2-theme-toggle--d { display: inline-flex; }
}
