/* ---------------------------------------------------
   Veilla — Landing page styles
--------------------------------------------------- */

:root {
  --color-primary: #FF9F1F;
  --color-primary-dark: #E8890A;
  --color-primary-light: #FFF1DC;
  --color-bg: #FFFFFF;
  --color-bg-tint: #FFFAF4;
  --color-title: #111111;
  --color-text: #4B5563;
  --color-border: #D1D5DB;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1200px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.05);
  --shadow-pop: 0 12px 32px rgba(255, 159, 31, 0.25);
}

/* Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  color: var(--color-title);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
  line-height: 1.6;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-title);
  position: relative;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-title);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--color-title);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .btn {
  margin-top: 12px;
}

.site-header.nav-open .mobile-nav {
  display: flex;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: radial-gradient(ellipse 55% 60% at 78% 35%, rgba(255, 159, 31, 0.14), rgba(255, 159, 31, 0) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-size: 0.9rem;
  color: var(--color-text);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  filter: drop-shadow(0 30px 60px rgba(17, 17, 17, 0.18));
}

/* ---------- Generic sections ---------- */

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--color-bg-tint);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
}

/* Two-column layout (Histoire / Contact) */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.col-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 8px;
}

.col-text p {
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.col-text p:last-child {
  margin-bottom: 0;
}

.text-strong {
  color: var(--color-title);
  font-weight: 600;
}

/* ---------- Roles ---------- */

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.role-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--color-bg);
}

.role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.role-icon svg {
  width: 24px;
  height: 24px;
}

.role-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.role-subtitle {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.check-list li:last-child {
  margin-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9F1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.note-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
}

.note-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.note-icon svg {
  width: 24px;
  height: 24px;
}

.note-bar p {
  color: #7A4A0F;
  font-size: 0.98rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-title);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text);
  transition: transform 0.2s ease;
}

.faq-item[open] .chev {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-item p {
  padding: 0 4px 22px;
  max-width: 65ch;
}

/* ---------- Contact ---------- */

.two-col-contact {
  align-items: start;
}

.contact-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list a {
  font-weight: 600;
  color: var(--color-title);
}

.contact-list a:hover {
  color: var(--color-primary);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-title);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-title);
  background: var(--color-bg);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9CA3AF;
}

.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: #7A4A0F;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Honeypot: kept in the layout (not display:none) and off-screen instead,
   since some spam bots skip fields hidden that way. Real visitors never see
   or reach it; tabindex="-1" also keeps it out of keyboard navigation. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--color-text);
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--color-title);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--success {
  background: #15803D;
}

.toast--error {
  background: #DC2626;
}

/* ---------------------------------------------------
   Responsive
   Tiers: Desktop (>1024px) / Tablet (481–1024px) / Phone (≤480px)
--------------------------------------------------- */

/* ----- Tablet and below: touch nav, tighter rhythm ----- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-actions .fake-download {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section-head {
    margin-bottom: 40px;
  }
}

/* ----- Tablet portrait and below: stack multi-column layouts ----- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .badge {
    margin-left: auto;
    margin-right: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ----- Phone ----- */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    height: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-media img {
    max-height: 300px;
  }

  .role-card {
    padding: 28px 24px;
  }

  .note-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Small phones ----- */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .btn {
    padding: 12px 20px;
  }

  .role-card {
    padding: 24px 20px;
  }

  .contact-form {
    padding: 20px;
  }
}
