/* ==========================================================================
   Mandragora Herboristerie — site vitrine provisoire
   Design system repris de mandragora-formation.fr (mêmes variables, même typo)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices
   -------------------------------------------------------------------------- */

/* Police calligraphique, même fichier que le site formation.
   Réservée aux titres de hero : trop peu lisible en petit corps. */
@font-face {
  font-family: rostock_kaligraph;
  src: url("../fonts/rostock_kaligraph/Rostock Kaligraph.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Lora, hébergée en local : aucune requête vers Google Fonts.
   Fichiers générés depuis fonts.googleapis.com, sous-ensembles latin et
   latin-ext. Voir README pour les régénérer. */

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora/lora-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora/lora-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora/lora-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/lora/lora-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lora/lora-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/lora/lora-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design system
   -------------------------------------------------------------------------- */

:root {
  --base-rouge-color: #710000;
  --base-rouge-fonce-color: #400101;
  --base-noir-color: #000000;
  --base-beige-color: #fff4e3;
  --base-white-color: #ffffff;

  --global-font-family: "Lora", serif;

  /* Uniquement pour .header-title et .page-hero__title : la calligraphie est
     illisible en dessous d'une quarantaine de pixels. Partout ailleurs — titres
     de section, logo, pied de page — on garde Lora. */
  --global-font-family-titre: "rostock_kaligraph", "Lora", serif;

  --font-size-h1: 48px;
  --font-size-h2: 30px;
  --font-size-h3: 20px;
  --font-size-normal: 1.2rem;
  --font-size-button: 17px;
  --font-size-h1-mobile: 36px;
  --font-size-h2-mobile: 24px;
  --font-size-h3-mobile: 18px;
  --font-size-normal-mobile: 14px;
  --font-size-button-mobile: 15px;

  --border-radius-md: 10px;
  --border-radius-lg: 15px;
  --border-radius-xl: 20px;
  --border-radius-xxl: 30px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(113, 0, 0, 0.1);

  --transition-base: all 0.3s ease;
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);

  --max-width-lg: 1200px;
  --max-width-xl: 1400px;
  --card-gradient: linear-gradient(145deg, var(--base-beige-color), #ffffff);

  /* Hauteur de la navbar fixe : sert aussi de décalage au body et aux ancres,
     pour que la barre et le hero restent jointifs à toutes les largeurs.
     72px (et non 60) pour que le logo sur deux lignes reste lisible. */
  --navbar-height: 72px;

  /* Couleurs des trois catégories de fournisseurs */
  --cat-producer: #6d8a5a;
  --cat-wholesaler: #b8862b;
  --cat-lab: var(--base-rouge-color);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
  font-family: var(--global-font-family);
  font-size: var(--font-size-normal);
  line-height: 1.7;
  color: var(--base-noir-color);
  background-color: var(--base-beige-color);
  margin-top: var(--navbar-height);
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--base-rouge-color);
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background-color: var(--base-rouge-fonce-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0 1rem;
  font-family: var(--global-font-family);
  border-bottom: 2px solid var(--base-noir-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width-lg);
  margin: 0 auto;
}

/* La mandragore seule (feuilles vertes, racine claire) ressort sur le bordeaux :
   pas besoin de fond. Le nom est repris en texte crème à côté. */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.logo__name {
  display: flex;
  flex-direction: column;
  font-family: var(--global-font-family);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--base-beige-color);
  transition: color 0.3s ease;
}

.logo:hover .logo__name {
  color: var(--base-white-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--base-beige-color);
  font-weight: 700;
  transition: 0.3s;
  font-size: 1rem;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover {
  color: var(--base-white-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--base-white-color);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Page courante */
.nav-links a.is-active::after {
  width: 100%;
  background-color: var(--base-beige-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--base-white-color);
  margin: 4px 0;
  transition: 0.3s;
}

/* Le menu compte 7 entrées : il lui faut ~1000px pour tenir à côté du logo.
   En dessous, on bascule sur le menu déroulant. */
@media (max-width: 1150px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--base-rouge-fonce-color);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.header-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.header-background {
  position: absolute;
  inset: 0;
  background-color: var(--base-rouge-fonce-color);
  background-size: cover;
  /* cadrage haut : garde l'enseigne « Herboristerie » visible */
  background-position: center 35%;
  z-index: 0;
}

/* Voile rouge : assez dense à gauche pour que le texte blanc reste lisible,
   plus léger à droite pour laisser voir la devanture. */
.header-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(64, 1, 1, 0.93) 0%,
    rgba(64, 1, 1, 0.82) 38%,
    rgba(113, 0, 0, 0.55) 70%,
    rgba(113, 0, 0, 0.4) 100%
  );
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-left {
  flex: 1 1 60%;
}

.header-right {
  flex: 0 0 auto;
  text-align: center;
}

/* Sans logo, la colonne ne doit pas consommer le gap du hero */
.header-right:empty {
  display: none;
}

.header-logo {
  max-height: 220px;
  width: auto;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
}

.header-eyebrow {
  display: inline-block;
  color: var(--base-beige-color);
  border: 1px solid rgba(255, 244, 227, 0.5);
  border-radius: var(--border-radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.header-title {
  font-family: var(--global-font-family-titre);
  font-size: 64px;
  color: var(--base-white-color);
  letter-spacing: -1.28px;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.header-subtitle {
  color: var(--base-beige-color);
  font-size: 1.4rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.header-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--global-font-family);
  font-size: var(--font-size-button);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: var(--border-radius-full);
  border: 2px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--base-beige-color);
  color: var(--base-rouge-color);
  border-color: var(--base-beige-color);
}

.btn-primary:hover {
  background-color: var(--base-white-color);
  border-color: var(--base-white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--base-beige-color);
  border-color: var(--base-beige-color);
}

.btn-outline:hover {
  background-color: var(--base-beige-color);
  color: var(--base-rouge-color);
  transform: translateY(-2px);
}

.btn-rouge {
  background-color: var(--base-rouge-color);
  color: var(--base-beige-color);
  border-color: var(--base-rouge-color);
}

.btn-rouge:hover {
  background-color: var(--base-rouge-fonce-color);
  border-color: var(--base-rouge-fonce-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Bouton secondaire, sur fond clair */
.btn-outline-rouge {
  background-color: transparent;
  color: var(--base-rouge-color);
  border-color: var(--base-rouge-color);
}

.btn-outline-rouge:hover {
  background-color: var(--base-rouge-color);
  color: var(--base-beige-color);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6 bis. Hero des pages intérieures
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 3.5rem 1.5rem;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--base-rouge-fonce-color);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(64, 1, 1, 0.94) 0%,
    rgba(64, 1, 1, 0.85) 45%,
    rgba(113, 0, 0, 0.6) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  width: 100%;
}

.page-hero__eyebrow {
  display: inline-block;
  color: var(--base-beige-color);
  border: 1px solid rgba(255, 244, 227, 0.5);
  border-radius: var(--border-radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.page-hero__title {
  font-family: var(--global-font-family-titre);
  font-size: 52px;
  color: var(--base-white-color);
  letter-spacing: -1px;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.page-hero__subtitle {
  color: var(--base-beige-color);
  font-size: 1.25rem;
  max-width: 62ch;
}

/* Hero sobre, sans photo : pages légales */
.page-hero--plain {
  min-height: 220px;
}

.page-hero--plain .page-hero__bg::after {
  background: none;
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 1.5rem;
}

.section--white {
  background-color: var(--base-white-color);
}

.section__inner {
  max-width: var(--max-width-lg);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--global-font-family);
  font-size: var(--font-size-h2);
  color: var(--base-rouge-color);
  letter-spacing: -0.6px;
  margin-bottom: 0.8rem;
}

.section__subtitle {
  max-width: 60ch;
  margin: 0 auto;
}

.divider {
  width: 90px;
  height: 2px;
  background-color: var(--base-rouge-color);
  margin: 1rem auto 0;
  opacity: 0.4;
}

/* Surtitre aligné à gauche, dans les blocs de contenu */
.eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--base-rouge-color);
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.section__header .eyebrow {
  text-align: center;
}

/* Colonne de texte long, largeur de lecture confortable */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p + p,
.prose p + ul {
  margin-top: 1rem;
}

.prose .section__title {
  margin-bottom: 1.2rem;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   7 quater. Page de contact
   -------------------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}

.contact__aside {
  flex: 1 1 320px;
}

.contact__form {
  flex: 1 1 460px;
  background-color: var(--base-white-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.contact .section__title {
  margin-bottom: 1.5rem;
}

.champ {
  margin-bottom: 1.25rem;
}

.champ-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.champ-groupe .champ {
  flex: 1 1 200px;
}

.champ label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--base-rouge-color);
  margin-bottom: 0.35rem;
}

.requis {
  color: var(--base-rouge-color);
}

.facultatif {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9em;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--global-font-family);
  font-size: 1rem;
  color: var(--base-noir-color);
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-md);
  padding: 0.7rem 0.9rem;
  transition: var(--transition-base);
}

.champ textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--base-rouge-color);
  box-shadow: 0 0 0 3px var(--shadow-color);
}

.champ [aria-invalid="true"] {
  border-color: var(--base-rouge-color);
  background-color: rgba(113, 0, 0, 0.04);
}

.champ__erreur {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--base-rouge-color);
}

