/* ============================================================
   OPALE GESTION — Feuille de style principale
   ============================================================ */

:root {
  /* Couleurs de base */
  --cream: #F7F8F6;
  --paper: #FFFFFF;
  --ink: #202824;
  --muted: #5B6D66;
  --line: #D7DDD8;

  /* Couleur de marque — palette sauge reprise du code couleur fourni */
  --teal: #4F7A68;
  --teal-deep: #33544A;
  --teal-soft: #E1E2DD;

  /* Reflets "opale" — déclinaison sauge, réservée à la signature visuelle */
  --opal-mint: #CAE1D9;
  --opal-lavender: #9DBFB0;
  --opal-peach: #4F7A68;
  --opal-gradient: linear-gradient(100deg, var(--opal-mint) 0%, var(--opal-lavender) 50%, var(--opal-peach) 100%);

  /* Typographie */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 6px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }

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

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}

/* Trait "opale" — signature de la marque, à utiliser avec parcimonie */
.opal-rule {
  height: 3px;
  width: 64px;
  border-radius: 2px;
  background: var(--opal-gradient);
  margin: 0 0 1.4em;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(44, 107, 107, 0.25);
}
.btn-primary:hover { background: var(--teal-deep); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal-soft); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--opal-gradient);
}

.nav-cta { display: none; }
@media (min-width: 880px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
@media (min-width: 880px) { .nav-toggle { display: none; } }
@media (max-width: 879px) { .nav-links { display: none; } }

.nav-links.open {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--paper);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.nav-links.open li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-links.open li:last-child { border-bottom: none; }

/* ---------- Sections génériques ---------- */

section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

.section-alt { background: var(--paper); }
.section-deep {
  background: var(--teal-deep);
  color: #EFF5F3;
}
.section-deep h2, .section-deep p { color: #EFF5F3; }
.section-deep .lede { color: #C9DCD8; }

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

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

.hero {
  padding-top: 64px;
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.hero-art figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Problème (liste de constats) ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pain-card svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Points clés / solution ---------- */

.key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.key-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- Cartes de prestations (3 colonnes) ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.offer-card:hover {
  box-shadow: 0 12px 30px rgba(30, 43, 42, 0.08);
  transform: translateY(-2px);
}

.offer-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.offer-benefit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--muted);
}
.offer-benefit strong { color: var(--ink); }

/* ---------- Bénéfices (4 groupes) ---------- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
@media (max-width: 720px) { .benefit-grid { grid-template-columns: 1fr; } }

.benefit-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.benefit-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-group li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.96rem;
}
.benefit-group li svg { flex-shrink: 0; margin-top: 4px; }

/* ---------- À propos / bloc portrait ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.method-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: method;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.method-list li {
  counter-increment: method;
  display: flex;
  gap: 18px;
}

.method-list li::before {
  content: counter(method, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  border: 1px solid var(--line);
  background: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
}
.cta-final .lede { margin: 0 auto 28px; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--teal-deep);
  color: #C9DCD8;
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a:hover { color: #fff; }

.footer-contact { font-size: 0.94rem; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9FBBB5;
}

/* ---------- Pages internes (Prestations / À propos / Contact / Mentions) ---------- */

.page-hero {
  padding: 56px 0 24px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--teal); }

/* Prestations : détail */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: none; }
@media (max-width: 780px) { .service-detail { grid-template-columns: 1fr; gap: 18px; } }

.service-detail ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}
.service-detail li { margin-bottom: 8px; }

.service-benefit {
  background: var(--teal-soft);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* Formulaire de contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.contact-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row svg { flex-shrink: 0; margin-top: 2px; }
.contact-info-row a:hover { color: var(--teal); }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  margin-bottom: 20px;
}
.form-status.success { background: #E2F3EA; color: #1E5E3A; }
.form-status.error { background: #FBE7E1; color: #8A3420; }

/* Mentions légales */
.legal-content h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content { max-width: 72ch; }

/* Placeholder à compléter par le client */
.tbd {
  background: #FDF0DC;
  color: #7A5210;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}
