/* =====================================================
   NAIS — Landing extras
   1) Hero sub + responsive   2) Toggle FR/EN dans la nav + burger mobile
   3) Catalogue 5 domaines + page-dans-page (modals)
   S'appuie sur les variables de style.css
   ===================================================== */

/* ---------- 1) HERO SUB (lisibilité + responsive) ---------- */
.hero2-sub {
  color: rgba(255,255,255,0.82) !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.65 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-wrap: balance;
}

/* ---------- Respiration : aère le bas du hero + descend l'image ---------- */
.sec-hero { padding-bottom: clamp(130px, 17vh, 230px) !important; }
@media (max-width: 680px) {
  .sec-hero { padding-bottom: clamp(90px, 12vh, 150px) !important; padding-top: 40px !important;  }
  .sec-dash { margin-top: -120px !important; }
}
.hero2-sub strong { color: #fff; font-weight: 600; }

/* ---------- 2) TOGGLE LANGUE (dans la nav, à droite) ---------- */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
}
.lang-btn {
  appearance: none; border: 0; background: transparent;
  font-family: inherit;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,0.6);
  padding: 6px 11px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { background: var(--lime); color: var(--ink); }

/* Burger + drawer mobile */
.nav2-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav2-burger span { width: 17px; height: 1.6px; background: var(--paper); display: block; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav2-burger.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav2-burger.is-open span:nth-child(2) { opacity: 0; }
.nav2-burger.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.nav2-drawer {
  display: none;
  position: fixed; top: 64px; left: 12px; right: 12px;
  z-index: 49;
  flex-direction: column; gap: 4px;
  padding: 14px;
  background: rgba(14,14,22,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
}
.nav2-drawer.is-open { display: flex; }
.nav2-drawer a.drawer-link {
  font-size: 16px; color: var(--paper);
  padding: 12px 12px;
  border-radius: 10px;
}
.nav2-drawer a.drawer-link:hover { background: rgba(255,255,255,0.05); }
.nav2-drawer .drawer-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 0; }
.nav2-drawer .btn { width: 100%; }

@media (max-width: 1000px) {
  .nav2-burger { display: inline-flex; }
  .nav2-cta .nav2-login,
  .nav2-cta .nav2-signup { display: none; }       /* déplacés dans le drawer */
}
@media (max-width: 420px) {
  .lang-btn { padding: 6px 9px; font-size: 10.5px; }
  .nav2-cta { gap: 8px; }
}

/* ---------- 3) CATALOGUE — 5 domaines cliquables ---------- */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 4vw, 50px);
  perspective: 1400px;
}
@media (min-width: 1000px) {
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
}
.domain-card {
  position: relative;
  text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)), #0E0E14;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 24px;
  cursor: pointer;
  font-family: inherit;
  color: var(--paper);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.domain-card--wide { grid-column: 1 / -1; }
.domain-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent-color, var(--lime));
  transition: width .25s var(--ease);
}
.domain-card[data-accent="lime"] { --accent-color: var(--lime); }
.domain-card[data-accent="cyan"] { --accent-color: var(--cyan); }
.domain-card[data-accent="pink"] { --accent-color: var(--pink); }
.domain-card[data-accent="teal"] { --accent-color: var(--teal); }
.domain-card[data-accent="red"]  { --accent-color: var(--red); }
.domain-card:hover { transform: translateY(-4px); border-color: var(--accent-color); background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)), #0E0E14; }
.domain-card:hover::after { width: 8px; }
.domain-ico { font-size: 24px; line-height: 1; color: var(--accent-color); }
.domain-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: .01em; line-height: 1; color: var(--paper);
}
.domain-tag { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.5; }
.domain-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.domain-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-color); }
.domain-go { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.domain-card:hover .domain-go { color: var(--paper); }

/* ---------- Modals (page-dans-page) ---------- */
.lmodal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6,6,10,0.74);
  backdrop-filter: blur(8px);
}
.lmodal-backdrop.is-open { display: flex; animation: lmfade .25s var(--ease); }
@keyframes lmfade { from { opacity: 0; } to { opacity: 1; } }
.lmodal {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: 88vh; overflow-y: auto;
  background: #12121C;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: lmpop .3s var(--ease);
}
.lmodal--brique { max-width: 680px; }
@keyframes lmpop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lmodal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: var(--paper);
  font-size: 14px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lmodal-close:hover { background: var(--red); border-color: var(--red); }
.lmodal-back {
  appearance: none; border: 0; background: transparent;
  color: var(--cyan); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0; margin-bottom: 16px;
}
.lmodal-back:hover { text-decoration: underline; }
.lmodal-head { margin-bottom: 24px; padding-right: 40px; }
.lmodal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-color, var(--lime)); }
.lmodal-title { display: flex; align-items: center; gap: 10px; font-family: "Bebas Neue", sans-serif; font-size: clamp(34px, 5vw, 52px); line-height: .95; letter-spacing: .01em; color: var(--paper); margin: 8px 0 10px; }
.lmodal-title-ico { width: 28px; height: 28px; flex-shrink: 0; }
.lmodal-desc { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.62); }

