/* ===================== Tokens ===================== */
:root {
  /* Charte iSwip */
  --navy: #1a2360;          /* texte logo / bleu corporate profond */
  --navy-deep: #141b4d;
  --blue: #2e7de0;          /* bleu signature (2e carré du logo) */
  --blue-dark: #1f5fc0;
  --cyan: #19c3d1;

  /* Dégradé signature (rangée de carrés du logo) */
  --g-green:  #20c08a;
  --g-blue:   #2e7de0;
  --g-indigo: #5a4ef0;
  --g-purple: #a81ffa;
  --g-magenta:#e81cf0;
  --g-red:    #ff3b3b;
  --brand-gradient: linear-gradient(
    90deg,
    var(--g-green) 0%,
    var(--g-blue) 22%,
    var(--g-indigo) 42%,
    var(--g-purple) 62%,
    var(--g-magenta) 80%,
    var(--g-red) 100%
  );

  --ink: #1f2838;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(26, 35, 96, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 35, 96, 0.14);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ===================== Base ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===================== Barre de défilement (charte iSwip) ===================== */
/* Standard (Firefox + navigateurs récents) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg-alt);
}
/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), var(--blue-dark));
  border-radius: 999px;
  border: 3px solid var(--bg-alt); /* marge autour du pouce */
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--blue-dark), var(--navy-deep));
}
::-webkit-scrollbar-corner { background: var(--bg-alt); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* évite le scroll horizontal pendant les animations d'entrée (translateX) */
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nom de marque TheGreenFlux — vert de marque TGF (#1D9E75 / clair sur fond sombre) */
:root { --tgf-green: #1d9e75; --tgf-green-light: #35c795; }
.tgf-brand { color: var(--tgf-green); font-weight: 600; }
.tgf-brand:hover { color: var(--tgf-green); }
/* Sur les fonds sombres, teinte plus claire pour la lisibilité */
.section-dark .tgf-brand, .site-footer .tgf-brand, .legal-hero .tgf-brand { color: var(--tgf-green-light); }
img { max-width: 100%; }

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

/* Barre dégradé décorative (reprend les carrés du logo) */
.brand-bar { height: 5px; background: var(--brand-gradient); border: 0; margin: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(46,125,224,.3); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: inline-flex; align-items: center; transition: transform .2s ease; }
.logo:hover { transform: scale(1.03); }
.logo img { height: 86px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -12%, rgba(168,31,250,.28), transparent 60%),
    radial-gradient(900px 480px at 10% 110%, rgba(25,195,209,.22), transparent 55%),
    linear-gradient(135deg, var(--navy-deep), #1b2a66 55%, #123a7a);
  color: #fff;
  padding: 104px 0 112px;
}
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 2px; font-size: .78rem;
  color: #fff; font-weight: 700; margin-bottom: 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow i { color: var(--cyan); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: .4em; }
.hero h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); }
.lead-light { font-size: 1.15rem; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: rgba(255,255,255,.8); font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 9px; }
.hero-badges i { color: var(--cyan); font-size: 1.05rem; }

/* ===================== Sections ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, var(--navy-deep), #123a7a); color: #fff; position: relative; overflow: hidden; }
.section-dark .section-title { color: #fff; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 52px; font-size: 1.1rem; }
.section-dark .section-subtitle { color: rgba(255,255,255,.8); }

/* ===================== Grids / Cards ===================== */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .feature, .product {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .feature:hover, .product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d4def0; }

/* Cartes "Pourquoi" : colorées par accent */
.card {
  --accent: var(--g-blue);
  --accent-2: var(--g-indigo);
  position: relative;
  overflow: hidden;
}
/* Liseré dégradé en haut */
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
/* Halo coloré diffus derrière l'icône */
.card::after {
  content: "";
  position: absolute; top: -40px; left: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  opacity: .5;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card:hover::after { opacity: .85; transform: scale(1.12); }

/* Variantes de couleur (charte iSwip) */
.card--green   { --accent: var(--g-green);   --accent-2: var(--g-blue); }
.card--blue    { --accent: var(--g-blue);    --accent-2: var(--g-indigo); }
.card--purple  { --accent: var(--g-purple);  --accent-2: var(--g-indigo); }
.card--magenta { --accent: var(--g-magenta); --accent-2: var(--g-purple); }

/* Icônes Font Awesome dans les cartes "Pourquoi" */
.card-icon {
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.55rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .25s ease;
}
.card:hover .card-icon { transform: translateY(-3px) rotate(-4deg); }
.card h3, .product h3 { font-size: 1.15rem; position: relative; z-index: 1; }
.card h3 { color: color-mix(in srgb, var(--accent) 80%, var(--navy)); }
.card p { position: relative; z-index: 1; }
.card p, .feature p, .product p { color: var(--muted); margin: 0; }

/* Features (solutions) : cartes colorées par accent */
.feature {
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  --accent: var(--blue);           /* couleur par défaut, surchargée par variante */
  --accent-2: var(--blue-dark);
}
/* Liseré dégradé en haut de carte */
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* Variantes de couleur (charte iSwip) */
.feature--blue   { --accent: var(--g-blue);   --accent-2: var(--g-indigo); }
.feature--indigo { --accent: var(--g-indigo); --accent-2: var(--g-purple); }
.feature--green  { --accent: var(--g-green);  --accent-2: var(--g-blue); }

.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.feature h3 { font-size: 1.3rem; color: var(--navy); }
.feature ul { list-style: none; padding: 0; margin: 16px 0 0; }
.feature li { color: var(--muted); padding-left: 28px; position: relative; margin-bottom: 8px; }
.feature li i {
  position: absolute; left: 0; top: .15em;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .62rem;
  background: var(--accent);
}

/* ===================== Catalogue / processus ===================== */
.catalogue-figure {
  margin: 0;
  text-align: center;
}
.catalogue-figure img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: inline-block;
}
.catalogue-figure figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: .92rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== Carrousel produits ===================== */
.carousel {
  position: relative;
  margin-top: 44px;
  padding: 0 56px; /* place pour les flèches */
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 4px; /* laisse respirer l'ombre des cartes */
  gap: 0;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 25%;   /* 4 cartes visibles sur desktop */
  box-sizing: border-box;
  padding: 0 10px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}

/* Flèches */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.carousel-arrow:hover { background: var(--blue); color: #fff; }
.carousel-arrow:active { transform: translateY(-50%) scale(.94); }
.carousel-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Points */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}
.carousel-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.carousel-dot:hover { background: #b9c4d4; }
.carousel-dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--blue);
}
.carousel-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(20, 27, 77, .82);
  backdrop-filter: blur(4px);
  animation: lightbox-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  max-width: min(520px, 86vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.lightbox-arrow,
.lightbox-close {
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-arrow { width: 52px; height: 52px; font-size: 1.2rem; }
.lightbox-arrow:hover { background: var(--blue); }
.lightbox-arrow:active { transform: scale(.94); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px; height: 46px;
  font-size: 1.3rem;
}
.lightbox-close:hover { background: var(--g-red); }

.lightbox-arrow:focus-visible,
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .lightbox { padding: 14px; gap: 6px; }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1rem; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .lightbox-arrow, .lightbox-close { transition: none; }
}

/* ===================== Cloud ===================== */
.cloud-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.cloud-text { max-width: 560px; }
.section-dark .lead-light { margin-bottom: 28px; }
.cloud-visual { text-align: center; }
.cloud-visual img { max-width: 360px; width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.cloud-features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.cloud-features li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); }
.cloud-features i {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: var(--cyan);
}

