/* Télé Béziers — couleurs reprises du logo (cœur bleu ciel / bleu roi) */
:root {
  --roi: #1c3fd6;
  --roi-fonce: #0f2596;
  --ciel: #5cc6f2;
  --ciel-pale: #e8f6fd;
  --encre: #0d1733;
  --gris: #5a6480;
  --fond: #ffffff;
  --fond-2: #f4f8fc;
  --bord: #dde6f2;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(15, 37, 150, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--roi); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 800; letter-spacing: .02em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-size: 1.15rem; }
.brand b { color: var(--roi); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--encre); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--ciel-pale); color: var(--roi); }
.nav a.cta { background: var(--roi); color: #fff; }
.nav a.cta:hover { background: var(--roi-fonce); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--encre); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--roi); color: #fff; }
.btn-primary:hover { background: var(--roi-fonce); }
.btn-ghost { background: #fff; color: var(--roi); border: 2px solid var(--roi); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, var(--ciel-pale), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--fond-2) 100%);
  padding: 72px 0 88px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--roi); background: var(--ciel-pale); padding: 6px 14px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 4px rgba(229, 50, 45, .18); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin: 18px 0 18px; letter-spacing: -.02em; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--roi); }
.hero p.lead { font-size: 1.2rem; color: var(--gris); max-width: 34em; margin: 0 0 28px; }
.hero .buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { justify-self: center; width: min(420px, 100%); height: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Chiffres */
.stats { background: var(--roi); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.1; color: #fff; }
.stat span { color: #cfe2ff; font-size: .95rem; }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--fond-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; letter-spacing: -.01em; font-weight: 900; }
.section-head p { margin: 6px 0 0; color: var(--gris); }
.kicker { color: var(--ciel); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); background: #fff; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord); transition: transform .2s, box-shadow .2s; }
.video:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ciel-pale); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video:hover .thumb img { transform: scale(1.05); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(28, 63, 214, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: .9; transition: opacity .2s, transform .2s;
}
.video .play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.video:hover .play { opacity: 1; transform: scale(1.08); }
.video .meta { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.video .meta strong { font-size: 1rem; line-height: 1.35; }
.video time { font-size: .85rem; color: var(--gris); }
/* La plus récente en grand */
.videos .video:first-child { grid-column: span 2; grid-row: span 2; }
.videos .video:first-child .meta strong { font-size: 1.35rem; }
.videos .video:first-child .play { width: 84px; height: 84px; }
.videos .video:first-child .play::after { left: 33px; top: 26px; border-width: 16px 0 16px 25px; }
.videos-more { margin-top: 36px; text-align: center; }

/* Lecteur */
.player { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 40, .88); display: none; align-items: center; justify-content: center; padding: 20px; }
.player.open { display: flex; }
.player-box { width: min(1000px, 100%); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; margin-bottom: 12px; }
.player-bar h3 { margin: 0; font-size: 1.05rem; }
.player-close { background: #fff; color: var(--encre); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none; }

/* À propos */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; height: auto; object-fit: contain; border-radius: 24px; box-shadow: var(--ombre); background: #efefef; }
.portrait figcaption { position: absolute; left: 20px; bottom: -18px; background: var(--roi); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--ombre); }
.portrait figcaption small { display: block; font-weight: 500; color: #cfe2ff; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 8px 0 18px; font-weight: 900; }
.about p { font-size: 1.08rem; color: #2c3552; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.values div { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 16px; }
.values strong { display: block; color: var(--roi); }
.values span { font-size: .9rem; color: var(--gris); }

/* Réseaux */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px 30px; border-radius: var(--rayon); text-decoration: none; color: #fff; transition: transform .2s, box-shadow .2s; }
.social:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.social svg { width: 88px; height: 88px; flex: none; margin-bottom: 14px; }
.social strong { display: block; font-size: 1.3rem; }
.social span { opacity: .88; font-size: .95rem; }
.social.fb { background: #1877f2; }
.social.yt { background: #e62117; }
.social.ig { background: linear-gradient(45deg, #f9a13a 0%, #e8433f 35%, #d62976 60%, #962fbf 85%, #4f5bd5 100%); }
.social.tt { background: #010101; }
.social.tt svg { filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee); }

/* Fils Facebook / TikTok (chargés au clic) */
.feeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.feed { border-radius: var(--rayon); overflow: hidden; min-height: 680px; display: flex; justify-content: center; }
.feed.fb { background: #1877f2; }
.feed.tt { background: #010101; }
.feed.loaded { background: #fff; border: 1px solid var(--bord); min-height: 0; padding: 16px 0; }
.feed iframe { border: 0; display: block; max-width: 100%; }
.feed .tiktok-embed { margin: 0 !important; width: 100%; }
.feed-placeholder { color: #fff; text-align: center; padding: 48px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.feed-placeholder svg { width: 88px; height: 88px; margin-bottom: 10px; }
.feed.tt .feed-placeholder svg { filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee); }
.feed-placeholder strong { font-size: 1.4rem; }
.feed-placeholder p { margin: 0 0 14px; opacity: .88; }
.feed-placeholder small { opacity: .7; font-size: .8rem; max-width: 26em; margin-top: 6px; }
.btn-light { background: #fff; color: var(--encre); border: 0; cursor: pointer; font-family: inherit; }
.btn-light:hover { background: #f1f4fa; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--roi) 0%, var(--roi-fonce) 100%); color: #fff; border-radius: 24px; padding: 48px; }
.contact h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; }
.contact p { color: #dbe6ff; margin: 0; font-size: 1.05rem; }
.contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact li a { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; padding: 14px 18px; border-radius: 12px; font-weight: 600; word-break: break-word; }
.contact li a:hover { background: rgba(255, 255, 255, .2); }
.contact svg { width: 20px; height: 20px; flex: none; }

/* Pied de page */
.site-footer { background: var(--encre); color: #aab4cf; padding: 40px 0; margin-top: 88px; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s; }
.footer-socials a:hover { background: var(--roi); }
.footer-socials svg { width: 17px; height: 17px; }

/* Pages de texte (mentions légales) */
.page { padding: 64px 0 0; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin: 0 0 32px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; color: var(--roi); }
.page address { font-style: normal; background: var(--fond-2); border: 1px solid var(--bord); border-radius: 12px; padding: 16px 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .about, .contact, .feeds { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(260px, 70%); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .videos, .socials { grid-template-columns: repeat(2, 1fr); }
  .portrait { max-width: 420px; margin: 0 auto 20px; }
  .contact { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--bord); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .videos { grid-template-columns: 1fr; }
  .videos .video:first-child { grid-column: auto; grid-row: auto; }
  .values { grid-template-columns: 1fr; }
  .social { padding: 26px 12px 22px; }
  .social svg { width: 64px; height: 64px; }
  section.block { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