.lmodal-briques { display: flex; flex-direction: column; gap: 10px; }
.lbrique-row {
  display: flex; align-items: center; gap: 16px;
  text-align: left; width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px 18px;
  font-family: inherit; color: var(--paper);
}
.lbrique-row.is-hidden { display: none; }
.lbrique-main { flex: 1; min-width: 0; }
.lbrique-name { font-size: 15px; font-weight: 600; color: var(--paper); margin-bottom: 3px; }
.lbrique-desc { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.lbrique-aside { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lbrique-tier { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.10); white-space: nowrap; }
.lmodal-showmore {
  appearance: none; cursor: pointer; font-family: inherit;
  margin-top: 6px; align-self: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-pill);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lmodal-showmore:hover { border-color: var(--paper); color: var(--paper); }
.lmodal-showmore.is-hidden { display: none; }
.lmodal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
}
.lmodal-foot-note { font-size: 12.5px; color: rgba(255,255,255,0.55); max-width: 60%; line-height: 1.5; }

/* Détail brique */
.bdetail-head { padding-right: 40px; margin-bottom: 22px; }
.bdetail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bdetail-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.6); }
.bdetail-badge.accent { background: rgba(226,255,15,0.10); color: var(--lime); border-color: rgba(226,255,15,0.3); }
.bdetail-title { font-family: "Bebas Neue", sans-serif; font-size: clamp(32px, 5vw, 48px); line-height: .95; letter-spacing: .01em; color: var(--paper); margin-bottom: 12px; }
.bdetail-desc { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.78); }
.bdetail-section { margin-top: 24px; }
.bdetail-section h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.bdetail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.bdetail-list li { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); display: flex; gap: 11px; align-items: flex-start; }
.bdetail-list li::before { content: ""; flex-shrink: 0; margin-top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.bdetail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.bdetail-meta-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 18px; }
.bdetail-meta-tile .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 5px; }
.bdetail-meta-tile .v { font-size: 14px; font-weight: 600; color: var(--paper); }
.bdetail-cost-hidden { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 16px 18px; background: rgba(0,168,189,0.07); border: 1px dashed rgba(0,168,189,0.4); border-radius: 12px; font-size: 13px; color: rgba(255,255,255,0.78); }
.bdetail-cost-hidden b { color: var(--cyan); }
.bdetail-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 860px) {
  .domains-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px;}
  .domain-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
  }
  .domain-ico { grid-row: 1; grid-column: 1; }
  .domain-name { grid-row: 1; grid-column: 2; }
  .domain-tag, .domain-foot { grid-column: 1 / -1; }
  .lmodal { padding: 24px; max-height: 92vh; }
  .lmodal-foot { flex-direction: column; align-items: stretch; }
  .lmodal-foot-note { max-width: none; }
  .bdetail-meta { grid-template-columns: 1fr; }
}

/* ---------- Modal Newsletter (Brevo) ---------- */
.news-backdrop {
  position: fixed; inset: 0; z-index: 220;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6,6,10,0.74);
  backdrop-filter: blur(8px);
}
.news-backdrop.is-open { display: flex; animation: lmfade .25s var(--ease); }
.news-modal {
  position: relative;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 36px;
  background: #141313;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 41px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: lmpop .3s var(--ease);
}
.news-close {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(155,155,150,0.25);
  background: transparent; color: var(--muted);
  cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.news-close:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.news-title {
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: clamp(34px, 5.5vw, 48px); line-height: 1; letter-spacing: -0.02em;
  color: var(--paper); margin: 0; max-width: 459px;
}
.news-title .news-serif {
  font-family: "Instrument Serif", serif; font-weight: 400; font-style: italic;
  letter-spacing: 0;
}
.news-desc { max-width: 460px; display: flex; flex-direction: column; gap: 4px; }
.news-desc p { margin: 0; font-size: 13px; line-height: 21px; color: rgba(255,255,255,0.62); }
.news-form {
  display: flex; align-items: stretch; gap: 8px;
  width: 100%; max-width: 360px; justify-content: center;
}
.news-input {
  flex: 1; min-width: 0; height: 41px;
  background: transparent;
  border: 0.6px solid var(--lime); border-radius: 3px;
  padding: 0 17px; color: var(--paper);
  font-family: inherit; font-size: 13px; letter-spacing: .02em;
  transition: box-shadow .2s var(--ease);
}
.news-input::placeholder { color: var(--muted); opacity: .6; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.news-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(226,255,15,0.25); }
.news-input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 2px rgba(224,20,15,0.25); }
.news-submit {
  flex-shrink: 0; height: 41px; padding: 0 24px;
  background: var(--lime); color: #000;
  border: 0; border-radius: 3px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: .48px; text-transform: uppercase; white-space: nowrap;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.news-submit:hover { filter: brightness(1.08); }
.news-submit[disabled] { opacity: .55; cursor: default; }
.news-feedback {
  margin: -22px 0 0; font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.78);
}
.news-feedback.is-error { color: var(--red); }
.news-feedback.is-success { color: var(--lime); }
.news-write {
  font-size: 14px; line-height: 1.55; color: var(--lime);
  text-decoration: underline; text-underline-offset: 2px;
}
.news-write:hover { opacity: .8; }

@media (max-width: 540px) {
  .news-modal { padding: 48px 24px; gap: 28px; }
  .news-form { flex-direction: column; align-items: stretch; max-width: 280px; }
  .news-input { flex: none; }
}

/* Reveal de secours (idempotent) */
.reveal.is-in { opacity: 1; transform: none; }
