/* GGTeacher — page temporaire « en construction » */

:root {
  --turquoise: #0E948F;
  --turquoise-fonce: #0B6F6B;
  --turquoise-clair: #5CCBC4;
  --soleil: #FFC233;
  --bleu-nuit: #1D2F6F;
  --corail: #FF6B57;
  --lavande: #8E7CF0;
  --tilleul: #6DB33F;
  --creme: #FFF7EC;
  --sable: #F2E4CC;
  --ardoise: #4A5578;
  --blanc: #FFFFFF;
  --turquoise-teinte: #D5EFED;
  --soleil-teinte: #FFF0C4;
  --bleu-teinte: #DDE3F3;
  --corail-teinte: #FFE1DB;
  --rouge-req: #E0432F;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-sans: "Nunito", system-ui, sans-serif;
  --font-hand: "Playpen Sans", "Nunito", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--bleu-nuit);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
  overflow-x: hidden;
}

a { color: var(--turquoise-fonce); }
a:hover { color: var(--bleu-nuit); }

button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bleu-nuit);
  outline-offset: 3px;
}

input::placeholder, textarea::placeholder { color: var(--ardoise); opacity: 0.75; }

h1, h2, p { margin: 0; }

[hidden] { display: none !important; }

/* ---------- Page ---------- */

.page {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

main { display: contents; }

.deco { position: absolute; inset: 0; pointer-events: none; }
.page > .deco { z-index: 0; }
.page > :not(.deco, main), main > * { position: relative; z-index: 1; }

.blob, .dot, .m-blob, .m-dot { position: absolute; border-radius: 50%; }
.blob-soleil { right: -150px; top: -170px; width: 460px; height: 460px; background: var(--soleil-teinte); }
.blob-corail { left: -200px; top: 470px; width: 380px; height: 380px; background: var(--corail-teinte); }
.blob-turquoise { right: -140px; top: 880px; width: 300px; height: 300px; background: var(--turquoise-teinte); }
.dot-1 { left: 36px; top: 250px; width: 18px; height: 18px; background: var(--lavande); }
.dot-2 { left: 118px; top: 330px; width: 12px; height: 12px; background: var(--corail); }
.dot-3 { right: 44px; top: 470px; width: 16px; height: 16px; background: var(--tilleul); }
.dot-4 { right: 30px; top: 1180px; width: 20px; height: 20px; background: var(--lavande); }
.dot-5 { left: 30px; top: 1470px; width: 14px; height: 14px; background: var(--soleil); }
.wave { position: absolute; left: 60px; top: 170px; }
.spark { position: absolute; }
.spark-1 { left: 170px; top: 230px; width: 44px; height: 44px; }
.spark-2 { left: 232px; top: 292px; width: 26px; height: 26px; }
.spark-3 { right: 70px; top: 400px; width: 36px; height: 36px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { width: 240px; height: auto; display: block; }

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--blanc);
  border: 2px solid var(--bleu-nuit);
  border-radius: 999px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu-nuit);
}
.pill svg { flex-shrink: 0; }
.pill-mobile { display: none; }

.caption {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ardoise);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.bubble { position: relative; padding-bottom: 22px; }
.bubble h1 {
  padding: 28px 44px;
  background: var(--turquoise);
  color: var(--blanc);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 54px;
  text-align: center;
}
.bubble-tail {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 40px;
  height: 30px;
  background: var(--turquoise);
  clip-path: polygon(0 0, 100% 0, 6% 100%);
}
.br-mobile { display: none; }

.sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: 50%;
  background: var(--soleil);
  color: var(--bleu-nuit);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-8deg);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}
