/* =========================================
   tourisme.tech — Stylesheet
   ========================================= */

/* --- Variables --- */
:root {
  --bg:           #0a0f1a;
  --brand:        #1D9E75;
  --brand-light:  #5DCAA5;
  --brand-dark:   #0F6E56;
  --brand-grid:   rgba(29, 158, 117, 0.06);
  --brand-glow:   rgba(29, 158, 117, 0.10);
  --text:         #ffffff;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  color-scheme: dark;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* --- Accessibility --- */
.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;
}

/* --- Background grid --- */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--brand-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   INDEX PAGE
   ========================================= */

body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 70%);
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(234, 120, 30, 0.1);
  border: 0.5px solid rgba(234, 120, 30, 0.4);
  color: #ea781e;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ea781e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Title */
main h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

main h1 span { color: var(--brand); }

.tagline {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.8rem;
}

.by-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.by-sep {
  width: 22px;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.15);
}

.by-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.by-text a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.by-text a:hover {
  color: var(--brand-light);
  border-color: var(--brand-light);
}

/* Form */
.form-row {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 0.75rem;
}

.email-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 16px;
  height: 46px;
  min-height: 46px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.email-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.email-input:focus { border-color: rgba(29, 158, 117, 0.7); }

.cta-btn {
  height: 46px;
  padding: 0 22px;
  background: var(--brand);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}

.cta-btn:hover { background: var(--brand-dark); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 0.75rem;
  text-align: left;
}

.consent-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

.consent-label a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.consent-label a:hover { color: var(--brand-light); }

.legal-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  max-width: 440px;
  margin: 0 auto;
}

.success-msg {
  display: none;
  color: var(--brand-light);
  font-size: 15px;
  margin-top: 1rem;
}

.error-msg {
  display: none;
  color: #F09595;
  font-size: 12px;
  margin-top: 0.4rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Index footer */
body.home footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.home footer a {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

body.home footer a:hover { color: var(--brand-light); }

/* =========================================
   CONTENT PAGES (mentions, politique)
   ========================================= */

body.page {
  line-height: 1.7;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* Fix: higher specificity than .container a to preserve intended style */
.container .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.container .back-link:hover {
  color: var(--brand-light);
  border-color: transparent;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.site-name span { color: var(--brand); }

.container h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.updated {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 3rem;
}

.divider {
  width: 100%;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

.container h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.container p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.container ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.container li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.container strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.container a {
  color: var(--brand-light);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(93, 202, 165, 0.3);
  transition: border-color 0.2s;
}

.container a:hover { border-color: var(--brand-light); }

.container footer {
  margin-top: 4rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
}

.container footer a {
  color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .email-input {
    flex: none;
    width: 100%;
    height: auto;
    padding: 13px 16px;
    font-size: 16px; /* évite le zoom automatique d'iOS sur les inputs */
  }
  .cta-btn { width: 100%; }
}
