/* Généré par @jinto/design-tokens (scripts/build.ts) — ne pas éditer, modifier src/tokens.json. */
/*
 * Code de participation (.join-code) : Roboto Mono, chasse fixe à zéro barré et 1/I/l distincts par défaut ;
 * chaque application charge la police (@fontsource/roboto-mono, graisse 600).
 */
:root {
  color-scheme: light;

  /* Marque */
  --jinto-primary: #7BFFC1;
  --jinto-secondary: #9A29FF;
  --jinto-secondary-light: #CF99FF;
  --jinto-secondary-dark: #6017A1;
  --jinto-brand-bg: #0E1E33;

  /* Thème clair (par défaut) : fond, surface, texte (primaire/secondaire/désactivé) */
  --jinto-bg-1: #F5F7F9;
  --jinto-bg-2: #FFFFFF;
  --jinto-border: #E1E6EA;
  --jinto-text-primary: #191B1B;
  --jinto-text-secondary: #5E6060;
  --jinto-text-disabled: #9D9FA0;

  /* Sémantique : fond / principale / texte */
  --jinto-info-bg: #E2EEFD;
  --jinto-info: #2F7FE0;
  --jinto-info-text: #1A4E96;
  --jinto-success-bg: #DDF6E4;
  --jinto-success: #1E9E50;
  --jinto-success-text: #136536;
  --jinto-warning-bg: #FFEFD3;
  --jinto-warning: #D97A00;
  --jinto-warning-text: #874D00;
  --jinto-error-bg: #FDE3E1;
  --jinto-error: #DE3B3F;
  --jinto-error-text: #9E2228;

  /* Contextes : évènement (Menthe) et organisation (Lavande), thème clair */
  --jinto-context-event: #DDFBEC;
  --jinto-context-event-text: #2F6B55;
  --jinto-context-org: #EFDEFF;
  --jinto-context-org-tile: #E8CFFF;

  /* Reliefs et dégradés de marque (docs/ui-guide.md §2.4), thème clair */
  --jinto-elev-card: 0 1px 2px rgba(14, 30, 51, 0.05), 0 12px 26px -16px rgba(14, 30, 51, 0.3);
  --jinto-elev-brand-navy: 0 16px 30px -16px rgba(14, 30, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --jinto-elev-brand-mint: 0 14px 26px -14px rgba(30, 158, 80, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --jinto-elev-brand-violet: 0 14px 26px -14px rgba(154, 41, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --jinto-gradient-mint: linear-gradient(145deg, #B2FFDD 0%, #7BFFC1 55%, #5FEFAB 100%);
  --jinto-gradient-violet: linear-gradient(145deg, #B45EFF 0%, #9A29FF 55%, #8616EE 100%);

  /* Typographie */
  --jinto-font-logo: "Madimi One", system-ui, sans-serif;
  --jinto-font-signature: "Grape Nuts", cursive;
  --jinto-font-ui: "Inter Variable", Inter, system-ui, sans-serif;
  --jinto-font-code: "Roboto Mono", ui-monospace, monospace;

  /* Rayons */
  --jinto-radius-media: 6px;
  --jinto-radius-pill: 10px;
  --jinto-radius-card: 20px;
  --jinto-radius-button: 14px;
  --jinto-radius-sheet: 28px;
}

[data-theme='dark'] {
  color-scheme: dark;

  --jinto-bg-1: #0B1829;
  --jinto-bg-2: #142B49;
  --jinto-border: #22406A;
  --jinto-text-primary: #E1EDE8;
  --jinto-text-secondary: #A9B5B6;
  --jinto-text-disabled: #68747C;

  --jinto-info-bg: #16345E;
  --jinto-info: #5CA3FF;
  --jinto-info-text: #CFE4FF;
  --jinto-success-bg: #123E36;
  --jinto-success: #37C978;
  --jinto-success-text: #C6F4D8;
  --jinto-warning-bg: #3E2E17;
  --jinto-warning: #FFA43A;
  --jinto-warning-text: #FFE3BA;
  --jinto-error-bg: #44202C;
  --jinto-error: #FF6B70;
  --jinto-error-text: #FFD5D6;

  /* Contextes et reliefs, thème sombre (les dégradés de marque ne changent pas de thème) */
  --jinto-context-event: #1B383E;
  --jinto-context-org: #221B4B;
  --jinto-context-org-tile: #2A1C58;
  --jinto-elev-card: 0 14px 28px -16px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --jinto-elev-brand-navy: 0 16px 30px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --jinto-elev-brand-mint: 0 14px 26px -14px rgba(123, 255, 193, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --jinto-elev-brand-violet: 0 14px 26px -14px rgba(154, 41, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Code de participation : chasse fixe, zéro barré, 1/I/l désambiguïsés, espacement augmenté. */
.join-code {
  font-family: var(--jinto-font-code);
  font-variant-numeric: tabular-nums;
  font-feature-settings: normal;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-wght-normal.DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-ext-wght-normal.DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-wght-normal.CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-vietnamese-wght-normal.CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-ext-wght-normal.DO1Apj_S.woff2) format('woff2-variations');
  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;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2) format('woff2-variations');
  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;
}/* madimi-one-latin-400-normal */
@font-face {
  font-family: 'Madimi One';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/madimi-one-latin-400-normal.BZ-sT0en.woff2) format('woff2'), url(/_astro/madimi-one-latin-400-normal.DMF3m8pH.woff) format('woff');
}/* madimi-one-latin-ext-400-normal */
@font-face {
  font-family: 'Madimi One';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/madimi-one-latin-ext-400-normal.BpUcp353.woff2) format('woff2'), url(/_astro/madimi-one-latin-ext-400-normal.u_na7Qqb.woff) format('woff');
}/* grape-nuts-vietnamese-400-normal */
@font-face {
  font-family: 'Grape Nuts';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/grape-nuts-vietnamese-400-normal.B75LrBfV.woff2) format('woff2'), url(/_astro/grape-nuts-vietnamese-400-normal.BA-pxHRP.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* grape-nuts-latin-ext-400-normal */
@font-face {
  font-family: 'Grape Nuts';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/grape-nuts-latin-ext-400-normal.lZ2OBIzh.woff2) format('woff2'), url(/_astro/grape-nuts-latin-ext-400-normal.CItS5gE_.woff) format('woff');
  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;
}

/* grape-nuts-latin-400-normal */
@font-face {
  font-family: 'Grape Nuts';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/grape-nuts-latin-400-normal.B8_WUMbs.woff2) format('woff2'), url(/_astro/grape-nuts-latin-400-normal.nwHSSyND.woff) format('woff');
  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;
}/* roboto-mono-latin-600-normal */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/roboto-mono-latin-600-normal.B8NnDpAt.woff2) format('woff2'), url(/_astro/roboto-mono-latin-600-normal.CKms5zu1.woff) format('woff');
}/*
 * Styles globaux du site vitrine. Toutes les couleurs, polices et rayons viennent des tokens
 * `--jinto-*` (@jinto/design-tokens/tokens.css) : aucune valeur en dur ici.
 *
 * Sections sombres : un élément portant `data-theme="dark"` reçoit la palette foncée de tokens.css
 * (bg-1/bg-2 et le texte primaire/secondaire/désactivé redéfinis pour son sous-arbre) — le site
 * reste en thème clair par ailleurs.
 */

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

html {
  font-family: var(--jinto-font-ui);
  background: var(--jinto-bg-1);
  color: var(--jinto-text-primary);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Petit viewport (barre d'outils du navigateur affichée), fixe : 100dvh suit le repli et la réapparition de la
     barre en plein défilement et laisse une bande vide à sa place sous Firefox Android. Une page courte, qui ne
     défile pas, ne replie jamais la barre : le pied de page y reste en bas. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--jinto-secondary);
  outline-offset: 3px;
}

/* Le Menthe n'est jamais un trait sur fond clair (docs/brand.md §4.2) : sur le marine, il reprend la place du violet. */
[data-theme='dark'] :focus-visible {
  outline-color: var(--jinto-primary);
}

/* Conteneur et sections */

.container {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section[data-theme='dark'] {
  background: var(--jinto-bg-2);
  color: var(--jinto-text-primary);
}

.section-intro {
  max-width: 40rem;
  font-size: 1.125rem;
}

/* Marque */

.wordmark {
  font-family: var(--jinto-font-logo);
  font-size: 1.75rem;
  text-decoration: none;
  color: var(--jinto-primary);
  line-height: 1;
}

.signature {
  font-family: var(--jinto-font-signature);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--jinto-brand-bg);
  margin: 0 0 1rem;
}

[data-theme='dark'] .signature {
  color: var(--jinto-text-primary);
}

/* En-tête et pied de page (sombres, couleur du logo) */

.site-header,
.site-footer {
  background: var(--jinto-brand-bg);
  color: var(--jinto-text-primary);
}

.site-header .container,
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
}

