/* Parcours « Créer mon kit » : c'est ProPilot qui parle à l'agent → charte claire du back-office
   (src/app/globals.css). L'écran d'attente reprend les « rappels plein écran » marine du film ProPilot. */
.page-creer { min-height: 100svh; background: var(--pp-bg); color: var(--pp-text); font-size: 15px; }
.creer { min-height: 100svh; }
.page-creer :focus-visible { outline: 2px solid var(--pp-cyan); outline-offset: 3px; }

/* Le petit carré cyan, unique motif de la marque, en point final des titres. */
.accueil h1::after, .echec h1::after { content: ''; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.12em; background: var(--pp-cyan); }

/* ── Accueil ──────────────────────────────────────────────────────── */
.accueil {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(40px, 6vw, 110px); align-items: center;
  padding: clamp(40px, 6vw, 80px) var(--marge);
}
.accueil__texte { max-width: 580px; }
.accueil__logo { width: 180px; height: auto; margin-bottom: clamp(36px, 6vw, 64px); }
.accueil h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.1; color: var(--pp-navy); }
.accueil__chapeau { margin-top: 22px; font-size: 16px; line-height: 1.6; color: var(--pp-text2); max-width: 46ch; }
.accueil__exemple { display: inline-block; margin-top: 24px; color: var(--pp-cyan-link); font-size: 13px; font-weight: 600; text-decoration: none; }
.accueil__exemple:hover { text-decoration: underline; }
/* Lien de kit (?k=) invalide ou introuvable : le formulaire reprend la main. */
.accueil__avis { margin-top: 22px; padding: 10px 14px; border-radius: 2px; background: var(--pp-orange); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; max-width: 54ch; }

/* Un film d'exemple tourne en boucle dans un téléphone (format 9:16 du film : rien n'est recadré). */
.accueil__apercu { display: grid; justify-items: center; align-self: start; position: sticky; top: 40px; }
.telephone { position: relative; width: 300px; height: calc(280px * 16 / 9 + 20px); border-radius: 36px; border: 10px solid var(--pp-navy); overflow: hidden; background: #000; }
.telephone__film { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ── Formulaire (champs et boutons du back-office) ────────────────── */
.formulaire { display: grid; gap: 18px; margin-top: 34px; padding: 22px; background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: 4px; }
.formulaire__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pp-text2); }
.champ input {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--pp-line); border-radius: 4px;
  background: var(--pp-surface); color: var(--pp-text); font: 400 16px/1.4 var(--sans); outline: none; transition: border-color 0.2s;
}
.champ input:focus { border-color: var(--pp-cyan); }
.champ input::placeholder { color: #9AA3AB; }
.champ__aide { font-size: 12px; color: var(--pp-text2); }
.champ--piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.case { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pp-cyan); flex-shrink: 0; }
.formulaire__erreur { padding: 8px 12px; border-radius: 2px; background: var(--pp-orange); color: #fff; font-size: 13px; font-weight: 600; }
.formulaire__envoyer {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border: 0; border-radius: 4px; background: var(--pp-navy); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer;
}
.formulaire__envoyer:active { transform: scale(0.97); background: var(--pp-cyan-link); }
.formulaire__envoyer:disabled { opacity: 0.6; cursor: progress; }
.formulaire__note { font-size: 12px; line-height: 1.5; color: var(--pp-text2); max-width: 56ch; }

/* ── Écran d'attente : plein écran marine ─────────────────────────── */
.attente { position: relative; min-height: 100svh; display: grid; align-items: center; padding: var(--marge); overflow: hidden; background: var(--pp-navy); color: #E6EDF3; }
.attente__fond {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(26px) saturate(0.9); transform: scale(1.1); opacity: 0; transition: opacity 1.6s ease;
}
.attente__fond.visible { opacity: 0.16; }
.attente__contenu { position: relative; max-width: 760px; }
.attente__lieu { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9AA8B8; min-height: 1.6em; }
.attente__titre { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.08; color: #fff; }
.attente__titre.entre { animation: titre-entre 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes titre-entre { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Filet cyan sous le titre, comme les rappels du film ProPilot. */
.attente__etapes { display: grid; gap: 14px; margin-top: 30px; padding-top: 30px; border-top: 5px solid var(--pp-cyan); width: min(100%, 420px); }
.attente__etapes li { position: relative; padding-left: 24px; color: rgb(230 237 243 / 0.45); font-size: 15px; font-weight: 500; transition: color 0.4s; }
.attente__etapes li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border: 1px solid currentColor; }
.attente__etapes li.fait { color: #E6EDF3; }
.attente__etapes li.fait::before { background: var(--pp-cyan); border-color: var(--pp-cyan); }
.attente__etapes li.en-cours { color: #fff; font-weight: 600; }
.attente__etapes li.en-cours::before { border-color: var(--pp-cyan); animation: clignote 1.1s ease-in-out infinite; }
@keyframes clignote { 50% { background: var(--pp-cyan); } }
.attente__note { margin-top: 36px; color: #9AA8B8; font-size: 13px; }

/* ── Échec ────────────────────────────────────────────────────────── */
.echec { min-height: 100svh; display: grid; align-content: center; padding: var(--marge); max-width: 760px; }
.echec h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; color: var(--pp-navy); }
.echec__message { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--pp-text2); max-width: 54ch; }
.echec__site { justify-self: start; margin-top: 34px; border-color: var(--pp-navy); background: var(--pp-navy); color: #fff; border-radius: 4px; }
.echec__site:hover { background: var(--pp-cyan-link); border-color: var(--pp-cyan-link); }

/* ── Exemples de kits (/exemples) ─────────────────────────────────── */
.exemples { max-width: 760px; padding: clamp(40px, 6vw, 80px) var(--marge); }
.exemples h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; color: var(--pp-navy); }
.exemples ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.exemples a { color: var(--pp-cyan-link); font-weight: 600; text-decoration: none; }
.exemples a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .accueil { grid-template-columns: 1fr; }
  .accueil__apercu { display: none; }
}
@media (max-width: 560px) {
  .formulaire { padding: 16px; }
  .formulaire__ligne { grid-template-columns: 1fr; }
  .formulaire__envoyer { justify-self: stretch; height: 48px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .attente__titre.entre, .attente__etapes li.en-cours::before { animation: none; }
  .attente__fond { transition: none; }
}
