/* WEB 4 LIVE — Pages légales (CGV, etc.) — style spatial */

body.w4l-legal-body,
body.page-id-806,
body.page-id-54346,
body.page-template-default.page-id-806,
body.page-template-default.page-id-54346 {
  background: #030814 !important;
  color: #e8eef7 !important;
}

body.w4l-legal-body #main-content,
body.page-id-806 #main-content,
body.page-id-54346 #main-content,
body.page-id-806 #et-main-area,
body.page-id-54346 #et-main-area,
body.page-id-806 .et_pb_section,
body.page-id-54346 .et_pb_section,
body.page-id-806 .et_pb_row,
body.page-id-54346 .et_pb_row,
body.page-id-806 .entry-content,
body.page-id-54346 .entry-content,
body.page-id-806 article.post,
body.page-id-54346 article.post,
body.page-id-806 .et_builder_inner_content,
body.page-id-54346 .et_builder_inner_content {
  background: transparent !important;
  background-color: transparent !important;
}

body.page-id-806 #main-content .container,
body.page-id-54346 #main-content .container,
body.w4l-legal-body #main-content .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Masque le titre Divi (doublon avec le hero) */
body.page-id-54346 .entry-title.main_title,
body.page-id-806 .entry-title.main_title {
  display: none !important;
}

body.page-id-54346 #left-area,
body.page-id-54346 #content-area,
body.w4l-legal-body #left-area,
body.w4l-legal-body #content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page-id-54346 #sidebar,
body.w4l-legal-body.et_right_sidebar #sidebar,
body.w4l-legal-body.et_left_sidebar #sidebar {
  display: none !important;
}

/* Masque le rendu Divi brut si on injecte .w4l-legal */
body.page-id-806 .et_pb_section_0:not(.w4l-legal-keep),
body.page-id-806 .et_pb_text:not(.w4l-legal-keep) {
  /* content remplacé via the_content */
}

.w4l-legal {
  --w4l-cyan: #2ea3f2;
  --w4l-cyan-soft: rgba(46, 163, 242, 0.35);
  --w4l-deep: #030814;
  --w4l-navy: #0a1628;
  --w4l-card: rgba(255, 255, 255, 0.04);
  --w4l-line: rgba(255, 255, 255, 0.12);
  --w4l-text: #eef4ff;
  --w4l-muted: #9eb0c8;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--w4l-text);
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 72px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Fond spatial full-bleed derrière le contenu */
.w4l-legal-shell {
  position: relative;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(46, 163, 242, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 70%, rgba(14, 165, 233, 0.1), transparent 45%),
    linear-gradient(180deg, #06101f 0%, #030814 40%, #02060f 100%);
  /* overflow visible : ne pas bloquer le scroll mobile */
  overflow: visible;
}

.w4l-legal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(46, 163, 242, 0.5), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 20% 85%, rgba(46, 163, 242, 0.4), transparent);
  pointer-events: none;
  opacity: 0.9;
}

.w4l-legal-shell::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  top: -120px;
  right: -160px;
  background: radial-gradient(circle, rgba(46, 163, 242, 0.16), transparent 68%);
  pointer-events: none;
  filter: blur(4px);
}

/* Hero */
.w4l-legal .w4l-legal-hero {
  text-align: center;
  padding: 36px 20px 28px;
  margin-bottom: 22px;
  position: relative;
}

.w4l-legal .w4l-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--w4l-line);
  background: rgba(46, 163, 242, 0.1);
  color: #8fd4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.w4l-legal .w4l-legal-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.w4l-legal .w4l-legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff !important;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(46, 163, 242, 0.25);
}

.w4l-legal .w4l-legal-hero .lead {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--w4l-muted) !important;
  font-size: 1.02rem;
}

