/* Nice-Event — feuille de style du site public.
   Identité « Papiers découpés » : les gouaches découpées de Matisse à Nice (Jazz, les Nus bleus, musée de Cimiez).
   Blanc pur du papier, encre noire, et des gouaches pures sans gris : outremer, vermillon, orange, citron, vert
   feuille, rose. Chaque catégorie possède une forme découpée dans sa couleur (static/img/formes.svg) qui sert de
   repère partout : listes, cartes, filtres, carte. Pas de cadre ni d'ombre : la couleur fait office de contenant.
   Titres en Unbounded, texte en Atkinson Hyperlegible Next, tous deux servis par le site. Thème sombre : la nuit
   bleue de la chapelle de Vence. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-latin.edd24a2b43a9.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: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-latin-ext.3859ae518d17.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.825fabef695f.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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.290c109915a4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.740db8084ae9.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --paper: #ffffff;
  --paper-2: #eef1fb;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #4a4c5c;
  --line: #e2e5f0;
  --chaise: #1d3fb8;
  --chaise-ink: #1d3fb8;
  --chaise-soft: #dde3f8;
  --on-chaise: #ffffff;
  --corail: #d4381f;
  --corail-ink: #b52c16;
  --corail-soft: #fbdcd6;
  --ocre: #ef7a1f;
  --ocre-soft: #fde3cc;
  --soleil: #f5cc1f;
  --soleil-ink: #141414;
  --pin: #1a7f48;
  --pin-soft: #d4eedf;
  --lavande: #f08eab;
  --lavande-soft: #fce1e9;
  --night: #141414;
  --on-night: #ffffff;
  --on-night-2: #c9cbd6;
  --radius: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --title: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1026; --paper-2: #151c40; --card: #111839; --ink: #f7f5ef; --ink-2: #b9bdd3; --line: #262e57;
    --chaise: #7b93ff; --chaise-ink: #a3b3ff; --chaise-soft: #1c2a66; --on-chaise: #0b1026; --corail: #ff6a52;
    --corail-ink: #ff8f7d; --corail-soft: #4a1b16; --ocre: #ff9a45; --ocre-soft: #4a2a12; --soleil: #ffd83d;
    --pin: #3fc27c; --pin-soft: #123a26; --lavande: #ff9fbd; --lavande-soft: #4a2233; --night: #05081a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1026; --paper-2: #151c40; --card: #111839; --ink: #f7f5ef; --ink-2: #b9bdd3; --line: #262e57;
  --chaise: #7b93ff; --chaise-ink: #a3b3ff; --chaise-soft: #1c2a66; --on-chaise: #0b1026; --corail: #ff6a52;
  --corail-ink: #ff8f7d; --corail-soft: #4a1b16; --ocre: #ff9a45; --ocre-soft: #4a2a12; --soleil: #ffd83d;
  --pin: #3fc27c; --pin-soft: #123a26; --lavande: #ff9fbd; --lavande-soft: #4a2233; --night: #05081a;
  color-scheme: dark;
}

/* Base ---------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chaise-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--chaise); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--title); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--soleil); color: var(--soleil-ink); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.icon { flex: none; vertical-align: -.2em; }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* Boutons --------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.15em;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--corail); color: #fff; }
.btn-primary:hover { background: var(--corail-ink); }
:root[data-theme="dark"] .btn-primary { color: #1b0c08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #1b0c08; } }
.btn-blue { background: var(--chaise); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: .45em .85em; font-size: .9375rem; }

/* Bandeau d'annonce ------------------------------------------------------------------------------------ */

