/* ============================================
   EXAGO v1.5 — One-page vitrine
   Theme: exago-onepage
   Palette: Navy + Copper/Gold, warm whites
   ============================================ */

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

:root {
  --navy: #1a3a5c;
  --navy-light: #2a5a8c;
  --navy-dark: #0f2640;
  --copper: #c8956c;
  --copper-light: #d4a97e;
  --copper-pale: #f0e4d6;
  --cream: #fafaf8;
  --warm-bg: #f5f3ef;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --border: #ddd8d0;
  --white: #ffffff;
  --error: #c0392b;
  --error-bg: rgba(192, 57, 43, 0.06);
  --success-green: #27ae60;
  --success-bg: rgba(39, 174, 96, 0.08);

  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Libre Franklin', sans-serif;

  --max-width: 960px;
  --narrow-width: 720px;
  --spacing: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--copper);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

p { margin-bottom: 1rem; }

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li { margin-bottom: 0.4rem; }

img { max-width: 100%; height: auto; }

/* --- Utilities --- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-hero {
  background: var(--copper);
  color: var(--white);
  margin-top: 1.5rem;
}

.btn-hero:hover {
  background: var(--copper-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 149, 108, 0.3);
}

/* ============================================
   HEADER — Fixed, compact
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem var(--spacing);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 500;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 8rem var(--spacing) 5rem;
  text-align: center;
  margin-top: 0;
  padding-top: calc(4rem + 70px);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-light);
  border: 1px solid rgba(200, 149, 108, 0.4);
  padding: 0.45rem 1.4rem;
  margin-bottom: 1.8rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.88);
}

/* Hero compact — for /merci/ and /404/ */
.hero-compact {
  padding: 6rem var(--spacing) 4rem;
  padding-top: calc(6rem + 70px);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SECTIONS — Alternating backgrounds
   ============================================ */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--cream);
}

.section-alt {
  background: var(--warm-bg);
}

.section-title {
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--copper);
  margin: 0.8rem auto 0;
}

/* ============================================
   PRÉSENTATION
   ============================================ */
.presentation-content {
  max-width: var(--narrow-width);
  margin: 0 auto;
}

.presentation-intro {
  margin-bottom: 2rem;
}

.valeurs-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.valeurs-list li {
  padding-left: 1.5rem;
  position: relative;
  font-weight: 400;
  color: var(--navy);
}

.valeurs-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 500;
}

.engagement {
  font-weight: 400;
  color: var(--navy);
  font-style: italic;
  border-left: 3px solid var(--copper);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

.presentation-bio {
  position: relative;
  padding-top: 2rem;
}

.presentation-bio::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}

.presentation-bio p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   MISSIONS
   ============================================ */
.mission-block {
  max-width: var(--narrow-width);
  margin: 0 auto 3rem;
}

.mission-block:last-child {
  margin-bottom: 0;
}

.mission-block h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mission-list {
  list-style: none;
  margin-left: 0;
}

.mission-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  border-bottom: 1px solid rgba(221, 216, 208, 0.5);
  font-size: 0.95rem;
}

.mission-list li:last-child {
  border-bottom: none;
}

.mission-list li::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.mission-note {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(200, 149, 108, 0.08);
  border-left: 3px solid var(--copper);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: 0 4px 4px 0;
}

.examples-list li::before {
  background: var(--navy-light);
}

/* ============================================
   RECOMMANDATIONS
   ============================================ */
.recommandations-content {
  max-width: var(--narrow-width);
  margin: 0 auto;
}

.testimonial-block {
  position: relative;
  margin: 0;
  padding: 2rem 2rem 2rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--copper);
  border-radius: 0 6px 6px 0;
}

.testimonial-block::before {
  content: '\AB';
  position: absolute;
  top: 1.2rem;
  left: 0.8rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.3;
}

.testimonial-quote::after {
  content: '\A0\BB';
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 0;
  color: var(--copper);
  opacity: 0.3;
  vertical-align: -0.3rem;
}

/*
.testimonial-block::after {
  content: '\BB';
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.3;
  float: right;
  margin-top: -1.5rem;
}
*/

.testimonial-quote {
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
}

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

.testimonial-author {
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
}

.testimonial-role {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ============================================
   CONTACT — Layout with form + info card
   ============================================ */
.contact-intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(221, 216, 208, 0.4);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm-bg);
  color: var(--copper);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-item a:hover {
  color: var(--copper);
}

/* Email obfuscation placeholder */
.email-placeholder {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================
   CONTACT FORM — Web3Forms
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.form-group label .required {
  color: var(--copper);
}

.form-group label .optional {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom validation states (replaces native browser validation) */
.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--success-green);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 0;
  transition: min-height 0.2s;
}

/* Submit button */
.btn-submit {
  background: var(--copper);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  align-self: flex-start;
  position: relative;
}

.btn-submit:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 149, 108, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit .btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline;
}

.btn-submit.loading {
  opacity: 0.7;
  cursor: wait;
}

/* RGPD consent text */
.form-consent {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.form-consent a {
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--copper);
  text-decoration-color: var(--copper);
}

/* Status messages */
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: var(--success-bg);
  border: 1px solid rgba(39, 174, 96, 0.25);
  color: #1e7e4a;
}

.form-status.error {
  display: block;
  background: var(--error-bg);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: #922b21;
}

/* ============================================
   MENTIONS LÉGALES PAGE
   ============================================ */
.legal-page {
  padding-top: calc(3rem + 70px);
  padding-bottom: 4rem;
}

.legal-content {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--copper);
  margin: 0.8rem auto 0;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-light);
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-color: var(--copper-pale);
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration-color: var(--copper);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem var(--spacing);
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: var(--copper-light);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  margin: 0.8rem 0;
}

.footer-legal {
  margin: 0.6rem 0;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal a:hover {
  color: var(--copper-light);
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.section-title,
.mission-block,
.contact-card,
.contact-form-wrapper,
.presentation-intro,
.presentation-bio {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible,
.mission-block.visible,
.contact-card.visible,
.contact-form-wrapper.visible,
.presentation-intro.visible,
.presentation-bio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing: 1.25rem;
  }

  .hero {
    padding: calc(3rem + 70px) var(--spacing) 3.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.35rem 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Contact layout: stack on mobile */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem var(--spacing);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

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

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(221, 216, 208, 0.3);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  /* Full-width submit button on mobile */
  .btn-submit {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