/* Meta company card */
.w4l-legal .w4l-legal-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
  background:
    linear-gradient(145deg, rgba(46, 163, 242, 0.1), transparent 50%),
    rgba(10, 22, 40, 0.85);
  border: 1px solid var(--w4l-line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .w4l-legal .w4l-legal-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.w4l-legal .w4l-legal-meta .meta-title {
  grid-column: 1 / -1;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 4px;
}

.w4l-legal .w4l-legal-meta .meta-item {
  font-size: 13.5px;
  color: var(--w4l-muted);
  margin: 0;
}

.w4l-legal .w4l-legal-meta .meta-item strong {
  color: #cfe6ff;
  font-weight: 700;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.w4l-legal .w4l-legal-meta a {
  color: #7dd3fc !important;
  text-decoration: none !important;
}

.w4l-legal .w4l-legal-meta a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Section cards */
.w4l-legal .w4l-legal-section {
  background: var(--w4l-card);
  border: 1px solid var(--w4l-line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  margin: 0 0 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.w4l-legal .w4l-legal-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2ea3f2, rgba(46, 163, 242, 0.15));
  border-radius: 3px 0 0 3px;
}

.w4l-legal .w4l-legal-section:hover {
  border-color: rgba(46, 163, 242, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(46, 163, 242, 0.08);
}

.w4l-legal .w4l-legal-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  line-height: 1.35;
}

.w4l-legal .w4l-legal-section .num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(46, 163, 242, 0.16);
  border: 1px solid rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.w4l-legal .w4l-legal-section p {
  margin: 0 0 12px;
  color: var(--w4l-muted) !important;
  font-size: 15px;
}

.w4l-legal .w4l-legal-section p:last-child {
  margin-bottom: 0;
}

.w4l-legal .w4l-legal-section strong {
  color: #e8f4ff !important;
}

.w4l-legal .w4l-legal-section ul {
  margin: 0 0 12px;
  padding: 0 0 0 1.15em;
  color: var(--w4l-muted);
}

.w4l-legal .w4l-legal-section li {
  margin: 0 0 8px;
  padding-left: 4px;
  line-height: 1.55;
}

.w4l-legal .w4l-legal-section li::marker {
  color: #2ea3f2;
}

.w4l-legal .w4l-legal-section a {
  color: #7dd3fc !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Footer note */
.w4l-legal .w4l-legal-foot {
  margin-top: 28px;
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(46, 163, 242, 0.3);
  background: rgba(46, 163, 242, 0.06);
  color: var(--w4l-muted);
  font-size: 13.5px;
}

.w4l-legal .w4l-legal-foot a {
  color: #8fd4ff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.w4l-legal .w4l-legal-foot a:hover {
  color: #fff !important;
}

@media (max-width: 600px) {
  .w4l-legal {
    padding: 16px 14px 56px;
  }
  .w4l-legal .w4l-legal-section {
    padding: 16px 16px 14px;
  }
  .w4l-legal .w4l-legal-section h2 {
    font-size: 1.02rem;
  }
}

/* ========== Guide Gmail — full width ========== */
.w4l-mail-shell {
  width: 100%;
  max-width: 100%;
}

.w4l-legal.w4l-mail-guide {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 48px) 80px;
  box-sizing: border-box;
}

.w4l-mail-hero {
  padding: 48px 12px 36px;
  margin-bottom: 28px;
}

.w4l-mail-hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 2.75rem) !important;
}

.w4l-mail-addr {
  display: inline-block;
  background: linear-gradient(135deg, #7dd3fc, #2ea3f2 45%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}

.w4l-mail-hero .lead {
  max-width: 56ch;
  font-size: 1.08rem;
}

.w4l-mail-hero-actions,
.w4l-mail-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.w4l-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.w4l-mail-btn-primary {
  background: linear-gradient(135deg, #2ea3f2, #6366f1) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(46, 163, 242, 0.35);
}

.w4l-mail-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(46, 163, 242, 0.45);
  color: #fff !important;
}

.w4l-mail-btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #e8f4ff !important;
}

.w4l-mail-btn-ghost:hover {
  border-color: rgba(46, 163, 242, 0.5) !important;
  background: rgba(46, 163, 242, 0.1) !important;
  color: #fff !important;
}

/* Benefits row */
.w4l-mail-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.w4l-mail-benefit {
  background:
    linear-gradient(160deg, rgba(46, 163, 242, 0.12), transparent 55%),
    rgba(10, 22, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.w4l-mail-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(46, 163, 242, 0.16);
  border: 1px solid rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
  font-size: 18px;
  font-weight: 800;
}

.w4l-mail-benefit h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff !important;
}

.w4l-mail-benefit p {
  margin: 0;
  font-size: 13.5px;
  color: #9eb0c8 !important;
}

.w4l-mail-benefit code {
  color: #7dd3fc;
  background: rgba(46, 163, 242, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12.5px;
}

/* Option cards — 3 colonnes full width */
.w4l-mail-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 22px;
  align-items: stretch;
}

.w4l-mail-card {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 40%),
    rgba(8, 16, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.w4l-mail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2ea3f2, rgba(99, 102, 241, 0.5), transparent);
}

