/*
Theme Name: Dino Communication — Holding
Theme URI: https://www.dino-communication.fr
Author: Chahine Kebbab & Iman El Akioui
Author URI: https://www.chahinekebbab.fr
Description: Theme de redirection pour le domaine technique (back-office headless) de Dino Communication. Bloque l'affichage public du domaine de developpement et renvoie les visiteurs vers le site officiel. N'affecte ni wp-admin ni l'API REST.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dino-holding
*/

/* ─────────────────────────────────────────────────────────────
   Createurs du theme
   - Chahine Kebbab   · https://www.chahinekebbab.fr
   - Iman El Akioui   · https://www.studio-form.fr

   Direction artistique reprise du site officiel Dino Communication
   (cf. src/styles/tokens.css du projet Astro)
   ───────────────────────────────────────────────────────────── */
:root {
  --ink:        #00202C;  /* fond — "ink night" */
  --cream:      #F2EEE4;  /* texte — "paper cream" */
  --orange:     #F45404;  /* accent de marque */
  --cream-70:   rgba(242, 238, 228, 0.70);
  --cream-55:   rgba(242, 238, 228, 0.55);
  --cream-40:   rgba(242, 238, 228, 0.40);
  --cream-12:   rgba(242, 238, 228, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Halo orange diffus en haut de page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(70% 48% at 50% -12%, rgba(244, 84, 4, 0.20), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Dinosaures flottants (decor anime) ── */
.dino-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.dino-float {
  position: absolute;
  background: url('assets/dinosaure.svg') no-repeat center / contain;
  will-change: transform;
}
.dino-float--1 { width: 72px;  height: 84px;  top: 13%; left: 9%;   opacity: 0.13; animation: dino-drift-a 9s   ease-in-out -1s  infinite; }
.dino-float--2 { width: 128px; height: 149px; top: 58%; left: 13%;  opacity: 0.08; animation: dino-drift-b 14s  ease-in-out -5s  infinite; }
.dino-float--3 { width: 54px;  height: 63px;  top: 24%; right: 13%; opacity: 0.14; animation: dino-drift-a 7.5s ease-in-out -3s  infinite reverse; }
.dino-float--4 { width: 168px; height: 196px; top: 62%; right: 5%;  opacity: 0.06; animation: dino-drift-b 17s  ease-in-out -8s  infinite; }
.dino-float--5 { width: 46px;  height: 54px;  top: 80%; left: 47%;  opacity: 0.11; animation: dino-drift-a 10s  ease-in-out -2s  infinite; }
.dino-float--6 { width: 96px;  height: 112px; top: 7%;  right: 36%; opacity: 0.06; animation: dino-drift-b 12s  ease-in-out -6s  infinite reverse; }

@keyframes dino-drift-a {
  0%, 100% { transform: translateY(0)     rotate(-7deg); }
  50%      { transform: translateY(-30px) rotate(5deg); }
}
@keyframes dino-drift-b {
  0%, 100% { transform: translateY(0)    rotate(8deg)  scaleX(-1); }
  50%      { transform: translateY(26px) rotate(-2deg) scaleX(-1); }
}

/* ── Bloc central ── */
.dino-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 24px;
}

.dino-logo {
  display: block;
  width: 108px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.dino-title {
  margin-top: 32px;
  font-family: 'Anton', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  line-height: 1.03;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
/* Mot mis en valeur — meme regle <em> que le site officiel */
.dino-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--orange);
  letter-spacing: 0;
}

.dino-text {
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.62;
  color: var(--cream-70);
}

/* ── Bouton ── */
.dino-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 17px 32px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 14px 34px -16px rgba(255, 112, 40, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dino-btn:hover,
.dino-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -16px rgba(255, 112, 40, 0.8);
}
.dino-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.dino-btn svg { width: 16px; height: 16px; }

/* ── Compte a rebours ── */
.dino-countdown {
  margin-top: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-40);
}
.dino-progress {
  width: 190px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--cream-12);
  border-radius: 100px;
  overflow: hidden;
}
.dino-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  animation: dino-fill var(--dino-delay, 5s) linear forwards;
}
@keyframes dino-fill { to { width: 100%; } }

@media (max-width: 480px) {
  .dino-wrap { padding-top: 44px; }
  .dino-text { font-size: 15px; }
  .dino-logo { width: 92px; }
  /* On allege le decor sur petits ecrans */
  .dino-float--2, .dino-float--4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dino-btn { transition: none; }
  .dino-float { animation: none !important; }
  .dino-progress span { animation: none; width: 100%; }
}
