/* =============================================================================
   Studio Yaffé — feuille de style des pages de la société (studioyaffe.fr et
   l'accueil de apps.studioyaffe.fr). Volontairement sobre : pas d'identité
   visuelle pour l'instant, seulement des polices système, du noir et du blanc cassé.
   ============================================================================= */

:root {
  --fond: #F7F6F2;
  --surface: #FFFFFF;
  --texte: #18181B;
  --texte-doux: #5F5E5A;
  --trait: #E2E0DA;
  --lien: #18181B;
  --largeur: 1040px;
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #141416;
    --surface: #1C1C1F;
    --texte: #F2F1EC;
    --texte-doux: #A3A29C;
    --trait: #2E2E32;
    --lien: #F2F1EC;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

/* En-tête : nom de la société à gauche, navigation à droite. */
.entete {
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  flex-wrap: wrap;
}
.marque {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.navigation {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.navigation a { text-decoration: none; color: var(--texte-doux); }
.navigation a:hover { color: var(--texte); }

/* Accroche en haut de l'accueil. */
.accroche {
  padding: 96px 0 72px;
}
.accroche h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.accroche p {
  margin: 0;
  max-width: 640px;
  font-size: 20px;
  color: var(--texte-doux);
}

/* Sections de contenu. */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--trait);
}
.section h2 {
  margin: 0 0 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.activites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.activites h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.activites p { margin: 0; color: var(--texte-doux); }

/* Tuile d'un jeu : visuel à gauche, texte à droite. */
.jeu {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}
.jeu:hover { border-color: var(--texte-doux); }
.jeu__visuel {
  flex: 0 0 auto;
  width: 160px;
  height: 120px;
  border-radius: 12px;
  background: #13365F;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jeu__visuel img { height: 92px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.jeu__visuel img + img { margin-left: -30px; transform: rotate(8deg) translateY(4px); }
.jeu__visuel img:first-child { transform: rotate(-6deg); }
.jeu h3 { margin: 0 0 6px; font-size: 24px; }

/* Liste des applications : une tuile par application, les unes sous les autres. */
.liste-jeux { display: flex; flex-direction: column; gap: 16px; }

/* Application en préparation : grisée, sans lien ni effet au survol. */
.jeu--a-venir { opacity: 0.55; filter: grayscale(1); }
.jeu--a-venir:hover { border-color: var(--trait); }
.jeu__visuel--neutre { background: var(--texte-doux); color: var(--surface); }
.podium { width: 72px; height: auto; }
.jeu p { margin: 0; color: var(--texte-doux); }
.jeu__etat {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 13px;
  color: var(--texte-doux);
}

/* Texte courant d'une section (présentation du studio). */
.texte-court p { margin: 0 0 12px; max-width: 680px; color: var(--texte-doux); }
.texte-court p:last-child { margin-bottom: 0; }

.contact {
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Page minimale de studioyaffe.fr : le nom et le contact centrés dans l'écran,
   le pied de page en bas. */
.page-minimale {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page-minimale main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.page-minimale h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.page-minimale main p {
  margin: 0;
  font-size: 20px;
  color: var(--texte-doux);
}

/* Pages de texte (mentions légales). */
.page-texte {
  padding: 72px 0 32px;
  max-width: 720px;
}
.page-texte h1 {
  margin: 0 0 40px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-texte h2 {
  margin: 40px 0 12px;
  font-size: 20px;
}
.page-texte p, .page-texte ul { margin: 0 0 12px; color: var(--texte-doux); }
.page-texte strong { color: var(--texte); font-weight: 600; }

/* Pied de page. */
.pied {
  border-top: 1px solid var(--trait);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--texte-doux);
}
.pied .conteneur {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pied a { color: var(--texte-doux); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .accroche { padding: 64px 0 48px; }
  .accroche p { font-size: 18px; }
  .section { padding: 48px 0; }
  .jeu { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .jeu__visuel { width: 100%; }
}