/* ===================== Contact ===================== */
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-info { text-align: center; margin-bottom: 36px; }
.contact-info .section-subtitle { margin-left: auto; margin-right: auto; }

.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--g-red); }
.nowrap { white-space: nowrap; }
.field input, .field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,125,224,.15);
}
/* Bord rouge uniquement après interaction / tentative d'envoi */
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--g-red); }
.field input:user-invalid:focus,
.field textarea:user-invalid:focus { box-shadow: 0 0 0 3px rgba(255,59,59,.15); }
textarea { resize: vertical; }

.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { margin-top: 4px; }
.field-check label { font-weight: 400; color: var(--muted); }

/* Honeypot : invisible pour l'humain */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #0a8a3a; }
.form-status.err { color: #d12b4b; }

/* ===================== Footer ===================== */
.site-footer {
  background:
    radial-gradient(900px 420px at 85% -30%, rgba(90,78,240,.22), transparent 60%),
    var(--navy-deep);
  color: rgba(255,255,255,.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr;
  gap: 48px;
  padding: 60px 24px 48px;
}
.footer-col { min-width: 0; }

.footer-logo { height: 84px; width: auto; margin-bottom: 18px; }
.footer-tagline { margin: 0 0 18px; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-mother { margin: 0 0 20px; font-size: .95rem; color: rgba(255,255,255,.72); }
.footer-mother i { color: var(--g-green); margin-right: 8px; }
.footer-mother a { color: #fff; font-weight: 600; }

.footer-title {
  font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin: 0 0 18px; font-weight: 700;
  position: relative; padding-bottom: 12px;
}
.footer-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 2px;
  background: var(--brand-gradient);
}

.footer-nav ul, .footer-legal-nav ul, .footer-contact-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
}
.footer-nav a, .footer-legal-nav a {
  color: rgba(255,255,255,.72); transition: color .2s ease, padding-left .2s ease;
}
.footer-nav a:hover, .footer-legal-nav a:hover {
  color: #fff; text-decoration: none; padding-left: 4px;
}

.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.72); }
.footer-contact-list i {
  flex: 0 0 18px; width: 18px; margin-top: .25em;
  color: var(--cyan); text-align: center;
}
.footer-contact-list a { color: rgba(255,255,255,.72); transition: color .2s ease; }
.footer-contact-list a:hover { color: #fff; text-decoration: none; }

.footer-social { display: flex; gap: 12px; margin: 0; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.05rem; transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--blue); text-decoration: none; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px; padding-top: 22px; padding-bottom: 28px;
}
.footer-bottom .muted { margin: 0; }
.muted { opacity: .55; font-size: .85rem; }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .carousel-slide { flex-basis: 33.333%; } /* 3 cartes */
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cloud-inner { grid-template-columns: 1fr; gap: 36px; }
  .cloud-visual { order: -1; }
  .carousel-slide { flex-basis: 50%; } /* 2 cartes */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .carousel { padding: 0 44px; }
  .carousel-slide { flex-basis: 100%; } /* 1 carte */
  .carousel-arrow { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 40px; text-align: center; }
  .footer-brand { grid-column: auto; }
  .footer-tagline { max-width: none; }
  .footer-mother { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-title::after { left: 50%; transform: translateX(-50%); }
  .footer-contact-list li { justify-content: center; text-align: left; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* Carrousel : respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
}

/* ===================== Toast « copié » ===================== */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-toast i { color: var(--g-green); }
.copy-toast.is-error i { color: var(--g-red); }

@media (prefers-reduced-motion: reduce) {
  .copy-toast { transition: opacity .25s ease; transform: translate(-50%, 0); }
}

/* ===================== Pages légales ===================== */
.legal-hero {
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(168,31,250,.26), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), #1b2a66 55%, #123a7a);
  color: #fff;
  padding: 72px 0 60px;
}
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .3em; }
.legal-updated { color: rgba(255,255,255,.7); margin: 0; font-size: .95rem; }
.legal-updated i { color: var(--cyan); margin-right: 6px; }