/* En-tête : le wordmark et « Ouvrir l'app », bouton compact pour garder la hauteur de la barre. */
.site-header .btn {
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  font-size: 0.9375rem;
}

.site-footer .container {
  padding-block: 2rem;
}

.site-footer p {
  margin: 0;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--jinto-radius-button);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--jinto-primary);
  color: var(--jinto-brand-bg);
}

.btn--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Champs de formulaire (formulaire de contact, boîte de dialogue du code d'invitation) */

.form-field {
  display: grid;
  gap: 0.375rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  color: var(--jinto-text-primary);
  background: var(--jinto-bg-2);
  border: 2px solid var(--jinto-text-disabled);
  border-radius: var(--jinto-radius-button);
  padding: 0.75rem 1rem;
  width: 100%;
}

/* Police du texte courant, sauf pour un code de participation qui garde celle de `.join-code`. */
.form-field :where(input:not(.join-code), textarea) {
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--jinto-secondary);
  outline-offset: 2px;
}

.form-field [aria-invalid='true'] {
  border-color: var(--jinto-error);
}

.form-helper {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--jinto-text-secondary);
}

/* Animations discrètes : rien sans support ou si le navigateur demande de réduire les animations
   (le contenu reste alors simplement visible et immobile — aucune classe ci-dessous n'y change quoi
   que ce soit hors de ce bloc). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(1rem);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

/* Mentions légales */

.legal-section + .legal-section {
  margin-top: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
}

.placeholder {
  font-style: italic;
  opacity: 0.7;
}

/* Pied de page : liens légaux sur le marine (sur la home, dans le prolongement du bandeau de clôture). */
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