.champ__aide {
  margin: -0.15rem 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
}

.champ__mention {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

/* Piège à robots : masqué sans display:none, que certains robots détectent */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages de retour ------------------------------------------------------ */

.alerte {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
}

.alerte i {
  font-size: 1.4rem;
  margin-top: 0.15rem;
}

.alerte h2 {
  font-family: var(--global-font-family);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.alerte p {
  font-size: 1rem;
  margin: 0;
}

.alerte--succes {
  background-color: rgba(109, 138, 90, 0.12);
  border: 1px solid var(--cat-producer);
}

.alerte--succes i,
.alerte--succes h2 {
  color: var(--cat-producer);
}

.alerte--erreur {
  background-color: rgba(113, 0, 0, 0.06);
  border: 1px solid var(--base-rouge-color);
}

.alerte--erreur i {
  color: var(--base-rouge-color);
}

/* Pages d'erreur ---------------------------------------------------------- */

.erreur {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.erreur__code {
  font-family: var(--global-font-family-titre);
  font-size: 110px;
  line-height: 1;
  color: var(--base-rouge-color);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.erreur__titre {
  font-family: var(--global-font-family);
  font-size: var(--font-size-h2);
  color: var(--base-rouge-color);
  margin-bottom: 1rem;
}

.erreur__texte {
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.erreur__liens {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--shadow-color);
}

.erreur__liens a {
  color: var(--base-rouge-color);
  text-decoration: none;
  border-bottom: 1px solid var(--shadow-color);
  transition: var(--transition-base);
}

.erreur__liens a:hover {
  border-color: var(--base-rouge-color);
}

@media (max-width: 768px) {
  .erreur__code {
    font-size: 76px;
  }

  .erreur__liens {
    flex-direction: column;
    align-items: center;
  }
}

/* Pages légales ----------------------------------------------------------- */

/* Les h2 se succèdent sans section intermédiaire : il leur faut de l'air */
.prose h2 + p,
.prose h2 + dl {
  margin-top: 0;
}

.prose p + h2,
.prose dl + h2 {
  margin-top: 2.5rem;
}

.legal-subtitle {
  font-family: var(--global-font-family);
  font-size: 1.15rem;
  color: var(--base-rouge-color);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-list {
  margin-bottom: 0;
}

.prose dl + p,
.prose p + .legal-subtitle {
  margin-top: 1.5rem;
}

.legal-list dt {
  font-weight: 700;
  color: var(--base-rouge-color);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 1.2rem;
}

.legal-list dt:first-child {
  margin-top: 0;
}

.legal-list dd {
  margin-left: 0;
  padding-top: 0.2rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* Présentation ------------------------------------------------------------ */

.split {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Deuxième bloc : photo à droite, pour alterner avec le premier.
   En mobile les colonnes s'empilent dans l'ordre du HTML (photo puis texte). */
.split--reverse {
  flex-direction: row-reverse;
}

.split + .split {
  margin-top: 4rem;
}

.split__media,
.split__text {
  flex: 1 1 340px;
}

/* Photo paysage 1200x800 : la colonne ne dépasse jamais cette largeur,
   donc aucun agrandissement. */
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 24px var(--shadow-color);
}

/* Illustration détourée (la mandragore) : ni cadre ni ombre */
.split__media--narrow {
  flex: 0 1 260px;
  text-align: center;
}

.split__media--narrow img {
  max-width: 200px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

.split__text p + p {
  margin-top: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1.5rem;
}

.chip {
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  color: var(--base-rouge-color);
  border-radius: var(--border-radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
}

.signature {
  font-family: var(--global-font-family);
  font-size: 1.8rem;
  color: var(--base-rouge-color);
  margin-top: 1.5rem;
}

/* Cartes ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Variante pour un nombre d'éléments qui ne remplit pas la grille (5, 7…) :
   la dernière ligne se centre au lieu de laisser un trou à droite. */
.cards--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cards--centered .card {
  flex: 0 1 330px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 1.75rem 2rem;
  text-align: center;
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-color);
  border-color: rgba(113, 0, 0, 0.25);
}

/* Icône dans une pastille claire, pour donner un point d'accroche à la carte */
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  background-color: var(--base-white-color);
  border: 1px solid var(--shadow-color);
  margin-bottom: 1.25rem;
}

.card__icon i {
  font-size: 1.6rem;
  color: var(--base-rouge-color);
}

.card h3 {
  font-family: var(--global-font-family);
  font-size: var(--font-size-h3);
  color: var(--base-rouge-color);
  margin-bottom: 0.7rem;
}

.card p {
  font-size: 1rem;
}

/* Étendue du catalogue ---------------------------------------------------- */

.categories {
  margin-top: 3.5rem;
  text-align: center;
}

.categories__title {
  font-family: var(--global-font-family);
  font-size: 1.4rem;
  color: var(--base-rouge-color);
  margin-bottom: 1.5rem;
}

.categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.categories__list li {
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-full);
  padding: 0.45rem 1.1rem;
  font-size: 1rem;
  color: var(--base-noir-color);
  transition: var(--transition-base);
}

.categories__list li:hover {
  border-color: var(--base-rouge-color);
  color: var(--base-rouge-color);
}

/* Engagements ------------------------------------------------------------- */

.engagements {
  list-style: none;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.engagements li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 0.9rem;
}

.engagements li::before {
  content: "\f06c"; /* leaf */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.9rem;
  color: var(--base-rouge-color);
  opacity: 0.7;
}

.engagements--compact {
  margin-bottom: 0;
}

.engagements--compact li {
  padding-bottom: 0.5rem;
}

/* Logos des réseaux ------------------------------------------------------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
  list-style: none;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--shadow-color);
}

.logos img {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: var(--transition-base);
}

.logos img:hover {
  filter: none;
  opacity: 1;
}

/* Mention réglementaire --------------------------------------------------- */

.section__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--shadow-color);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.65);
  text-align: left;
}

.section__note i {
  color: var(--base-rouge-color);
  margin-top: 0.3rem;
  font-style: normal;
}

.section__note--center {
  justify-content: center;
  text-align: center;
  border-top: none;
  padding-top: 0;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   7 bis. Ateliers
   -------------------------------------------------------------------------- */

.workshop {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 1.75rem;
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.workshop:hover {
  border-color: rgba(113, 0, 0, 0.25);
  box-shadow: 0 12px 28px var(--shadow-color);
}

.workshop__date {
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  background-color: var(--base-rouge-color);
  color: var(--base-beige-color);
  border-radius: var(--border-radius-md);
}

.workshop__day {
  font-family: var(--global-font-family);
  font-size: 2rem;
  line-height: 1;
}

.workshop__month {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.workshop__title {
  font-family: var(--global-font-family);
  font-size: var(--font-size-h3);
  color: var(--base-rouge-color);
  margin-bottom: 0.75rem;
}

.workshop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.workshop__meta i {
  color: var(--base-rouge-color);
  margin-right: 0.4rem;
}

.workshop__body p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

/* État vide : aucune date programmée */
.empty-state {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--base-beige-color);
  border: 1px dashed rgba(113, 0, 0, 0.3);
  border-radius: var(--border-radius-lg);
}

.empty-state i {
  font-size: 2.4rem;
  color: var(--base-rouge-color);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}

.empty-state h3 {
  font-family: var(--global-font-family);
  font-size: var(--font-size-h3);
  color: var(--base-rouge-color);
  margin-bottom: 0.7rem;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

/* Bandeau d'appel sans photo de fond */
.callout--plain {
  background-image: none;
}

/* Renvoi vers une autre page, en fin de section --------------------------- */

.crossref {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-left: 4px solid var(--base-rouge-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.crossref:hover {
  box-shadow: 0 10px 22px var(--shadow-color);
}

.crossref__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: var(--border-radius-full);
  background-color: var(--base-white-color);
  border: 1px solid var(--shadow-color);
  font-size: 1.4rem;
  color: var(--base-rouge-color);
}

.crossref__body {
  flex: 1;
}

.crossref__title {
  font-family: var(--global-font-family);
  font-size: 1.25rem;
  color: var(--base-rouge-color);
  margin-bottom: 0.4rem;
}

.crossref__body p {
  font-size: 1rem;
  margin: 0;
}

.crossref .btn {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   7 ter. Fournisseurs
   -------------------------------------------------------------------------- */

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  flex: 0 0 auto;
}

.dot--producer {
  background-color: var(--cat-producer);
}

.dot--wholesaler {
  background-color: var(--cat-wholesaler);
}

.dot--lab {
  background-color: var(--cat-lab);
}

/* Carte de France ---------------------------------------------------------- */

.map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.map__svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.map__france {
  fill: rgba(109, 138, 90, 0.12);
  stroke: var(--cat-producer);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.map__pin {
  stroke: var(--base-white-color);
  stroke-width: 1.5;
}

.pin--producer {
  fill: var(--cat-producer);
}

.pin--wholesaler {
  fill: var(--cat-wholesaler);
}

.pin--lab {
  fill: var(--cat-lab);
}

.pin--shop {
  fill: var(--base-rouge-color);
  stroke-width: 2.5;
}

.map__legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.map__legend li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
}

.dot--shop {
  background-color: var(--base-rouge-color);
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 3px rgba(113, 0, 0, 0.15);
}

/* Accordéons par famille de produits (details/summary natifs, sans JS) */
.accordions {
  max-width: 820px;
  margin: 0 auto;
}

.accordion {
  background-color: var(--base-beige-color);
  border: 1px solid var(--shadow-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  transition: var(--transition-base);
}

/* masque le triangle par défaut */
.accordion__head::-webkit-details-marker {
  display: none;
}

.accordion__head:hover {
  background-color: rgba(113, 0, 0, 0.04);
}

.accordion__title {
  flex: 1;
  font-family: var(--global-font-family);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--base-rouge-color);
}

.accordion__chevron {
  color: var(--base-rouge-color);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.accordion[open] .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--shadow-color);
  padding-top: 1.25rem;
}

.accordion__intro {
  font-size: 1rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 1rem;
}

.supplier-links {
  list-style: none;
}

.supplier-links li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--shadow-color);
  font-size: 1.05rem;
}

.supplier-links li:last-child {
  border-bottom: none;
}

/* Commune - département, à la suite du nom */
.supplier-loc {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

.supplier-todo {
  font-style: italic;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1rem;
}


/* Infos pratiques --------------------------------------------------------- */

.infos {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.infos__list {
  flex: 1 1 320px;
  list-style: none;
}

.infos__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--shadow-color);
}

.infos__item:last-child {
  border-bottom: none;
}

.infos__item i {
  color: var(--base-rouge-color);
  font-size: 1.2rem;
  width: 1.6rem;
  text-align: center;
  margin-top: 0.35rem;
}

.infos__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--base-rouge-color);
  font-weight: 700;
}

.infos__value {
  display: block;
  font-size: 1.05rem;
}

.infos__value a {
  color: var(--base-noir-color);
  text-decoration: none;
  border-bottom: 1px solid var(--shadow-color);
  transition: var(--transition-base);
}

.infos__value a:hover {
  color: var(--base-rouge-color);
  border-color: var(--base-rouge-color);
}

.infos__map-wrap {
  flex: 1 1 380px;
}

.infos__map {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
}

.infos__map-links {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  text-align: right;
}

.infos__map-links a {
  color: var(--base-rouge-color);
  text-decoration: none;
  border-bottom: 1px solid var(--shadow-color);
  transition: var(--transition-base);
}

.infos__map-links a:hover {
  border-color: var(--base-rouge-color);
}

.infos__map-links span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.infos__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* Bandeau boutique en ligne ----------------------------------------------- */

.callout {
  background-color: var(--base-rouge-color);
  background-image: linear-gradient(
      rgba(64, 1, 1, 0.9),
      rgba(113, 0, 0, 0.88)
    ),
    url("../img/interieur_2.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--base-beige-color);
  text-align: center;
}

.callout .section__title {
  color: var(--base-white-color);
  font-size: 2.2rem;
}

.callout p {
  max-width: 58ch;
  margin: 0 auto 2rem;
}

.callout .divider {
  background-color: var(--base-beige-color);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

footer {
  background-color: var(--base-beige-color);
  color: var(--base-rouge-color);
  padding: 3rem 1rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--base-noir-color);
}

.kfooter-top {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--base-noir-color);
}

.kfooter-logo {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.kfooter-logo img {
  max-height: 110px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto 0.8rem;
}

.kfooter-contact,
.kfooter-links,
.kfooter-social {
  flex: 1 1 250px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.kfooter-contact h3,
.kfooter-links h3,
.kfooter-social h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: var(--global-font-family);
  color: var(--base-noir-color);
  font-weight: 700;
}

.kfooter-links ul {
  list-style: none;
}

.kfooter-links ul li {
  margin-bottom: 0.5rem;
}

.kfooter-contact address {
  color: var(--base-rouge-color);
  line-height: 1.8;
  font-style: normal;
}

.kfooter-contact a,
.kfooter-links ul li a {
  color: var(--base-rouge-color);
  text-decoration: none;
  background-image: linear-gradient(
    var(--base-noir-color),
    var(--base-noir-color)
  );
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s, color 0.3s;
}

.kfooter-contact a:hover,
.kfooter-links ul li a:hover {
  color: var(--base-noir-color);
  background-size: 100% 2px;
}

.ksocial-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.ksocial-icons a {
  color: var(--base-rouge-color);
  font-size: 1.8rem;
  transition: color 0.3s;
}

.ksocial-icons a:hover {
  color: var(--base-noir-color);
}

.kfooter-bottom {
  padding-top: 1rem;
  text-align: center;
}

.kfooter-bottom p {
  font-size: 0.8rem;
  color: var(--base-noir-color);
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .header-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .header-cta-group {
    justify-content: center;
  }

  .header-logo {
    max-height: 150px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: var(--font-size-normal-mobile);
  }

  .header-title {
    font-size: var(--font-size-h1-mobile);
    letter-spacing: -0.72px;
  }

  .page-hero {
    min-height: 240px;
    padding: 2.5rem 1.2rem;
  }

  .page-hero__title {
    font-size: 32px;
    letter-spacing: -0.6px;
  }

  .page-hero__subtitle {
    font-size: 1.05rem;
  }

  .logos {
    gap: 2rem;
  }

  .workshop {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .workshop__date {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.5rem 1rem;
  }

  .workshop__day {
    font-size: 1.5rem;
  }

  .empty-state {
    padding: 2.5rem 1.5rem;
  }

  .crossref {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .contact {
    gap: 2.5rem;
  }

  .logos img {
    max-height: 60px;
    max-width: 120px;
  }

  .header-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .section__title {
    font-size: var(--font-size-h2-mobile);
  }

  .card h3 {
    font-size: var(--font-size-h3-mobile);
  }

  .btn {
    font-size: var(--font-size-button-mobile);
  }

  .split,
  .infos {
    gap: 2rem;
  }

  /* iOS gère mal background-attachment: fixed */
  .callout {
    background-attachment: scroll;
  }


  .kfooter-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo img {
    height: 46px;
  }

  .logo__name {
    font-size: 1rem;
  }
}
