/* ============================================================
   MICKAEL ALEXANDRE — PODOLOGUE D.E.
   Feuille de style partagée — version 2.0
   ============================================================ */

/* ── TOKENS ── */
:root {
  --white:     #FFFFFF;
  --off:       #F6F9F5;
  --ral-light: #D9EDD3;
  --ral:       #B5D5AE;
  --ral-mid:   #7AAD74;
  --green:     #4A7A44;
  --green-d:   #2E5229;
  --ink:       #111C10;
  --ink-2:     #2E3D2C;
  --muted:     #5C7259;
  --border:    #D4E2D0;
  --shadow:    0 4px 24px rgba(17,28,16,.09);
  --shadow-sm: 0 1px 6px rgba(17,28,16,.06);
  --r:         2px;
  --nav-h:     68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--ink-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; line-height: 1.2; color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

/* ── UTILS ── */
.label {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  font-family: 'Inter', sans-serif; margin-bottom: .6rem;
}
.rule { width: 40px; height: 2px; background: var(--ral-mid); margin: .6rem 0 2rem; }
.lead {
  font-size: 1rem; font-weight: 300; color: var(--muted);
  line-height: 1.85; max-width: 640px; margin-bottom: 2.5rem;
}
.inner { max-width: 1140px; margin: 0 auto; }
section { padding: 5.5rem 2.5rem; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .85rem 2rem; border-radius: var(--r);
  transition: all .2s; cursor: pointer; border: none;
}
.btn-solid {
  background: var(--green); color: var(--white);
  box-shadow: 0 2px 12px rgba(74,122,68,.25);
}
.btn-solid:hover {
  background: var(--green-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74,122,68,.35);
}
.btn-outline {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--muted);
  font-size: .78rem; padding: .5rem 0; letter-spacing: .04em;
}
.btn-ghost:hover { color: var(--green); }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  backdrop-filter: blur(12px);
}
.nav-brand { display: flex; flex-direction: column; gap: 0; }
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 500; color: var(--ink);
}
.nav-brand-sub {
  font-size: .68rem; color: var(--muted); letter-spacing: .05em;
  font-family: 'Inter', sans-serif;
}
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .9rem;
  font-size: .8rem; font-weight: 500; color: var(--muted);
  font-family: 'Inter', sans-serif; letter-spacing: .02em;
  transition: color .2s; white-space: nowrap;
  height: var(--nav-h);
}
.nav-links > li > a:hover { color: var(--green); }
.nav-links > li > a.active { color: var(--green); }
.nav-arrow {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
  margin-top: -2px;
}
.nav-links > li:hover .nav-arrow { transform: rotate(-135deg); }

