/* Patte Blanche — feuille de style principale
   Charte : vert forêt dominant, terre secondaire, fond crème, sobre et aéré. */

:root {
  --color-forest: #1f3d2e;
  --color-forest-dark: #142a1f;
  --color-forest-soft: #2c5240;
  --color-cream: #faf6ee;
  --color-cream-alt: #f2ecdd;
  --color-terracotta: #9c5a34;
  --color-terracotta-deep: #7a4526;
  --color-terracotta-decorative: #c98a5e;
  --color-sand: #d9c9a3;
  --color-text: #23291f;
  --color-text-soft: #4b5346;
  --color-border: #e2dac4;
  --color-todo: #fff3b0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(31, 61, 46, 0.05), 0 10px 28px -14px rgba(31, 61, 46, 0.22);
  --shadow-card-hover: 0 2px 4px rgba(31, 61, 46, 0.06), 0 18px 38px -16px rgba(31, 61, 46, 0.30);
  --shadow-btn: 0 8px 20px -10px rgba(122, 69, 38, 0.55);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 220ms;

  --z-header: 20;
  --z-skip: 40;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a {
  color: var(--color-forest);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-forest-dark);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.9rem); letter-spacing: -0.015em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--prose {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}
.container--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* Skip link (accessibilité) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest);
  color: #fff;
  padding: 0.6em 1em;
  z-index: var(--z-skip);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  padding: 0.5rem 0;
  min-height: 44px;
}
.wordmark .dot {
  color: var(--color-terracotta);
  font-size: 1.1em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--speed) var(--ease-out), background-color var(--speed) var(--ease-out);
}
.main-nav a:hover {
  color: var(--color-forest);
  background: var(--color-cream-alt);
}
.main-nav a[aria-current="page"] {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text);
}

.lang-switch {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
}
.lang-switch a {
  text-decoration: none;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  line-height: 1;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: color var(--speed) var(--ease-out), background-color var(--speed) var(--ease-out);
}
.lang-switch a:hover {
  color: var(--color-forest);
  background: var(--color-cream-alt);
}
.lang-switch a[aria-current="true"] {
  background: var(--color-forest);
  color: #fff;
}
.lang-switch a[aria-current="true"]:hover {
  color: #fff;
  background: var(--color-forest);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.9em 1.75em;
  background: var(--color-terracotta);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-color var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
}
.btn:hover {
  background: var(--color-terracotta-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn--forest {
  background: var(--color-forest);
}
.btn--forest:hover {
  background: var(--color-forest-soft);
  box-shadow: 0 8px 20px -10px rgba(20, 42, 31, 0.55);
}

.btn--cta {
  box-shadow: 0 1px 0 rgba(250, 246, 238, 0.15) inset, 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}

.btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-sand);
  color: #fdfbf5;
}
.btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(80rem 42rem at 88% -20%, rgba(217, 201, 163, 0.16), transparent 55%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(201, 138, 94, 0.12), transparent 60%),
    linear-gradient(160deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
  color: #fdfbf5;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero > .container {
  position: relative;
}
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero .baseline {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  color: var(--color-sand);
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 34ch;
}
.hero p {
  max-width: 52ch;
}
.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: #f3eee1;
  margin-bottom: 1.75rem;
}
.hero :focus-visible {
  outline-color: var(--color-sand);
}

.hero--compact {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.hero--compact p {
  max-width: 60ch;
  color: #f3eee1;
  font-size: 1.05rem;
}

.hero--center {
  text-align: center;
}
.hero--center p,
.hero--center .baseline {
  margin-left: auto;
  margin-right: auto;
}

.merci-note {
  text-align: center;
}
.merci-photo {
  width: 240px;
  max-width: 60%;
  aspect-ratio: 3 / 4;
  margin: 2rem auto;
  transform: rotate(-2deg);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-visual {
  aspect-ratio: 4 / 5;
  max-height: 460px;
  width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 201, 163, 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201, 138, 94, 0.2), transparent 50%),
    rgba(250, 246, 238, 0.04);
  border: 1px dashed rgba(250, 246, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 246, 238, 0.72);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  transform: rotate(-1.25deg);
}

.hero-visual--light {
  background: var(--color-cream-alt);
  color: var(--color-text-soft);
  border: 1px dashed var(--color-border);
  box-shadow: none;
  transform: none;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  margin: 2rem 0;
}

