/**
Theme Name: Ben Ayoub
Author: Haïthem Ben Ayoub
Author URI: https://haithem.benayoub.com
Description: Custom child theme for the Ben Ayoub family portal (benayoub.com) — More than a family.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ben-ayoub
Template: astra
*/

/* ==========================================================================
   1. VARIABLES DE COULEURS & TYPOGRAPHIE
   ========================================================================== */
:root {
  --ba-bg: #0a0d14;
  --ba-text: #f4f4f6;
  --ba-muted: rgba(244, 244, 246, 0.62);
  --ba-accent: #ff265d; /* Teinte rose/carmin extraite du logo (ancienne valeur dorée : #c5a880) */
}

/* ==========================================================================
   2. PLEIN ÉCRAN STRICT & RESET CONTENEURS ASTRA (ACCUEIL)
   ========================================================================== */
body.home {
  background: var(--ba-bg);
  color: var(--ba-text);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* Neutralisation des marges, espacements et conteneurs Astra sur l'accueil */
body.home .site,
body.home #page,
body.home #content,
body.home .ast-container,
body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home article,
body.home .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ==========================================================================
   3. STRUCTURE DU PORTAIL (.ba-portal)
   ========================================================================== */
.ba-portal {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.ba-portal__inner {
  animation: baFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  max-width: 720px;
  width: 100%;
}

/* Marque & Monogramme */
.ba-portal__brand {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ba-portal__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* Kicker : Petites capitales espacées (non sélectionnable pour triple tap mobile) */
.ba-portal__kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--ba-muted);
  display: block;
  margin-bottom: 1.25rem;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

/* Titre principal : Fluide et fin */
.ba-portal__title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ba-text);
  margin: 0;
}

/* Point carmin d'accentuation */
.ba-portal__dot {
  color: var(--ba-accent);
}

/* Ligne séparatrice */
.ba-portal__divider {
  width: 48px;
  height: 1px;
  background: var(--ba-accent);
  opacity: 0.6;
  margin: 2rem auto 0;
}

/* ==========================================================================
   4. ANIMATION D'ENTRÉE (baFadeUp)
   ========================================================================== */
@keyframes baFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   5. SECRET EASTER EGG COMPONENT (.ba-secret-modal)
   ========================================================================== */
.ba-secret-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ba-secret-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ba-secret-dialog {
  background: var(--ba-bg, #0a0d14);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 2.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(15px);
  transition: transform 0.3s ease;
  margin: 1.5rem;
  box-sizing: border-box;
}

.is-open .ba-secret-dialog,
.ba-secret-modal.is-open .ba-secret-dialog {
  transform: translateY(0);
}

.ba-secret-text {
  color: var(--ba-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ba-secret-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ba-text);
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.ba-secret-input:focus {
  border-color: var(--ba-accent);
}

.ba-secret-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .ba-secret-grid {
    grid-template-columns: 1fr;
  }
}

.ba-secret-grid a {
  padding: 1rem;
  text-align: center;
  color: var(--ba-text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 300;
  letter-spacing: 0.05em;
  display: block;
}

.ba-secret-grid a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ba-accent);
}

/* Désactivation forcée de l'en-tête et du pied de page natifs d'Astra */
#masthead, 
.site-header, 
.ast-mobile-header-wrap, 
#colophon, 
.site-footer {
    display: none !important;
}

/* Annulation des espacements par défaut du thème */
.site-content, 
.ast-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Garantie que le body prend bien l'écran complet */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