.sep { width: 12px; height: 12px; border-radius: 50%; }
.sep-turquoise { background: var(--turquoise); }
.sep-soleil { background: var(--soleil); }
.sep-corail { background: var(--corail); }

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--turquoise-fonce);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.btn-primary { background: var(--turquoise-fonce); color: var(--blanc); }
.btn-primary:hover { background: var(--bleu-nuit); border-color: var(--bleu-nuit); }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.btn-outline {
  min-height: 48px;
  border-color: var(--bleu-nuit);
  background: var(--blanc);
  color: var(--bleu-nuit);
  font-size: 17px;
}
.btn-outline:hover { background: var(--bleu-teinte); }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 24px;
}
.card-fr { background: var(--turquoise-teinte); }
.card-en { background: var(--soleil-teinte); }
.card-es { background: var(--corail-teinte); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}
.badge-fr { background: var(--turquoise); color: var(--blanc); }
.badge-en { background: var(--soleil); color: var(--bleu-nuit); }
.badge-es { background: var(--corail); color: var(--bleu-nuit); }

.card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 42px;
}

.strong { font-weight: 700; }
.signoff { margin-top: auto; color: var(--turquoise-fonce); }
.signoff-es { color: var(--bleu-nuit); }

/* ---------- Coming soon ---------- */

.soon {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 48px;
  background: var(--bleu-nuit);
  border-radius: 24px;
  color: var(--blanc);
}
.soon-spark-1 { right: 48px; top: 36px; width: 34px; height: 34px; }
.soon-spark-2 { right: 96px; top: 70px; width: 20px; height: 20px; }

.soon-head { display: flex; align-items: center; gap: 28px; }

.tiles { display: flex; align-items: center; gap: 8px; }
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
}
.tile-a { background: var(--turquoise); color: var(--blanc); transform: rotate(-8deg); }
.tile-b { background: var(--soleil); color: var(--bleu-nuit); transform: rotate(6deg); }
.tile-c { background: var(--corail); color: var(--bleu-nuit); transform: rotate(-4deg); }

.soon-title { display: flex; flex-direction: column; gap: 4px; }
.soon-title h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 42px;
}
.soon-title p { color: var(--bleu-teinte); }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.features li { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
}
.fi-turquoise { background: var(--turquoise-clair); }
.fi-soleil { background: var(--soleil); }
.fi-corail { background: var(--corail); }
.feature-fr { font-weight: 700; }
.feature-alt { font-size: 15px; line-height: 22px; color: var(--bleu-teinte); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ardoise);
}

/* ---------- Contact modal ---------- */

.modal {
  width: 680px;
  max-width: calc(100% - 64px);
  max-height: calc(100% - 64px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--creme);
  color: var(--bleu-nuit);
  overflow: auto;
}
.modal::backdrop { background: rgba(29, 47, 111, 0.62); }
body.modal-open { overflow: hidden; }

.modal-card {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
}
.modal-card > :not(.deco) { position: relative; }

.m-blob-1 { right: -90px; top: -90px; width: 220px; height: 220px; background: var(--turquoise-teinte); }
.m-blob-2 { left: -60px; bottom: -70px; width: 160px; height: 160px; background: var(--soleil-teinte); }
.m-dot-1 { right: 90px; top: 30px; width: 12px; height: 12px; background: var(--lavande); }
.m-dot-2 { right: 70px; top: 96px; width: 10px; height: 10px; background: var(--tilleul); }
.m-spark { right: 120px; top: 60px; width: 26px; height: 26px; }

.modal-card > .close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--bleu-nuit);
  border-radius: 50%;
  background: var(--blanc);
  color: var(--bleu-nuit);
  cursor: pointer;
}

.form { display: flex; flex-direction: column; gap: 20px; }

.form-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 56px;
}
.bubble-soleil { padding-bottom: 18px; }
.bubble-soleil h2 {
  padding: 16px 28px;
  background: var(--soleil);
  color: var(--bleu-nuit);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
}
.bubble-soleil .bubble-tail { left: 30px; width: 30px; height: 22px; background: var(--soleil); }
.form-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  color: var(--ardoise);
}

.fields-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field[role="group"] { gap: 10px; }

.field label, .group-label { display: flex; flex-direction: column; gap: 2px; }
.label { font-size: 16px; line-height: 22px; font-weight: 700; }
.label-alt {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.req { color: var(--rouge-req); font-weight: 800; }

.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--sable);
  border-radius: 16px;
  background: var(--blanc);
  color: var(--bleu-nuit);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 24px;
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--rouge-req); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  --on-bg: var(--bleu-nuit);
  --on-fg: var(--blanc);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--sable);
  background: var(--blanc);
  color: var(--bleu-nuit);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.chip-fr { --on-bg: var(--turquoise-fonce); --on-fg: var(--blanc); }