.legal-body { padding: 64px 0 80px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content > p { color: var(--muted); }

.legal-block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.legal-block::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; background: var(--brand-gradient);
}
.legal-block h2 {
  font-size: 1.2rem; margin: 0 0 14px; display: flex; align-items: center; gap: 12px;
}
.legal-block h2 i { color: var(--blue); font-size: 1rem; }
.legal-block p:last-child, .legal-block ul:last-child { margin-bottom: 0; }
.legal-block ul { margin: 0 0 1em; padding-left: 22px; color: var(--muted); }
.legal-block li { margin-bottom: 6px; }

.legal-table { width: 100%; }
.legal-table dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.legal-table dt { font-weight: 600; color: var(--navy); }
.legal-table dd { margin: 0; color: var(--muted); }

.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; }
.legal-back i { font-size: .85rem; }

@media (max-width: 640px) {
  .legal-block { padding: 24px 22px; }
  .legal-table dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-table dt { margin-top: 8px; }
}

/* ===================== Animations d'entrée au scroll ===================== */
/* État de départ commun : invisible + transition prononcée.
   Chaque section porte un data-anim différent ; .in-view (ajouté en JS via
   IntersectionObserver) remet tout à l'état neutre → la section « entre ». */
[data-anim] {
  opacity: 0;
  transition:
    opacity .8s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* États de départ par type — volontairement prononcés */
[data-anim="up"]       { transform: translateY(90px); }
[data-anim="left"]     { transform: translateX(-120px); }
[data-anim="right"]    { transform: translateX(120px); }
[data-anim="zoom-in"]  { transform: scale(.82); }
[data-anim="zoom-out"] { transform: scale(1.18); }
[data-anim="flip"]     { transform: perspective(1200px) rotateX(28deg) translateY(60px); transform-origin: top center; }
[data-anim="skew-up"]  { transform: translateY(80px) skewY(4deg); }

/* Respect de prefers-reduced-motion : pas de mouvement, apparition immédiate */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
