/* ==========================================================================
   GRTVS — Design system
   Identité : rouge #c63141, encre #16181d, chevron « V » du logo.
   ========================================================================== */

:root{
  color-scheme: light;

  --red: #c63141;
  --red-dark: #a12633;
  --red-accent: #ff5c6a;
  --red-light: #e8e0e1;
  --ink: #16181d;
  --ink-deep: #0f1014;
  --ink-soft: #4b4f58;
  --paper: #ffffff;
  --cloud: #f6f5f7;
  --line: #e7e5e8;

  /* Surfaces & panneaux (pilotés par le thème) */
  --card-bg: #ffffff;
  --panel: #16181d;
  --on-panel: #ffffff;
  --header-bg: rgba(255,255,255,.92);
  --nav-bg: rgba(22,24,29,.04);
  --nav-hover: rgba(22,24,29,.06);
  --grid-line: rgba(22,24,29,.05);
  --focus: #c63141;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,24,29,.06);
  --shadow-md: 0 8px 24px rgba(22,24,29,.08);
  --shadow-lg: 0 24px 60px rgba(22,24,29,.14);

  --container: 1180px;
  --ease: cubic-bezier(.22,.9,.28,1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 78px;
}

/* --------------------------------------------------------------------------
   Thème sombre
   -------------------------------------------------------------------------- */
[data-theme="dark"]{
  color-scheme: dark;

  --red-dark: #a12633;
  --red-accent: #ff6b78;
  --red-light: rgba(198,49,65,.18);
  --ink: #f1f2f4;
  --ink-deep: #0b0c0f;
  --ink-soft: #a7acb8;
  --paper: #0f1014;
  --cloud: #171a20;
  --line: #2b2f38;

  --card-bg: #171a20;
  --panel: #1b1e25;
  --on-panel: #ffffff;
  --header-bg: rgba(15,16,20,.85);
  --nav-bg: rgba(255,255,255,.06);
  --nav-hover: rgba(255,255,255,.1);
  --grid-line: rgba(255,255,255,.06);
  --focus: #ff6b78;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
body.nav-open{ overflow: hidden; }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section{ position: relative; }
section[id]{ scroll-margin-top: calc(var(--header-h) + 14px); }

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link{
  position: fixed;
  top: 12px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 2000;
  background: var(--panel);
  color: var(--on-panel);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform .25s var(--ease);
}
.skip-link:focus{ transform: translate(-50%, 0); }

/* Signature chevron (issu du « V » du logo) --------------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.eyebrow::before{
  content: '';
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 34%, 50% 92%, 0 34%);
}
.eyebrow.center{ justify-content: center; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-head{
  max-width: 660px;
  margin: 0 0 48px;
}
.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 42px);
}
.section-head p{
  color: var(--ink-soft);
  font-size: 17px;
  margin: 14px 0 0;
}

.section-pad{ padding: 108px 0; }
@media (max-width: 768px){ .section-pad{ padding: 72px 0; } }

.bg-cloud{ background: var(--cloud); }

/* Buttons ------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; flex: none; }
.btn-primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(198,49,65,.28);
}
.btn-primary:hover{
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(198,49,65,.34);
}
.btn-dark{
  background: var(--panel);
  color: var(--on-panel);
}
.btn-dark:hover{ transform: translateY(-2px); background: var(--red); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-sm{ padding: 10px 18px; font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-scrolled{
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: 12px 0;
}

.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ height: 30px; width: auto; }
.brand .logo-dark{ display: none; }
[data-theme="dark"] .brand .logo-light{ display: none; }
[data-theme="dark"] .brand .logo-dark{ display: block; }

.theme-toggle{
  width: 42px; height: 42px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover{ color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.theme-toggle svg{ width: 19px; height: 19px; }
.theme-toggle .icon-sun{ display: none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display: none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display: block; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--nav-bg);
  padding: 6px;
  border-radius: 999px;
}
.site-header.is-scrolled .nav-links{ background: var(--cloud); }
.nav-links a{
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover{ color: var(--ink); background: var(--nav-hover); }
.nav-links a.active{ color: var(--on-panel); background: var(--panel); }

.header-actions{ display: flex; align-items: center; gap: 12px; }
.header-phone{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.header-phone svg{ width: 16px; height: 16px; color: var(--red); }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  display: block;
  transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after{
  content:'';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

@media (max-width: 900px){
  .nav-links{
    position: fixed;
    top: 82px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
  }
  .nav-links.is-open{ transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a{ padding: 12px 16px; text-align: left; border-radius: 12px; }
  .header-phone{ display: none; }
  .nav-toggle{ display: flex; }
}
@media (max-width: 620px){
  .header-cta{ display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  padding: 168px 0 110px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.hero::before{
  content:'';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px; height: 640px;
  background: radial-gradient(circle at 30% 30%, rgba(198,49,65,.16), rgba(198,49,65,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero::after{
  content:'';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 72% 26%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 72% 26%, #000, transparent 68%);
  pointer-events: none;
}
.hero .container{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 22px;
}
.hero-copy h1 span{ color: var(--red); }
.hero-copy p{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-tags{ display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li{
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.hero-visual{ position: relative; }
.hero-card{
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  overflow: hidden;
}
.netmap{ width: 100%; height: auto; display: block; }
.netmap .links line{ stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.netmap .packet{ fill: var(--red); }
.netmap .tile{ fill: var(--cloud); stroke: var(--line); stroke-width: 1.5; }
.netmap .core-tile{ fill: var(--red); }
.netmap .core-mark{ fill: #fff; }
.netmap .ring{
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 3 10;
  transform-box: fill-box;
  transform-origin: center;
  animation: net-spin 30s linear infinite;
}
.netmap .ping{
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: net-ping 3.4s ease-out infinite;
}
.netmap .glyph{
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.netmap .glyph .dot{ fill: var(--ink-soft); stroke: none; }
.netmap .label{
  fill: var(--ink-soft);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}
@keyframes net-spin{ to{ transform: rotate(360deg); } }
@keyframes net-ping{
  0%{ opacity: .45; transform: scale(.7); }
  100%{ opacity: 0; transform: scale(1.3); }
}
.hero-floating{
  position: absolute;
  z-index: 3;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.hero-floating.top{ top: -22px; left: -28px; animation: float 5s ease-in-out infinite; }
.hero-floating.bottom{ bottom: -20px; right: -22px; animation: float 5s ease-in-out infinite 1.2s; }
.hero-floating .dot{
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hero-floating .dot svg{ width: 18px; height: 18px; }
.hero-floating small{ display:block; color: var(--ink-soft); font-weight: 600; font-size: 11px; }

@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 460px; }
  .hero{ padding-top: 140px; }
}
@media (max-width: 520px){
  .hero-floating{ display: none; }
}

/* ==========================================================================
   Ticker (ruban signature)
   ========================================================================== */
.ticker{
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-track{
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-group{
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.ticker-group span{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,.82);
}
.ticker-group i{
  width: 14px; height: 14px;
  flex: none;
  background: var(--red);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 34%, 50% 92%, 0 34%);
}
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   À propos / pills
   ========================================================================== */
.about-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2{
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 20px;
}
.about-copy p{ color: var(--ink-soft); font-size: 17px; margin: 0 0 18px; }
.about-copy .btn{ margin-top: 8px; }

.pill-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pill{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pill:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pill .ic{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pill .ic svg{ width: 20px; height: 20px; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px){
  .pill-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card{
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card .num{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
  letter-spacing: .04em;
}
.service-card .ic{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--panel);
  color: var(--on-panel);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background .3s var(--ease);
}
.service-card:hover .ic{ background: var(--red); }
.service-card .ic svg{ width: 26px; height: 26px; }
.service-card h3{ font-size: 19px; margin-bottom: 10px; }
.service-card p{ color: var(--ink-soft); font-size: 15px; margin: 0; }

@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .card-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Produits (section sombre)
   ========================================================================== */
.section-dark{
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
}
.section-dark::before{
  content:'';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}
.section-dark::after{
  content:'';
  position: absolute;
  inset: auto -10% -30% auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(198,49,65,.22), transparent 68%);
  pointer-events: none;
}
.section-dark .container{ position: relative; z-index: 1; }
.section-dark .section-head p{ color: rgba(255,255,255,.7); }

.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card{
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.product-card:hover{
  transform: translateY(-6px);
  background: rgba(255,255,255,.075);
  border-color: rgba(198,49,65,.7);
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
}
.product-card .ic{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(198,49,65,.18);
  color: var(--red-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.product-card .ic svg{ width: 24px; height: 24px; }
.product-card:hover .ic{ background: var(--red); color: #fff; }
.product-card h3{ font-size: 16px; margin-bottom: 8px; letter-spacing: -.01em; color: #fff; }
.product-card p{ color: rgba(255,255,255,.66); font-size: 13.5px; margin: 0; line-height: 1.55; }

@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Support
   ========================================================================== */
.remote-card{
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.remote-card-head{
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.remote-card-head .ic{
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.remote-card-head .ic svg{ width: 28px; height: 28px; }
.remote-card-title{ flex: 1; min-width: 0; }
.remote-card-title h3{ font-size: 20px; margin-bottom: 4px; }
.remote-card-title p{ color: var(--ink-soft); font-size: 14px; margin: 0; }

.remote-steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.remote-step{
  background: var(--cloud);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.remote-step:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.remote-step span{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--on-panel);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.remote-step small{ display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

.support-note{
  background: var(--cloud);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 20px;
}

@media (max-width: 760px){
  .remote-card{ padding: 26px; }
  .remote-card-head{ flex-wrap: wrap; }
  .remote-card-head .btn{ width: 100%; }
}
@media (max-width: 640px){
  .remote-steps{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap{
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before{
  content:'';
  position: absolute;
  top: -140px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(198,49,65,.28), transparent 68%);
  pointer-events: none;
}
.contact-wrap > *{ position: relative; z-index: 1; }
.contact-wrap h2{ font-size: clamp(28px,3.4vw,38px); margin-bottom: 16px; }
.contact-wrap > div:first-child p{ color: rgba(255,255,255,.68); font-size: 17px; margin: 0 0 30px; max-width: 440px; }

.contact-info{ display: grid; gap: 16px; }
.contact-row{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.1);
}
.contact-row .ic{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-row .ic svg{ width: 19px; height: 19px; color: #fff; }
.contact-row .ic.ic-whatsapp{ background: transparent; }
.contact-row .ic.ic-whatsapp svg{ width: 100%; height: 100%; }
.contact-row a, .contact-row span{ font-weight: 700; font-size: 15px; display: block; }
.contact-row small{ display: block; color: rgba(255,255,255,.55); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }

.social-row{ display: flex; gap: 10px; margin-top: 30px; }
.social-row a{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover{ background: var(--red); border-color: transparent; transform: translateY(-3px); }
.social-row svg{ width: 18px; height: 18px; }

@media (max-width: 900px){
  .contact-wrap{ grid-template-columns: 1fr; padding: 40px 26px; border-radius: 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  padding: 0 0 34px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chevron-rule{
  height: 6px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--red) 0 10px,
    transparent 10px 20px
  );
  opacity: .9;
}
.site-footer .container{ padding-top: 48px; }

.footer-top{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p{
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 340px;
  margin: 18px 0 0;
}
.site-footer .brand img{ height: 26px; }
.site-footer .social-row{ margin-top: 20px; }
.site-footer .social-row a{
  background: var(--cloud);
  border-color: var(--line);
  color: var(--ink);
}
.site-footer .social-row a:hover{ background: var(--red); color: #fff; border-color: transparent; }

.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span{
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.footer-col a:hover{ color: var(--red); }

.footer-bottom{
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 540px){
  .footer-top{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Floating actions
   ========================================================================== */
.whatsapp-float{
  position: fixed;
  left: 22px; bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37,211,102,.4);
  z-index: 900;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float svg{ width: 28px; height: 28px; }
.whatsapp-float::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 34px rgba(37,211,102,.48); }

@keyframes wa-pulse{
  0%{ opacity: .55; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.7); }
}

@media (max-width: 560px){
  .whatsapp-float{ width: 48px; height: 48px; left: 16px; bottom: 16px; }
  .whatsapp-float svg{ width: 24px; height: 24px; }
}

.back-to-top{
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--on-panel);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 900;
  cursor: pointer;
  border: none;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover{ background: var(--red); }
.back-to-top svg{ width: 18px; height: 18px; }

/* ==========================================================================
   Contraste des accents
   Les sections toujours sombres (Produits, panneaux Support/Contact) ont
   besoin d'un rouge plus clair pour rester lisibles.
   ========================================================================== */
.section-dark .eyebrow,
.contact-wrap .eyebrow{ color: var(--red-accent); }

/* En thème sombre, tous les accents texte passent au rouge clair. */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .hero-copy h1 span,
[data-theme="dark"] .service-card .num,
[data-theme="dark"] .header-phone svg,
[data-theme="dark"] .pill .ic,
[data-theme="dark"] .hero-floating .dot,
[data-theme="dark"] .remote-card-head .ic{ color: var(--red-accent); }

[data-theme="dark"] .theme-toggle:hover{ color: var(--red-accent); border-color: var(--red-accent); }
[data-theme="dark"] .footer-col a:hover{ color: var(--red-accent); }
[data-theme="dark"] .netmap .tile{ fill: var(--paper); }

/* ==========================================================================
   Accessibilité : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal]{ opacity: 1 !important; transform: none !important; }
  .ticker-track{ animation: none !important; }
  .netmap .packet{ display: none; }
}
