/* =============================================================================
   Space Note — feuille de style globale (remplace Hello + Elementor + kit #85)
   Ordre : 1 polices · 2 tokens · 3 reset/base · 4 typo · 5 mise en page (modèle
   Elementor section/colonne/widget) · 6 utilitaires · 7 boutons · 8 formulaires ·
   9 header · 10 footer
   Points de rupture (les SEULS du site) : tablette <=1024px, mobile <=767px.
   Les largeurs de colonnes s'appliquent à partir de 768px (comme Elementor).
   CSS propre à une page : src/assets/css/pages/<page>.css (front matter pageCss).
   ========================================================================== */

/* 1. Polices auto-hébergées ------------------------------------------------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/roboto-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/roboto-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Comics"; font-style: normal; font-weight: normal; font-display: swap;
  src: url(/assets/fonts/space-comics.ttf) format("truetype"); }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* couleurs */
  --c-bg-1: #05152E;            /* début dégradé page, fond footer */
  --c-bg-2: #0F2B40;            /* fin dégradé page, cartes d'accueil */
  --c-header: #13263D;          /* barre d'en-tête */
  --c-post-header: #2B3655;     /* en-tête article + séparateur "montagnes" */
  --c-hero-overlay: #2F435C;    /* overlay hero accueil (opacité .3) */
  --c-primary: #EAA2C9;         /* rose : liens, boutons */
  --c-primary-hover: #D58DB4;   /* survol boutons JOUER (accueil) */
  --c-primary-hover-2: #D891B7; /* survol bouton newsletter footer */
  --c-link-hover: #f6d5e7;
  --c-green: #23A455;           /* bouton par défaut du kit */
  --c-green-2: #61CE70;         /* survol bouton par défaut, soulignement nav, séparateur article */
  --c-warning: #F0AD4E;         /* bouton « questionnaire » /jeu/ */
  --c-white: #FFFFFF;
  --c-text: #FFFFFF;
  --c-field-text: #1F2124;
  --c-field-border: #69727D;
  --c-toggle: #FFFFFF;          /* icône burger = texte du header (l'original #33373d était quasi invisible) */
  --c-dropdown-hover: #3f444b;
  --c-success: #5cb85c;
  --c-danger: #d9534f;
  /* typo */
  --font-sans: "Roboto", Sans-serif;
  --font-brand: "Space Comics", Sans-serif;
  /* largeurs */
  --container: 1140px;          /* section "boxed" (1024 tablette, 767 mobile) */
  --container-narrow: 955px;    /* sections accueil eecd086 / 5b43ffa */
  --container-post: 700px;      /* contenu article */
  /* espacements Elementor implicites */
  --col-pad: 10px;              /* padding colonne (column gap "default") */
  --widget-gap: 20px;           /* espace entre widgets */
  /* formes */
  --radius-card: 20px;
  --radius-btn: 20px;
  --shadow-btn: 0 0 10px 0 rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 17px 0 #FFF;
  --header-h: 79px;             /* hauteur du header desktop */
}
@media (max-width: 1024px) { :root { --container: 1024px; } }
@media (max-width: 767px)  { :root { --container: 767px; } }

