/*
 Theme Name: Diagbox 57 Child
 Template: generatepress
*/

/* ========= BASE GLOBALE ========= */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b1120; /* fond sombre propre */
  color: #e5e7eb;
  line-height: 1.6;
}

/* option mode clair si tu veux l’utiliser plus tard */
body.dbx-light {
  background: #f3f4f6;
  color: #0f172a;
}

/* le conteneur principal du site */
.site,
#page {
  background: transparent !important;
}

/* zone de contenu */
.site-main {
  background: transparent !important;
}

/* Articles / pages = cartes centrées */

.inside-article {
  background: #020617;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
  padding: 26px 22px;
  max-width: 980px;
  margin: 26px auto;
}

/* Variante plus claire si body.dbx-light */
body.dbx-light .inside-article {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

/* ========= TITRES ========= */

h1, h2, h3, h4 {
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 0.6em;
}

/* tailles de base (adaptables) */
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

/* surbrillance plus clean : barre en dessous, pas de gros halo */

h1,
h2 {
  position: relative;
  padding-bottom: 0.2em;
  display: inline-block;
}

h1::after,
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 32%;
  min-width: 80px;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  border-radius: 999px;
}

/* version claire */
body.dbx-light h1,
body.dbx-light h2,
body.dbx-light h3,
body.dbx-light h4 {
  color: #0f172a;
}

/* ========= H4 "BOUTONS" POUR LA PAGE TARIFS ========= */
/* Dans l’éditeur WP : ajoute la classe CSS "tarif-btn" sur les H4 concernés */

h4.tarif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #0b1120;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45);
  cursor: default;
  margin: 0.6rem 0 0.9rem;
}

h4.tarif-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
}

/* si un lien est dans le H4, on garde le look bouton */
h4.tarif-btn a {
  color: inherit;
  text-decoration: none;
}

/* version claire */
body.dbx-light h4.tarif-btn {
  border-color: #16a34a;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
}

/* ========= TEXTE ========= */

.entry-content p {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin-bottom: 0.9em;
}

body.dbx-light .entry-content p {
  color: #111827;
}

.entry-content a {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

.entry-content a:hover {
  text-decoration: underline;
}

/* listes */
.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.entry-content li {
  margin-bottom: 0.3rem;
}

/* ========= HEADER / NAVBAR ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.6);
}

/* version claire */
body.dbx-light .site-header {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.96),
    rgba(248,250,252,0.9),
    transparent
  );
  border-bottom: 1px solid rgba(229,231,235,0.9);
}

/* conteneur intérieur header */
.inside-header.grid-container,
.inside-header {
  max-width: 1200px;
  padding: 8px 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* branding */
.site-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding-left: 40px;
}

/* badge DBX à gauche du titre, plus sobre */
.site-branding::before {
  content: "DBX";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, rgba(59,130,246,0.9), transparent 55%);
  box-shadow: 0 0 18px rgba(59,130,246,0.7);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1120;
}

.site-title a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  text-transform: uppercase;
}

body.dbx-light .site-title a {
  color: #0f172a;
}

.site-description {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

body.dbx-light .site-description {
  color: #6b7280;
}

/* ========= NAV ========= */

.main-navigation {
  background: transparent !important;
  box-shadow: none !important;
}

.main-navigation .inside-navigation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

.main-nav ul {
  align-items: center;
  gap: 16px;
}

.main-nav ul li a {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.75;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.dbx-light .main-nav ul li a {
  color: #111827;
}

.main-nav ul li a:hover,
.main-nav ul li[class*="current-menu-"] > a {
  opacity: 1;
  color: #f97316;
}

/* élément de menu avec classe perso "menu-item-cta" dans WP */
.main-nav ul li.menu-item-cta > a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #f97316;
  background: #f97316;
  color: #0b1120 !important;
  opacity: 1;
  font-weight: 600;
}

.main-nav ul li.menu-item-cta > a:hover {
  filter: brightness(1.05);
}

/* version claire */
body.dbx-light .main-nav ul li.menu-item-cta > a {
  background: #f97316;
  color: #ffffff !important;
}

/* ========= BOUTONS GÉNÉRIQUES ========= */

.button,
a.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
}

.button:hover,
a.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.75);
}

/* ========= FOOTER ========= */

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(30, 64, 175, 0.4);
}

.footer-widgets,
.site-info {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

body.dbx-light .site-footer {
  border-top: 1px solid #e5e7eb;
}

body.dbx-light .footer-widgets,
body.dbx-light .site-info {
  color: #6b7280;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 768px) {
  .inside-header {
    justify-content: space-between;
  }

  .inside-article {
    margin: 18px 10px;
    padding: 20px 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