.chip-en { --on-bg: var(--soleil); --on-fg: var(--bleu-nuit); }
.chip-es { --on-bg: var(--corail); --on-fg: var(--bleu-nuit); }
.chip[aria-pressed="true"] {
  background: var(--on-bg);
  border-color: var(--on-bg);
  color: var(--on-fg);
}
.chip[aria-pressed="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.alert {
  padding: 12px 16px;
  background: var(--corail-teinte);
  border-radius: 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.note { font-size: 13px; line-height: 18px; color: var(--ardoise); }
.btn-send { font-size: 18px; }

.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 8px;
  text-align: center;
}
.sent-spark-1 { left: 20%; top: 10px; width: 34px; height: 34px; }
.sent-spark-2 { right: 22%; top: 40px; width: 22px; height: 22px; }
.sticker-merci { font-size: 26px; line-height: 1.05; }
.sent h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  outline: none;
}
.sent p { max-width: 560px; text-wrap: balance; }
.sent .sent-alt { font-size: 15px; line-height: 22px; color: var(--ardoise); }
.sent .btn { margin-top: 8px; }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .page { padding: 40px 40px; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bubble h1 { font-size: 38px; line-height: 46px; }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  .page { padding: 28px 24px 32px; gap: 32px; }

  .blob-soleil { right: -130px; top: -120px; width: 300px; height: 300px; }
  .blob-corail { left: -150px; top: 640px; width: 260px; height: 260px; }
  .blob-turquoise { right: -150px; top: 1500px; width: 260px; height: 260px; }
  .dot-1 { left: 10px; top: 470px; width: 14px; height: 14px; }
  .dot-2, .dot-5, .wave, .spark-3 { display: none; }
  .dot-3 { right: 8px; top: 1180px; width: 12px; height: 12px; }
  .dot-4 { left: 8px; right: auto; top: 2150px; width: 14px; height: 14px; background: var(--corail); }
  .spark-1 { left: auto; right: 36px; top: 34px; width: 30px; height: 30px; }
  .spark-2 { left: auto; right: 80px; top: 64px; width: 20px; height: 20px; }

  .logo { width: 190px; }
  .pill-desktop { display: none; }
  .pill-mobile { display: flex; padding: 8px 14px; font-size: 12px; line-height: 16px; gap: 8px; }

  .hero { align-items: flex-start; gap: 20px; }
  .hero-title { position: relative; width: 100%; justify-content: flex-start; }
  .bubble { padding-bottom: 20px; }
  .bubble h1 { padding: 24px 32px; font-size: 32px; line-height: 40px; text-align: left; }
  .bubble .bubble-tail { left: 36px; width: 34px; height: 26px; }
  .br-mobile { display: inline; }
  .hero-title .sticker {
    position: absolute;
    right: 0;
    top: 70px;
    width: 112px;
    height: 112px;
    padding: 10px;
    font-size: 19px;
  }
  .langs { justify-content: flex-start; gap: 8px 12px; font-size: 22px; line-height: 28px; }
  .sep { width: 10px; height: 10px; }
  .langs-age { display: none; }
  .cta-wrap { align-self: stretch; align-items: stretch; }
  .cta-wrap .caption { text-align: center; }

  .cards { gap: 24px; }
  .card { padding: 24px; }
  .badge { width: 48px; height: 48px; font-size: 20px; }
  .card h2 { font-size: 30px; line-height: 36px; }

  .soon { gap: 24px; padding: 28px 24px; }
  .soon-spark-1 { right: 22px; top: 22px; width: 26px; height: 26px; }
  .soon-spark-2 { display: none; }
  .soon-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tile { width: 52px; height: 52px; font-size: 30px; }
  .soon-title h2 { font-size: 30px; line-height: 36px; }

  .modal { max-width: calc(100% - 32px); max-height: calc(100% - 32px); }
  .modal-card { padding: 24px; }
  .bubble-soleil h2 { font-size: 30px; }
  .fields-3 { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn-send { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .chip { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
