/* Taxi Peyre — styles communs de la page d'accueil (toutes langues). */
:root {
  --font-display: 'Oswald', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  --font-body: 'Oswald', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  --bg: #070a16; --bg-deep: #04060e; --surface: #0c1330; --surface-2: #111a3c; --surface-3: #162048; --hairline: #2a3566;
  --text: #faf8f3; --text-2: #f0eff5; --text-3: #dde0ec; --text-4: #c6cbdb; --muted: #adb4c9; --muted-2: #9aa2b9; --faint: #80889f; --faintest: #5a6280;
  --accent: #ffc94f; --accent-hi: #ffe39a; --on-accent: #070a16;
  --eco: #34e3a5; --eco-hi: #93f3cf; --rose: #ff8fae; --rose-hi: #ffc3d2; --sapphire: #7c9dff; --sapphire-hi: #b7c8ff;
  --light-bg: #f8f5ef; --light-ink: #0a0f24; --light-accent: #a1173c;
  --hero-glow: #22307e; --signal: #ff3b2a; --error: #ff9f86;
  --glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent-hi) 55%, transparent), 0 10px 36px color-mix(in srgb, var(--accent) 56%, transparent);
  --3d-clear: #04060f; --3d-fog: #0b1126; --3d-sky-0: #010209; --3d-sky-1: #050919; --3d-sky-2: #2a2160; --3d-sky-3: #0b1126; --3d-hills: #04060f;
}
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; font-synthesis: weight; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
::selection { background: var(--accent); color: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--faint); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Affichage selon la taille d'écran (remplace isDesktop / isMobile). */
@media (max-width: 900px) { .only-desktop { display: none !important; } }
@media (min-width: 901px) { .only-mobile { display: none !important; } }

@keyframes tp-eco-spin { to { transform: rotate(360deg); } }
[data-eco-ring] { animation: tp-eco-spin 28s linear infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { [data-eco-ring] { animation: none; } }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px clamp(20px,5vw,64px); border-bottom: 1px solid transparent; transition: background .5s, padding .5s, border-color .5s; }
.nav-link { color: var(--text-3); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: color .3s; }
.nav-link:hover { color: var(--accent); }
.btn-outline { padding: 12px 22px; border: 1px solid var(--accent); color: var(--text); background: transparent; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; transition: background .4s, color .4s; }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }

.lang-picker { position: relative; }
.lang-picker > summary { list-style: none; display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; padding: 8px 4px; cursor: pointer; }
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 12px; min-width: 190px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 20px 40px rgba(0,0,0,0.5); padding: 6px 0; z-index: 70; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 16px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: color-mix(in srgb, var(--accent) 17%, transparent); color: var(--text-2); }
.lang-menu a span { color: var(--accent); font-size: 11px; letter-spacing: 0.12em; font-weight: 700; }

.burger { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .4s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 58; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: space-between; padding: 110px 24px 36px; overflow-y: auto; }
.mobile-menu .m-link { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); text-decoration: none; color: var(--text); font-family: var(--font-display); font-size: 38px; line-height: 1.1; }
.mobile-menu .m-link span { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.m-lang { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--accent) 56%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.m-lang[aria-current] { background: var(--accent); color: var(--on-accent); }

/* Boutons */
.btn-primary { display: flex; align-items: center; gap: 14px; padding: 19px 32px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; transition: background .4s; box-shadow: var(--glow-accent); border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { padding: 19px 32px; border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; transition: border-color .4s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 63%, transparent); color: var(--accent); font-size: 18px; cursor: pointer; transition: background .3s, color .3s; }
.btn-icon:hover { background: var(--accent); color: var(--on-accent); }

/* Images avec crédit photo */
.ph { position: relative; overflow: hidden; background: var(--surface-2); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph .credit { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; font-size: 10px; line-height: 1.3; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.45); text-decoration: none; letter-spacing: 0.02em; z-index: 2; }
.ph .credit:hover { color: #fff; }

/* Carrousel des services */
.svc-track { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 30px; margin: 0 -4px; outline: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-card { flex: 1 1 0px; min-width: 210px; scroll-snap-align: start; cursor: pointer; transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), min-width .6s cubic-bezier(.2,.8,.2,1); }
.svc-card.is-active { flex: 2.3 1 0px; min-width: 380px; }
.svc-media { position: relative; height: 380px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); transition: border-color .4s, box-shadow .4s; }
.svc-card.is-active .svc-media { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px rgba(0,0,0,0.55); }
.svc-media .ph { position: absolute; inset: 0; }
.svc-dim { position: absolute; inset: 0; background: var(--bg); opacity: .45; transition: opacity .5s; pointer-events: none; z-index: 1; }
.svc-card.is-active .svc-dim { opacity: 0; }
.svc-num { position: absolute; top: 14px; left: 14px; padding: 6px 10px; background: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; pointer-events: none; z-index: 2; }
.svc-title { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(26px,2.4vw,32px); font-weight: 400; line-height: 1.1; color: var(--muted); transition: color .4s; }
.svc-card.is-active .svc-title { color: var(--text); }
.svc-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); font-weight: 300; text-wrap: pretty; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .5s, max-height .6s; }
.svc-card.is-active .svc-desc { opacity: 1; max-height: 220px; }
@media (max-width: 900px) {
  .svc-card, .svc-card.is-active { flex: 0 0 78vw; min-width: 0; }
  .svc-media { height: 300px; }
  .svc-dim { opacity: 0; }
  .svc-title { color: var(--text); }
  .svc-desc { opacity: 1; max-height: 220px; }
}

/* Avis */
.quote { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; visibility: hidden; }
.quote.is-active { opacity: 1; transform: none; visibility: visible; }
.quote-dot { display: flex; align-items: center; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer; }
.quote-dot span { display: block; width: 14px; height: 3px; background: color-mix(in srgb, var(--accent) 49%, transparent); transition: width .5s, background-color .5s; }
.quote-dot[aria-current="true"] span { width: 40px; background: var(--accent); }

/* FAQ */
.faq-item { border-top: 1px solid color-mix(in srgb, var(--sapphire) 28%, transparent); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-display); font-size: clamp(21px,2vw,26px); color: var(--text); font-weight: 400; margin: 0; }
.faq-ind { flex: none; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--sapphire) 63%, transparent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sapphire); font-size: 18px; }
.faq-ind::before { content: '+'; }
.faq-item[open] .faq-ind::before { content: '−'; }
.faq-a { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 0 0 30px; max-width: 560px; font-weight: 300; text-wrap: pretty; }

/* Formulaire */
.f-label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.f-input { width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 49%, transparent); border-radius: 0; color: var(--text); padding: 12px 0; font-size: 17px; font-family: var(--font-body); outline: none; letter-spacing: 0; text-transform: none; transition: border-color .3s; color-scheme: dark; }
.f-input:focus { border-bottom-color: var(--accent); }
select.f-input { background: var(--surface); cursor: pointer; }
textarea.f-input { resize: vertical; min-height: 52px; }
.sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface-3); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.sug div { padding: 13px 16px; font-size: 14px; line-height: 1.4; color: var(--text-2); cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.sug div:hover { background: color-mix(in srgb, var(--accent) 17%, transparent); }
.trip-opt { flex: 1; min-height: 46px; padding: 0 14px; border: none; background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: background-color .3s, color .3s; }
.trip-opt[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.btn-submit { justify-content: space-between; gap: 16px; padding: 22px 30px; letter-spacing: 0.1em; }
.btn-submit[disabled] { opacity: .7; cursor: wait; }
