/*
Theme Name: Terre-Api
Theme URI: https://terreapi.latelier22.fr
Author: L'Atelier 22
Description: Thème WordPress léger pour Terre-Api, apiculteur et récoltant en Provence.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: terreapi
*/

:root {
  --ink: #12120f;
  --ink-soft: #25231d;
  --honey: #e7b83f;
  --honey-light: #f7d875;
  --cream: #fffaf0;
  --paper: #f5edda;
  --lavender: #7354a4;
  --leaf: #526a42;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 22px 60px rgba(30, 22, 8, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.ta-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ta-section { padding: 105px 0; position: relative; }
.ta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--lavender);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.ta-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.ta-title {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.ta-lead { max-width: 690px; margin: 24px 0 0; color: #625c50; font-size: 1.08rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(18, 18, 15, .94); box-shadow: 0 10px 35px rgba(0,0,0,.14); backdrop-filter: blur(12px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name small { color: var(--honey-light); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }
.main-nav a:hover { color: var(--honey-light); }
.nav-cta { padding: 11px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font-size: 1.5rem; }

.hero {
  min-height: 820px;
  display: grid;
  align-items: end;
  position: relative;
  color: white;
  background: var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,11,.96) 0%, rgba(14,14,11,.73) 48%, rgba(14,14,11,.22) 100%),
    url("assets/miel-garrigue.jpg") center 42% / cover;
  opacity: .86;
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -150px;
  top: 100px;
  border: 1px solid rgba(231,184,63,.35);
  transform: rotate(30deg);
  border-radius: 28%;
}
.hero-inner { position: relative; z-index: 2; padding: 180px 0 80px; }
.hero-copy { max-width: 790px; }
.hero .ta-eyebrow { color: var(--honey-light); }
.hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8.5vw, 7.9rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.065em;
}
.hero h1 em { display: block; color: var(--honey); font-weight: 500; }
.hero-text { max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--honey); }
.button-primary:hover { background: var(--honey-light); }
.button-ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 74px; background: rgba(255,255,255,.15); }
.hero-fact { min-height: 100px; padding: 22px 24px; background: rgba(16,16,13,.63); backdrop-filter: blur(10px); }
.hero-fact strong { display: block; color: var(--honey-light); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.hero-fact span { color: rgba(255,255,255,.68); font-size: .85rem; }

.intro-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 72px; align-items: center; }
.intro-card { position: relative; min-height: 530px; overflow: hidden; border-radius: 160px 28px 28px; box-shadow: var(--shadow); }
.intro-card img { width: 100%; height: 100%; min-height: 530px; object-fit: cover; }
.intro-note { position: absolute; right: 18px; bottom: 18px; width: min(280px, calc(100% - 36px)); padding: 22px; color: white; background: rgba(18,18,15,.88); border-radius: 20px; backdrop-filter: blur(10px); }
.intro-note strong { display: block; color: var(--honey-light); font-family: Georgia, serif; font-size: 1.4rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.value { padding: 21px; background: white; border: 1px solid #e9dfca; border-radius: 18px; }
.value strong { display: block; margin-bottom: 5px; }
.value span { color: #71695b; font-size: .88rem; }

.honey-section { color: white; background: var(--ink); }
.honey-section .ta-lead { color: rgba(255,255,255,.65); }
.honey-section .ta-eyebrow { color: var(--honey-light); }
.honey-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 48px; }
.honey-card { grid-column: span 4; min-height: 500px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-soft); }
.honey-card:nth-child(4), .honey-card:nth-child(5) { grid-column: span 6; min-height: 430px; }
.honey-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.honey-card:hover img { transform: scale(1.055); }
.honey-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(9,9,8,.88) 100%); }
.honey-content { position: absolute; z-index: 2; inset: auto 25px 24px; }
.honey-content h3 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.honey-content p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.honey-link { display: inline-flex; margin-top: 13px; color: var(--honey-light); font-size: .85rem; font-weight: 800; text-decoration: none; }

.pedagogy { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.service-card { position: relative; padding: 34px 30px; overflow: hidden; background: var(--cream); border: 1px solid #e7dbc0; border-radius: 22px; }
.service-card::before { content: attr(data-number); position: absolute; right: 15px; top: 3px; color: rgba(231,184,63,.18); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
.service-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 50px; color: var(--ink); background: var(--honey); border-radius: 16px; font-size: 1.5rem; }
.service-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.service-card p { margin: 13px 0 0; color: #696255; font-size: .94rem; }

.sponsor-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.sponsor-visual { min-height: 520px; position: relative; overflow: hidden; border-radius: 28px 150px 28px 28px; }
.sponsor-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.sponsor-panel { position: relative; padding: 45px; color: white; background: var(--lavender); border-radius: 28px; }
.sponsor-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 500; line-height: .98; }
.sponsor-panel p { color: rgba(255,255,255,.78); }
.sponsor-list { display: grid; gap: 10px; margin: 28px 0 34px; padding: 0; list-style: none; }
.sponsor-list li { display: flex; gap: 11px; align-items: center; }
.sponsor-list li::before { content: "✦"; color: var(--honey-light); }

.visit { padding: 90px 0; color: white; background: var(--leaf); }
.visit-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.visit h2 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.9rem); font-weight: 500; line-height: .98; }
.visit p { color: rgba(255,255,255,.75); }

.site-footer { padding: 62px 0 30px; color: rgba(255,255,255,.73); background: #0b0b09; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.footer-logo { width: 110px; border-radius: 20px; }
.footer-title { margin: 0 0 13px; color: white; font-weight: 800; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--honey-light); }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.floating-actions { position: fixed; z-index: 45; right: 18px; bottom: 18px; display: grid; gap: 9px; }
.floating-actions a { display: grid; width: 52px; height: 52px; place-items: center; color: var(--ink); background: var(--honey); border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.22); text-decoration: none; font-size: 1.2rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 78px 20px auto; padding: 20px; align-items: stretch; background: rgba(18,18,15,.98); border-radius: 18px; flex-direction: column; gap: 4px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px; }
  .intro-grid, .sponsor-wrap { grid-template-columns: 1fr; }
  .intro-card { order: -1; min-height: 410px; }
  .intro-card img { min-height: 410px; }
  .honey-card, .honey-card:nth-child(4), .honey-card:nth-child(5) { grid-column: span 6; min-height: 440px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-icon { margin-bottom: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .ta-container { width: min(100% - 28px, 1180px); }
  .ta-section { padding: 74px 0; }
  .header-inner { min-height: 76px; }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: .92rem; }
  .hero { min-height: 740px; }
  .hero-inner { padding: 135px 0 38px; }
  .hero h1 { font-size: clamp(3.15rem, 18vw, 5.2rem); }
  .hero-facts { grid-template-columns: 1fr; margin-top: 45px; }
  .hero-fact { min-height: auto; }
  .intro-card, .intro-card img { min-height: 360px; }
  .values { grid-template-columns: 1fr; }
  .honey-grid { display: flex; margin-inline: -14px; padding: 0 14px 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .honey-card, .honey-card:nth-child(4), .honey-card:nth-child(5) { flex: 0 0 83vw; min-height: 450px; scroll-snap-align: center; }
  .sponsor-panel { padding: 32px 25px; }
  .sponsor-visual { min-height: 390px; }
  .visit-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .floating-actions { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