/* 3. Reset / base (Hello Elementor reset.css + kit) ------------------------ */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, ::before, ::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 400; line-height: 1.5;
  color: var(--c-text);
  background-color: transparent;
  background-image: linear-gradient(180deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* jamais "hidden" sur html/body : casserait le header sticky */
}
img { border-style: none; height: auto; max-width: 100%; }
a { background-color: transparent; color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; } sup { top: -.5em; }
figcaption { color: #333; font-size: 16px; font-style: italic; font-weight: 400; line-height: 1.4; }
[hidden], template { display: none !important; }
label { display: inline-block; line-height: 1; vertical-align: middle; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 1rem; line-height: 1.5; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
textarea { overflow: auto; resize: vertical; }
dd, dl, dt, li, ol, ul { margin-block: 0; }
table { background-color: transparent; border-collapse: collapse; border-spacing: 0; font-size: .9em; margin-block-end: 15px; width: 100%; }
table td, table th { border: 1px solid hsla(0, 0%, 50%, .502); line-height: 1.5; padding: 15px; vertical-align: top; }
:where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible { box-shadow: 0 0 0 4px #fff; outline: 2px solid #000; outline-offset: 2px; }

/* 4. Typographie ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { color: inherit; font-family: inherit; font-weight: 500; line-height: 1.2; margin-block: .5rem 1rem; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
h1, h2, h3 { color: var(--c-white); }
p { margin-block: 0 2em; }                     /* kit : 32px desktop */
@media (max-width: 767px) {
  p { margin-block-end: 1em; }                 /* kit : 16px mobile */
  h1 { font-size: 2em; } h2 { font-size: 1.5em; }
}
/* Titre "widget heading" Elementor : interligne 1, sans marge */
.heading { line-height: 1; margin: 0; padding: 0; }
.heading > a { color: inherit; font-size: inherit; line-height: inherit; }
/* Particularité du site : tout titre-lien est blanc, sans soulignement (CSS custom header/footer) */
.heading > a, .heading > a:hover { color: #fff; text-decoration: none; }
/* Wordmark "SPACE NOTE" (header, footer) */
.wordmark { font-family: var(--font-brand); font-size: 1.4em; color: var(--c-white); text-align: start; }

/* 5. Mise en page : modèle Elementor (section > container > col > col__inner > widget)
   - .section        : bloc pleine largeur (position relative, fond)
   - .section--boxed : le .container est limité à --container (1140/1024/767)
   - .container      : rangée flex ; passe en wrap <=1024px
   - .col            : colonne ; largeur >=768px via style="--w:19.953%" ; 100% en mobile
   - .col__inner     : "widget-wrap" : padding 10px (.col__inner--flush = 0), flex wrap
   - .widget         : élément 100% de large, 20px d'écart avec le suivant          */
.section { position: relative; }
.container { display: flex; margin-inline: auto; position: relative; }
.section--boxed > .container { max-width: var(--container); }
.container--middle { align-items: center; }    /* elementor-section-items-middle */
@media (max-width: 1024px) { .container { flex-wrap: wrap; } }
.col { display: flex; min-height: 1px; position: relative; width: 100%; }
@media (min-width: 768px) { .col { width: var(--w, 100%); } }
.col__inner { display: flex; flex-wrap: wrap; align-content: flex-start; position: relative; width: 100%; padding: var(--col-pad); }
.col__inner--flush { padding: 0; }
.col__inner > .widget { width: 100%; }
.widget { position: relative; }
.widget:not(:last-child) { margin-block-end: var(--widget-gap); }

/* 6. Utilitaires ------------------------------------------------------------ */
/* Visibilité par appareil (= elementor-hidden-*) */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 24px; top: 5px; left: 5px; z-index: 100000; background: #fff; color: #333; }
.icon { display: block; fill: currentColor; }

/* 7. Boutons (Elementor .elementor-button + kit #85) ------------------------
   .btn = bouton par défaut du kit (vert, rayon 20px, ombre). Tailles : --xs --sm --md --lg --xl
   .btn--primary = rose. Contenu avec icône : .btn__content > .btn__icon + .btn__text
   Les boutons-liens (<a class="btn">) se soulignent au survol (comme l'original). */
.btn {
  display: inline-block; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1;
  padding: 12px 24px; border: 0 solid; border-radius: var(--radius-btn);
  background-color: var(--c-green); color: #fff; fill: #fff; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-btn); transition: all .3s; cursor: pointer; white-space: nowrap;
}
.btn:hover, .btn:focus { background-color: var(--c-green-2); color: #fff; }
a.btn:hover { text-decoration: underline; }
button.btn:hover { text-decoration: none; }
.btn--xs { font-size: 13px; padding: 10px 20px; }
.btn--sm { font-size: 15px; padding: 12px 24px; }
.btn--md { font-size: 16px; padding: 15px 30px; }
.btn--lg { font-size: 18px; padding: 20px 40px; }
.btn--xl { font-size: 20px; padding: 25px 50px; }
.btn--primary { background-color: var(--c-primary); }
.btn--primary:hover, .btn--primary:focus { background-color: var(--c-primary-hover); }
.btn--warning { background-color: var(--c-warning); }
.btn--block { display: block; width: 100%; }
.btn__content { display: flex; flex-direction: row; justify-content: center; gap: var(--btn-gap, 12px); }
.btn__icon { display: flex; align-items: center; }
.btn__icon .icon { width: 1.25em; height: 1em; }  /* glyphe Font Awesome 640x512 */
.btn__text { display: inline-block; }

/* 8. Formulaires (Elementor Pro form, taille "sm") -------------------------- */
.field-group { display: flex; flex-wrap: wrap; align-items: center; width: 100%; padding-inline: 5px; margin-bottom: 10px; }
.field {
  display: block; width: 100%; max-width: 100%; flex-grow: 1; min-height: 40px;
  padding: 8px 16px; font-size: 15px; line-height: 1.4; color: var(--c-field-text);
  background-color: #fff; border: 1px solid var(--c-field-border); border-radius: 3px; transition: all .3s;
}
.field::placeholder { color: inherit; font-family: inherit; opacity: .6; }
.field:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: 0; }
textarea.field { resize: vertical; }

/* 9. Header (Elementor #74) ------------------------------------------------- */
.site-header {
  position: relative; z-index: 99;
  background-color: var(--c-header);
  padding: 10px 50px;
  transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
}
@media (min-width: 1025px) { .site-header { position: sticky; top: 0; } }   /* sticky desktop uniquement */
@media (max-width: 767px)  { .site-header { padding: 4% 0 0 0; } }
.site-header .col__inner { align-content: center; align-items: center; }
.site-header__brand .col__inner,
.site-header__tagline .col__inner,
.site-header__nav .col__inner { justify-content: center; }
@media (max-width: 767px) { .site-header .wordmark { text-align: center; } }
.site-header__tagline .widget { font-weight: 700; } /* le slogan garde le poids 500 du reset h6 (ci-dessous) */
/* Wordmark et slogan rendus en <p> (et non <h2>/<h6> comme à l'origine) : on reproduit les styles calculés des titres */
.site-header__wordmark { font-weight: 500; }   /* poids du reset h2 ; .heading + .wordmark fournissent le reste */
.site-header__slogan { font-size: 1rem; font-weight: 500; line-height: 1.2; margin-block: .5rem 1rem; }   /* = reset h6 */
/* Wordmark et slogan rendus en <p> (plus en <h2>/<h6>) : on reproduit à l identique les styles calculés des titres d origine */
.site-header__wordmark { font-weight: 500; }                                  /* poids du reset h2 (.heading/.wordmark fournissent le reste) */
.site-header__slogan { font-size: 1rem; font-weight: 500; line-height: 1.2; margin-block: .5rem 1rem; } /* = h6 du reset */
.site-header__play .widget { text-align: center; }
.btn--r10 { border-radius: 10px; }
.site-header__play .btn:hover, .site-header__play .btn:focus { background-color: var(--c-primary); } /* pas de changement de fond (fidèle) */

/* Navigation */
.nav__list { display: block; list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.nav__list li { display: block; list-style: none; margin: 0; padding: 0; position: relative; }
.nav__link { display: flex; align-items: center; position: relative; line-height: 20px; padding: 10px 20px; font-weight: 700; text-decoration: none; }
.nav__link:hover, .nav__link:focus { text-decoration: none; }
/* menu horizontal desktop */
.nav__main .nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.nav__main .nav__list li { display: flex; }
.nav__main .nav__link { padding: 13px 20px; color: #fff; fill: #fff; transition: .4s; }
.nav__main .nav__link::after {
  content: ""; display: block; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; z-index: 2;
  background-color: var(--c-green-2); opacity: 0;
  transition: .3s; transition-timing-function: cubic-bezier(.58, .3, .005, 1);
}
.nav__main .nav__link:hover::after,
.nav__main .nav__link:focus::after,
.nav__main .nav__link[aria-current="page"]::after { opacity: 1; }
/* bouton burger + menu déroulant (<=1024px) */
.nav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 33px; height: 33px; margin: 0 auto; padding: 0;
  background-color: rgba(0, 0, 0, .05); color: var(--c-toggle);
  border: 0 solid; border-radius: 3px; box-shadow: none; cursor: pointer;
}
.nav__toggle .icon { width: 33px; height: 33px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open,
.nav__toggle[aria-expanded="false"] .nav__toggle-close { display: none; }
.nav__dropdown {
  background-color: #fff; font-size: 13px; margin-top: 10px;
  overflow: hidden; transform-origin: top;
  max-height: 0; transform: scaleY(0);
  transition: max-height .3s, transform .3s;
}
.nav__dropdown.is-open { max-height: var(--menu-height, 100vh); transform: scaleY(1); }
.nav__dropdown .nav__link { color: var(--c-primary); }
.nav__dropdown .nav__link:hover, .nav__dropdown .nav__link:focus, .nav__dropdown .nav__link[aria-current="page"] { background-color: var(--c-dropdown-hover); color: #fff; }
@media (min-width: 1025px) { .nav__toggle, .nav__dropdown { display: none; } }
@media (max-width: 1024px) { .nav__main { display: none; } }

/* 10. Footer (Elementor #157) ---------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--c-bg-1);
  padding: 0 10%;
}
.site-footer > .container { min-height: 400px; align-items: center; }
.site-footer .col__inner { align-content: center; align-items: center; }
.site-footer__partners .col__inner,
.site-footer__newsletter .col__inner { align-content: flex-start; align-items: flex-start; }
/* Newsletter */
.newsletter__fields { display: flex; flex-wrap: wrap; margin: 0 -5px -10px; }
.newsletter__submit { min-height: 40px; padding: 0 24px; border-radius: 6px; background-color: var(--c-primary); }
.newsletter__submit:hover, .newsletter__submit:focus { background-color: var(--c-primary-hover-2); }
.newsletter__submit[disabled] { opacity: .7; cursor: wait; }
.newsletter__hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__msg { margin: 20px 0 0; font-size: 1em; line-height: 1.3; }
.newsletter__msg.is-success { color: var(--c-success); }
.newsletter__msg.is-error { color: var(--c-danger); }

/* 11. Badge « Bientôt » (macro soonBadge, émis tant que site.game.released est faux) ----------
   Superposition SVG calée sur l'image du badge ; imite le « Bientôt » peint dans iOS.png. */
.badge-soon { position: relative; display: inline-block; vertical-align: middle; max-width: 100%; line-height: 0; }
.badge-soon > img { display: block; width: 100%; }
.badge-soon__label { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.badge-soon__label text {
  font-family: "Roboto", Arial, sans-serif; font-weight: 900; font-size: 116px;
  fill: #eaa2ca; stroke: #000; stroke-width: 9px; stroke-linejoin: round; paint-order: stroke fill;
}
