@font-face {
  font-family: Comfortaa;
  src: url("comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("open-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pink: #e53859;
  --paper: #f4f2f2;
  --ink: #141025;
  --slate: #1f2630;
  --orange: #ed8533;
  --line: #dedade;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 "Open Sans", system-ui, sans-serif;
}

.site-header {
  max-width: 70rem;
  min-height: 5.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.wordmark { display: block; width: 7.4rem; height: auto; }

.language {
  display: flex;
  gap: .25rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #fff;
}

.language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 3.1rem;
  min-height: 2.25rem;
  padding: .25rem .45rem;
  border-radius: 2rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.language a[aria-current] { background: var(--ink); color: #fff; }
.language a:not([aria-current]):hover { background: var(--paper); }

.flag { width: 1rem; height: .7rem; border-radius: .13rem; flex: none; }
.flag-fr { background: linear-gradient(90deg, #002395 33.3%, #fff 33.3% 66.7%, #ed2939 66.7%); }
.flag-en {
  background:
    linear-gradient(90deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 38%, #c8102e 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 37%, white 37% 63%, transparent 63%),
    linear-gradient(0deg, transparent 29%, white 29% 71%, transparent 71%),
    linear-gradient(35deg, transparent 43%, white 43% 49%, #c8102e 49% 52%, white 52% 57%, transparent 57%),
    linear-gradient(-35deg, transparent 43%, white 43% 49%, #c8102e 49% 52%, white 52% 57%, transparent 57%),
    #012169;
}

.layout {
  display: grid;
  max-width: 70rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 1.4rem 1.4rem 1.4rem 0;
  background: #fff;
  box-shadow: 0 .85rem 2.6rem rgba(20, 16, 37, .07);
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: 1.25rem clamp(1.15rem, 5vw, 2.5rem);
  min-height: 7.1rem;
  border-radius: 1.4rem 1.4rem 0 0;
  background: var(--ink);
  color: #fff;
}

.network-name, h1, h2 {
  font-family: Comfortaa, "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.network-name { font-size: clamp(1.38rem, 5.7vw, 2.3rem); margin: 0; }
.location { margin: .35rem 0 0; color: #eee8f0; font-size: .87rem; }
.smile { width: clamp(3.2rem, 15vw, 5.2rem); height: auto; flex: none; }

.content-panel {
  min-width: 0;
  padding: 1.7rem clamp(1.15rem, 5vw, 2.5rem) 2rem;
}

.content-panel h1 { font-size: clamp(1.53rem, 6vw, 2.4rem); margin: 0 0 .7rem; }
.content-panel h2 { font-size: 1.15rem; margin: 1.45rem 0 .65rem; }
.intro { color: var(--slate); margin: 0 0 1.4rem; max-width: 31rem; }

form label { display: block; font-weight: 700; margin-bottom: .45rem; }
.contact-fields, .name-fields { display: grid; gap: .9rem; }
.contact-fields input { min-width: 0; }
@media (min-width: 24rem) {
  .name-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

input:not([type=hidden]):not([type=checkbox]), button[type=submit] {
  width: 100%;
  min-height: 3.15rem;
  border-radius: .8rem .8rem .8rem .15rem;
  padding: .75rem .95rem;
  font: inherit;
}

input:not([type=hidden]):not([type=checkbox]) {
  background: #fff;
  border: 1px solid #918c9a;
  color: var(--ink);
}

input::placeholder { color: #625e6a; }
button[type=submit] {
  margin-top: 1.1rem;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}
button[type=submit]:hover { background: var(--ink); color: #fff; }

a { color: var(--ink); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.notice {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-inline-start: .2rem solid var(--orange);
  background: #fff2e6;
}

details { color: var(--slate); font-size: .9rem; border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: .7rem; }
summary { color: var(--ink); font-weight: 650; cursor: pointer; padding: .61rem 0; }
details p { margin: .35rem 0 .8rem; }
.policy p { color: var(--slate); margin: .55rem 0 .85rem; }
.version { color: var(--slate); font-size: .82rem; }
form > .acceptance {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: .95rem 0 0;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.acceptance input { flex: none; width: 1.18rem; height: 1.18rem; margin: .11rem 0 0; accent-color: var(--ink); }

@media (min-width: 42rem) {
  .wordmark { width: 15.4375rem; }
  .site-header { min-height: 6rem; }
}

@media (max-width: 41.99rem) {
  .site-header { min-height: 5.1rem; }
  .brand-panel { min-height: 6.6rem; }
  .content-panel { padding-top: 1.5rem; }
  .intro { margin-bottom: 1.15rem; }
  .contact-fields, .name-fields { gap: .7rem; }
}

@media (min-width: 52rem) {
  body { padding-bottom: 4rem; }
  .site-header { min-height: 7rem; }
  .layout { grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); min-height: 34rem; }
  .brand-panel {
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 4.5vw, 3.8rem);
    border-radius: 1.4rem 0 0 0;
  }
  .network-name { font-size: clamp(2rem, 3.7vw, 3.3rem); }
  .location { margin-top: .7rem; font-size: 1rem; }
  .smile { width: clamp(8.5rem, 15vw, 13rem); }
  .content-panel {
    align-self: center;
    padding: clamp(2rem, 5vw, 4.15rem);
  }
  .content-panel form { max-width: 31rem; }
}

@media (max-width: 23rem) {
  .site-header { min-height: 4.6rem; }
  .wordmark { width: 6.6rem; }
}
