/* =====================================================================
   Sync Technology : page d'accueil (assets/css/home.css)
   S'appuie sur header.css (couleurs, polices, .btn, .sr-only) et footer.css.
   ===================================================================== */
.home {
  --ink: #0E1420; --muted: #5B6472; --line: #E4E8ED; --tint: #F5F9FA;
  --accent: #17B8D6; --accent-deep: #0B7C93; --navy: #0E1420;
  color: var(--ink);
  font-family: var(--font-ui, 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home ul { list-style: none; margin: 0; padding: 0; }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home svg { display: block; }
.home :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.home-wrap { max-width: var(--header-max, 1320px); margin: 0 auto; padding: 0 24px; }
html { scroll-behavior: smooth; }
body {margin: 0;}

/* ---------- Éléments communs ---------- */
.eyebrow { font: 600 12.5px/1.3 var(--font-ui, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow--dark { color: var(--accent-deep); }
.home .btn { height: 52px; padding: 0 28px; font-size: 15px; gap: 10px; }
.home .btn--primary { background: var(--accent-deep); color: #fff; }
.home .btn--primary:hover { background: #096579; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--outline { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.home .btn.is-disabled { opacity: .65; cursor: not-allowed; }
.home .btn svg { width: 18px; height: 18px; transition: transform .15s ease; }
.home .btn:hover svg { transform: translateX(3px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-deep); }
.link-more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more:hover svg { transform: translateX(3px); }
.soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #FCEFD9; color: #8A5200; font-size: 11px; letter-spacing: .04em; vertical-align: 1px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font: 700 clamp(26px, 3vw, 36px)/1.15 var(--font-title, inherit); letter-spacing: -.02em; }
.section-head__text { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }

/* ---------- Vidéos : visuel de secours si le fichier manque ---------- */
.video-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #0E1420 0%, #0B3A4A 55%, #0B7C93 130%); box-shadow: 0 24px 50px rgba(14, 20, 32, .18); }
.video-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-box__fallback { position: absolute; inset: 0; display: none; place-items: center; color: rgba(255, 255, 255, .92); }
.video-box.is-fallback .video-box__fallback { display: grid; }
.video-box.is-fallback video { display: none; }
.fallback-icon { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.fallback-icon svg { width: 52px; height: 52px; }
.fallback-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; }
.fallback-grid span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.fallback-grid svg { width: 34px; height: 34px; }
.video-box__toggle { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(14, 20, 32, .72); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s ease; }
.js .video-box__toggle { display: flex; }
.video-box.is-fallback .video-box__toggle { display: none; }
.video-box__toggle:hover { background: rgba(14, 20, 32, .9); }
.video-box__toggle svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.video-box__toggle .ico-play { display: none; }
.video-box.is-paused .video-box__toggle .ico-play { display: block; }
.video-box.is-paused .video-box__toggle .ico-pause { display: none; }

/* ---------- 1. Bandeau d'accueil ---------- */
.home-hero {
  color: #fff; padding: 72px 0 108px;
  background: radial-gradient(1100px 520px at 88% -10%, rgba(23, 184, 214, .38), transparent 60%), linear-gradient(135deg, #0E1420 0%, #0B2F3D 62%, #0B7C93 150%);
}
.home-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.home-hero h1 { font: 700 clamp(31px, 4.3vw, 54px)/1.07 var(--font-title, inherit); letter-spacing: -.025em; }
.home-hero .lede { margin-top: 20px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pills a { display: inline-block; padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13.5px; color: rgba(255, 255, 255, .92); transition: background .15s ease, border-color .15s ease; }
.pills a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .6); }

/* ---------- 2. Accès rapides ---------- */
.home-tiles { position: relative; z-index: 2; margin-top: -52px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(14, 20, 32, .09); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px rgba(14, 20, 32, .13); }
.tile__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); color: var(--accent-deep); border: 1px solid var(--line); transition: all .15s ease; }
.tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile__icon { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.tile__text { display: flex; flex-direction: column; gap: 3px; }
.tile__text strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tile__text small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tile__badge { position: absolute; top: 14px; right: 14px; padding: 2px 9px; border-radius: 999px; background: #FCEFD9; color: #8A5200; font-size: 11px; font-weight: 600; }

/* ---------- 3. Actualités ---------- */
.home-news { padding: 88px 0 24px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-btn { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 500 14px var(--font-ui, inherit); cursor: pointer; transition: all .15s ease; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.news-card { --c: var(--accent-deep); position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 16px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.news-card[hidden] { display: none; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 20, 32, .1); }
.news-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-card--monde { --c: #0B7C93; } .news-card--technologie { --c: #3B5BDB; } .news-card--cybersecurite { --c: #C62828; }
.news-card--sport { --c: #1E9E4A; } .news-card--economie { --c: #B26A00; } .news-card--science { --c: #1C7F74; } .news-card--culture { --c: #8E3B9E; }
.news-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.news-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 12.5px; color: var(--muted); }
.news-card h3 { font: 600 17px/1.35 var(--font-title, inherit); letter-spacing: -.005em; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* toute la carte est cliquable */
.news-card__chapo { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.news-card__source { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--muted); }
.news-card__lang { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 600; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip--monde { background: #E3F4F7; color: #0A5F70; } .chip--technologie { background: #E7ECFD; color: #2B45B5; }
.chip--cybersecurite { background: #FBE9E9; color: #A31F1F; } .chip--sport { background: #E4F5EA; color: #17773A; }
.chip--economie { background: #FCEFD9; color: #8A5200; } .chip--science { background: #E0F3F0; color: #1C6F66; }
.chip--culture { background: #F3E6F6; color: #7B2D8A; }

.news-card--featured { grid-column: span 2; grid-row: span 2; border: 0; color: #fff; background: radial-gradient(500px 260px at 100% 0, rgba(23, 184, 214, .32), transparent 65%), linear-gradient(145deg, #0E1420 0%, #0B3A4A 100%); }
.news-card--featured .news-card__body { padding: 30px; justify-content: flex-end; gap: 14px; }
.news-card--featured h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.22; }
.news-card--featured .news-card__chapo, .news-card--featured .news-card__meta, .news-card--featured .news-card__source { color: rgba(255, 255, 255, .82); }
.news-card--featured .news-card__chapo { font-size: 16px; }
.news-card--featured .news-card__lang { border-color: rgba(255, 255, 255, .4); }

/* ---------- 4. Produits ---------- */
.home-products { padding-top: 72px; }
.product-band:nth-child(odd) { background: var(--tint); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.product--reverse .product__media { order: 2; }
.product__content h3 { font: 700 clamp(26px, 3vw, 38px)/1.12 var(--font-title, inherit); letter-spacing: -.02em; margin-bottom: 14px; }
.product__text { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 54ch; }
.product__points { display: grid; gap: 10px; margin: 22px 0 28px; }
.product__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.product__points svg { flex: 0 0 auto; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #DDF2F7; color: var(--accent-deep); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- 5. Boutique ---------- */
.home-shop { color: #fff; padding: 64px 0; background: radial-gradient(700px 300px at 0 100%, rgba(23, 184, 214, .28), transparent 65%), linear-gradient(135deg, #0E1420 0%, #0B2F3D 100%); }
.home-shop__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.home-shop__text { max-width: 62ch; }
.home-shop h2 { font: 700 clamp(26px, 3vw, 36px)/1.15 var(--font-title, inherit); letter-spacing: -.02em; margin-bottom: 12px; }
.home-shop p { color: rgba(255, 255, 255, .85); font-size: 16.5px; line-height: 1.65; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.shop-chips li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13.5px; }

/* ---------- 6. Engagements ---------- */
.home-promises { padding: 64px 0 8px; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promises li { display: flex; gap: 16px; align-items: flex-start; }
.promise__icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #DDF2F7; color: var(--accent-deep); }
.promise__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promises strong { display: block; font-size: 16px; margin-bottom: 4px; }
.promises p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .home-hero { padding: 48px 0 88px; }
  .home-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .product { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .product--reverse .product__media { order: 0; }
  .promises { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .home-wrap { padding: 0 16px; }
  .home-hero .lede { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .home-tiles { margin-top: -40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px 14px; }
  .home-news { padding-top: 64px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; grid-row: auto; }
  .news-card--featured .news-card__body { padding: 22px; }
  .news-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chip-btn { flex: 0 0 auto; }
  .product__actions .btn { width: 100%; justify-content: center; }
  .home-shop__inner .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { transition: none !important; }
  .tile:hover, .news-card:hover { transform: none; }
}