@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('fonts/BigShouldersDisplay_900Black.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('fonts/PlusJakartaSans_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); }

:root {
  --nuit: #12162F; --nuit2: #1C2148; --trait-nuit: #4A52A0; --profond: #0A0D20;
  --creme: #F4EAD5; --creme-doux: #B9C2F2;
  --or: #FFC21A; --or-fonce: #D99A00; --or-levre: #A87400; --or-encre: #704B00;
  --parchemin: #F4EAD5; --encre: #12162F; --gris: #4D5170; --trait: #D6C49F;
  --vert: #12C98A; --corail: #FF6A3D;
  --titre: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --texte: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--creme); font: 500 17px/1.6 var(--texte); overflow-x: hidden;
  background-image: radial-gradient(ellipse 90% 60% at 80% -10%, rgba(74, 82, 160, .35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23FFC21A' stroke-opacity='.10' stroke-width='2'%3E%3Cpath d='M0 120 Q150 90 300 130 T600 110'/%3E%3Cpath d='M0 420 Q170 380 320 430 T600 400'/%3E%3Cpath d='M520 0 L470 90 L520 160 L430 260'/%3E%3C/g%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: #FFD75E; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h2 { font: 900 clamp(34px, 6vw, 56px)/1 var(--titre); letter-spacing: .01em; }
h3 { font-weight: 800; font-size: 20px; }
.petit { font-size: 14px; color: var(--creme-doux); }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--or); color: var(--encre); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.evitement:focus { left: 16px; }

/* En-tête */
.entete { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--creme); text-decoration: none; font: 900 30px/1 var(--titre); min-height: 44px; }
.logo .murdo-petit { width: 40px; height: 40px; }
.entete ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.entete nav a { color: var(--creme); text-decoration: none; font-weight: 800; font-size: 15px; display: inline-block; padding: 10px 0; }
.entete nav a:hover { color: var(--or); }

/* Accueil : héros */
main { display: block; }
.heros { position: relative; max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; }
.heros h1 { font: 900 clamp(84px, 16vw, 168px)/.9 var(--titre); margin: 0 0 12px; color: var(--creme); }
.accroche { font: 800 clamp(22px, 3.2vw, 30px)/1.25 var(--texte); color: var(--or); margin: 0 0 16px; max-width: 18em; }
.sous-titre { font-size: 18px; color: var(--creme-doux); max-width: 32em; margin: 0 0 24px; }
.halo { position: absolute; right: 2%; top: 4%; width: min(520px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 26, .32), rgba(255, 194, 26, .12) 45%, transparent 70%); animation: respire 6s ease-in-out infinite; pointer-events: none; }
.heros-murdo { position: relative; display: flex; justify-content: center; }
.murdo { width: min(380px, 70vw); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); animation: arrivee .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.murdo .corps { animation: souffle 3.2s ease-in-out 1s infinite; transform-origin: 50px 96px; transform-box: view-box; }
.murdo .bras { animation: coucou 1.8s ease-in-out .7s 2, coucou 1.8s ease-in-out 7s infinite; }
@keyframes arrivee { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes coucou { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-22deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-18deg); } 80% { transform: rotate(6deg); } }
@keyframes souffle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015, 1.03); } }
@keyframes respire { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.apparait { animation: monte .7s cubic-bezier(.2, .9, .3, 1) both; }
.heros-texte > .apparait:nth-child(2) { animation-delay: .08s; } .heros-texte > .apparait:nth-child(3) { animation-delay: .16s; }
.heros-texte > .apparait:nth-child(4) { animation-delay: .24s; } .heros-texte > .apparait:nth-child(5) { animation-delay: .32s; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Boutons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.store, .bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px; border-radius: 14px; background: var(--or); color: var(--encre); text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1.1; box-shadow: 0 5px 0 var(--or-levre); transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), box-shadow .18s; }
.store small { display: block; font-size: 12px; font-weight: 500; }
.store:hover, .bouton:hover { color: var(--encre); transform: translateY(-3px); box-shadow: 0 8px 0 var(--or-levre); }
.store:active, .bouton:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--or-levre); }
.store .icone { width: 26px; height: 26px; }
.bouton-secondaire { font: 800 15px var(--texte); min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; }
/* Avant le lancement : pastilles « Bientôt sur… » (non cliquables, sans relief) et « Me prévenir du lancement ». */
.store.bientot { background: transparent; color: var(--creme); border: 2px dashed var(--trait-nuit); box-shadow: none; cursor: default; }
.store.bientot:hover, .store.bientot:active { transform: none; box-shadow: none; color: var(--creme); }
.store.bientot small { color: var(--creme-doux); }
.prevenir { margin: 0 0 12px; }
.prevenir .bouton-secondaire { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-color: var(--or); color: var(--or); transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), background .18s, color .18s; }
.prevenir .bouton-secondaire:hover { background: var(--or); color: var(--encre); transform: translateY(-2px); }
.prevenir .bouton-secondaire .icone { width: 20px; height: 20px; }
.final .prevenir { text-align: center; }

