/* ==========================================================================
   ClairProcess — feuille de style de production
   Palette et typographie fidèles à la maquette Claude Design validée.
   Les couleurs sont définies en hexadécimal (compatibilité maximale) puis
   redéfinies en oklch() pour les navigateurs qui le supportent, via
   @supports — aucune perte de fidélité chromatique sur les navigateurs
   récents, et un repli propre sur les plus anciens.
   ========================================================================== */

:root {
  /* Couleurs de marque (hex natif, aucun repli nécessaire) */
  --olive: #6E7F52;
  --terracotta-logo: #C4664A;
  --ocre-logo: #D8B26A;
  --gold-highlight: #F5E4BE;
  --gold-mid: #B8892F;
  --dot-shadow: #8f4530;

  /* Couleurs dérivées de la charte oklch (repli hex ci-dessous) */
  --cream: #f7ebdb;
  --card: #fdfaf4;
  --text-main: #372414;
  --text-secondary: #5a493d;
  --text-secondary-2: #625245;
  --nav-link: #46372b;
  --brown: #402712;
  --terracotta-cta: #bd5833;
  --terracotta-dark: #a54a28;
  --olive-dark-bg: #3d4e2b;
  --ocre: #c78a3b;
  --border: #d5ccc0;
  --border-nav: #dfd6c9;
  --badge-bg: #f1eae0;
  --input-bg: #faf4eb;
  --disabled-btn: #b5ada0;
  --modal-overlay: rgba(29, 20, 13, 0.55);
  --shadow-color: rgba(84, 21, 0, 0.5);
  --scroll-top-border: #cbc3b6;
}

@supports (color: oklch(0.5 0.1 50)) {
  :root {
    --cream: oklch(0.945 0.025 75);
    --card: oklch(0.985 0.008 85);
    --text-main: oklch(0.28 0.04 60);
    --text-secondary: oklch(0.42 0.03 60);
    --text-secondary-2: oklch(0.45 0.03 60);
    --nav-link: oklch(0.35 0.03 60);
    --brown: oklch(0.3 0.05 60);
    --terracotta-cta: oklch(0.58 0.14 40);
    --terracotta-dark: oklch(0.52 0.13 40);
    --olive-dark-bg: oklch(0.4 0.06 130);
    --ocre: oklch(0.68 0.12 70);
    --border: oklch(0.85 0.02 78);
    --border-nav: oklch(0.88 0.02 78);
    --badge-bg: oklch(0.94 0.015 78);
    --input-bg: oklch(0.97 0.014 80);
    --disabled-btn: oklch(0.75 0.02 78);
    --modal-overlay: oklch(0.2 0.02 60 / 0.55);
    --shadow-color: oklch(0.3 0.1 40 / 0.5);
    --scroll-top-border: oklch(0.82 0.02 78);
  }
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--terracotta-cta);
  outline-offset: 2px;
}

.script-title {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--terracotta-cta);
  margin: 0 0 8px;
  text-align: center;
}
.brand-word {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}
.brand-word .clair { color: var(--olive); }
.brand-word .process { color: var(--terracotta-cta); }
.brand-word-inline { font-size: 20px; }

.section-divider {
  height: 3px;
  width: 70px;
  border-radius: 2px;
  margin: 0 auto;
  background: var(--terracotta-cta);
}
.section-divider--olive { background: var(--olive); }

.section { padding-left: 48px; padding-right: 48px; }
.section-alt { background: var(--cream); }

.card {
  background: var(--card);
  border-radius: 8px;
  padding: 26px 28px;
}

.cta-btn {
  display: inline-block;
  background: var(--terracotta-cta);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px var(--shadow-color);
  transition: background 0.15s ease;
}
.cta-btn:hover { background: var(--terracotta-dark); }
.cta-btn:disabled {
  background: var(--disabled-btn);
  cursor: not-allowed;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(247, 235, 219, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-nav);
}
@supports (color: oklch(0.5 0.1 50)) {
  .site-header { background: oklch(0.945 0.025 75 / 0.94); }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-plume {
  width: 58px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-wordmark-wrap { display: inline-block; }
.logo-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 33px;
  line-height: 1;
  white-space: nowrap;
}
.logo-wordmark .clair { color: var(--olive); }
.logo-wordmark .process { color: var(--terracotta-logo); }
.logo-trait {
  height: 5px;
  display: flex;
  align-items: center;
  margin: 5px 0 3px;
}
.logo-trait-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ocre-logo) 45%, var(--gold-highlight) 65%, var(--gold-mid) 82%, transparent);
}
.logo-trait-line--rtl {
  background: linear-gradient(to left, transparent, var(--ocre-logo) 45%, var(--gold-highlight) 65%, var(--gold-mid) 82%, transparent);
}
.logo-trait-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-highlight), var(--terracotta-logo) 60%, var(--dot-shadow));
  box-shadow: 0 0 2px rgba(196, 102, 74, 0.5);
  flex-shrink: 0;
  margin: 0 4px;
}
.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--brown);
  white-space: nowrap;
}
.logo-slogan {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-style: italic;
  color: var(--olive);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--terracotta-cta); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border-nav);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
}
.nav-burger svg { pointer-events: none; }

.mobile-nav {
  display: flex;
  visibility: hidden;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 320px);
  background: var(--cream);
  border-left: 1px solid var(--border-nav);
  z-index: 70;
  padding: 24px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 24px -8px rgba(0,0,0,0.2);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible { color: var(--terracotta-cta); }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(29, 20, 13, 0.4);
  z-index: 65;
}
.nav-scrim.is-open { display: block; }