.announce {
  display: flex; align-items: center; justify-content: center; gap: .75em; flex-wrap: wrap;
  padding: .55em 52px .55em var(--gutter); position: relative;
  background: var(--soleil); color: var(--soleil-ink); font-size: .9375rem; text-align: center;
}
.announce a { color: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: .3em; }
.announce-chaise { background: var(--chaise); color: #fff; }
.announce-alerte { background: var(--corail); color: #fff; }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--radius); }
.announce.is-dismissed { display: none; }

/* En-tête ---------------------------------------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: auto; height: 40px; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
:root[data-theme="dark"] .brand-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-dark { display: block; }
  :root:not([data-theme="light"]) .brand-light { display: none; }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { padding: .5em .75em; border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none; }
.nav > a:not(.btn):hover { background: var(--paper-2); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--corail); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin: 0 8px; }
.lang-switch { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); font-weight: 800; font-size: .875rem; text-decoration: none; }
.lang-switch:hover { border-color: var(--ink); }
.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--ink); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .when-dark { display: inline; }
  :root:not([data-theme]) .when-light { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

@media (max-width: 900px) {
  .brand img { height: 34px; }
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: .9em 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.125rem; }
  .nav > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--corail); padding-left: 12px; }
  .nav-tools { margin: 16px 0 0; }
  .nav-cta { margin-top: 16px; }
}

.flash { margin-top: 20px; display: grid; gap: 8px; }
.flash-item { display: flex; gap: .5em; align-items: center; padding: .8em 1em; border: 1px solid var(--chaise);
  border-radius: var(--radius); background: var(--chaise-soft); }
.flash-warning { border-color: var(--ocre); background: var(--ocre-soft); }
.flash-error { border-color: var(--corail); background: var(--corail-soft); }

/* Bandeau rayé façon store de plage, en séparateur */
.stripe { height: 24px; }

/* Accueil ---------------------------------------------------------------------------------------------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero-title { margin: 0 0 20px; font-size: clamp(2.75rem, 7vw, 5.5rem); letter-spacing: -.04em; line-height: .98; }
.hero-title em { font-style: normal; color: var(--chaise); }
.hero-title .q { color: var(--corail); }
.hero-side { display: grid; gap: 22px; }
.hero-lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.soon { border: 2px solid var(--chaise); border-radius: var(--radius); padding: 22px; background: var(--chaise-soft); color: var(--ink);
  display: grid; gap: 10px; justify-items: start; }
.soon a:not(.btn) { color: inherit; }
.soon-kicker { font: 800 .8125rem var(--text); letter-spacing: .08em; text-transform: uppercase; }
.soon-title { font: 800 1.75rem/1.05 var(--title); letter-spacing: -.02em; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 20px; letter-spacing: -.03em; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.cat { border-radius: var(--radius); padding: 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.cat-chaise { background: var(--chaise-soft); } .cat-chaise .icon { color: var(--chaise); }
.cat-corail { background: var(--corail-soft); } .cat-corail .icon { color: var(--corail); }
.cat-ocre { background: var(--ocre-soft); } .cat-ocre .icon { color: var(--ocre); }
.cat-pin { background: var(--pin-soft); } .cat-pin .icon { color: var(--pin); }
.cat-lavande { background: var(--lavande-soft); } .cat-lavande .icon { color: var(--lavande); }

/* Pages ------------------------------------------------------------------------------------------------- */

.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-title { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.035em; margin-top: 8px; }
.page-lede { margin-top: 14px; font-size: 1.1875rem; color: var(--ink-2); max-width: 60ch; }
.page { padding: clamp(40px, 7vw, 96px) var(--gutter); }
.page .actions { margin-top: 24px; }
.page-body { padding-bottom: clamp(48px, 7vw, 96px); }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.625rem; margin: 2em 0 .5em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* Formulaires ------------------------------------------------------------------------------------------- */

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=url], .field select, .field textarea, .g-inline input {
  width: 100%; min-height: 46px; padding: .6em .8em;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink);
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--chaise); outline: 2px solid var(--chaise-soft); }
.field .help { color: var(--ink-2); font-size: .9375rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choices label { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-weight: 600; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choices input { accent-color: var(--corail); }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--corail); flex: none; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--corail-ink); font-weight: 700; font-size: .9375rem; }
.form-error { padding: .8em 1em; border: 1px solid var(--corail); border-radius: var(--radius); background: var(--corail-soft); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.contact-aside { display: grid; gap: 8px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.contact-aside h2 { font-size: 1.25rem; }
.big-mail { font: 800 clamp(1.25rem, 2.4vw, 1.625rem) var(--title); word-break: break-word; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Pied de page ------------------------------------------------------------------------------------------ */

.site-footer { background: var(--night); color: var(--on-night); padding: 48px 0 24px; }
.site-footer a { color: var(--on-night); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-pitch { display: grid; gap: 12px; max-width: 42ch; color: var(--on-night-2); }
.footer-pitch img { height: 40px; width: auto; }
.footer-mail { font: 800 1.25rem var(--title); }
.footer-about { display: grid; gap: 6px; max-width: 34ch; align-content: start; color: var(--on-night-2); font-size: .9375rem; }
.footer-about p { margin: 0; }
.footer-about-title { font-weight: 800; color: var(--on-night); }
.footer-about a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .12); color: var(--on-night-2); font-size: .9375rem; }
