/* ============================================================
   Cookbook Arhon — compléments de style (thème Furo)
   Fichier : _static/arhon-cookbook.css

   Les couleurs de marque et les encadrés sont pilotés par les
   variables Furo déclarées dans conf.py (light_css_variables /
   dark_css_variables). Ce fichier ne traite que ce que les
   variables ne couvrent pas.
   ============================================================ */

:root {
  --arhon-camping:  #AD79B5;
  --arhon-bnb:      #FBB275;
  --arhon-maison:   #6BC4A3;
  --arhon-hotel:    #F37573;
  --arhon-gestion:  #5BC0C7;

  --arhon-menthe:       #68C4A3;
  --arhon-menthe-fonce: #4FA98A;
}

/* --- Titres ----------------------------------------------------------- */

article h1 {
  border-bottom: 4px solid var(--arhon-menthe);
  padding-bottom: .3em;
}

article h2 { margin-top: 1.8em; }

/* --- Encadrés : arrondi et découpe ------------------------------------ */

article .admonition {
  border-radius: 6px;
  overflow: hidden;
}

/* --- Tableaux --------------------------------------------------------- */

article table.docutils thead th {
  border-bottom: 2px solid var(--arhon-menthe);
}

/* --- Captures d'écran -------------------------------------------------- */

article img {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

/* --- Couleur de segment ------------------------------------------------
   À poser sur une page avec la directive MyST :
   ```{rst-class} segment-hotel
   ```
   ---------------------------------------------------------------------- */

.segment-camping h1 { border-bottom-color: var(--arhon-camping); }
.segment-bnb     h1 { border-bottom-color: var(--arhon-bnb); }
.segment-maison  h1 { border-bottom-color: var(--arhon-maison); }
.segment-hotel   h1 { border-bottom-color: var(--arhon-hotel); }
.segment-gestion h1 { border-bottom-color: var(--arhon-gestion); }

/* --- Impression / export PDF ------------------------------------------- */

@media print {
  .sidebar-drawer,
  .toc-drawer,
  .mobile-header { display: none; }

  .main { display: block; }

  article .admonition { break-inside: avoid; }
  article img { break-inside: avoid; }
}/* Blocs colorés charte Arhon (admonitions MyST :class:) — à ajouter à _static/arhon-cookbook.css */

.admonition.arhon-menthe {
  --color-admonition-title: rgb(107,196,163);
  --color-admonition-title-background: rgba(107,196,163, 0.2);
  background: rgba(107,196,163, 0.1);
  border-left-color: rgb(107,196,163);
}

.admonition.arhon-orange {
  --color-admonition-title: rgb(251,178,117);
  --color-admonition-title-background: rgba(251,178,117, 0.2);
  background: rgba(251,178,117, 0.1);
  border-left-color: rgb(251,178,117);
}

.admonition.arhon-corail {
  --color-admonition-title: rgb(243,117,115);
  --color-admonition-title-background: rgba(243,117,115, 0.2);
  background: rgba(243,117,115, 0.1);
  border-left-color: rgb(243,117,115);
}

.admonition.arhon-turquoise {
  --color-admonition-title: rgb(91,192,199);
  --color-admonition-title-background: rgba(91,192,199, 0.2);
  background: rgba(91,192,199, 0.1);
  border-left-color: rgb(91,192,199);
}

.admonition.arhon-violet {
  --color-admonition-title: rgb(173,121,181);
  --color-admonition-title-background: rgba(173,121,181, 0.2);
  background: rgba(173,121,181, 0.1);
  border-left-color: rgb(173,121,181);
}

/* --- Lien permanent des titres (icone lien, au survol) ------------------ */

a.headerlink { color: var(--color-brand-primary); }
a.headerlink:hover { color: var(--arhon-menthe); }

a.headerlink .arhon-permalink {
  width: .5em;
  height: .5em;
  vertical-align: middle;
}

/* Pied de page : masque la mention « Made with … Furo », conserve le copyright */
.bottom-of-page .left-details { font-size: 0; }
.bottom-of-page .left-details .copyright,
.bottom-of-page .left-details .last-updated { font-size: 0.875rem; }

/* Liens déjà visités : même vert que les autres liens (pas le violet Furo) */
body { --color-brand-visited: var(--color-brand-content); }