.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--terracotta-cta);
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px var(--shadow-color);
  transition: background 0.15s ease;
}
.floating-contact:hover { background: var(--terracotta-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 48px 60px;
  max-width: 780px;
  margin: 0 auto;
}
.hero .card { max-width: 480px; margin: 0 auto 20px; }
.hero .card + .card { margin-bottom: 28px; }
.hero-h1 {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0;
}
.hero-copy {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Cible ---------- */
.cible-wrap { max-width: 720px; margin: 0 auto; }
.cible-tags {
  font-weight: 800;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.cible-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cible-list .card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--olive);
  margin-bottom: 8px;
}
.cible-list ul {
  margin: 0;
  padding-left: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
}
.cible-list p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Grids ---------- */
.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; }

.service-card, .method-card, .why-card {
  background: var(--card);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.service-card { padding: 30px 22px; }
.method-card { padding: 26px 20px; }
.why-card { padding: 30px 24px; }

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle--olive { background: var(--olive); }
.icon-circle--terracotta { background: var(--terracotta-cta); }
.icon-circle--ocre { background: var(--ocre); }
.icon-circle--brown { background: var(--brown); }

.service-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}
.service-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.method-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.method-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--brown);
}
.method-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---------- Réalisations ---------- */
.realisation-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}
.realisation-card img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}
.realisation-body { padding: 20px 22px; }
.realisation-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
}
.realisation-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.realisation-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary-2);
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---------- À propos ---------- */
.apropos-wrap { text-align: center; }
.apropos-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive);
  margin: 0 0 18px;
}
.apropos-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.apropos-cards p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Pourquoi ---------- */
.why-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--olive);
  margin-bottom: 10px;
}
.why-title--terracotta { font-size: 18px; color: var(--terracotta-dark); }
.why-title--ocre { color: var(--ocre); }
.why-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---------- Contact ---------- */
.contact-left h2 { margin: 0 0 20px; text-align: center; }
.contact-left .card {
  padding: 22px 24px;
}
.contact-left .card + .card { margin-top: 20px; }
.contact-intro p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}
.contact-response {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
  margin: 10px 0 0;
}
.tarifs-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--olive);
  margin-bottom: 10px;
}
.tarifs-intro {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.tarifs-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tarifs-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.tarifs-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary-2);
  margin: 0 0 8px;
}
.tarifs-cta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--card);
  padding: 36px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nav-link);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text-main);
  width: 100%;
}
.form-field select option {
  background: var(--input-bg);
  color: var(--text-main);
}
.form-field textarea { resize: vertical; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--nav-link);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--terracotta-cta);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-submit { margin-top: 6px; }
.form-status {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin: 0;
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: var(--olive); font-weight: 600; }
.form-status[data-state="error"] { color: var(--terracotta-dark); font-weight: 600; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14.5px;
  margin-top: 8px;
  background: var(--olive-dark-bg);
  color: #fff;
  padding: 22px 24px;
  border-radius: 6px;
  grid-column: 1 / -1;
}
.contact-info a,
.contact-info .contact-info-row {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.contact-info .icon-slot {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info .icon-slot img {
  width: 20px;
  height: 27px;
  object-fit: contain;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  padding: 36px 48px;
  text-align: center;
  border-top: 1px solid var(--border-nav);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-brand .logo-plume {
  width: 56px;
  height: 77px;
}
.footer-brand .logo-wordmark { font-size: 31px; }
.footer-copyright {
  font-size: 12.5px;
  color: var(--text-secondary-2);
  margin-bottom: 10px;
}
.legal-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 12px;
}
.legal-links button {
  background: none;
  border: none;
  font: inherit;
  color: var(--text-secondary-2);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.legal-links button:hover,
.legal-links button:focus-visible { color: var(--terracotta-cta); }
.scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-top: 4px;
  color: var(--text-secondary-2);
  text-decoration: none;
  border: 1px solid var(--scroll-top-border);
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.scroll-top:hover,
.scroll-top:focus-visible {
  opacity: 1;
  border-color: var(--terracotta-logo);
  color: var(--terracotta-logo);
}

/* ---------- Modales légales ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  background: var(--card);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary-2);
  line-height: 1;
}
.modal-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--olive);
  margin: 0 0 16px;
}
.modal-card .modal-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
}
.modal-card .modal-body p { margin: 0 0 14px; }
.modal-card .modal-body p:last-child { margin-bottom: 0; }
.modal-card .modal-body strong { color: var(--olive); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }
  .hero { grid-template-columns: 1fr !important; padding: 48px 24px 56px !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; }
  .section { padding-left: 24px !important; padding-right: 24px !important; }
  .site-header { padding: 12px 24px !important; }
  .site-footer { padding: 36px 24px 100px !important; }
  .hero-h1 { font-size: 26px !important; }
  .logo-wordmark { font-size: 28px !important; }
  .logo-tagline { font-size: 8px !important; letter-spacing: 1.2px !important; }
  .logo-slogan {
    display: block !important;
    margin-top: 3px !important;
    font-size: 10px !important;
    max-width: 220px !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .footer-brand { width: 100%; }
  .footer-brand .logo-trait { margin: 5px 0 4px !important; }
  .legal-links { padding-bottom: 20px !important; flex-wrap: wrap !important; }
  .scroll-top { margin-top: 4px !important; margin-bottom: 44px !important; }
  input, select, textarea { width: 100% !important; max-width: 100% !important; }
  label input[type="checkbox"] { width: auto !important; }
}

@media print {
  .site-header, .floating-contact, .nav-burger, .mobile-nav, .scroll-top { display: none !important; }
}
