/* ==========================================================================
   lesjardinsdelamer-antibes.fr — Design tokens
   Direction : "Pinède littorale" — vert pin / terre cuite / sable
   Différenciation volontaire vs mariage-06.fr (azur/ocre) — même terroir 06,
   identité visuelle opposée.
   ========================================================================== */

:root {
  /* Couleurs de base */
  --pin: #1F3626;
  --sable: #F6EFE4;
  --terre: #C4622D;
  --eucalyptus: #8FA89A;
  --petrole: #2C4A52;
  --paille: #E8D9B5;

  /* Dérivés opacité — pin */
  --pin-80: rgba(31, 54, 38, .8);
  --pin-65: rgba(31, 54, 38, .65);
  --pin-40: rgba(31, 54, 38, .4);
  --pin-20: rgba(31, 54, 38, .2);
  --pin-10: rgba(31, 54, 38, .1);
  --pin-06: rgba(31, 54, 38, .06);

  /* Dérivés opacité — sable */
  --sable-95: rgba(246, 239, 228, .95);
  --sable-75: rgba(246, 239, 228, .75);
  --sable-40: rgba(246, 239, 228, .4);

  /* Dérivés opacité — terre */
  --terre-30: rgba(196, 98, 45, .3);
  --terre-15: rgba(196, 98, 45, .15);

  /* Texte / fond par défaut */
  --text: var(--pin);
  --text-muted: var(--pin-65);
  --bg: var(--sable);
  --bg-alt: #ffffff;

  /* Typographies */
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Public Sans', system-ui, -apple-system, sans-serif;

  /* Mesures */
  --measure-article: 860px;
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;

  /* Ombres — volontairement discrètes, pas de kit SaaS uniforme */
  --shadow-sm: 0 1px 3px var(--pin-10);
  --shadow-md: 0 4px 16px var(--pin-10);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur: 500ms;
  --dur-slow: 700ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* REGLE OBLIGATOIRE — reset image (anti-distorsion) */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--pin);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.2em; }

a { color: var(--terre); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terre);
  outline-offset: 2px;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* ==========================================================================
   Wrappers anti-distorsion image — OBLIGATOIRE, ne jamais poser object-fit
   directement sur <img> sans conteneur à aspect-ratio fixe.
   ========================================================================== */

.img-hero     { aspect-ratio: 16 / 9; overflow: hidden; background: var(--pin-06); }
.img-card     { aspect-ratio: 3 / 2;  overflow: hidden; background: var(--pin-06); }
.img-body     { aspect-ratio: 3 / 2;  overflow: hidden; background: var(--pin-06); }
.img-portrait { aspect-ratio: 1 / 1;  overflow: hidden; border-radius: 50%; background: var(--pin-06); }

.img-hero img, .img-card img, .img-body img, .img-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

figure { margin: 2rem 0; }
figcaption {
  font-family: var(--ff-body);
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .6rem;
  padding-left: .2rem;
  border-left: 2px solid var(--terre);
  padding-left: .8rem;
  display: block;
}

/* ==========================================================================
   Layout de base
   ========================================================================== */

.container {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--article {
  max-width: var(--measure-article);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Header / Footer
   ========================================================================== */

.site-header {
  background: var(--sable);
  border-bottom: 1px solid var(--pin-10);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-header__logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--pin);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header__logo:hover { text-decoration: none; color: var(--terre); }

.site-nav {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--pin);
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--terre); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--sable);
    flex-direction: column;
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--pin-10);
    gap: 1rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--pin-20);
    border-radius: var(--radius);
    cursor: pointer;
  }
}

.site-footer {
  background: var(--pin);
  color: var(--sable-95);
  margin-top: 5rem;
  padding-block: 3rem 2rem;
}

.site-footer a { color: var(--paille); }
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer__title {
  font-family: var(--ff-display);
  color: var(--sable);
  margin-bottom: .8rem;
  font-size: 1.1rem;
}
.site-footer__bottom {
  border-top: 1px solid rgba(246,239,228,.15);
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--sable-75);
}

