/* =====================================
   FROMAGERIE DES PRÉS — Démo Agence IA Web
   Naturel · Artisanal · SEO/GEO ready
===================================== */

@import url("https://fonts.bunny.net/css?family=fraunces:600,700|nunito-sans:400,600,700&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --forest: #1e2a22;
  --forest-soft: #2d3d32;
  --sage: #4f6b57;
  --moss: #6b8f71;
  --gold: #b08d3a;
  --gold-soft: #e8d9a8;
  --mist: #eef2ef;
  --surface: #ffffff;
  --border: #d5ddd6;
  --text: #1a221c;
  --text-body: #3d4a40;
  --text-muted: #6a756c;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(30, 42, 34, 0.1);
  --container: 1100px;
  --transition: 0.25s ease;
  --font-display: "Fraunces", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(176, 141, 58, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(107, 143, 113, 0.14), transparent 45%),
    linear-gradient(180deg, #f5f8f5 0%, var(--mist) 40%, #e8efe9 100%);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10000;
}
.skip-link:focus {
  top: 16px;
}

.section-inner,
.nav-inner,
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

section {
  padding: clamp(48px, 7vw, 84px) 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.22;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.demo-banner {
  background: var(--forest);
  color: #e8efe9;
  font-size: 0.92rem;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(232, 217, 168, 0.25);
}
.demo-banner a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest);
}
.btn-primary:hover {
  background: #c9a245;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-dark {
  background: var(--forest);
  color: #fff;
}
.btn-dark:hover {
  background: var(--forest-soft);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--forest);
}
.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest);
  white-space: nowrap;
}
.logo span {
  color: var(--sage);
  font-weight: 600;
}
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--forest);
  background: rgba(79, 107, 87, 0.1);
}
.header-cta {
  display: flex;
  gap: 8px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 30, 24, 0.82) 0%, rgba(20, 30, 24, 0.45) 48%, rgba(20, 30, 24, 0.25) 100%),
    linear-gradient(to top, rgba(20, 30, 24, 0.75) 0%, transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 120px) 20px clamp(56px, 8vw, 88px);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
  color: #fff;
}
.hero-brand span {
  color: var(--gold-soft);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0;
  max-width: 34ch;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.95);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--sage) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 72px) 0;
}
.page-hero h1 {
  margin-bottom: 12px;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
}
.entity-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.entity-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
}
.entity-meta dt {
  font-weight: 700;
  color: var(--forest);
}
.entity-meta dd {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.answer-block {
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.answer-block p:last-child {
  margin-bottom: 0;
}

.cite-ready {
  font-size: 1.02rem;
  color: var(--forest);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}
.topic:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
}
.topic img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.topic a {
  color: var(--sage);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  background: var(--mist);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] summary {
  margin-bottom: 8px;
}
.faq details p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.cta-band {
  background: linear-gradient(120deg, var(--forest), var(--forest-soft) 55%, #3d5a45);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
}
.cta-band .lead {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 24px;
}
.cta-band .btn-primary {
  margin: 0 6px 8px;
}

.note-fictive {
  background: #fff8e8;
  border: 1px solid #e8d9a8;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--forest);
  margin: 20px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
  margin-bottom: 6px;
}
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(176, 141, 58, 0.45);
  border-color: var(--gold);
}
.form-status {
  margin-top: 10px;
  font-weight: 600;
}
.form-status.ok {
  color: var(--sage);
}
.form-status.err {
  color: #9b2c2c;
}

.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.site-footer a:hover {
  color: var(--gold-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.88rem;
}
.photo-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.prose-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 12px 0 18px;
}
.prose-list li {
  margin-bottom: 6px;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 920px) {
  .grid-2,
  .grid-2-equal,
  .grid-3,
  .contact-grid,
  .footer-grid,
  .two-col-text {
    grid-template-columns: 1fr;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: #f5f8f5;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .menu.open {
    display: flex;
  }
  .nav-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .topic {
    transition: none;
  }
  .btn:hover,
  .topic:hover {
    transform: none;
  }
}
