/* Méga-menu v3 (19/11/2026) — 5 panneaux de même hauteur, même structure (voir tc-menu-v3.php). Préfixe tcm3-. */
.tcm3 { --g: #D4B060; --g2: #E9CF8C; --tx: #F4EEE3; --tx2: #D9D0C1; --mu: #9A9083; --mu2: #7A7166; --ln: rgb(255 255 255 / .09); color: var(--tx); font-family: inherit; }
.tcm3 a { color: inherit; text-decoration: none; }
/* Le panneau vit dans .tc-nav du thème : sa règle des liens du menu (marges, gras, soulignement, couleur) ne doit pas s'y appliquer */
:where(.tc-nav .tcm3) a { position: relative; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
:where(.tc-nav .tcm3) a::after { content: none; }
body.tc-theme .tc-header .tc-nav .tcm3 a { color: inherit; }
.tc-mega:has(.tcm3) { background: linear-gradient(180deg, #17130F, #100D0A); backdrop-filter: none; }

.tc-mega .tcm3 { height: 468px; padding: 26px 32px 0; display: flex; flex-direction: column; box-sizing: border-box; }
.tcm3-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px 300px; gap: 26px; }
.tcm3--ins .tcm3-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.tcm3-main, .tcm3-mid, .tcm3-right { min-width: 0; min-height: 0; }
.tcm3-k { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--g); }
.tcm3-k::before { content: ""; width: 16px; height: 1px; background: var(--g); }

/* cards à miniature ronde */
.tcm3-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 70px; gap: 10px; }
.tcm3-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 30px 0 12px; border-radius: 16px; background: rgb(255 255 255 / .035); border: 1px solid var(--ln); transition: background .18s, border-color .18s; }
.tcm3-card::after { content: "›"; position: absolute; left: auto; bottom: auto; width: auto; height: auto; background: none; right: 12px; top: 50%; transform: translateY(-50%); color: var(--mu2); font-size: 18px; line-height: 1; transition: transform .18s, color .18s; }
.tcm3-card:hover { border-color: rgb(212 176 96 / .5); background: rgb(255 255 255 / .065); }
.tcm3-card:hover::after { color: var(--g); transform: translate(2px, -50%); }
.tcm3-card:hover .tcm3-ct { color: var(--g2); }
.tcm3-rd { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; padding: 2px; background: var(--c, var(--g)); box-sizing: border-box; }
.tcm3-rd img, .tcm3-rd i { display: block; width: 100% !important; height: 100% !important; max-width: none; border-radius: 50%; object-fit: cover; border: 2px solid #15120E; background: #2a241d; box-sizing: border-box; }
.tcm3-rd.is-ico { display: grid; place-items: center; padding: 0; background: rgb(212 176 96 / .12); border: 1px solid rgb(212 176 96 / .4); color: var(--g); }
.tcm3-card.is-gold { background: linear-gradient(135deg, rgb(212 176 96 / .16), rgb(212 176 96 / .03)); border-color: rgb(212 176 96 / .45); }
.tcm3-card.is-gold .tcm3-rd.is-ico { background: linear-gradient(135deg, #F0D893, #C99A3E); color: #1a1408; border: 0; }
.tcm3-cb { min-width: 0; display: flex; flex-direction: column; }
.tcm3-ct { font-family: var(--font-display, "Cormorant Garamond", serif); font-size: 18.5px; font-weight: 600; line-height: 1.08; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .18s; }
.tcm3-cn { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--g2); font-variant-numeric: lining-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* colonne du milieu */
.tcm3-list { display: grid; color: var(--tx2); }
.tcm3-list a { font-weight: 500; display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgb(255 255 255 / .05); font-size: 13.5px; color: var(--tx2); }
.tcm3-list a span { color: var(--mu2); }
.tcm3-list a:hover { color: var(--g2); }
.tcm3-chips { display: flex; flex-wrap: wrap; gap: 6px; color: var(--tx2); }
.tcm3-chip { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .03); color: var(--tx2); transition: .18s; }
.tcm3-chip:hover { border-color: var(--g); color: var(--g2); }
.tcm3-mini { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / .035); border: 1px solid var(--ln); font-size: 12.5px; color: var(--tx2); }
.tcm3-mini .tcm3-rd { flex-basis: 36px; width: 36px; height: 36px; }
.tcm3-mini strong { display: block; color: var(--tx); font-size: 13px; }
.tcm3-mini:hover { border-color: rgb(212 176 96 / .45); }

/* carte de la Maremme */
.tcm3-map { position: relative; height: 100%; border-radius: 18px; border: 1px solid rgb(212 176 96 / .22); background: #1B1712; overflow: hidden; }
.tcm3-maph { padding: 12px 14px 0; }
.tcm3-maph strong { display: block; font-family: var(--font-display, "Cormorant Garamond", serif); font-size: 18px; font-weight: 600; color: var(--tx); }
.tcm3-maph span { font-size: 11.5px; color: var(--mu); }
.tcm3-mapbox { position: absolute; top: 54px; height: calc(100% - 96px); left: 50%; transform: translateX(-50%); max-width: calc(100% - 16px); }
.tcm3-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tcm3-pin { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgb(212 176 96 / .22); z-index: 1; transition: transform .15s, background .15s; }
.tcm3-pin:hover, .tcm3-pin:focus-visible { transform: scale(1.5); background: #fff; z-index: 3; }
.tcm3-pl { display: none; position: absolute; left: 13px; top: -4px; font-size: 10.5px; font-weight: 600; color: var(--tx2); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 3px #000; }
.tcm3-pin.is-big .tcm3-pl { display: block; }
.tcm3-pin:hover .tcm3-pl { opacity: 0; }
.tcm3-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) scale(.67); transform-origin: bottom center; display: flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border-radius: 10px; background: #0E0C0A; border: 1px solid rgb(212 176 96 / .5); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tcm3-tip img { width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; }
.tcm3-tip b { display: block; font-size: 12px; color: var(--g2); }
.tcm3-tip span span { font-size: 10.5px; color: var(--tx2); }
.tcm3-pin:hover .tcm3-tip, .tcm3-pin:focus-visible .tcm3-tip { opacity: 1; }
.tcm3-mapf { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 12px; font-size: 12px; color: var(--mu); }
.tcm3-mapf a, .tcm3-gl { color: var(--g2); font-weight: 600; }

/* card mise en avant */
.tcm3-feat { position: relative; display: flex; align-items: flex-end; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid rgb(212 176 96 / .35); background: #1B1712; }
.tcm3-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcm3-feat::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(10 8 6 / .1), rgb(10 8 6 / .92) 68%); }
.tcm3-fb { position: relative; z-index: 2; padding: 18px; }
.tcm3-fb strong { display: block; margin: 6px 0; font-family: var(--font-display, "Cormorant Garamond", serif); font-size: 23px; font-weight: 600; line-height: 1.08; color: var(--tx); }
.tcm3-ft { display: block; font-size: 12.5px; color: var(--tx2); }
.tcm3-fb em { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 600; font-size: 13px; padding: 9px 15px; border-radius: 99px; color: #1a1408; background: linear-gradient(180deg, #F0D893, #C99A3E); }

/* blog */
.tcm3-univ { columns: 3; column-gap: 28px; }
.tcm3-u { break-inside: avoid; margin-bottom: 16px; }
.tcm3-ut { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--font-display, "Cormorant Garamond", serif); font-size: 17px; font-weight: 600; color: var(--tx); }
a.tcm3-ut:hover { color: var(--g2); }
.tcm3-ut i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: 0 0 9px; }
.tcm3-ut small, .tcm3-u li small { font: 500 11px Inter, system-ui, sans-serif; color: var(--mu2); margin-left: 3px; }
.tcm3-u ul { color: var(--tx2); list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tcm3-u li a { font-size: 12.5px; color: var(--tx2); }
.tcm3-u li a:hover { color: var(--g2); }
.tcm3-posts { display: grid; gap: 8px; }
.tcm3-post { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 14px; border: 1px solid var(--ln); background: rgb(255 255 255 / .03); }
.tcm3-post:hover { border-color: rgb(212 176 96 / .45); }
.tcm3-post img, .tcm3-post > i { width: 56px !important; height: 56px !important; flex: 0 0 56px; border-radius: 12px; object-fit: cover; background: #2a241d; }
.tcm3-post b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--tx); }
.tcm3-post span span { display: block; margin-top: 3px; font-size: 11px; color: var(--mu2); }

/* barre du bas (même hauteur partout) */
.tcm3-foot { color: var(--g2); flex: 0 0 52px; margin-top: 16px; border-top: 1px solid var(--ln); display: flex; align-items: center; gap: 22px; font-size: 13px; }
.tcm3-foot > a { color: var(--g2); font-weight: 600; }
.tcm3-foot > a:hover { color: #fff; }
.tcm3-fr { margin-left: auto; min-width: 0; }
.tcm3-aff { font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcm3-aff img { width: 24px !important; height: 24px !important; border-radius: 50%; object-fit: cover; }
.tcm3-aff b { color: var(--tx); }
.tcm3-aff:hover b { color: var(--g2); }

@media (max-width: 1279px) {
  .tc-mega .tcm3 { padding: 22px 22px 0; }
  .tcm3-grid { grid-template-columns: minmax(0, 1fr) 190px 250px; gap: 18px; }
  .tcm3--ins .tcm3-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .tcm3-univ { columns: 2; }
  .tcm3-ct { font-size: 17px; }
}

/* ── Tiroir mobile ── */
.tcm3-drawer { --g: #D4B060; --g2: #E9CF8C; --tx: #F4EEE3; --tx2: #D9D0C1; --mu: #9A9083; --mu2: #7A7166; --ln: rgb(255 255 255 / .09); margin-top: 14px; color: var(--tx); }
.tcm3-drawer a { color: inherit; text-decoration: none; }
.tcm3-m-home { display: block; padding: 14px 0; font-weight: 600; font-size: 15.5px; border-bottom: 1px solid var(--ln); }
.tcm3-acc { border-bottom: 1px solid var(--ln); }
.tcm3-acc > summary { list-style: none; cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15.5px; }
.tcm3-acc > summary::-webkit-details-marker { display: none; }
.tcm3-acc > summary::after { content: "+"; color: var(--g); font-size: 20px; line-height: 1; }
.tcm3-acc[open] > summary { color: var(--g2); }
.tcm3-acc[open] > summary::after { content: "\2013"; }
.tcm3-ab { padding: 0 0 18px; }
.tcm3-drawer .tcm3-cards { grid-auto-rows: 58px; gap: 8px; }
.tcm3-drawer .tcm3-card { padding: 0 8px; gap: 9px; border-radius: 14px; }
.tcm3-drawer .tcm3-card::after { display: none; }
.tcm3-drawer .tcm3-rd { flex-basis: 38px; width: 38px; height: 38px; }
.tcm3-drawer .tcm3-ct { font-size: 15.5px; }
.tcm3-drawer .tcm3-cn { font-size: 10.5px; }
.tcm3-drawer .tcm3-k { margin: 16px 0 10px; }
.tcm3-drawer .tcm3-u { margin-bottom: 12px; }
.tcm3-mbtn { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgb(212 176 96 / .4); color: var(--g2) !important; font-weight: 600; font-size: 13.5px; text-align: center; }
.tcm3-drawer .tcm3-post img, .tcm3-drawer .tcm3-post > i { width: 48px !important; height: 48px !important; flex-basis: 48px; }
.tcm3-m-cta { display: block; margin: 18px 0 6px; padding: 13px; border-radius: 99px; text-align: center; font-weight: 600; color: #1a1408 !important; background: linear-gradient(180deg, #F0D893, #C99A3E); }