.w4l-mail-card-featured {
  border-color: rgba(46, 163, 242, 0.45);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(46, 163, 242, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(165deg, rgba(46, 163, 242, 0.16), transparent 42%),
    rgba(8, 16, 32, 0.92);
}

.w4l-mail-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.w4l-mail-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.w4l-mail-pill-soft {
  background: rgba(46, 163, 242, 0.12);
  border-color: rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
}

.w4l-mail-pill-premium {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.w4l-mail-card .num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(46, 163, 242, 0.16);
  border: 1px solid rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
  font-size: 12px;
  font-weight: 800;
}

.w4l-mail-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  line-height: 1.3;
}

.w4l-mail-card-lead {
  margin: 0 0 14px;
  color: #9eb0c8 !important;
  font-size: 14.5px;
  line-height: 1.6;
}

.w4l-mail-card-lead strong {
  color: #e8f4ff !important;
}

.w4l-mail-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: mailstep;
  flex: 1;
}

.w4l-mail-steps li {
  position: relative;
  counter-increment: mailstep;
  margin: 0 0 10px;
  padding: 10px 12px 10px 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #b7c7dc;
  font-size: 13.5px;
  line-height: 1.5;
}

.w4l-mail-steps li::before {
  content: counter(mailstep);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 163, 242, 0.18);
  border: 1px solid rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
  font-size: 11px;
  font-weight: 800;
}

.w4l-mail-steps code,
.w4l-mail-guide code {
  color: #7dd3fc;
  background: rgba(46, 163, 242, 0.1);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
}

.w4l-mail-result,
.w4l-mail-tip {
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cfe6ff !important;
}

.w4l-mail-result {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.w4l-mail-tip {
  background: rgba(46, 163, 242, 0.08);
  border: 1px solid rgba(46, 163, 242, 0.25);
}

.w4l-mail-result strong,
.w4l-mail-tip strong {
  color: #fff !important;
}

/* DNS + hébergement */
.w4l-mail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.w4l-mail-guide .w4l-mail-grid-2 .w4l-legal-section {
  margin: 0;
  height: 100%;
}

/* Checklist */
.w4l-mail-checklist {
  background:
    linear-gradient(145deg, rgba(46, 163, 242, 0.1), transparent 50%),
    rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 0 0 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.w4l-mail-checklist h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
}

.w4l-mail-checklist .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(46, 163, 242, 0.16);
  border: 1px solid rgba(46, 163, 242, 0.35);
  color: #8fd4ff;
  font-size: 12px;
  font-weight: 800;
}

.w4l-mail-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.w4l-mail-check-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b7c7dc;
  font-size: 14px;
  line-height: 1.45;
}

.w4l-mail-check-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
}

/* CTA bottom */
.w4l-mail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  margin: 0 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(46, 163, 242, 0.35);
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, rgba(46, 163, 242, 0.18), transparent 55%),
    rgba(8, 18, 36, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.w4l-mail-cta h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff !important;
}

.w4l-mail-cta p {
  margin: 0;
  color: #9eb0c8 !important;
  font-size: 14.5px;
}

.w4l-mail-cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .w4l-mail-options {
    grid-template-columns: 1fr;
  }
  .w4l-mail-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .w4l-legal.w4l-mail-guide {
    padding: 20px 14px 64px;
  }
  .w4l-mail-hero {
    padding: 28px 4px 22px;
  }
  .w4l-mail-grid-2,
  .w4l-mail-check-list {
    grid-template-columns: 1fr;
  }
  .w4l-mail-cta {
    padding: 20px 18px;
  }
  .w4l-mail-cta-actions {
    width: 100%;
    justify-content: stretch;
  }
  .w4l-mail-cta-actions .w4l-mail-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .w4l-mail-benefits {
    grid-template-columns: 1fr;
  }
}
