/*
Theme Name: Biguine v2
Theme URI: https://biguine.fr
Description: Thème WordPress classique sur mesure pour le site vitrine Jean Claude Biguine
Author: Biguine
Author URI: https://biguine.fr
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biguine-v2
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 8.0
Tags: responsive, minimal, beauty, e-commerce
*/

/* ============================================================
   BIGUINE — Système de design
   Typo Roboto (texte) · Chivo (titres) · Palettes minimalistes · Layout fluide
   ============================================================ */

:root {
  /* — Couleurs — */
  --paper:      #F5F1EA;   /* fond papier ivoire chaud */
  --paper-2:    #FFFFFF;   /* blanc des sections/cartes */
  --paper-deep: #ECE6DB;   /* ivoire plus dense (bandeaux) */
  --ink:        #1A1714;   /* noir chaud (texte) */
  --ink-soft:   #4A443C;   /* gris chaud (secondaire) */
  --ink-faint:  #8C857A;   /* gris léger (labels, méta) */
  --line:       #D9D2C5;   /* filets / séparateurs */
  --line-soft:  #E6E0D5;
  --noir:       #14110E;   /* sections sombres */
  --accent:     #9A7B4F;   /* bronze chaud, très parcimonieux */

  /* — Typographie — */
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Chivo", var(--font);
  --sans:  var(--font);

  /* — Échelle fluide — */
  --head-scale: 1;
  --fs-mega:  calc(clamp(3.2rem, 8vw, 7.5rem) * var(--head-scale));
  --fs-h1:    calc(clamp(2.4rem, 5vw, 4.6rem) * var(--head-scale));
  --fs-h2:    calc(clamp(1.9rem, 3.4vw, 3.1rem) * var(--head-scale));
  --fs-h3:    calc(clamp(1.4rem, 2.2vw, 2rem) * var(--head-scale));
  --fs-lead:  clamp(1.15rem, 1.5vw, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.72rem;

  /* — Espacement — */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --maxw: 1480px;
  --maxw-text: 80vw;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* — Hauteur navbar — */
  --nav-h: 142px;
  --nav-h-compact: 126px;
  --illu-max: calc(100svh - var(--nav-h) - clamp(1.5rem, 4vh, 3.5rem));
}

@media (max-width: 760px) {
  :root { --nav-h: 76px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* color: inherit — Safari iOS colore sinon le texte des boutons en bleu système (titres des cartes vidéo/produit). */
button { font-family: inherit; cursor: pointer; color: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* — Typographie — */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0;
}
.eyebrow--ink { color: var(--ink); }
.eyebrow--paper { color: rgba(245,241,234,0.62); }

.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

.title-serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

.prose p { color: var(--ink-soft); margin: 0 0 1.1em; max-width: var(--maxw-text); }
em, .it { font-style: italic; }

/* — Layout — */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-text { max-width: var(--maxw-text); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section--deep { background: var(--paper-deep); }
.section--noir { background: var(--noir); color: var(--paper); }
.section--noir .lead { color: rgba(245,241,234,0.7); }
.section--noir .prose p { color: rgba(245,241,234,0.7); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* — Boutons / liens — */
.btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1.05em 2.1em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--paper { border-color: var(--paper); color: var(--paper); }
.btn--paper:hover { background: var(--paper); color: var(--ink); }

.link-underline {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .35s var(--ease), opacity .3s;
}
.link-underline:hover { gap: 1.1em; }
.link-underline .arrow { transition: transform .35s var(--ease); }
.link-underline:hover .arrow { transform: translateX(4px); }

/* — Placeholder image — */
.ph {
  position: relative;
  max-height: var(--illu-max);
  margin-inline: auto;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  object-fit: cover;
}
.ph--dark {
  background: #211d18;
  border-color: rgba(255,255,255,0.12);
  color: rgba(245,241,234,0.55);
}
.ph__tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  background: rgba(245,241,234,0.55);
  backdrop-filter: blur(2px);
}
.ph--dark .ph__tag { background: rgba(20,17,14,0.4); }
.ph--natural { object-fit: contain; background: none; }

/* — Ratios — */
.r-16-9 { aspect-ratio: 16 / 9; }
.r-4-5  { aspect-ratio: 4 / 5; }
.r-3-4  { aspect-ratio: 3 / 4; }
.r-9-16 { aspect-ratio: 9 / 16; }
.r-1-1  { aspect-ratio: 1 / 1; }

/* — Animations — */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

::selection { background: var(--ink); color: var(--paper); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-track { background: var(--paper); }

/* — WordPress specifics — */
.wp-block-image { margin: 0 0 1.5rem; }
.wp-caption { color: var(--ink-soft); font-size: 0.9rem; }
