/* Feuille du centre client, aux couleurs de Relaytour (palette par défaut du projet). */

@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/polices/hanken-grotesk-latin-wght-normal.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;
}
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/polices/hanken-grotesk-latin-ext-wght-normal.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;
}

/* Baloo 2 ne sert que le logotype « Relaytour » (docs/design-system.md du dépôt public). */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/polices/baloo-2-latin-600-normal.woff2') format('woff2');
}

:root {
  --rt-encre: #1b2730;
  --rt-encre-douce: rgba(27, 39, 48, 0.72);
  --rt-primaire: #1e5a63;
  --rt-primaire-clair: #dceaeb;
  --rt-accent: #ad412b;
  --rt-accent-clair: #f6e1db;
  --rt-alerte: #8a5a0e;
  --rt-alerte-clair: #fbf0d8;
  --rt-sol-1: #ffffff;
  --rt-sol-2: #f4f6f7;
  --rt-sol-3: #e9eef0;
  --rt-police:
    'Hanken Grotesk Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rayon: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(
    180deg,
    var(--rt-sol-1) 0,
    var(--rt-sol-2) 40%,
    var(--rt-sol-3) 100%
  );
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--rt-encre);
  font-family: var(--rt-police);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--rt-primaire);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 16px;
}

h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.barre {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.barre nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.marque {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--rt-encre);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
}

/* Le logotype : Baloo 2 SemiBold, « Relay » en encre et « tour » en accent. */
.logotype {
  font-family: 'Baloo 2', var(--rt-police);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logotype > span {
  color: var(--rt-accent);
}

.marque-suite {
  color: var(--rt-encre-douce);
  font-weight: 400;
}

.page {
  display: grid;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.entete {
  max-width: 760px;
}

.etiquette {
  margin: 0 0 8px;
  color: var(--rt-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chapo {
  font-size: 20px;
  color: var(--rt-encre-douce);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bouton {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(27, 39, 48, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rt-encre);
  font-weight: 600;
  text-decoration: none;
}

.bouton-primaire {
  border-color: var(--rt-primaire);
  background: var(--rt-primaire);
  color: #ffffff;
}

.grille-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panneau {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(27, 39, 48, 0.08);
  backdrop-filter: blur(14px);
}

.panneau-accent {
  border-color: var(--rt-primaire-clair);
  background: linear-gradient(160deg, rgba(220, 234, 235, 0.9), rgba(255, 255, 255, 0.8));
}

.liste {
  padding-left: 22px;
}

.defilement {
  overflow-x: auto;
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--rayon);
}

.tableau caption {
  text-align: left;
  color: var(--rt-encre-douce);
  padding-bottom: 8px;
}

.tableau th,
.tableau td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rt-sol-3);
  text-align: left;
  vertical-align: top;
}

.note {
  color: var(--rt-encre-douce);
  font-size: 15px;
}

.texte {
  max-width: 760px;
}

.texte h2 {
  margin-top: 32px;
}

.alerte {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--rt-alerte-clair);
  color: var(--rt-alerte);
}

.pied {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--rt-sol-3);
  color: var(--rt-encre-douce);
  font-size: 15px;
}

.formulaire {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.champ {
  display: grid;
  gap: 6px;
}

.champ label {
  font-weight: 600;
}

.champ input,
.champ select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(27, 39, 48, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: var(--rt-encre);
  font: inherit;
}

.champ input:focus-visible,
.champ select:focus-visible,
.bouton:focus-visible {
  outline: 3px solid var(--rt-primaire);
  outline-offset: 2px;
}

.champ-erreur input,
.champ-erreur select {
  border-color: #a23a2c;
}

.aide {
  margin: 0;
  color: var(--rt-encre-douce);
  font-size: 15px;
}

.erreur {
  margin: 0;
  color: #a23a2c;
  font-size: 15px;
}

.case {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
}

.case input {
  width: auto;
  margin-top: 5px;
}

.champ-cache {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.bouton {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.liens-legaux {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.legal h2 {
  font-size: 21px;
}

.sommaire {
  padding: 12px 20px;
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, 0.72);
}

.encadre {
  padding: 16px 20px;
  border: 1px solid var(--rt-sol-3);
  border-radius: 12px;
  background: #ffffff;
}

.a-completer {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--rt-alerte-clair);
  color: var(--rt-alerte);
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}

.details dt {
  color: var(--rt-encre-douce);
}

.details dd {
  margin: 0;
}

.souscription {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rt-sol-3);
}

.souscription .bouton {
  width: 100%;
  text-align: left;
}

.succes {
  padding: 12px 16px;
  border-radius: 12px;
  background: #e3f0e4;
  color: #3a7042;
}

@media (max-width: 760px) {
  .grille-2 {
    grid-template-columns: 1fr;
  }
}
