/* ==========================================================
   DHOW GAMES — dhowgames.com
   Charte : Francis 4L (bleu #007BFF / rouge) + DHOW (orange)
   ========================================================== */

@font-face {
  font-family: 'Chaloops';
  src: url('fonts/ChaloopsW00-Bd.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Chaloops';
  src: url('fonts/ChaloopsW00-Reg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('fonts/NeueHaasUnicaPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('fonts/NeueHaasUnicaPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('fonts/NeueHaasUnicaPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bleu: #007BFF;
  --bleu-fonce: #0B2E63;
  --bleu-ciel: #DAE9F7;
  --rouge: #EE2A24;
  --orange: #FF601F;
  --noir: #111111;
  --blanc: #FFFFFF;
  --titre: 'Chaloops', 'Comic Sans MS', cursive;
  --texte: 'Neue Haas Unica', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--texte);
  color: var(--noir);
  background: var(--blanc);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .9em 2em;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-rouge {
  background: var(--rouge);
  color: var(--blanc);
  box-shadow: 0 6px 0 #b01713;
}
.btn-rouge:hover { box-shadow: 0 9px 0 #b01713; }
.btn-blanc {
  background: var(--blanc);
  color: var(--bleu);
  box-shadow: 0 6px 0 rgba(11,46,99,.35);
}
.btn-noir {
  background: var(--noir);
  color: var(--blanc);
  box-shadow: 0 6px 0 rgba(0,0,0,.3);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: var(--blanc);
  box-shadow: 0 2px 18px rgba(0,0,0,.12);
}
.nav-logo img {
  height: 40px; width: auto;
  filter: invert(1);
  transition: filter .3s ease;
}
.nav.scrolled .nav-logo img { filter: none; }
.nav-logo { display: flex; align-items: center; }
.nav .btn { font-size: 1rem; padding: .6em 1.5em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  color: var(--blanc);
  transition: color .3s ease;
}
.nav-links a:not(.btn):hover { color: var(--rouge); }
.nav.scrolled .nav-links a:not(.btn) { color: var(--noir); }

/* ---------- Hero Francis 4L ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bleu);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 70px;
  color: var(--blanc);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 140vmax; height: 140vmax;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.hero-logo {
  width: min(420px, 78vw);
  margin-bottom: 8px;
  filter: drop-shadow(0 14px 30px rgba(11,46,99,.45));
  animation: pop-in .7s cubic-bezier(.2,1.6,.4,1) both;
}
.hero-tagline {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  max-width: 620px;
  margin: 10px auto 4px;
  line-height: 1.25;
  text-shadow: 0 3px 0 rgba(11,46,99,.35);
  animation: pop-in .7s .12s cubic-bezier(.2,1.6,.4,1) both;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: .92;
  max-width: 540px;
  margin-bottom: 26px;
  animation: pop-in .7s .2s cubic-bezier(.2,1.6,.4,1) both;
}
.hero .btn { animation: pop-in .7s .3s cubic-bezier(.2,1.6,.4,1) both; }
.hero-note { font-size: .85rem; margin-top: 14px; opacity: .8; }

.hero-box-wrap {
  position: relative;
  margin-top: 38px;
  animation: pop-in .8s .35s cubic-bezier(.2,1.6,.4,1) both;
}
.hero-box-wrap .splash {
  position: absolute;
  inset: -12% -18%;
  width: 136%;
  height: auto;
  z-index: 0;
  opacity: .9;
  animation: spin-slow 40s linear infinite;
}
.hero-box {
  position: relative;
  z-index: 1;
  width: min(330px, 60vw);
  filter: drop-shadow(0 30px 40px rgba(11,46,99,.5));
  animation: float 4.5s ease-in-out infinite;
}
.hero-photo {
  width: min(380px, 70vw);
  border-radius: 22px;
  border: 9px solid var(--blanc);
  box-shadow: 0 30px 50px rgba(11,46,99,.5);
  filter: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-18px) rotate(1.5deg); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(30px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Bandeau specs ---------- */
.specs {
  background: var(--bleu-fonce);
  color: var(--blanc);
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 110px);
  padding: 26px 20px;
  flex-wrap: wrap;
}
.spec {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec svg { width: 30px; height: 30px; }

/* ---------- Sections génériques ---------- */
.section { padding: 90px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Le jeu ---------- */
.jeu { background: var(--bleu-ciel); }
.jeu .section-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.jeu h2, .photos h2, .dhow h2 {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.jeu h2 { color: var(--bleu-fonce); }
.jeu p { font-size: 1.08rem; line-height: 1.65; margin-bottom: 16px; color: #233; }
.bulles { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.bulle {
  background: var(--blanc);
  border-radius: 18px;
  padding: 16px 22px;
  font-family: var(--titre);
  font-size: 1.15rem;
  box-shadow: 0 6px 0 rgba(11,46,99,.12);
  width: fit-content;
  max-width: 100%;
}
.bulle strong { color: var(--rouge); }
.bulle.decale { align-self: flex-end; transform: rotate(1.5deg); }
.bulle:first-child { transform: rotate(-1.5deg); }
.jeu-img img { width: 100%; filter: drop-shadow(0 24px 30px rgba(11,46,99,.3)); }

/* ---------- Photos ---------- */
.photos { background: var(--blanc); text-align: center; }
.photos h2 { color: var(--bleu); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.photo-grid img {
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.photo-grid img:nth-child(1) { transform: rotate(-2deg); }
.photo-grid img:nth-child(3) { transform: rotate(2deg); }
.photo-grid img:hover { transform: rotate(0) scale(1.04); }

/* ---------- DHOW ---------- */
.dhow {
  background: var(--orange);
  color: var(--noir);
  text-align: center;
}
.dhow-logo { width: min(300px, 60vw); margin: 0 auto 28px; }
.dhow p {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 14px;
  font-weight: 500;
}
.dhow .just {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-top: 30px;
  transform: rotate(-2deg);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 60px 24px 40px;
  text-align: center;
}
.footer-logo { width: 150px; margin: 0 auto 26px; filter: invert(1); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-weight: 500;
}
.footer-links a { text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer small { opacity: .55; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .jeu .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .jeu-img { order: -1; max-width: 340px; margin: 0 auto; }
  .photo-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 70px 20px; }
}
