/* Top Clario — pages du studio (Accueil, Boutique, Arcade, Sur mesure, Contact), refonte 2026-11-24, V4 claire.
   Toutes les couleurs viennent des variables de site.css (bleu royal = actions, bleu ciel = surfaces). */

.btn-grand { min-height: 54px; padding: 14px 26px; font-size: .9rem; border-radius: 999px; }
.titre-deux-tons { font-size: var(--t-2xl); letter-spacing: -.02em; line-height: 1.08; }
.titre-deux-tons em { font-style: normal; color: var(--royal); display: inline-block; }
.section-studio { padding-block: clamp(40px, 6vw, 72px); }
.tete-section { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tete-section h2 { font-size: var(--t-xl); letter-spacing: -.015em; }
.lien-fleche { color: var(--royal-fonce); border-bottom-color: var(--ligne-forte); }

/* ---------- Bannière JOJO (accueil) ---------- */
.heros-jojo { position: relative; overflow: hidden; background: var(--halo-ciel), var(--degrade-ciel); }
.heros-jojo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L0 54 L150 18 L270 50 L400 8 L540 46 L660 24 L800 58 L930 16 L1060 46 L1200 22 L1200 80 Z' fill='%23F0F7FF'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.heros-jojo-int { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.heros-jojo-image { order: 2; justify-self: center; width: min(100%, 420px); }
.heros-jojo-image picture { display: block; }
.heros-jojo-image img { width: 100%; height: auto; aspect-ratio: 650 / 975; object-fit: contain; border-radius: 16px; border: 4px solid var(--blanc); box-shadow: 0 28px 56px -26px rgba(37, 99, 235, .45); display: block; background: var(--bleu-clair); }
.heros-jojo-texte { display: grid; gap: 18px; align-content: center; }
.heros-jojo-texte .surtitre { color: var(--royal-fonce); }
.heros-jojo h1 { font-size: var(--t-3xl); line-height: 1; letter-spacing: -.035em; color: var(--encre); }
.h1-studio { display: block; font-family: var(--f-texte); font-size: var(--t-l); font-weight: 600; letter-spacing: 0; color: var(--encre-2); margin-bottom: 10px; }
.heros-jojo .chapeau { color: var(--encre-2); font-size: var(--t-l); max-width: 46ch; }
.heros-jojo .rangee { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 860px) {
  .heros-jojo-int { grid-template-columns: 1fr; text-align: center; }
  .heros-jojo-image { order: 0; width: min(88vw, 460px); }
  .heros-jojo .chapeau { margin-inline: auto; }
  .heros-jojo .rangee { justify-content: center; }
}

/* ---------- Bienvenue + trois portes ---------- */
.bienvenue { text-align: center; padding-block: clamp(44px, 6vw, 80px) clamp(16px, 3vw, 32px); display: grid; gap: 14px; justify-items: center; }
.bienvenue-chapeau { color: var(--encre-2); font-size: var(--t-l); max-width: 40ch; }
.portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); width: 100%; margin-top: 22px; }
.porte {
  display: grid; justify-items: center; gap: 10px; text-align: center; text-decoration: none;
  padding: 26px 18px; border-radius: 16px; background: var(--blanc); border: 1px solid var(--ligne); box-shadow: var(--ombre);
  transition: transform var(--vite) var(--doux), border-color var(--vite), box-shadow var(--vite);
}
.porte:hover, .porte:focus-visible { transform: translateY(-3px); border-color: var(--ciel); box-shadow: var(--ombre-forte); }
.porte svg { width: 46px; height: 46px; fill: none; stroke: var(--royal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.porte-titre { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 800; color: var(--encre); }
.porte-titre .chevron { color: var(--royal); margin-left: 4px; }
.porte-texte { color: var(--encre-2); font-size: .95rem; max-width: 24ch; }
@media (max-width: 640px) { .portes { grid-template-columns: 1fr; } .porte { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; } .porte svg { grid-row: span 2; } }

/* ---------- Carte horizontale (Boutique, grands jeux) ---------- */
.liste-jeux { display: grid; gap: 16px; }
.carte-h {
  display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto; gap: clamp(14px, 2.4vw, 26px); align-items: center;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px; position: relative; box-shadow: var(--ombre);
  transition: border-color var(--vite), box-shadow var(--vite);
}
.carte-h:hover { border-color: var(--ciel); box-shadow: var(--ombre-forte); }
.carte-h-image .boite { border-radius: 10px; }
.carte-h-corps { display: grid; gap: 8px; align-content: center; justify-items: start; }
.carte-h-corps h3 { font-size: 1.3rem; letter-spacing: -.015em; }
.carte-h-corps h3 a { text-decoration: none; }
.carte-h-corps h3 a:hover { color: var(--royal-fonce); }
.carte-h-corps p { color: var(--encre-2); font-size: .98rem; line-height: 1.5; max-width: 60ch; }
.carte-h-actions { display: grid; gap: 10px; justify-items: stretch; min-width: 132px; padding-right: 6px; }
@media (max-width: 860px) {
  .carte-h { grid-template-columns: minmax(0, 1fr); }
  .carte-h-actions { grid-auto-flow: column; justify-content: start; padding: 0 4px 4px; }
}

/* ---------- Grille d'arcade (accueil + boutique) ---------- */
.grille-arcade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
@media (max-width: 900px) { .grille-arcade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grille-arcade { grid-template-columns: 1fr; } }

/* ---------- Bannière : icône devant le titre ---------- */
.banniere-titre { display: flex; gap: 18px; align-items: center; }
.banniere-titre svg { width: clamp(48px, 7vw, 76px); height: auto; flex: none; fill: none; stroke: var(--royal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.banniere h1 span { display: block; color: var(--royal); }

/* ---------- Boutique : outils ---------- */
.outils-boutique { display: grid; gap: 16px; padding-top: clamp(28px, 4vw, 44px); }
.outils-boutique .segments { margin: 0; }
.aucun-resultat { color: var(--encre-2); padding: 18px 0; }

/* ---------- Sur mesure ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atout { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; padding: 20px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.atout svg { width: 40px; height: 40px; grid-row: span 2; fill: none; stroke: var(--royal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atout strong { font-family: var(--f-titre); font-size: 1.12rem; }
.atout span { color: var(--encre-2); font-size: .95rem; }
@media (max-width: 900px) { .atouts { grid-template-columns: 1fr; } }
.formulaire { display: grid; gap: 18px; background: var(--blanc); border: 1px solid var(--ligne); box-shadow: var(--ombre); border-radius: 16px; padding: clamp(20px, 4vw, 36px); max-width: 820px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .formulaire .deux { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 7px; }
.formulaire .champ label, .formulaire .champ legend { font-family: var(--f-texte); font-weight: 600; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--encre); }
.champ .aide { color: var(--encre-3); font-size: .85rem; font-weight: 400; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--ligne-forte);
  background: var(--blanc); color: var(--encre); font: inherit; font-size: 1rem;
}
.champ textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px var(--lueur); }
.consentement { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: var(--encre-2); font-size: .95rem; }
.consentement input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--royal); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-etat { min-height: 1.4em; color: var(--encre-2); }
.formulaire-etat.ok { color: var(--ok); }
.formulaire-etat.erreur { color: var(--erreur); }
.formulaire .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) { .porte, .carte-h { transition: none; } .porte:hover { transform: none; } }

/* Filtres en pastilles (maquette : actif turquoise) */
.segments button, .filtre { border-radius: 999px; font-family: var(--f-texte); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem; padding: 9px 16px; background: var(--blanc); color: var(--encre); border-color: var(--ligne-forte); }
.segments button[aria-pressed="true"], .filtre[aria-pressed="true"] { background: var(--royal); color: var(--blanc); border-color: var(--royal); }
.segments button:hover, .filtre:hover { border-color: var(--royal); }
.rayon-titre { border-bottom-color: var(--ligne-forte); }
.rayon .liste-jeux[hidden], .rayon .grille-arcade[hidden] { display: none; }

/* ---------- Arcade : salle claire, cartes blanches, « Jouer » bleu royal ; l'écran du jeu reste sombre ---------- */
.salle { background: var(--papier); color: var(--encre); }
.salle::after { display: none; }
.salle .banniere .ariane, .salle .banniere .ariane a { color: var(--encre-2); }
.salle .jetons { margin-top: 4px; }
.salle .jeton { font-family: var(--f-texte); font-size: .85rem; letter-spacing: 0; border-radius: 999px; border-color: var(--ligne); background: var(--blanc); color: var(--encre-2); padding: 7px 14px; }
.salle .jeton b { color: var(--royal-fonce); font-weight: 700; }
.salle .murs { padding-top: clamp(28px, 4vw, 44px); }
.salle .cabinet {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px 10px 14px; color: var(--encre);
  box-shadow: var(--ombre); transition: transform var(--vite) var(--doux), border-color var(--vite), box-shadow var(--vite);
}
.salle .cabinet:hover, .salle .cabinet:focus-visible { transform: translateY(-3px); border-color: var(--ciel); box-shadow: var(--ombre-forte); outline: none; }
.salle .cabinet:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.salle .cabinet-fronton { order: 2; font-family: var(--f-titre); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; color: var(--encre); text-shadow: none; text-align: left; padding: 2px 2px 0; text-transform: none; }
.salle .cabinet canvas { order: 1; border: 0; border-radius: 10px; background: var(--nuit); }
.salle .cabinet-txt { order: 3; color: var(--encre-2); font-size: .9rem; }
.salle .cabinet-bas { order: 4; font-family: var(--f-texte); font-size: .82rem; letter-spacing: 0; color: var(--encre-3); }
.salle .cabinet-bas b { color: var(--or); font-weight: 700; }
.salle .cabinet-jouer { background: var(--royal); color: var(--blanc); font-weight: 700; padding: 7px 16px; border-radius: 999px; }
.salle .cabinet-atelier .cabinet-jouer { background: var(--bleu-clair); color: var(--texte); }
.salle .records .btn-ligne { --texte: var(--encre); border-color: var(--ligne-forte); }
.salle .records h2 { font-family: var(--f-titre); font-size: var(--t-xl); letter-spacing: -.015em; color: var(--encre); font-weight: 800; }
.salle .records p { color: var(--encre-2); }
.salle .table-records { font-family: var(--f-texte); font-size: .95rem; }
.salle .table-records td { border-bottom: 1px solid var(--ligne); }
.salle .table-records td:last-child { color: var(--royal-fonce); font-weight: 700; }

/* Sur mesure : messages après envoi */
.pret-sm h3 { font-size: 1.3rem; }
.pret-sm p { color: var(--encre-2); }
.pret-sm pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .85rem; background: var(--bleu-pale); border: 1px solid var(--ligne); padding: 16px; border-radius: 10px; margin: 0; max-height: 320px; overflow: auto; color: var(--encre); }
.pret-sm .rangee-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.consentement a { color: var(--royal-fonce); }
.formulaire[hidden] { display: none; }

/* Fiche de jeu : pochette officielle, jamais rognée */
.fiche-pochette { background: var(--degrade-ciel); }
.fiche-pochette picture { display: block; }
.fiche-pochette img { object-fit: contain; }
.fiche-pochette-haute { max-width: 460px; justify-self: center; width: 100%; }

/* Arcade : place réservée aux bornes tant que les jeux chargent (CLS mesuré 0,41 sans elle) */
.salle .murs:empty { min-height: 100vh; }

/* ---------- Contact (V4) : fond ciel, carte blanche centrale, un seul bouton principal ---------- */
.contact-v4 { background: var(--halo-ciel), var(--degrade-ciel); }
.contact-carte-zone { display: grid; place-items: center; padding-block: clamp(40px, 8vw, 104px); }
.contact-carte {
  width: min(100%, 560px); background: var(--blanc); border: 1px solid var(--ligne); border-radius: 20px; box-shadow: var(--ombre-forte);
  padding: clamp(28px, 5vw, 52px); display: grid; gap: 18px; justify-items: center; text-align: center;
}
.contact-icone { width: 56px; height: 56px; padding: 12px; border-radius: 16px; background: var(--bleu-clair); fill: none; stroke: var(--royal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-carte h1 { font-size: var(--t-2xl); letter-spacing: -.03em; }
.contact-texte { color: var(--encre-2); font-size: var(--t-l); max-width: 36ch; }
.contact-adresse { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-adresse a { color: var(--royal-fonce); text-decoration: none; border-bottom: 2px solid var(--bleu-clair); }
.contact-adresse a:hover { border-color: var(--royal); }
.contact-actions { display: grid; gap: 12px; width: 100%; max-width: 340px; margin-top: 6px; }
.contact-note { color: var(--encre-2); font-size: .92rem; }
