/* baguettetrip : la boulangerie du coin, pas la carte postale.
   Bleu de travail dominant, doré « croûte » en accent, étiquettes beurre.
   Bagel Fat One = logo uniquement. Baloo 2 = titres, villes, prix. Figtree = texte. */
:root {
  --bleu: #1E3FAE;
  --bleu-clair: #3456C4;
  --nuit: #0F1A4A;
  --croute: #F2A93B;
  --croute-vive: #F7BB5C;
  --croute-fonce: #A85F12;
  --beurre: #FFF1C2;
  --papier: #FFFFFF;
  --cerise: #E23B4E;
  --gris: #4F5878;
  --rassis: #F1EEE6;
  --trait: #DCE2F5;
  --gonfle: "Bagel Fat One", "Arial Rounded MT Bold", sans-serif;
  --titre: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --texte: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--nuit); font: 400 1.0625rem/1.6 var(--texte); }
a { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--croute); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* -- logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.32em; font: 400 1.6rem/1 var(--gonfle); color: inherit; text-decoration: none; }
.logo svg { height: 0.85em; width: auto; fill: var(--croute); }

/* -- haut de page --------------------------------------------------------- */
.hero { background: var(--bleu); color: var(--papier); padding-bottom: 24px; overflow: hidden; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; }
.top-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; background: rgba(255,255,255,.14); padding: 8px 16px 8px 12px; border-radius: 999px; }
.top-note svg { width: 16px; height: 21px; fill: var(--croute); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; padding-top: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 14ch; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; margin: 20px 0 28px; opacity: .93; }
/* La baguette vole : décollage au chargement, puis tangage, traînée qui défile, nuages qui passent.
   L'étiquette accrochée dessous fait défiler les vrais vols du moment. */