/* Photos réelles — coins arrondis + ombre cohérents partout sur le site */
.photo {
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  margin: 2rem auto;
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

/* Galerie photo — defilement horizontal, scroll-snap pur CSS */
.gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.4rem 0.15rem 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.gallery-track:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 4px;
}

.gallery-item {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}
.gallery-item img {
  width: 320px;
  height: 400px;
  object-fit: cover;
}

.gallery-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-forest);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.gallery-nav:hover {
  background: var(--color-cream-alt);
}
.gallery-nav:active {
  transform: scale(0.94);
}

@media (max-width: 600px) {
  .gallery-item {
    width: 240px;
  }
  .gallery-item img {
    width: 240px;
    height: 300px;
  }
}

.hero-visual + h2 {
  margin-top: 2.5rem;
}

/* Entrée du héros (décorative : contenu visible sans elle) */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: rise 0.65s var(--ease-out) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.17s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-layout .hero-visual { animation: rise 0.8s 0.2s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-layout .hero-visual { animation: none; }
}

/* Sections */
section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
section.alt {
  background: var(--color-cream-alt);
}

.section-title {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-title h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-terracotta);
  margin: 0.55em auto 0;
}

.prose-lead {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.75;
}

/* Les 4 arguments — panneau + liste (asymétrie volontaire : l'argument n°1 porte) */
.arguments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}

.argument--lead {
  background:
    radial-gradient(30rem 20rem at 110% -20%, rgba(217, 201, 163, 0.16), transparent 60%),
    var(--color-forest);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.argument--lead h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}
.argument--lead p {
  color: #ede7d7;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.arguments-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.arguments-list .argument {
  padding: 1.4rem 0;
}
.arguments-list .argument + .argument {
  border-top: 1px solid var(--color-border);
}
.arguments-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}
.arguments-list h3::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  background: var(--color-terracotta);
  margin-right: 0.6em;
  transform: rotate(45deg) translateY(-0.08em);
}
.arguments-list p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

/* Cards / grids (base, utilisée sur toutes les pages) */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.card h3 { margin-bottom: 0.5rem; }
.card .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-forest);
  margin-bottom: 0.55rem;
}
.card .duration {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 0.9rem;
  display: block;
}

/* Cartes services (accueil) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.section-more {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Bandeau CTA final */
.cta-band {
  background:
    radial-gradient(70rem 36rem at 50% 130%, rgba(217, 201, 163, 0.16), transparent 60%),
    linear-gradient(160deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
  color: #fdfbf5;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
}
.cta-band .prose-cta {
  max-width: 56ch;
  margin: 0 auto 2rem;
  color: #f3eee1;
  font-size: 1.1rem;
  line-height: 1.7;
}
.cta-band :focus-visible {
  outline-color: var(--color-sand);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 640px) {
  .table-scroll table {
    min-width: 560px;
  }
}
th, td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
thead th {
  background: var(--color-forest);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--color-cream-alt); }

.table-note {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-top: 0.8rem;
  max-width: 70ch;
}

.contact-direct {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.contact-direct a {
  font-weight: 600;
}

.footer-contact {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}
.footer-contact a {
  font-weight: 600;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.required-mark {
  color: var(--color-terracotta);
  margin-left: 0.15em;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: -0.6rem 0 1.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--speed) var(--ease-out);
}
input:hover, select:hover, textarea:hover {
  border-color: var(--color-sand);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-forest);
  outline-offset: 1px;
}

/* Placeholders à compléter par Marcus */
.todo-placeholder {
  background: var(--color-todo);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  box-decoration-break: clone;
}

.todo-banner {
  background: var(--color-todo);
  border: 1px solid #e0c94a;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-forest-dark);
  color: var(--color-sand);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a {
  color: #fdfbf5;
  transition: color var(--speed) var(--ease-out);
}
.site-footer a:hover {
  color: var(--color-sand);
}
.site-footer :focus-visible {
  outline-color: var(--color-sand);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h3 {
  color: #fdfbf5;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 0.25rem; }
.footer-grid a {
  display: inline-block;
  padding: 0.35rem 0;
}
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--color-sand);
  display: inline-block;
  padding: 0.3rem 0;
}

/* Zones list */
.zone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.zone-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 900px) {
  .arguments {
    grid-template-columns: 1fr;
  }
  .argument--lead {
    padding: 1.75rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.5rem 1.25rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: flex;
    width: 100%;
    padding: 0.75rem 0.25rem;
  }
  .lang-switch { margin-left: 0; margin-top: 1rem; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-visual {
    aspect-ratio: 4 / 3;
    max-height: 300px;
    transform: rotate(0deg);
  }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