/* Invitation */
.invitation { max-width: 1120px; margin: 0 auto; padding: 8px 16px 0; }
.invitation-carte { background: var(--parchemin); color: var(--encre); border: 2px solid var(--profond); border-radius: 18px; box-shadow: 6px 6px 0 var(--or); padding: 20px; animation: monte .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.invitation-carte h2 { font-size: clamp(30px, 5vw, 44px); }
.invitation-carte a.bouton { color: var(--encre); }
.code-ami { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code { font: 900 44px/1 var(--titre); letter-spacing: .12em; color: var(--or-encre); }

/* Captures */
.captures, .fonctionnalites, .promesse, .final { max-width: 1120px; margin: 0 auto; padding: 48px 16px; }
.captures h2, .fonctionnalites h2 { text-align: center; }
.defile { list-style: none; margin: 24px 0 0; padding: 8px 4px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.telephone { margin: 0; background: var(--profond); border: 2px solid var(--trait-nuit); border-radius: 30px; padding: 10px; box-shadow: 8px 8px 0 var(--profond); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.telephone img { width: 100%; height: auto; border-radius: 22px; background: var(--nuit2); }
.telephone figcaption { text-align: center; font-weight: 800; padding: 10px 0 2px; }
.defile li:nth-child(odd) .telephone { transform: rotate(-2deg); } .defile li:nth-child(even) .telephone { transform: rotate(2deg) translateY(18px); }
.defile li:hover .telephone { transform: translateY(-8px) rotate(0); }

/* Cartes */
.cartes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte { background: var(--parchemin); color: var(--encre); border: 2px solid var(--profond); border-radius: 18px; box-shadow: 6px 6px 0 var(--profond); padding: 22px; }
.carte p { margin: 0; color: var(--gris); font-size: 16px; }
.carte .icone, .carte .murdo-petit { width: 48px; height: 48px; margin-bottom: 12px; color: var(--or-encre); }
.carte:nth-child(1) { box-shadow: 6px 6px 0 var(--or); }

/* Promesse et appel final */
.promesse-carte { display: flex; gap: 20px; align-items: flex-start; background: var(--nuit2); border: 2px solid var(--trait-nuit); border-radius: 18px; padding: 24px; }
.promesse-carte > .icone { width: 56px; height: 56px; flex: none; color: var(--vert); }
.promesse-carte h2 { font-size: clamp(30px, 5vw, 44px); }
.promesse-carte p { color: var(--creme-doux); margin: 0 0 8px; }
.final { text-align: center; }
.final .murdo-petit { width: 120px; height: 120px; margin: 0 auto 8px; }
.final .stores { justify-content: center; }

/* Apparitions au défilement (seulement si le script tourne) */
.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, 1.2, .4, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .revele.vu { opacity: 1; transform: none; }

/* Pages de texte */
.page-texte main { max-width: 820px; margin: 0 auto; padding: 8px 16px 56px; }
.document { background: var(--parchemin); color: var(--encre); border: 2px solid var(--profond); border-radius: 18px; box-shadow: 6px 6px 0 var(--profond); padding: clamp(20px, 4vw, 40px); overflow-wrap: anywhere; }
.document a { color: #1F3A8A; }
.document h1 { font: 900 clamp(40px, 7vw, 60px)/1 var(--titre); }
.document h2 { font: 800 22px/1.25 var(--texte); margin-top: 32px; }
.document h3 { font-size: 18px; margin-top: 24px; }
.document .fil { margin: 0 0 8px; font-size: 15px; }
.document .brouillon { background: #FBD3C2; color: #8A2D0C; border: 2px solid #E89A7C; border-radius: 12px; padding: 12px 16px; font-weight: 800; }
.document mark { background: #FBE3A1; color: inherit; padding: 0 2px; }
.document .tableau { overflow-x: auto; }
.document table { border-collapse: collapse; font-size: 15px; min-width: 560px; }
.document th, .document td { border: 1px solid var(--trait); padding: 8px; text-align: left; vertical-align: top; }
.document th { background: #E8DBBE; }
.document :focus-visible { outline-color: #1F3A8A; }
.liste-liens li { margin: 6px 0; }
.contact-courriel { display: flex; align-items: center; gap: 10px; font: 800 clamp(20px, 4vw, 26px)/1.2 var(--texte); }
.contact-courriel .icone { width: 32px; height: 32px; color: var(--or-encre); }
.centre { text-align: center; } .centre .murdo-petit { width: 140px; height: 140px; margin: 0 auto; }

/* Pied de page */
.pied { border-top: 2px solid var(--nuit2); margin-top: 24px; background: var(--profond); }
.pied-grille { max-width: 1120px; margin: 0 auto; padding: 32px 16px 8px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.pied h2 { font: 800 16px var(--texte); color: var(--creme); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a { display: inline-block; padding: 6px 0; color: var(--creme-doux); }
.pied li a:hover { color: var(--or); }
.pied-nom { display: flex; align-items: center; gap: 8px; font: 900 28px/1 var(--titre); margin: 0 0 8px; }
.pied-nom .murdo-petit { width: 36px; height: 36px; }
.pied-bas { max-width: 1120px; margin: 0 auto; padding: 8px 16px 24px; }

/* Téléphone et tablette */
@media (max-width: 900px) {
  .heros { grid-template-columns: 1fr; text-align: left; padding-top: 0; }
  .heros-murdo { order: -1; }
  .murdo { width: min(260px, 62vw); }
  .halo { right: 50%; transform: translateX(50%); top: 0; width: min(420px, 100vw); animation: none; }
  .defile { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-left: 4px; margin-right: -16px; }
  .defile li { scroll-snap-align: center; }
  .defile li .telephone, .defile li:nth-child(even) .telephone { transform: none; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cartes { grid-template-columns: 1fr; }
  .promesse-carte { flex-direction: column; }
  .store { flex: 1 1 100%; justify-content: center; }
  .entete { padding-bottom: 0; }
}

/* Réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .revele { opacity: 1; transform: none; }
}
