:root {
  --bg: #0c141e;
  --panel: #162432;
  --panel-soft: #101c29;
  --line: #2e4357;
  --text: #e7edf5;
  --muted: #9fb0c2;
  --primary: #00b894;
  --primary-hover: #00a887;
  --secondary: #2d98da;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 10% -20%, #153047 0%, var(--bg) 40%, #09111a 100%);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 20, 30, 0.9);
  border-bottom: 1px solid rgba(46, 67, 87, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #22d2b1);
  color: #06231d;
  font-weight: 900;
}

.brand-text { font-size: 20px; color: #ffffff; }

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.topbar nav a {
  color: #cfe1f2;
  text-decoration: none;
  margin-left: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.topbar nav a:hover { color: #ffffff; }

.topbar nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* Pleine largeur viewport : placée hors de .page-shell pour ne pas être rétrécie par les colonnes pubs */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 564px;
  background: url("images/ia-1.png") center top / cover no-repeat;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero.hero--gallery-subtle {
  min-height: 240px;
  background-position: center 18%;
}

.gallery-page-intro h1 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.gallery-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px) {
  .gallery-showcase {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
  }
}

.gallery-showcase-visual img.gallery-item {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #0d1722;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--line);
  display: block;
}

.gallery-showcase-copy h2 {
  margin-top: 0;
  color: #dfe6e9;
  font-size: 1.15rem;
}

.gallery-showcase-copy p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.gallery-showcase-copy code {
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 6px;
  border-radius: 4px;
  color: #d6e0ea;
}

.cta {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 8px;
}

.cta:hover { background: var(--primary-hover); }

.cta.secondary { background: var(--secondary); }

.container { max-width: 1080px; margin: 28px auto; padding: 0 16px; }

/* —— Mise en page 3 colonnes : encarts | contenu | encarts —— */
.page-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 14px 24px;
}

.page-core {
  flex: 1;
  min-width: 0;
}

.ad-rail {
  flex: 0 0 172px;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  padding-top: 6px;
}

.ad-rail[hidden] {
  display: none !important;
}

.ad-rail-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d859a;
}

.ad-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-slot-shell {
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.98) 0%, rgba(7, 12, 18, 0.99) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-shell a {
  display: block;
  width: 100%;
  line-height: 0;
}

.ad-slot-shell img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-slot-shell--placeholder,
.ad-slot-shell--muted {
  border-style: dashed;
  opacity: 0.75;
}

.ad-placeholder-text {
  font-size: 11px;
  color: #5d7286;
  text-align: center;
  padding: 10px;
  line-height: 1.35;
}

/* Pied de page */
.site-footer {
  margin-top: 8px;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(46, 67, 87, 0.55);
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-copy {
  margin: 0 0 10px;
  font-size: 14px;
  color: #c5d6e8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
}

.footer-link-btn {
  background: transparent;
  border: 0;
  color: #7dc8fb;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

.footer-link-btn:hover { color: #ffffff; }

.footer-sep {
  color: #5a7084;
  user-select: none;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
}

/* Bannière cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(12, 20, 30, 0.96);
  border-top: 1px solid rgba(46, 67, 87, 0.85);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner-inner {
  max-width: 920px;
  margin: 0 auto;
}

.cookie-banner-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.cookie-banner-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #b6cadb;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-btn-primary,
.cookie-btn-muted,
.cookie-btn-link {
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.cookie-btn-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
}

.cookie-btn-primary:hover { background: var(--primary-hover); }

.cookie-btn-muted {
  background: #2c3f52;
  color: #eaf2fa;
  border: 1px solid #466178;
}

.cookie-btn-muted:hover {
  background: #375066;
}

.cookie-btn-link {
  background: transparent;
  border: 0;
  color: #7dc8fb;
  text-decoration: underline;
  padding-inline: 6px;
}

body.cookie-banner-visible {
  padding-bottom: 200px;
}

/* Modales textes légaux */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 10, 16, 0.78);
}

.legal-overlay.open {
  display: flex;
}

.legal-card {
  width: min(760px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(26, 40, 55, 0.99) 0%, rgba(19, 31, 43, 0.99) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.legal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-card-head h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.legal-body p {
  margin: 0 0 10px;
  color: #c4d5e8;
  line-height: 1.52;
  font-size: 14px;
}

/* Admin espaces pubs (2 encarts : gauche / droite) */
.admin-settings-highlight {
  margin-bottom: 26px;
  padding: 18px 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 184, 148, 0.35);
  background: rgba(0, 184, 148, 0.07);
}

.admin-settings-highlight .settings-subtitle {
  margin-top: 0;
}

.ad-slots-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .ad-slots-admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-ad-card {
  background: rgba(12, 20, 28, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.admin-ad-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #e7f3ff;
}

.admin-ad-thumb {
  max-width: 120px;
  max-height: 80px;
  display: block;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #40566a;
}

.admin-settings-card label {
  margin-top: 6px;
}

.admin-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.admin-ad-actions input[type="file"] {
  max-width: 100%;
}

.admin-ad-meta-btn {
  margin-top: 0 !important;
  background: var(--secondary) !important;
}

.admin-gallery-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-gallery-card {
  background: rgba(12, 20, 28, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.admin-gallery-thumb {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #0d1722;
  border: 1px solid #40566a;
  border-radius: 6px;
  margin-bottom: 8px;
}

.panel {
  background: linear-gradient(180deg, rgba(26, 40, 55, 0.95) 0%, rgba(19, 31, 43, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.panel h2 { margin: 0 0 12px; font-size: 28px; }

.pricing-download-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.pricing-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2d98da;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.pricing-download-btn:hover {
  background: #2688c7;
}

.home-download-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.panel p { color: #c6d4e2; line-height: 1.5; }

.trust-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-row article,
.grid article,
.faq-list article {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.trust-row h3,
.grid h3,
.faq-list h3 { margin: 0 0 6px; font-size: 17px; color: #edf4fa; }

.trust-row p,
.grid p,
.faq-list p { margin: 0; color: #a7b7c8; font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.section-head p {
  margin: 0;
  color: #9ec8ea;
  font-size: 14px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.5) inset;
}

.plan { color: #9ec8ea; margin: 0 0 4px; font-weight: 700; }

.price {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.15;
}

.price.price--soon {
  font-size: 1.25rem;
  font-weight: 700;
  color: #c8dce8;
  letter-spacing: 0.02em;
}

.price-card ul {
  margin: 0 0 10px 20px;
  color: #d7e3ef;
  min-height: 120px;
}

.primary {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.primary:hover { background: var(--primary-hover); }

.primary:disabled,
.primary[disabled] {
  background: #4a5f73;
  color: #c8d4e0;
  cursor: not-allowed;
  opacity: 0.92;
}

.primary:disabled:hover,
.primary[disabled]:hover {
  background: #4a5f73;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.gallery-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 10px;
  padding: 6px 4px 14px;
  margin: 6px -6px 0;
  outline: none;
}

.gallery-scroll-wrap:focus-visible {
  box-shadow: 0 0 0 2px rgba(45, 152, 218, 0.45);
  border-radius: 8px;
}

.gallery-scroll-wrap::-webkit-scrollbar {
  height: 9px;
}

.gallery-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(80, 110, 140, 0.55);
  border-radius: 5px;
}

.gallery-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}

.gallery-grid.gallery-grid--scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding: 2px 6px 4px;
}

.gallery-grid.gallery-grid--scroll figure {
  flex: 0 0 auto;
  width: clamp(176px, 42vw, 240px);
  scroll-snap-align: start;
}

.gallery-grid.gallery-grid--scroll img.gallery-item {
  max-height: 158px;
  width: 100%;
  object-fit: contain;
}

.gallery-grid figure {
  margin: 0;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #0d1722;
  display: block;
  cursor: zoom-in;
}

.gallery-grid figcaption {
  padding: 8px 10px;
  color: #d6e0ea;
  font-size: 12px;
  line-height: 1.35;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.muted { color: var(--muted); }

.license-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.admin-box {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
}

.admin-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* Formulaire connexion admin : centrés, champs homogènes */
.admin-login-box {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  padding: 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-login-box > h3 {
  margin-bottom: 6px;
  text-align: center;
}

.admin-login-form-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 12px 0 0;
  width: 100%;
  max-width: 348px;
  text-align: left;
}

.admin-login-field label {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-login-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap > input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  margin-top: 0 !important;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9fb7ce;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Un seul pictogramme visible : les deux SVG sont superposés dans la même zone */
.password-toggle-btn .toggle-eye-slot {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.password-toggle-btn .toggle-eye-slot svg {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

/* Défaut : mot de passe masqué → œil barré uniquement */
.password-toggle-btn .icon-eye-open {
  display: none !important;
}

.password-toggle-btn .icon-eye-off {
  display: block !important;
}

/* Mot de passe affiché en clair → œil ouvert uniquement */
.password-toggle-btn.password-plain-visible .icon-eye-open {
  display: block !important;
}

.password-toggle-btn.password-plain-visible .icon-eye-off {
  display: none !important;
}

.password-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f0f7ff;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.admin-login-submit {
  width: 100%;
  max-width: 348px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 20px !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  display: block;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.9);
  z-index: 950;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.admin-modal.open { display: flex; }

.admin-modal-card {
  width: 100vw;
  height: 100vh;
  max-height: none;
  overflow: auto;
  background: linear-gradient(180deg, rgba(23, 36, 50, 0.99) 0%, rgba(17, 27, 38, 0.99) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 28px;
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.admin-toolbar-btn {
  margin-top: 0 !important;
  flex-shrink: 0;
  min-height: 40px;
  padding-inline: 14px !important;
}

.admin-modal-intro {
  margin: 8px 0 14px;
  line-height: 1.45;
}

/* Connexion : masquage fiable une fois connecté (hidden + flex parent) */
#adminLoginBox[hidden],
.admin-login-box[hidden] {
  display: none !important;
}

.admin-box#adminPanel .admin-head .secondary-btn {
  margin-top: 0 !important;
}

#adminPanel #createBtn {
  margin-top: 18px !important;
}

.admin-settings-card .admin-settings-creds-form {
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 720px) {
  .admin-settings-card .admin-settings-creds-form {
    grid-template-columns: 1fr;
  }
}

.settings-actions-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.settings-primary-action {
  margin-top: 0 !important;
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 24px;
}

label {
  display: block;
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #c9d5e2;
}

input, select {
  width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #40566a;
  background: #0f1b26;
  color: #f3f7fb;
}

textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #40566a;
  background: #0f1b26;
  color: #f3f7fb;
  resize: vertical;
  font-family: inherit;
}

button {
  margin-top: 14px;
  background: #27ae60;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn {
  margin-top: 0;
  background: #2d98da;
}

#sendAdminNotificationBtn {
  background: #2d98da;
}

#refreshAdminNotificationsBtn {
  background: #8e44ad;
}

#closeAdminBtn { background: #e74c3c; }
#logoutBtn { background: #f39c12; }
#copyMailBtn { background: #8e44ad; margin-top: 10px; }

#createBtn { margin-bottom: 14px; }
.mail-section-title { margin-top: 20px !important; }

.settings-subtitle {
  margin: 22px 0 6px;
  font-size: 17px;
}

.settings-email-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.settings-email-save-row .secondary-btn {
  margin-top: 0;
}

.contact-email-save-feedback {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-email-save-feedback.contact-email-save-feedback--ok {
  color: #00d4a4;
  text-shadow: 0 0 12px rgba(0, 184, 148, 0.35);
}

.admin-settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.72);
  z-index: 960;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.admin-settings-modal.open { display: flex; }

.admin-settings-card {
  width: min(860px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(26, 40, 55, 0.99) 0%, rgba(19, 31, 43, 0.99) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  padding: 20px;
}

.contact-offer-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.72);
  z-index: 955;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.contact-offer-modal.open { display: flex; }

.contact-offer-card {
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(26, 40, 55, 0.99) 0%, rgba(19, 31, 43, 0.99) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  padding: 20px;
}

.checkout-summary {
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid rgba(0, 184, 148, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0 18px;
}

.checkout-summary-line {
  margin: 4px 0;
}

.paypal-buttons-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  min-height: 48px;
}

.paypal-buttons-container:empty::before {
  content: "Chargement de PayPal…";
  color: #555;
  font-size: 14px;
}

.checkout-success {
  margin-top: 8px;
}

.checkout-success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 12px 0;
}

.checkout-license-key {
  font-family: "Consolas", "Courier New", monospace;
  background: #0e1722;
  border: 1px solid #2f4255;
  padding: 2px 6px;
  border-radius: 6px;
  user-select: all;
}

.admin-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.admin-licenses-search-row {
  margin: 10px 0 2px;
}

.admin-licenses-search-row .admin-licenses-search-field {
  min-width: 220px;
}

.admin-licenses-search-row .admin-licenses-search-field input {
  width: 100%;
  max-width: 420px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.admin-tab-btn {
  border: 1px solid #38516a;
  background: #162434;
  color: #cfe5f8;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.admin-tab-btn--active {
  background: #1f6fb2;
  border-color: #2e89d8;
  color: #ffffff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel--active {
  display: block;
}

.admin-subhead {
  margin: 14px 0 6px;
  font-size: 1rem;
  color: var(--muted);
}

.admin-licenses-list {
  margin-top: 10px;
  border: 1px solid #2f4255;
  border-radius: 10px;
  background: #0e1722;
  padding: 10px;
  max-height: 280px;
  overflow: auto;
}

.admin-license-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(200px, 1.15fr) minmax(150px, 0.95fr) minmax(200px, 1.15fr) minmax(80px, auto) minmax(160px, auto) minmax(110px, auto);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(120, 145, 170, 0.22);
  padding: 8px 4px;
  font-size: 13px;
}

.admin-license-row:last-child {
  border-bottom: none;
}

.admin-license-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-license-toggle {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.admin-license-toggle--deactivate {
  background: #27ae60;
  color: #fff;
}

.admin-license-toggle--deactivate:hover {
  filter: brightness(1.08);
}

.admin-license-toggle--reactivate {
  background: #c0392b;
  color: #fff;
}

.admin-license-toggle--reactivate:hover {
  filter: brightness(1.08);
}

.admin-license-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-license-badge--active {
  background: rgba(39, 174, 96, 0.2);
  color: #7bed9f;
  border: 1px solid rgba(39, 174, 96, 0.35);
}

.admin-license-badge--disabled {
  background: rgba(231, 76, 60, 0.2);
  color: #ff8a80;
  border: 1px solid rgba(231, 76, 60, 0.35);
}

@media (max-width: 980px) {
  .admin-license-row {
    grid-template-columns: 1fr;
  }
}

.admin-license-device-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.admin-license-device {
  min-width: 0;
}

pre {
  margin-top: 12px;
  white-space: pre-wrap;
  background: #0e1722;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #2f4255;
}

#out:empty {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.92);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-image {
  max-width: 86vw;
  max-height: 76vh;
  border-radius: 10px;
  border: 1px solid #3d5163;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #1f2a36;
  border: 1px solid #40566a;
  color: #e8f0f7;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2a36;
  border: 1px solid #40566a;
  color: #e8f0f7;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 24px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

@media (max-width: 1180px) {
  .page-shell {
    flex-direction: column;
    padding-inline: 12px;
  }
  .ad-rail {
    position: static;
    width: 100%;
    flex-basis: auto;
    order: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(46, 67, 87, 0.35);
  }
  .ad-rail-label { text-align: center; }
  .page-core { order: 0; width: 100%; }
}

@media (max-width: 980px) {
  .hero {
    min-height: 584px;
  }
  .trust-row,
  .offers-grid,
  .faq-list { grid-template-columns: 1fr; }
  .gallery-grid:not(.gallery-grid--scroll) {
    grid-template-columns: 1fr;
  }
  .grid { grid-template-columns: 1fr; }
  .license-form { grid-template-columns: 1fr; }
  .gallery-grid:not(.gallery-grid--scroll) img {
    max-height: 58vh;
  }
  .gallery-grid.gallery-grid--scroll figure {
    width: clamp(160px, 72vw, 220px);
  }
  .gallery-grid.gallery-grid--scroll img.gallery-item {
    max-height: 140px;
  }
}

/* —— Accueil (index, .page-home) —— */
.page-home .container {
  max-width: 1120px;
}

/* Accueil : bandeau pleine largeur du site (cover) — hauteur généreuse pour mieux voir toute l’illustration */
.page-home .hero.home-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: clamp(520px, 62vh, 840px);
  background: url("images/ia-1.png") center 35% / cover no-repeat;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.home-hero {
  position: relative;
}

@media (max-width: 720px) {
  .page-home .hero.home-hero {
    min-height: clamp(320px, 52vh, 520px);
    background-position: center 28%;
  }
}

/* Bandeau pages secondaires (ex. blog) : même image, aucun assombrissement */
.blog-hero {
  min-height: 420px;
  background-position: center 22%;
}

/* Texte d’accroche sous la bannière : même fond que la page, pas de bande claire sous l’image */
.home-intro-below {
  margin: 0;
  padding: 20px 0 4px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.home-intro-below-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dc8fb;
}

.home-title {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, #ffffff 10%, #a8e6cf 55%, #7dc8fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lead {
  margin: 0 0 22px;
  font-size: clamp(1.02rem, 1.9vw, 1.14rem);
  line-height: 1.65;
  color: #c5d6e8;
  max-width: 38em;
}

.home-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.home-cta-primary {
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.35);
}

.home-cta-secondary {
  box-shadow: 0 6px 20px rgba(45, 152, 218, 0.25);
}

.home-welcome-ghost {
  color: #b8d4ef;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid rgba(125, 200, 251, 0.35);
}

.home-welcome-ghost:hover {
  color: #ffffff;
  border-bottom-color: rgba(0, 184, 148, 0.7);
}

.main--home {
  padding-top: 4px;
}

.panel--home {
  border-radius: 16px;
  padding: 28px 28px 30px;
  border-color: rgba(70, 100, 130, 0.45);
  background: linear-gradient(168deg, rgba(26, 44, 60, 0.97) 0%, rgba(17, 30, 44, 0.96) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  margin-bottom: 22px;
}

.home-section-head {
  margin-bottom: 18px;
}

.home-section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
}

.home-section-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ec0ff;
}

.home-section-kicker--compact {
  margin-bottom: 4px;
}

.home-section-desc {
  margin: 10px 0 0;
  max-width: 48em;
  line-height: 1.55;
}

.home-about-copy p {
  margin: 0 0 14px;
  line-height: 1.62;
}

.home-about-copy p:last-child {
  margin-bottom: 0;
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 800px) {
  .home-pillars {
    grid-template-columns: 1fr;
  }
}

.home-pillar {
  position: relative;
  padding: 18px 18px 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.home-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.home-pillar--mint {
  background: linear-gradient(165deg, rgba(16, 52, 48, 0.55) 0%, rgba(20, 36, 44, 0.95) 100%);
}
.home-pillar--mint::before {
  background: linear-gradient(180deg, #00d4a8, #00a884);
}

.home-pillar--sun {
  background: linear-gradient(165deg, rgba(58, 48, 22, 0.5) 0%, rgba(34, 30, 24, 0.95) 100%);
}
.home-pillar--sun::before {
  background: linear-gradient(180deg, #f39c12, #e17055);
}

.home-pillar--ice {
  background: linear-gradient(165deg, rgba(28, 52, 78, 0.55) 0%, rgba(22, 34, 50, 0.95) 100%);
}
.home-pillar--ice::before {
  background: linear-gradient(180deg, #5dade2, #2980b9);
}

.home-pillar-icon {
  display: inline-block;
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.home-pillar h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #f0f5f9;
}

.home-pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
  color: #a9bcd0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

.home-feature-card {
  position: relative;
  padding: 22px 22px 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 140px;
}

.home-feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #f2f7fb;
}

.home-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a8bbd0;
}

.home-feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.home-feature-card--emerald {
  background: linear-gradient(155deg, rgba(12, 48, 42, 0.72) 0%, rgba(18, 34, 40, 0.92) 100%);
  border-color: rgba(0, 184, 148, 0.4);
}

.home-feature-card--ocean {
  background: linear-gradient(155deg, rgba(20, 50, 85, 0.55) 0%, rgba(18, 32, 50, 0.93) 100%);
  border-color: rgba(45, 152, 218, 0.42);
}

.home-feature-card--amber {
  background: linear-gradient(155deg, rgba(52, 42, 24, 0.65) 0%, rgba(30, 28, 22, 0.92) 100%);
  border-color: rgba(241, 196, 15, 0.32);
}

.home-feature-card--violet {
  background: linear-gradient(155deg, rgba(48, 36, 72, 0.55) 0%, rgba(26, 24, 40, 0.93) 100%);
  border-color: rgba(165, 130, 255, 0.35);
}

.home-pricing-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.home-pricing-head h2 {
  margin: 4px 0 0;
}

.home-pricing-tagline {
  margin: 0;
  max-width: 28rem;
  color: #9ec8ea;
  font-size: 15px;
  line-height: 1.45;
}

.page-home .price-card {
  border-radius: 14px;
  border: 1px solid rgba(80, 110, 140, 0.45);
  background: linear-gradient(180deg, rgba(22, 36, 50, 0.92) 0%, rgba(16, 28, 40, 0.94) 100%);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.page-home .price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  border-color: rgba(120, 160, 200, 0.5);
}

.page-home .price-card.featured {
  background: linear-gradient(168deg, rgba(16, 52, 44, 0.45) 0%, rgba(20, 38, 48, 0.95) 100%);
  border-color: rgba(0, 184, 148, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.35) inset, 0 16px 40px rgba(0, 120, 100, 0.18);
}

.faq-list--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .faq-list--home {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  border-radius: 12px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(80, 110, 140, 0.35);
}

.faq-card--a {
  border-left: 4px solid #00b894;
  background: rgba(0, 184, 148, 0.06);
}

.faq-card--b {
  border-left: 4px solid #2d98da;
  background: rgba(45, 152, 218, 0.07);
}

.faq-card--c {
  border-left: 4px solid #a78bfa;
  background: rgba(155, 120, 255, 0.07);
}

/* Plus spécifique que .faq-list article pour les fonds teintés */
.faq-list.faq-list--home article.faq-card--a {
  background: rgba(0, 184, 148, 0.08);
}

.faq-list.faq-list--home article.faq-card--b {
  background: rgba(45, 152, 218, 0.08);
}

.faq-list.faq-list--home article.faq-card--c {
  background: rgba(155, 120, 255, 0.08);
}

.faq-list--home h3 {
  font-size: 16px;
}

.panel--gallery-block .gallery-scroll-wrap {
  margin-top: 8px;
}

/* —— Page Guide (/guide) —— */
.hero--guide-hero {
  min-height: clamp(520px, 62vh, 840px);
  background:
    linear-gradient(155deg, rgba(18, 52, 72, 0.88) 0%, rgba(12, 28, 48, 0.65) 38%, rgba(10, 22, 42, 0.92) 100%),
    url("images/ia-1.png") center 35% / cover no-repeat;
  border-bottom: 1px solid rgba(46, 67, 87, 0.65);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.container.guide-page {
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
}

.guide-page {
  padding-bottom: 56px;
}

.guide-page-header.panel {
  margin-bottom: 28px;
  border: 1px solid rgba(56, 120, 160, 0.35);
  background: linear-gradient(160deg, rgba(22, 40, 58, 0.95) 0%, rgba(18, 32, 48, 0.88) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.guide-page-header--hero h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

.guide-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5dade2;
}

.guide-page-header h1 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
}

.guide-lead {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c6d4e2;
  max-width: 960px;
}

.guide-lead--xl {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
}

.guide-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.guide-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.guide-pill--emerald {
  color: #a8f0de;
  background: rgba(0, 184, 148, 0.18);
  border-color: rgba(0, 184, 148, 0.45);
}

.guide-pill--sky {
  color: #b8dfff;
  background: rgba(45, 152, 218, 0.2);
  border-color: rgba(45, 152, 218, 0.45);
}

.guide-pill--amber {
  color: #ffeaa7;
  background: rgba(253, 203, 110, 0.12);
  border-color: rgba(253, 203, 110, 0.4);
}

.guide-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

/* Bandeau micro-entreprise / TPE */
.guide-micro-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 24px;
  align-items: start;
  margin-bottom: 32px;
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid rgba(0, 184, 148, 0.42);
  background: linear-gradient(
    125deg,
    rgba(16, 52, 48, 0.55) 0%,
    rgba(22, 36, 52, 0.92) 45%,
    rgba(28, 42, 72, 0.75) 100%
  );
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
}

.guide-micro-banner__icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.guide-micro-banner__text h2 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: #eef7f4;
  line-height: 1.35;
}

.guide-micro-banner__text p {
  margin: 0 0 12px;
  color: #b8cad8;
  line-height: 1.65;
  font-size: 1rem;
}

.guide-micro-banner__text p:last-child {
  margin-bottom: 0;
}

.guide-micro-banner__note {
  font-size: 0.92rem !important;
  color: #8fa8bc !important;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid rgba(45, 152, 218, 0.65);
}

@media (max-width: 640px) {
  .guide-micro-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .guide-micro-banner__icon {
    justify-self: center;
  }
}

/* Sommaire */
.guide-toc {
  position: sticky;
  top: 72px;
  z-index: 8;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(22, 36, 50, 0.85);
  border: 1px solid rgba(46, 90, 120, 0.45);
  backdrop-filter: blur(10px);
}

.guide-toc__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dc8fb;
}

.guide-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-toc__list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #dbe9f5;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(45, 152, 218, 0.12);
  border: 1px solid rgba(45, 152, 218, 0.28);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.guide-toc__list a:hover {
  background: rgba(0, 184, 148, 0.2);
  border-color: rgba(0, 184, 148, 0.45);
  color: #ffffff;
}

/* Zones thématiques */
.guide-zone {
  margin-bottom: 40px;
}

.guide-zone--closing {
  margin-bottom: 12px;
}

.guide-zone-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  margin-bottom: 20px;
  padding: 18px 22px;
  border-radius: 14px;
  align-items: center;
}

.guide-zone-head__num {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 10px;
  color: #0a1620;
}

.guide-zone-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #f2f7fb;
}

.guide-zone-head__sub {
  grid-column: 2;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.guide-zone-head--teal {
  background: linear-gradient(110deg, rgba(0, 140, 115, 0.45) 0%, rgba(22, 52, 58, 0.95) 55%);
  border: 1px solid rgba(0, 200, 170, 0.38);
  box-shadow: 0 8px 28px rgba(0, 80, 70, 0.25);
}

.guide-zone-head--teal .guide-zone-head__num {
  background: linear-gradient(145deg, #00d4a8, #00a884);
}

.guide-zone-head--blue {
  background: linear-gradient(110deg, rgba(30, 100, 180, 0.42) 0%, rgba(22, 38, 62, 0.95) 55%);
  border: 1px solid rgba(80, 160, 255, 0.35);
  box-shadow: 0 8px 28px rgba(20, 60, 120, 0.28);
}

.guide-zone-head--blue .guide-zone-head__num {
  background: linear-gradient(145deg, #5dade2, #2980b9);
}

.guide-zone-head--amber {
  background: linear-gradient(110deg, rgba(200, 140, 50, 0.38) 0%, rgba(48, 42, 28, 0.92) 50%);
  border: 1px solid rgba(241, 196, 15, 0.35);
  box-shadow: 0 8px 28px rgba(120, 80, 20, 0.22);
}

.guide-zone-head--amber .guide-zone-head__num {
  background: linear-gradient(145deg, #f39c12, #d68910);
  color: #1a1208;
}

.guide-zone-head--violet {
  background: linear-gradient(110deg, rgba(120, 80, 200, 0.4) 0%, rgba(35, 28, 52, 0.95) 55%);
  border: 1px solid rgba(165, 130, 255, 0.38);
  box-shadow: 0 8px 28px rgba(60, 40, 100, 0.28);
}

.guide-zone-head--violet .guide-zone-head__num {
  background: linear-gradient(145deg, #a78bfa, #6c5ce7);
  color: #fff;
}

.guide-zone-head--slate {
  background: linear-gradient(110deg, rgba(70, 90, 110, 0.45) 0%, rgba(24, 32, 44, 0.95) 55%);
  border: 1px solid rgba(120, 140, 165, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.guide-zone-head--slate .guide-zone-head__num {
  background: linear-gradient(145deg, #8395a7, #576574);
  color: #fff;
}

@media (max-width: 520px) {
  .guide-zone-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .guide-zone-head__num {
    grid-row: 1;
    justify-self: start;
  }
  .guide-zone-head h2 {
    grid-column: 1;
  }
  .guide-zone-head__sub {
    grid-column: 1;
  }
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tutorial-grid--dense {
  gap: 18px 20px;
}

@media (max-width: 900px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .tutorial-card--span-2 {
    grid-column: 1 / -1;
  }
}

.tutorial-card {
  background: var(--panel);
  border: 1px solid rgba(46, 67, 87, 0.75);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
}

.tutorial-card h2,
.tutorial-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #edf2f4;
  line-height: 1.38;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tutorial-card__n {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #b2ccd9;
}

.tutorial-card--tone-teal {
  border-color: rgba(0, 184, 148, 0.35);
  background: linear-gradient(165deg, rgba(20, 42, 48, 0.95) 0%, rgba(18, 32, 42, 0.92) 100%);
}
.tutorial-card--tone-teal .tutorial-card__n {
  background: rgba(0, 184, 148, 0.25);
  color: #7bedd0;
}

.tutorial-card--tone-blue {
  border-color: rgba(45, 152, 218, 0.38);
  background: linear-gradient(165deg, rgba(22, 40, 58, 0.95) 0%, rgba(18, 30, 48, 0.92) 100%);
}
.tutorial-card--tone-blue .tutorial-card__n {
  background: rgba(45, 152, 218, 0.22);
  color: #7dc8fb;
}

.tutorial-card--tone-amber {
  border-color: rgba(241, 196, 15, 0.32);
  background: linear-gradient(165deg, rgba(42, 38, 28, 0.92) 0%, rgba(28, 26, 22, 0.9) 100%);
}
.tutorial-card--tone-amber .tutorial-card__n {
  background: rgba(241, 196, 15, 0.2);
  color: #fdcb6e;
}

.tutorial-card--tone-violet {
  border-color: rgba(155, 120, 255, 0.35);
  background: linear-gradient(165deg, rgba(36, 32, 52, 0.95) 0%, rgba(24, 22, 38, 0.92) 100%);
}
.tutorial-card--tone-violet .tutorial-card__n {
  background: rgba(155, 120, 255, 0.22);
  color: #cbb4fc;
}

.tutorial-card--tone-slate {
  border-color: rgba(100, 120, 140, 0.4);
  background: linear-gradient(165deg, rgba(26, 34, 44, 0.96) 0%, rgba(18, 24, 32, 0.94) 100%);
}
.tutorial-card--tone-slate .tutorial-card__n {
  background: rgba(130, 150, 170, 0.15);
  color: #b8c9d9;
}

.tutorial-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.99rem;
}

.tutorial-card p:last-child {
  margin-bottom: 0;
}

.tutorial-card--accent {
  border-color: rgba(0, 184, 148, 0.5);
  background: linear-gradient(145deg, rgba(18, 52, 48, 0.55) 0%, rgba(22, 36, 50, 0.96) 40%, rgba(16, 40, 36, 0.35) 100%);
  box-shadow: 0 14px 40px rgba(0, 60, 50, 0.25);
}

.tutorial-card--wide h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.guide-list,
.guide-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: #b0c4d4;
  line-height: 1.62;
  font-size: 0.99rem;
}

.guide-list--two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  padding-left: 1.2rem;
}

@media (max-width: 720px) {
  .guide-list--two-col {
    grid-template-columns: 1fr;
  }
}

.guide-list li,
.guide-steps li {
  margin-bottom: 10px;
}

.guide-steps {
  list-style: decimal;
}

.guide-last-cta {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

.site-footer-inner .footer-copy a {
  color: #7dc8fb;
  text-decoration: none;
  font-weight: 600;
}

.site-footer-inner .footer-copy a:hover {
  color: #ffffff;
  text-decoration: underline;
}
