/* ============================================================
   NACT — Nouvelle-Aquitaine Croissance Tourisme
   Design tokens grounded in the official charte graphique
   ============================================================ */

:root {
  --red: #c31632;
  --red-dark: #921024;
  --teal: #12a3b3;
  --teal-dark: #0b7c89;
  --ink: #2a2622;
  --ink-soft: #5c564e;
  --stone: #f2eee3;
  --stone-line: #ddd5c2;
  --paper: #fffdf9;
  --white: #ffffff;

  --font-display: "Archivo", sans-serif;
  --font-accent: "Fraunces", serif;
  --font-body: "Public Sans", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p { margin: 0 0 1em; max-width: 62ch; }

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--stone-line);
}

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

.section-head .kicker {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--red);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.section.on-white { background: var(--paper); }
.section.on-ink { background: var(--ink); border-bottom-color: var(--ink); }
.section.on-ink h2, .section.on-ink h3 { color: var(--white); }
.section.on-ink p { color: #d8d3c8; }

.rule {
  border: none;
  border-top: 1px solid var(--stone-line);
  margin: 0 0 14px;
  width: 34px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-on-ink {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-on-ink:hover { background: var(--white); color: var(--ink); }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--stone-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--red); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone span { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--stone-line);
  background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 15px 28px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--stone-line);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 22px;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}
.hero-media .frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-swoosh {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -34px;
  top: -34px;
  z-index: 2;
}
.hero-media .credit {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ============================================================
   Stats bar
   ============================================================ */
.stats {
  background: var(--ink);
  padding: 46px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat .rule { border-top-color: rgba(255,255,255,0.35); }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--white);
  display: block;
}
.stat .label {
  color: #cfc9bd;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ============================================================
   Mission
   ============================================================ */
.mission .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.mission-copy p { font-size: 1.05rem; }
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-list li {
  padding: 16px 0 16px 20px;
  border-left: 3px solid var(--teal);
  border-top: 1px solid var(--stone-line);
}
.help-list li:first-child { border-top: none; }
.help-list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 3px; }
.help-list span { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   Pour qui / pour quels projets
   ============================================================ */
.criteria .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.criteria .section-head { grid-column: 1 / -1; }
.criteria-col ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.criteria-col li { margin-bottom: 8px; }
.criteria-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--red);
  font-size: 0.94rem;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.criteria-note p { margin: 0; max-width: none; }

/* ============================================================
   Two offers
   ============================================================ */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.offer-card {
  background: var(--white);
  padding: 34px 32px;
  border-top: 4px solid var(--red);
}
.offer-card.teal { border-top-color: var(--teal); }
.offer-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.offer-card p { color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   Process steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--stone-line);
  position: relative;
}
.step:last-child { border-right: none; padding-right: 0; }
.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   Examples / portfolio
   ============================================================ */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.example-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
  text-transform: none;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.signed { background: var(--red); }
.status-dot.progress { background: var(--teal); border: none; }
.status-dot.studied { background: transparent; border: 2px solid var(--ink-soft); }

.example-item {
  padding: 14px 0;
  border-top: 1px solid var(--stone-line);
}
.example-item:last-child { padding-bottom: 0; }
.example-item p { font-size: 0.93rem; margin-bottom: 4px; }
.example-item .meta { font-size: 0.82rem; color: var(--ink-soft); }
.example-item .meta strong { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.testimonial blockquote {
  margin: 0 0 16px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Out of scope callout ---------- */
.scope-note {
  margin-top: 56px;
  padding: 22px 26px;
  background: var(--stone);
  border: 1px solid var(--stone-line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.scope-note strong { color: var(--ink); }
.scope-note p { margin: 0; max-width: none; }

/* ============================================================
   Departments
   ============================================================ */
.dept-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.dept-chip {
  background: var(--white);
  border: 1px solid var(--stone-line);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.dept-chip .n { color: var(--red); font-weight: 800; margin-right: 6px; }

/* ============================================================
   Qui sommes-nous
   ============================================================ */
.about .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}
.about-people {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}
.person {
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--red);
}
.person strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.person span { color: var(--ink-soft); font-size: 0.88rem; }

.council {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.partners-strip {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--stone-line);
}
.partners-strip .label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: block;
}
.partners-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 34px;
}
.partners-logos img { height: 30px; width: auto; }
.partners-logos .text-partner {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.about-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  align-self: start;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Contact
   ============================================================ */
.contact .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info .lede { color: #d8d3c8; margin-bottom: 28px; }
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail .k {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: #a39c8d;
  margin-bottom: 3px;
}
.contact-detail a, .contact-detail .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--teal); }

form.contact-form {
  background: var(--paper);
  padding: 34px;
  border-radius: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1.5px solid var(--stone-line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
}
.form-status {
  font-size: 0.88rem;
  margin-top: 12px;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: var(--teal-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 44px 0 30px;
  color: #a9a294;
  font-size: 0.85rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.9); }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-legal { text-align: right; }
.footer-legal p { margin: 0 0 4px; max-width: none; }

/* ============================================================
   Skip link / a11y
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .mission .wrap,
  .criteria .wrap,
  .offers .wrap,
  .about .wrap,
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step { border-right: none; padding-right: 0; }
  .examples .wrap { grid-template-columns: 1fr; gap: 40px; }
  .testimonials { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .footer-legal { text-align: left; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  h2 { font-size: 1.6rem; }
  .wrap { padding: 0 20px; }
}
