/* ================================================
   ALAN STUD — Coming Soon Page
   style.css
   ================================================ */


/* ================================================
   1. VARIABLES DE COULEURS
   ================================================ */
:root {
  --color-bg:          #111111;       /* fond général */
  --color-text:        #ffffff;       /* texte principal */
  --color-text-muted:  #777777;       /* texte secondaire */
  --color-accent:      #6360F3;       /* jaune ocre */
  --color-header-bg:   #181B21;       /* fond header anthracite */
  --color-header-text: #ffffff;       /* texte dans le header */
  --color-divider:     #6360F3;       /* séparateurs dorés */
  --color-footer-bg:   #6360F3;       /* barre contact */
  --color-footer-text: #111111;       /* texte barre contact */
}

/* ================================================
   2. MODE SOMBRE AUTOMATIQUE
   Le navigateur détecte la préférence système.
   On redéfinit uniquement les variables qui changent.
   ================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:         #111111;      /* fond sombre */
    --color-text:       #ffffff;      /* texte clair */
    --color-text-muted: #aaaaaa;      /* texte secondaire atténué */
    /* Les autres couleurs restent identiques */
  }
}


/* ================================================
   3. RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;  /* empile header, main, footer verticalement */
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  display: block;
  max-width: 100%;
}


/* ================================================
   4. HEADER
   ================================================ */
.site-header {
  position: relative;        /* pour positionner les enfants en absolu */
  background-color: transparent; /* le SVG apporte lui-même la couleur anthracite */
  color: var(--color-header-text);
  min-height: 200px;
  overflow: hidden;          /* masque ce qui dépasse */
}

/* Fond anthracite apporté par le SVG en position absolute,
   il couvre tout le header et sa courbe crée la transition vers le fond de page */
.header-curve {
  position: absolute;
  top: 0;                    /* part du haut du header */
  left: 0;
  width: 100%;
  height: 100%;              /* couvre toute la hauteur du header */
  z-index: 0;                /* derrière le logo et les particules */
}

.header-curve img {
  width: 100%;
  object-fit: fill;          /* étire le SVG pour qu'il couvre tout le header */
}

/* Logo en haut à gauche */
.header-logo {
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 3;                /* au-dessus de la courbe (z:0) et des particules (z:1) */
}

.header-logo img {
  height: 100px;              /* ajuste selon ton logo réel */
  width: auto;
}

/* Particules dorées (coin haut droit) */
.particles--top {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;               /* toute la largeur du header */
  height: 100%;
  background-image: url('assets/particles-top.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto 100%; /* hauteur 100% du header, largeur proportionnelle */
  z-index: 1;
}




/* ================================================
   5. CONTENU PRINCIPAL
   ================================================ */
.site-main {
  flex: 1;                   /* prend tout l'espace disponible entre header et footer */
  display: flex;
  flex-direction: column;
  align-items: center;       /* centre horizontalement */
  text-align: center;
  padding: 5px 24px 40px;
  max-width: 900px;
  margin: 0 auto;            /* centre le bloc dans la page */
  width: 100%;
}

/* Titre principal */
.tagline {
  font-family: 'Noto Serif', serif;
  font-size: clamp(2.8rem, 5vw, 3.5rem);   /* taille fluide entre mobile et desktop */
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Le & doré dans le titre */
.accent {
  color: var(--color-accent);
  font-family: 'Noto Serif', serif;
}

/* Sous-titre */
.subtitle {
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.6rem);
  color: var(--color-text);
  margin-bottom: 36px;
}

/* Séparateurs horizontaux dorés */
.divider {
  border: none;
  border-top: 1.5px solid var(--color-divider);
  width: 65%;
  margin: 0 auto 12px;
}

/* Bloc "en cours de finalisation" */
.status-block {
  margin-bottom: 15px;
}

.status-title {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--color-accent);
  margin-bottom: 8px;
}

.status-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--color-text-muted);
}

/* Second logo centré */
.secondary-logo {
  margin: 24px auto 24px;
}

.secondary-logo img {
  height: 70px;              /* plus petit que le logo du header */
  width: auto;
  margin: 0 auto;
}

/* Description de l'activité */
.activity {
  font-family: 'Noto Serif', serif;
  font-size: clamp(1.2rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text);
}


/* ================================================
   6. FOOTER — Barre de contact
   ================================================ */
.site-footer {
  position: relative;
  overflow: visible;         /* on laisse les particules respirer si besoin */
}

/* Particules grises — placées au-dessus de la contact-bar,
   en dehors du flux normal, ancrées au bas de la page */
.particles--bottom {
  position: absolute;
  bottom: 100%;              /* juste au-dessus de la barre de contact */
  left: 0;
  width: 100%;
  height: 150px;             /* ajuste selon la hauteur du png */
  background-image: url('assets/particles-bottom.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 0;
}

/* Barre de contact */
.contact-bar {
  position: relative;
  z-index: 1;                /* passe au-dessus des particules */
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;                 /* espace entre téléphone et email */
  padding: 16px 24px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  flex-wrap: wrap;           /* sur mobile, passe à la ligne si nécessaire */
}
.contact-bar a {
  color: var(--color-footer-text);  /* même couleur que le texte */
  text-decoration: none;            /* supprime le soulignement par défaut */
}

.contact-bar a:hover {
  text-decoration: underline;       /* soulignement au survol pour indiquer le lien */
}


/* ================================================
   7. RESPONSIVE — Adaptations mobile
   ================================================ */
@media (max-width: 600px) {
  .site-header {
    min-height: 160px;
  }

  .header-logo img {
    height: 45px;
  }

  .site-main {
    padding: 5px 16px 15px;
  }

  .divider {
    width: 85%;
  }

  .contact-bar {
    gap: 10px;
    font-size: 1rem;
  }
}
