/* MY FLY AIRPORT — Composants */

/* ====== Boutons ====== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 52px;
  padding-inline: var(--space-xl);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
}
.btn-primary:hover {
  background: var(--button-primary-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--button-ghost-fg);
  border-color: var(--button-ghost-border);
}
.btn-ghost:hover {
  border-color: var(--color-text);
  background: var(--p-ink-05);
}

.btn-inverse {
  background: var(--color-text-inverse);
  color: var(--color-text);
}
.btn-inverse:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--color-accent);
  color: var(--p-white);
}
.btn-gold:hover {
  background: var(--color-accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--color-accent-strong);
  border-color: var(--color-accent-tint-strong);
}
.btn-ghost-gold:hover {
  border-color: var(--color-accent-strong);
  background: var(--color-accent-tint);
}

/* Contour clair, pour bouton secondaire sur fond sombre (marine) */
.btn-ghost-inverse {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-border-inverse);
}
.btn-ghost-inverse:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block { width: 100%; }
.btn-sm { height: 44px; padding-inline: var(--space-lg); font-size: 0.875rem; }

.btn-header-cta {
  height: 44px;
  padding-inline: var(--space-lg);
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-standard), gap var(--dur-fast) var(--ease-standard);
}
.link-arrow:hover { border-color: var(--color-accent-strong); gap: var(--space-sm); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-standard); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ====== Badges ====== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent-tint);
  color: var(--color-accent-strong);
  border: 1px solid var(--color-accent-tint-strong);
}

.badge-dark {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.16);
}

/* ====== Icônes systeme (trait fin uniforme, 1.5px) ====== */

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  background: var(--color-accent-tint);
  color: var(--color-accent-strong);
  flex-shrink: 0;
}
.icon-tile .icon { width: 22px; height: 22px; }

.icon-tile-dark {
  background: rgba(255,255,255,0.08);
  color: var(--color-text-inverse);
}

/* ====== Cards ====== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
}

.feature-card {
  padding: var(--space-xl);
}
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ====== Stat inline (bandeau confiance) ====== */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg) var(--space-xl);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
}
.stat .stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border-strong);
}

/* ====== Formulaire ====== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.field .optional-tag {
  font-weight: 400;
  color: var(--color-text-faint);
  text-transform: none;
  letter-spacing: 0;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select {
  width: 100%;
  height: 50px;
  padding: 0 var(--space-md);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap .icon + input,
.input-wrap .icon + select {
  padding-left: 42px;
}

.field input::placeholder { color: var(--color-text-faint); }

/* Widget d'autocomplétion Google Places (remplace le champ texte
   une fois l'API chargée avec une clé valide). Habillage approximatif
   via les parts exposées par l'élément — à ajuster après un premier
   test avec une vraie clé API. */
.gmp-address-input {
  width: 100%;
  --gmpx-color-surface: var(--field-bg);
  --gmpx-color-on-surface: var(--color-text);
  --gmpx-color-on-surface-variant: var(--color-text-faint);
  --gmpx-color-primary: var(--color-accent);
  --gmpx-font-family: var(--font-body);
  --gmpx-font-size-base: 0.9375rem;
}
.gmp-address-input::part(input) {
  height: 50px;
  padding-left: 42px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px var(--color-accent-tint-strong);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Stepper Passagers / Bagages */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 6px 0 var(--space-md);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
}
.stepper-value {
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}
.stepper-controls { display: flex; gap: 4px; }
.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-text);
  transition: background var(--dur-fast) var(--ease-standard);
}
.stepper-btn:hover { background: var(--color-accent-tint); }

/* Segmented control (Retour Oui/Non) */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.segmented input:checked + label {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-text-inverse);
}
.segmented input:focus-visible + label { box-shadow: var(--color-focus-ring); }

/* Sélecteur véhicule (cartes radio) */
.vehicle-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vehicle-select input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle-select label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.vehicle-select label .v-thumb {
  width: 100%;
  height: 44px;
  object-fit: cover;
  border-radius: calc(var(--field-radius) - 4px);
  margin-bottom: 2px;
}
.vehicle-select label .v-name { font-size: 0.875rem; font-weight: 600; }
.vehicle-select label .v-meta { font-size: 0.75rem; color: var(--color-text-muted); }
.vehicle-select input:checked + label {
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
}
.vehicle-select input:focus-visible + label { box-shadow: var(--color-focus-ring); }
.vehicle-select label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vehicle-note {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-accent-strong);
}
.vehicle-note[hidden] { display: none; }

/* ====== Panneau de tarif estimé ====== */
.price-panel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-accent-tint);
  border: 1px solid var(--color-accent-tint-strong);
  border-radius: var(--radius-field);
}
.price-panel[hidden] { display: none; }
.price-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-heading);
}
.price-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.price-badge-fixed {
  background: var(--color-accent);
  color: var(--p-white);
}
.price-badge-estimate {
  background: var(--p-white);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
}

.form-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}
.form-reassurance .icon { width: 14px; height: 14px; }

/* ====== Accordéon FAQ ====== */

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-text);
}
.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-text);
  top: 50%; left: 50%;
  transition: transform var(--dur-base) var(--ease-standard);
}
.accordion-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion-icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.accordion-item[data-open="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion-item[data-open="true"] .accordion-icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-base) var(--ease-standard);
}
.accordion-panel p {
  padding-bottom: var(--space-lg);
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ====== Timeline "trajectoire de vol" (processus de réservation) ====== */

.flight-path {
  position: relative;
}
.flight-path svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.flight-path .path-line {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}
.flight-path .path-progress {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.4s var(--ease-entrance);
}
.flight-path.is-visible .path-progress { stroke-dashoffset: 0; }

.flight-path .path-marker {
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.flight-path.is-visible .path-marker { opacity: 1; transition-delay: 1.2s; }

/* ====== Carte photo (destinations / excursions) ======
   Le visuel complet (icône, texte, bouton) est incrusté dans la photo
   elle-même ; le lien fournit le comportement et l'accessibilité. */

.photo-card {
  display: block;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  transition: box-shadow var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.photo-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ====== Carte "Pourquoi nous choisir" (photo + contenu) ====== */

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-card-photo {
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
.why-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-card .icon-tile {
  margin-bottom: var(--space-md);
}
.why-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.why-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ====== Marker point sur carte destination ====== */

.tag-pill {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  color: var(--color-text);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
