/* xavier.hovasse.net — feuille de style unique */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-variable-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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-variable-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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-variable-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: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-variable-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: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #223b57;                 /* bleu ardoise des boutons Taplink */
  --btn: rgba(34, 59, 87, 0.6);
  --btn-hover: rgba(34, 59, 87, 0.8);
  --btn-soft: rgba(34, 59, 87, 0.15);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.75);
  --rule: rgba(255, 255, 255, 0.35);
  --menu-bg: rgba(38, 46, 58, 0.96);
  --font-title: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --col: 620px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  background: #1d2733 url("../assets/background.jpg") center / cover no-repeat fixed;
}
@media (max-width: 700px) {
  body { background-attachment: scroll; }
}

a { color: inherit; }

/* ---------- structure ---------- */
.page {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 16px 18px 48px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}
.topbar { padding-right: 56px; }          /* place pour le bouton menu */
.langs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.langs a {
  display: inline-block;
  min-width: 34px;
  padding: 6px 7px;
  border-radius: 3px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.langs a:hover, .langs a:focus-visible { color: var(--text); background: var(--btn-soft); }
.langs a[aria-current="page"] { color: var(--text); background: var(--btn); }

/* ---------- identité ---------- */
.identity { text-align: center; margin-top: 8px; }
.avatar {
  display: block;
  width: 100px; height: 100px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.15);
}
.name {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.name a { text-decoration: none; }
.brand {
  margin: 20px 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand img { height: 34px; width: auto; vertical-align: middle; }
.rule {
  width: 190px;
  height: 1px;
  margin: 24px auto;
  background: var(--rule);
  border: 0;
}
.tagline {
  margin: 0;
  text-align: left;
  font-size: 17px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--muted);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider svg { width: 16px; height: 16px; }

/* ---------- icônes rondes ---------- */
.icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--btn-hover); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- boutons ---------- */
.actions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 64px;
  border-radius: 3px;
  background: var(--btn);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: background .15s, transform .15s;
}
.action:hover, .action:focus-visible { background: var(--btn-hover); }
.action:active { transform: scale(0.99); }
.action.is-soft { background: var(--btn-soft); }
.action.is-soft:hover, .action.is-soft:focus-visible { background: var(--btn); }
.action-title {
  display: block;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.action-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.action-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  opacity: .85;
}

/* ---------- sous-pages ---------- */
.subpage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}
.back {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.back svg { width: 22px; height: 22px; }
.subpage-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
}
.subpage-intro { margin: 0 0 20px; color: var(--muted); }

/* Panneau « verre dépoli » : fond transparent, flou + voile sombre pour la lisibilité */
.panel {
  background: rgba(16, 24, 36, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  color: var(--text);
  border-radius: 6px;
  overflow: hidden;
  min-height: 420px;
}
@supports not (backdrop-filter: blur(1px)) {
  .panel { background: rgba(16, 24, 36, 0.78); }   /* sans flou : voile plus opaque */
}
.panel iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}
.panel-fallback {
  padding: 24px;
  font-size: 15px;
}
.panel-fallback a { color: var(--text); }

/* ---------- pied ---------- */
.foot {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- menu ---------- */
.menu-toggle {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 46, 58, 0.9);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .ico-close { display: none; }
body.menu-open .menu-toggle .ico-menu { display: none; }
body.menu-open .menu-toggle .ico-close { display: block; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--menu-bg);
  backdrop-filter: blur(6px);
}
body.menu-open .menu { display: flex; }
body.menu-open { overflow: hidden; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li + li { margin-top: 22px; }
.menu a {
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { color: var(--text); }
.menu .group {
  margin-top: 30px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.menu li.group + li { margin-top: 12px; }

/* ---------- accessibilité ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- porte Wildcard (contrat d'apparence, cf. app.nowayn.com → Portes → Apparence) ---------- */
.porte {
  --rdv-fond:          transparent;               /* le panneau parent fournit le verre */
  --rdv-surface:       rgba(255,255,255,0.12);    /* champs, créneaux, cartes */
  --rdv-surface-choix: rgba(255,255,255,0.28);    /* ce qui est retenu */
  --rdv-texte:         #ffffff;
  --rdv-texte-doux:    rgba(255,255,255,0.72);
  --rdv-trait:         rgba(255,255,255,0.28);
  --rdv-accent:        rgba(255,255,255,0.92);    /* bouton principal, jour choisi */
  --rdv-accent-texte:  #1d2733;
  --rdv-rayon:         3px;
  --rdv-rayon-carte:   6px;
  --rdv-ombre:         none;
  --rdv-densite:       1;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  padding: 8px;
}
/* Le texte indicatif des champs n'est pas couvert par les variables de la porte :
   sans cette règle il garde le gris par défaut du navigateur, illisible sur fond sombre. */
.porte input::placeholder,
.porte textarea::placeholder {
  color: rgba(255,255,255,0.6);
  opacity: 1;
}