.baguette { position: relative; }
.stage { position: relative; z-index: 1; animation: tangage 5.5s ease-in-out 1.3s infinite; }
.pain { width: 100%; height: auto; display: block; transform-origin: 40% 60%; animation: decolle 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
.trail { animation: trainee .9s linear infinite; }
@keyframes decolle { from { transform: rotate(8deg) translate(-14px, 18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tangage { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(6px, -16px) rotate(-1.5deg); } 65% { transform: translate(-4px, -6px) rotate(1deg); } }
@keyframes trainee { to { stroke-dashoffset: 40; } }

.nuage { position: absolute; left: 0; fill: var(--papier); animation: passe linear infinite; }
.n1 { top: 8%; width: 84px; opacity: .9; z-index: 2; animation-duration: 16s; animation-delay: -4s; }
.n2 { top: 76%; width: 60px; opacity: .5; animation-duration: 24s; animation-delay: -15s; }
.n3 { top: 40%; width: 42px; opacity: .35; animation-duration: 32s; animation-delay: -9s; }
@keyframes passe { from { left: 105%; } to { left: -25%; } }

.ticket { position: absolute; left: calc(60% - 105px); top: 66%; width: 210px; min-height: 132px; background: var(--beurre); color: var(--nuit); border-radius: 16px; padding: 26px 18px 14px; transform-origin: 50% -100px; animation: balance 3s ease-in-out infinite; box-shadow: 6px 6px 0 var(--nuit); }
.ticket::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 100px; margin-left: -1px; background: rgba(255,255,255,.7); }
.ticket::after { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bleu); }
@keyframes balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ticket-item { display: none; }
.ticket-item.on { display: block; animation: sort-du-four .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes sort-du-four { from { transform: scale(.8) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-from { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--bleu); }
.ticket-from svg { width: 11px; height: 15px; fill: var(--croute); }
.ticket-city { display: block; font: 800 1.7rem/1.05 var(--titre); margin-top: 4px; }
.ticket-price { display: flex; align-items: center; gap: 8px; font: 800 1.9rem/1 var(--titre); margin-top: 6px; }
.ticket-price i { font: normal 700 .85rem/1 var(--texte); background: var(--cerise); color: var(--papier); border-radius: 999px; padding: 5px 9px; }
.ticket-oven { display: block; font-size: .78rem; font-weight: 700; color: var(--croute-fonce); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .pain, .stage, .trail, .nuage, .ticket, .ticket-item.on { animation: none; }
  .nuage { display: none; }
}

/* -- formulaire ------------------------------------------------------------ */
.signup { max-width: 560px; }
.signup-line { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 230px; min-width: 0; font: 400 1.0625rem var(--texte); padding: 15px 20px; border-radius: 999px; border: 2px solid var(--trait); background: var(--papier); color: var(--nuit); }
.hero .signup input[type=email] { border-color: transparent; }
.button { display: inline-block; font: 700 1.0625rem/1 var(--texte); padding: 17px 24px; border-radius: 999px; border: 0; background: var(--croute); color: var(--nuit); cursor: pointer; text-decoration: none; }
.button:hover { background: var(--croute-vive); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; line-height: 1.45; margin-top: 14px; max-width: 52ch; }
.hero .consent { opacity: .85; }
.consent input { margin-top: 3px; accent-color: var(--croute); width: 16px; height: 16px; flex: none; }
.form-error { background: var(--cerise); color: var(--papier); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -- sections ------------------------------------------------------------- */
main section { padding-top: 80px; }

/* La fournée prolonge le bleu du haut de page : les étiquettes débordent sur le blanc. */
.batch { --coupe: 300px; background: linear-gradient(var(--bleu) var(--coupe), var(--papier) var(--coupe)); padding-top: 56px; }
.batch h2 { color: var(--papier); font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.batch .section-lede { color: rgba(255,255,255,.85); }
main h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-lede { color: var(--gris); max-width: 60ch; margin: 10px 0 30px; }

/* -- étiquettes de vol -------------------------------------------------- */
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; align-items: start; }
.label { position: relative; display: flex; flex-direction: column; background: var(--beurre); border-radius: 18px; padding: 34px 24px 24px; color: var(--nuit); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 8px 8px 0 var(--nuit); }
.label::before { content: ""; position: absolute; top: 13px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--papier); box-shadow: inset 0 2px 0 rgba(15,26,74,.15); }
a.label:hover { transform: rotate(-1deg) translate(-2px, -3px); box-shadow: 11px 11px 0 var(--nuit); }
.label-from { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: var(--bleu); color: var(--papier); font-weight: 700; font-size: 0.875rem; line-height: 1; padding: 6px 14px 6px 10px; border-radius: 999px; }
.label-from svg { width: 15px; height: 20px; fill: var(--croute); flex: none; }
.label-city { font: 800 2.3rem/1.05 var(--titre); letter-spacing: -0.015em; margin-top: 14px; }
.label-country { font-size: 0.95rem; font-weight: 600; color: var(--gris); margin-top: 2px; }
.label-price { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.label-price b { font: 800 3.6rem/.95 var(--titre); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.label-off { background: var(--cerise); color: var(--papier); font: 800 1.2rem/1 var(--titre); border-radius: 999px; padding: 8px 13px 6px; border: 3px solid var(--papier); transform: rotate(-7deg); box-shadow: 0 2px 0 rgba(15,26,74,.25); }
.label-cta { align-self: flex-start; margin-top: 18px; background: var(--bleu); color: var(--papier); font-weight: 700; border-radius: 999px; padding: 12px 20px; }
a.label:hover .label-cta { background: var(--nuit); }
.label-usual { font-size: 0.95rem; margin-top: 8px; }
.label-trip { font-size: 0.95rem; margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgba(15,26,74,.18); }
.label-oven { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 0.875rem; color: var(--croute-fonce); }
.label-oven::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--croute); box-shadow: 0 0 0 4px rgba(242,169,59,.28); flex: none; }
.label.stale { background: var(--rassis); box-shadow: none; }
.label.stale .label-price b { font-size: 2.6rem; }
.label.stale .label-off { transform: none; border-color: transparent; font-size: 1rem; box-shadow: none; }
.label.stale .label-from { background: var(--gris); }
.label.stale .label-from svg { fill: var(--papier); }
.label.stale .label-off { background: var(--gris); }
.label.stale .label-oven { color: var(--gris); font-weight: 600; }
.label.stale .label-oven::before { background: #B9B3A5; box-shadow: none; }

/* -- comment ça marche ------------------------------------------------------ */
.steps { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.steps li { counter-increment: etape; }
.steps li::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bleu); color: var(--papier); font: 800 1.35rem/1 var(--titre); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--gris); margin: 8px 0 0; }

/* -- FAQ ------------------------------------------------------------------- */
.faq details { border-top: 2px solid var(--trait); padding: 4px 0; max-width: 760px; }
.faq details:last-of-type { border-bottom: 2px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 800 1.2rem/1.3 var(--titre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.7rem/1 var(--titre); color: var(--bleu); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--gris); max-width: 64ch; }

/* -- bas de page --------------------------------------------------------- */
.again { padding-bottom: 96px; }
.footer { background: var(--nuit); color: var(--papier); padding: 44px 0 56px; }
.footer p { max-width: 64ch; opacity: .75; font-size: 0.9rem; margin: 16px 0 0; }

/* -- merci --------------------------------------------------------------- */
.hero-short { min-height: 100vh; }
.thanks { padding: 12vh 0 0; }
.thanks h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* -- téléphone ------------------------------------------------------------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 4px; }
  .baguette { max-width: 360px; margin: 8px auto 0; padding-bottom: 48px; }
  .top-note { font-size: 0.85rem; padding: 6px 12px 6px 10px; }
  .ticket { width: 180px; left: calc(60% - 90px); }
  .batch { --coupe: 330px; padding-top: 40px; }
  .label { box-shadow: 6px 6px 0 var(--nuit); }
  .signup-line .button { width: 100%; }
  main section { padding-top: 60px; }
}