/* DROPDOWN */
.dropdown {
  position: absolute; top: calc(var(--nav-h) - 1px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  min-width: 260px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s;
  box-shadow: 0 8px 32px rgba(17,28,16,.12);
}
.nav-links > li:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; flex-direction: column;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--off); }
.dropdown a strong {
  font-size: .82rem; font-weight: 600; color: var(--ink);
  font-family: 'Inter', sans-serif; display: block; margin-bottom: .1rem;
}
.dropdown a span {
  font-size: .73rem; font-weight: 300; color: var(--muted);
  font-family: 'Inter', sans-serif;
}
.nav-rdv {
  background: var(--green); color: var(--white) !important;
  padding: .45rem 1.2rem !important; height: auto !important;
  border-radius: var(--r); margin-left: .5rem;
  font-size: .78rem !important; font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-rdv:hover { background: var(--green-d) !important; }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: all .3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-direction: column; overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .9rem 2rem; border-bottom: 1px solid var(--border);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  font-family: 'Inter', sans-serif;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a:hover { background: var(--off); color: var(--green); }
.mobile-nav .m-sub { padding-left: 3rem; font-size: .82rem; color: var(--muted); }
.mobile-nav .m-rdv { color: var(--green); font-weight: 600; background: var(--off); }

/* ── PAGE HEADER (sous-pages) ── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 2.5rem 4rem;
  background: linear-gradient(135deg, var(--off) 0%, var(--ral-light) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header-inner { max-width: 1140px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-family: 'Inter', sans-serif;
  color: var(--muted); margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--green); }
.breadcrumb-sep { color: var(--border); }
.page-header h1 { margin-bottom: .8rem; }
.page-header .lead { margin-bottom: 0; }

/* ── CARDS GÉNÉRIQUES ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  padding: 2rem; transition: box-shadow .2s, transform .2s;
  position: relative;
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::after { transform: scaleX(1); }

/* ── SCI BOX ── */
.sci-box {
  background: var(--off); border-left: 3px solid var(--ral-mid);
  padding: 1.2rem 1.5rem; margin: 1.8rem 0;
}
.sci-box-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  font-family: 'Inter', sans-serif; margin-bottom: .5rem; display: block;
}
.sci-box p { font-size: .84rem; font-weight: 300; color: var(--muted); line-height: 1.75; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); padding: 4.5rem 2.5rem 2rem;
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 4rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--white); margin-bottom: .3rem;
}
.footer-brand-name span { color: var(--ral); }
.footer-brand-sub {
  font-size: .7rem; color: rgba(255,255,255,.4);
  font-family: 'Inter', sans-serif; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer-brand-p {
  font-size: .82rem; font-weight: 300;
  color: rgba(255,255,255,.55); line-height: 1.85;
  font-family: 'Inter', sans-serif;
}
.footer-col h4 {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ral);
  font-family: 'Inter', sans-serif; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .8rem; font-weight: 300;
  color: rgba(255,255,255,.55); font-family: 'Inter', sans-serif;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--ral); }
.footer-col p {
  font-size: .8rem; font-weight: 300;
  color: rgba(255,255,255,.55); font-family: 'Inter', sans-serif;
  line-height: 1.85;
}
.footer-col a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--ral); }
.footer-bottom {
  max-width: 1140px; margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .72rem; color: rgba(255,255,255,.3);
  font-family: 'Inter', sans-serif;
}

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 42px; height: 42px;
  background: var(--green); color: var(--white);
  border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(74,122,68,.3);
  transition: background .2s, transform .15s;
}
.scroll-top:hover { background: var(--green-d); transform: translateY(-2px); }
.scroll-top.visible { display: flex; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── FORMULAIRE ── */
.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); font-family: 'Inter', sans-serif;
}
.field-input {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); background: var(--white);
  font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 300;
  color: var(--ink); outline: none; transition: border-color .2s;
  border-radius: 0; -webkit-appearance: none;
}
.field-input:focus { border-color: var(--green); }
.field-input::placeholder { color: var(--muted); opacity: .6; }
.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235C7259'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  section { padding: 3rem 1.2rem; }
  .site-nav { padding: 0 1.2rem; }
  .page-header { padding: calc(var(--nav-h) + 2.5rem) 1.2rem 2.5rem; }
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--green-d);
  padding: 5rem 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.newsletter-text h2 {
  color: var(--white);
  font-size: 2rem;
}
.newsletter-text .label {
  color: var(--ral);
}
.newsletter-text .rule {
  background: var(--ral);
  opacity: .4;
}
.newsletter-text p {
  color: rgba(255,255,255,.75);
  font-weight: 300;
  font-size: .92rem;
  line-height: 1.8;
}
.newsletter-promises {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.newsletter-promises li {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  font-weight: 400;
}
.newsletter-form-wrap {
  background: var(--white);
  padding: 2.5rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.nl-field-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.nl-label {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nl-input {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--off);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.nl-input:focus { border-color: var(--green); background: var(--white); }
.nl-submit {
  margin-top: .5rem;
  padding: .9rem 1.5rem;
  background: var(--green);
  color: var(--white);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  text-align: left;
}
.nl-submit:hover { background: var(--green-d); }
.nl-legal {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.nl-success {
  text-align: center;
  padding: 2rem 1rem;
}
.nl-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ral-light);
  color: var(--green);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.nl-success h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  color: var(--green-d);
}
.nl-success p {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