/* ==========================================================================
   Hero asymétrique — signature visuelle du site
   ========================================================================== */

.hero-asym {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  min-height: 70vh;
}

.hero-asym__text {
  background: var(--sable);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem var(--gutter);
}

.hero-asym__kicker {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--terre);
  margin-bottom: 1rem;
}

.hero-asym__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1.2rem;
}

.hero-asym__lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.hero-asym__media {
  position: relative;
}
.hero-asym__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 860px) {
  .hero-asym { grid-template-columns: 1fr; min-height: auto; }
  .hero-asym__media { aspect-ratio: 4/3; }
  .hero-asym__text { padding: 2rem var(--gutter); }
}

/* ==========================================================================
   Boutons / liens signature
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  background: var(--terre);
  color: var(--sable);
  border: none;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { background: #a94f21; text-decoration: none; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--pin);
  color: var(--pin);
}
.btn--outline:hover { background: var(--pin); color: var(--sable); }

/* ==========================================================================
   Filet sous H2 — signature visuelle
   ========================================================================== */

.section-title {
  position: relative;
  padding-bottom: .8rem;
  margin-bottom: 1.6rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--terre);
}

/* ==========================================================================
   Cards — jamais d'ombre/radius uniforme partout, registre magazine
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.4rem;
}

.card {
  display: flex;
  flex-direction: column;
}

.card__kicker {
  font-size: .78rem;
  font-weight: 600;
  color: var(--terre);
  margin-block: 1rem .4rem;
}

.card__title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.card__title a { color: var(--pin); }
.card__title a:hover { color: var(--terre); text-decoration: none; }

.card__meta {
  display: flex;
  gap: .8rem;
  align-items: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.card__excerpt {
  color: var(--text-muted);
  font-size: .95rem;
}

/* ==========================================================================
   Pull-quote
   ========================================================================== */

blockquote {
  margin: 2.4rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--terre);
  background: var(--pin-06);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--pin);
}

/* ==========================================================================
   Tableaux
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .95rem;
}
th, td {
  padding: .7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--pin-10);
  border-right: 1px solid var(--pin-06);
}
th:last-child, td:last-child { border-right: none; }
th {
  background: var(--pin);
  color: var(--sable);
  font-family: var(--ff-display);
  font-weight: 500;
  border-bottom: 2px solid var(--terre);
}
tbody tr:nth-child(even) { background: var(--pin-06); }

/* ==========================================================================
   Corps d'article (BlogLayout)
   ========================================================================== */

.article-body {
  margin-top: 2rem;
}
.article-body p { margin-bottom: 1.3rem; }
.article-body h2 { margin-top: 2.4rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body ul, .article-body ol { margin-bottom: 1.3rem; }

/* ==========================================================================
   FAQ / accordéon
   ========================================================================== */

.faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pin-10);
}

.faq-item {
  border-bottom: 1px solid var(--pin-10);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 0;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--pin);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--terre);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.2rem; color: var(--text-muted); }

/* ==========================================================================
   Filtre catégories (blog)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.4rem;
}
.filter-btn {
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--pin-20);
  border-radius: 999px;
  background: transparent;
  color: var(--pin);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--terre); }
.filter-btn.is-active {
  background: var(--pin);
  border-color: var(--pin);
  color: var(--sable);
}

/* ==========================================================================
   Sommaire article
   ========================================================================== */

.article-sommaire {
  background: var(--pin-06);
  border-left: 3px solid var(--terre);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--radius);
}
.article-sommaire__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  margin-bottom: .8rem;
  color: var(--pin);
}
.article-sommaire ul { list-style: none; padding: 0; margin: 0; }
.article-sommaire li { margin-bottom: .5rem; }
.article-sommaire a { color: var(--petrole); font-size: .92rem; }

/* ==========================================================================
   Formulaire contact
   ========================================================================== */

.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--pin);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--pin-20);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 1rem;
  background: var(--bg-alt);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--terre);
  outline: none;
}
.form-status { margin-top: 1rem; font-size: .92rem; }
.form-status.is-success { color: var(--pin); }
.form-status.is-error { color: #a3311a; }

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
