
/* --- Fond global --- */
html, body { background:#E8E1D5 !important; color:#2B2B2B; }
.site, .site-grid, .container-component, .grid-child { background: transparent !important; }

/* --- Header : écraser toutes les variantes Cassiopeia --- */
header.header, .container-header, .container-header.bg-primary, .bg-primary {
  background:hsl(29, 73%, 53%) !important;   /* remplace par #f8b86e si tu veux orange clair */
  background-image:none !important; border:none !important;
}
header.header::before, header.header::after,
.container-header::before, .container-header::after { content:none !important; }

/* Liens du menu + titre */
.container-header .navbar-brand, .container-header .navbar-brand a,
.container-header .mod-menu a { color:#fff !important; text-transform:uppercase; font-weight:600; }
.container-header .mod-menu a:hover { color:#1EA7A3 !important; }

/* --- Article : image décollée --- */
figure.item-image img, .com-content-article__body img,
img.float-start, img.pull-left {
  float:left !important; margin:0 20px 14px 0 !important;
  max-width:46%; height:auto; border-radius:6px;
}
/* éviter les chevauchements */
.com-content-article::after { content:""; display:block; clear:both; }

/* --- Cartes/modules doux --- */
.moduletable { background:#fff6e5; border-radius:10px; padding:14px; box-shadow:0 2px 6px rgba(0,0,0,.08); }

/* --- Bouton Connexion --- */
.mod-login .btn, .mod-login .btn-primary { background:#2B2B2B !important; border-color:#2B2B2B !important; color:#fff !important; }
.mod-login .btn:hover { background:#1EA7A3 !important; border-color:#1EA7A3 !important; }

/* --- Espaces globaux */
.container-grid{max-width:1200px;margin:0 auto;padding:20px;}

/* --- Titres & paragraphes */
h1{margin:0 0 16px} · h2{margin:24px 0 12px} · p{margin:0 0 12px}

/* --- Menu actif */
.mod-menu .active > a{border-bottom:2px solid var(--couleur-accent,#1EA7A3);}

/* --- Breadcrumbs (plus discrets) */
.breadcrumb{background:#efe6d5;border-radius:6px;padding:6px 10px}

/* --- Image d'article
figure.item-image img{float:left;margin:0 20px 14px 0;max-width:46%;border-radius:6px}

/* --- Sidebar “Connexion” (si tu gardes) */
.sidebar-right .moduletable{background:#f4ede1;border-radius:10px;padding:14px}

/* --- Bouton */
.mod-login .btn{background:#2B2B2B;border-color:#2B2B2B;color:#fff}
.mod-login .btn:hover{background:#1EA7A3;border-color:#1EA7A3}

/* --- Mobile (petit ajustement) */
@media (max-width: 768px){
  figure.item-image img{float:none;display:block;max-width:100%;margin:0 0 12px}
  .container-header .mod-menu a{padding:8px 10px}
}

/* Entête un peu plus “fini” */
 .container-header { padding: 6px 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
 .container-header .mod-menu a { padding: 10px 14px; letter-spacing: .3px; }
 .container-header .mod-menu .current a,
 .container-header .mod-menu .active > a { 
  border-bottom: 2px solid #fff; 
}

/* Bandeau “Vous êtes ici” plus discret */
.breadcrumb { background: #e9dfcf; border-radius: 6px; padding: 6px 10px; }

/* Carte article, un peu d’air */
.com-content-article { background:#f7f0e3; border-radius:10px; padding:18px; }

/* Sidebar connexion assortie */
.sidebar-right .moduletable { background:#f0e6d6; border-radius:10px; padding:14px; }
.mod-login .btn { background:#222; border-color:#222; color:#fff; }
.mod-login .btn:hover { background:#1EA7A3; border-color:#1EA7A3; }

/* Mobile: éviter que l’image flotte */
@media (max-width: 768px){
  figure.item-image img{ float:none; display:block; max-width:100%; margin:0 0 12px; }
}
/* Réduction de la boîte Connexion */
.sidebar-right .moduletable {
  max-width: 150px;   /* largeur max */
  margin-left: auto;
  margin-right: auto;
  background:#f0e6d6;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9em;   /* texte un peu réduit */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Bouton connexion plus fin */
.mod-login .btn {
  padding: 6px 10px;
  font-size: 0.9em;
  background:#222;
  border:none;
}
.mod-login .btn:hover {
  background:#1EA7A3;
  color:#fff;
}
/* Corps de texte des articles */
.com-content-article,
.com-content-article p {
  font-size: 1.1rem;   /* valeur par défaut ~1rem = 16px */
  line-height: 1.6;    /* augmente l’espacement entre les lignes */
  color: #2b2b2b;      /* anthracite lisible */
}
.container-banner {
    display: none !important;
}
/* .page-header { display: none; }  <-- surtout pas */

}
.container-top-a {
    display: none !important;
}
/* Coupe toutes les bandes “au-dessus du fil d’Ariane” quand elles sont vides */
.container-below-top,
.container-top-b,
.container-banner,
.container-topbar {
  display: none !important;
}

/* Évite l’espace ajouté par l’en-tête */
.container-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Remonte le fil d’Ariane s’il avait une marge haut */
.container-breadcrumbs {
  margin-top: 0 !important;
}
footer,
footer .grid-child,
.container-footer {
  background: #e07b28 !important;  /* même orange que ton header */
  color: #fff !important;          /* texte en blanc */
}

footer a {
  color: #fff !important;          /* liens en blanc */
  text-decoration: underline;      /* lisible sur fond orange */
}
      /* coins légèrement arrondis */
  padding: 6px 10px;          /* petit effet de “bouton” */
}

/* Onglet actif (page courante) */
.container-header .mod-menu .current a {
  background-color: #b85c19;  /* encore plus foncé */
  color: #fff !important;
  border-radius: 4px;
}
.container-header .mod-menu a {
  position: relative;
  display: inline-block;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
}

/* Le soulignement animé */
.container-header .mod-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

/* Au survol, le trait s’allonge */
.container-header .mod-menu a:hover::after {
  width: 100%;
}
/* Grille responsive pour la liste des sous-catégories */
.subcategories .categories-list,
.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}

/* Style des liens de sous-catégories */
.subcategories .category-title a {
  text-decoration: none;
  font-weight: 600;
}

/* Le menu principal reste normal */
.mod-menu.nav.menu > .nav-item {
    position: relative;
}

/* Le parent du sous-menu */
#mod-menu .item-200.deeper.parent {
    position: relative !important;
}

/* Le sous-menu enfant exact */
#mod-menu1-submenu3 {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: calc(100% + 16px) !important;

    /* neutralisation des placements logiques du template */
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    transform: none !important;

    min-width: 260px !important;
    width: 260px !important;
    margin: 0 !important;

    background: #f3f3f3 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
    z-index: 99999 !important;
}

/* Sur desktop, masquer le bouton de toggle Joomla pour cet item */
@media (min-width: 768px) {
    #mod-menu .item-200 > .mod-menu__toggle-sub {
        display: none !important;
    }
}

/* Un peu d’espacement pour éviter que ça colle trop */
.metismenu.mod-menu .nav-item .nav-child .nav-item {
    margin: 3px 0;
}
.navbar .dropdown-menu {
  background: #fff; /* fond blanc visible */
}

.navbar .dropdown-menu a {
  color: #333 !important; /* texte noir lisible */
}
/* --- Dropdown VOYAGES : affichage clair et ouverture au survol --- */

/* Important : éviter que le menu soit coupé */
.container-header,
.container-nav {
  overflow: visible !important;
}

/* Ouvre le sous-menu au survol (desktop) */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0 !important;
  }
}

/* Style visuel du sous-menu */
.navbar .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.12) !important;
  padding: 6px 0 !important;
  z-index: 3000 !important;
}

/* Liens du sous-menu */
.navbar .dropdown-menu a {
  color: #222 !important;
  display: block !important;
  white-space: nowrap !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
}

/* Survol des liens */
.navbar .dropdown-menu a:hover {
  background: #f4a300 !important; /* orange bandeau */
  color: #fff !important;
}


/* Met la barre nav en grille : [espace] [menu centré] [zone droite] */
.container-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
/* Centre le DJ-MegaMenu */
.container-nav .dj-megamenu {
  justify-content: center;
}

/* Colle la zone "search" (où tu as Connexion) à droite */
.container-search {
  justify-self: end;
}

/* Évite les flottants qui cassent le centrage */
.dj-megamenu li { float: none; }
/* Centrer DJ-MegaMenu */
.dj-megamenu {
    display: flex;
    justify-content: center;   /* Centre horizontalement */
}

/* Évite que le module connexion casse l'alignement */
.container-nav {
    display: flex;
    justify-content: space-between; /* Menu au centre / Connexion à droite */
    align-items: center;
}
/* Barre de navigation du header */
.container-nav {
  display: flex;
  align-items: center;          /* aligne verticalement */
}

/* Le module du menu prend l'espace disponible */
.container-nav .w-100 {
  flex: 1 1 auto;
}

/* Centre le contenu du DJ-MegaMenu */
.container-nav .dj-megamenu {
  display: flex;
  justify-content: center;      /* CENTRAGE horizontal du menu */
}

/* La zone où tu as "Connexion" reste collée à droite */
.container-search {
  margin-left: auto;
  justify-self: end;            /* au cas où */
  text-align: right;
}

/* Évite que des flottants perturbent le centrage */
.dj-megamenu li { 
  float: none;
}
/* 1) La barre de nav du header en flex pour gérer les alignements */
.container-nav {
  display: flex;
  align-items: center;
}

/* 2) Le module DJ-MegaMenu prend l'espace disponible */
.container-nav .dj-center {
  flex: 1 1 auto;
}

/* 3) Centrage des items DJ-MegaMenu */
.container-nav .dj-center .dj-megamenu {
  display: flex;
  justify-content: center; /* <-- centré */
}

/* 4) La zone Connexion / Recherche reste à droite */
.container-search,
.container-login {
  margin-left: auto;
}

/* (Sécurité) éviter des flottants qui cassent le centrage */
.dj-megamenu li {
  float: none;
}
/* Exemple si le wrapper est #module-113 */
.container-nav #module-113 {
  flex: 1 1 auto;
}
.container-nav #module-113 .dj-megamenu {
  display: flex;
  justify-content: center;
}
/* ==== ARTICLES ==== */
.com-content .page-header h1 {
  font-size: 2rem;
  color: #0f4c81;
  font-weight: 700;
  margin: 0 0 .75rem;
}
.com-content article h2 {
  font-size: 1.6rem;
  color: #155d94;
  margin: 1.1rem 0 .55rem;
}
.com-content article h3 {
  font-size: 1.35rem;
  color: #1a6fb0;
  margin: 1rem 0 .5rem;
}

/* ==== LIENS DANS LES ARTICLES ==== */
.com-content article a {
  color: #1a73e8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(26,115,232,.35);
}
.com-content article a:hover {
  text-decoration: underline;
}
/* Titres d'articles Joomla */
body.com-content .item-page h1,
body.com-content .item-page h2,
body.com-content .item-page h3,
body.com-content .item-page h4 {
  color: #0f4c81 !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  margin: 1rem 0 .6rem 0;
}

/* Hiérarchie de tailles */
body.com-content .item-page h1 { font-size: 2rem !important; }
body.com-content .item-page h2 { font-size: 1.6rem !important; }
body.com-content .item-page h3 { font-size: 1.35rem !important; }
body.com-content .item-page h4 { font-size: 1.15rem !important; }

/* Paragraphes */
body.com-content .item-page p {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: #2b2b2b !important;
}
/* Masquer le titre auto des pages article */
.com-content-article .page-header h1,
.com-content-article__title,
.page-header .page-title {
  display: none !important;
}
/* Menu DJ-MegaMenu LIGHT – version sobre */

/* Style de base des liens */
#dj-megamenu li a,
#dj-megamenu li span {
  background: none !important;    /* supprime le cartouche */
  border: none !important;        /* supprime toute bordure */
  color: #222 !important;         /* couleur du texte normal */
  font-weight: 500;               /* un peu plus lisible */
  padding: 8px 14px;              /* confort de clic */
  text-transform: none;           /* laisse ton texte tel quel */
}

/* Effet au survol */
#dj-megamenu li a:hover,
#dj-megamenu li span:hover {
  color: #c00 !important;         /* texte rouge au survol */
  background: none !important;    /* pas de fond */
  text-decoration: underline;     /* soulignement élégant */
}

/* État actif (page courante) */
#dj-megamenu li.current a,
#dj-megamenu li.current span {
  color: #006699 !important;      /* bleu discret pour montrer la page active */
  font-weight: 600;
}
#dj-megamenu li a:hover {
  text-decoration: underline;
}
/* ===== DJ-MegaMenu LIGHT — rendu 100% texte, sans cartouches ===== */

/* 0) Wrapper : jamais de fond ni d’ombre */
.dj-megamenu-wrapper,
.dj-megamenu-wrap,
[id^="dj-megamenu"] {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 1) LIGNES DE PREMIER NIVEAU — liens */
[id^="dj-megamenu"] > li > a,
.dj-megamenu > li > a,
.dj-megamenu > li > span {
  background: none !important;           /* supprime le cartouche */
  border: none !important;
  color: #222 !important;                 /* couleur de base */
  padding: 8px 14px !important;           /* confort de clic */
  font-weight: 500;
  text-transform: none;
  box-shadow: none !important;
}

/* 2) SURVOL (hover) — seulement le texte change */
[id^="dj-megamenu"] > li:hover > a,
.dj-megamenu > li:hover > a,
.dj-megamenu > li:hover > span {
  background: none !important;
  color: #c00 !important;                 /* à adapter si besoin */
  text-decoration: underline;
}

/* 3) ÉTAT ACTIF/COURANT — pas de fond bleu */
[id^="dj-megamenu"] > li.active > a,
[id^="dj-megamenu"] > li.current > a,
.dj-megamenu > li.active > a,
.dj-megamenu > li.current > a {
  background: none !important;
  color: #006699 !important;              /* marque la page en cours */
  font-weight: 600;
}

/* 4) Éliminer tout reliquat de style sur <li> (fonds, bordures) */
[id^="dj-megamenu"] > li,
.dj-megamenu > li {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 5) (optionnel) SOULIGNEMENT fin au survol via pseudo-élément */
[id^="dj-megamenu"] > li > a {
  position: relative;
}
[id^="dj-megamenu"] > li > a:hover::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 6px;
  height: 1px;
  background: currentColor;               /* même couleur que le texte */
}
.dj-megamenu > li > a,
.dj-megamenu > li > span {
  font-size: 16px !important;   /* au lieu de 14px par défaut */
  line-height: 1.6em !important; /* équilibre vertical */
}
.dj-megamenu-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
}
@media (min-width: 768px) {
  .dj-megamenu-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
  }
}
.item-image img {
    max-width: 250px;   /* limite la largeur */
    height: auto;       /* garde les proportions */
    float: left;        /* optionnel, place l’image à gauche */
    margin: 0 15px 10px 0; /* espace autour */
}
img.img-article {
    max-width: 400px;  /* ajuste selon tes goûts */
    height: auto;
    display: block;
    margin: 10px auto; /* centrée */
}

.com-content-article img {
    max-width: 600px;   /* limite en largeur */
    height: auto;
}
/* Style général des images dans les articles */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* coins arrondis */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 0.5rem;
}

/* Style des légendes (balises <figcaption> ou texte sous l’image) */
.article-content figure {
  display: inline-block;
  text-align: center;
  margin: 1rem auto;
}

.article-content figcaption {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}
/* ======= Bandeau perso (force l’orange, post-MAJ) ======= */
.container-header,
.container-header .navbar {
  background-color: #e67e22 !important; /* remplace par ton orange si besoin */
}

.container-header .navbar a,
.container-header .navbar .nav-link,
.container-header .brand a {
  color: #ffffff !important;             /* texte/menus en blanc */
}

.container-header .navbar a:hover,
.container-header .navbar .nav-link:hover,
.container-header .navbar .active > .nav-link {
  color: #ffe9c7 !important;             /* léger contraste au survol */
}
/* Variables Cassiopeia (Joomla 5) */
:root {
  --cassiopeia-brand: #e67e22 !important;
  --cassiopeia-color-primary: #e67e22 !important;
}

/* Fallback direct au cas où */
body.site .container-header,
body.site header.header,
body.site .container-header .navbar {
  background: #e67e22 !important;
  background-image: none !important;
}

/* Lisibilité des liens */
body.site .container-header .navbar a,
body.site .container-header .brand a {
  color: #fff !important;
}
body.site .container-header .navbar a:hover {
  color: #ffe9c7 !important;
}
/* ==== Styles popup Grittviken ==== */
.gritt-trigger { display:inline-block; cursor:pointer; }

/* overlay caché par défaut (visible quand :target) */
.gritt-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  z-index: 999999;
  padding: 20px;
}

/* quand on cible l'id, on affiche l'overlay */
#grittviken-modal:target { display: flex; }

/* contenu centré */
.gritt-modal-inner {
  width: min(820px, 98%);
  background: linear-gradient(180deg,#fff8f0,#ffe9d0);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  padding: 28px;
  text-align: center;
  position: relative;
}

/* bouton fermer */
.gritt-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 34px;
  color: #8b1f1f;
  text-decoration: none;
  line-height: 1;
}

/* visuel Grittviken */
.gritt-skull {
  font-size: 6.5rem;
  color: #d32f2f;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 6px;
}
.gritt-modal h2 {
  margin: 6px 0 10px;
  font-size: 2.1rem;
  color: #6b0f0f;
  letter-spacing: 1px;
}
.gritt-modal p {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

/* petit effet d'animation */
#grittviken-modal:target .gritt-modal-inner {
  transform: translateY(-6px);
  transition: transform .18s ease-out;
}
.img-bordure {
  border: 3px solid #666;   /* épaisseur + couleur */
  border-radius: 8px;       /* coins arrondis */
  padding: 4px;             /* petit espace interne */
  background-color: #f9f9f9; /* optionnel : fond léger */
}
img[data-sound] {
  position: relative;
}
img[data-sound].playing {
  filter: brightness(1.2);
}
img[data-sound]::after {
  content: "🔊";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
img[data-sound].playing::after {
  opacity: 1;
}
/* --- Effet sonore sur les images avec data-sound --- */
img[data-sound] {
  position: relative;
  transition: filter .2s ease;
}

img[data-sound].playing {
  filter: brightness(1.15);
}

img[data-sound]::after {
  content: "🔊";
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 22px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

img[data-sound].playing::after {
  opacity: 1;
  transform: translateY(0);
}
/* Main (curseur main) dès qu'un élément porte data-sound */
img[data-sound],
[data-sound] {
  cursor: pointer;
}

/* (optionnel) petit effet quand ça joue */
[data-sound].is-playing img,
img[data-sound].is-playing {
  filter: brightness(1.12);
  transition: filter .2s ease;
}
/* ---------- Images sonores (automatique) ---------- */

/* Curseur main et base */
[data-sound], img[data-sound] {
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: filter 0.3s ease;
}

/* Légère mise en évidence quand ça joue */
[data-sound].is-playing,
img[data-sound].is-playing {
  filter: brightness(1.1);
}

/* Légende automatique au survol */
[data-sound]::after {
  content: "🎧 Cliquez pour écouter";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85rem;
  padding: 3px 6px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Affiche le texte au survol */
[data-sound]:hover::after {
  opacity: 1;
}
/* --- Indication visuelle pour les images sonores --- */
img[data-sound] {
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 8px;
}

/* Effet au survol */
img[data-sound]:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7); /* lueur dorée douce */
}

/* Icône casque 🎧 au survol */
img[data-sound]::after {
  content: "🎧";
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 1px 1px 2px black;
}

/* Icône visible au survol */
img[data-sound]:hover::after {
  opacity: 1;
}

/* Quand le son joue (classe ajoutée par le JS) */
img[data-sound].is-playing {
  box-shadow: 0 0 18px rgba(50, 205, 50, 0.8); /* vert pour “lecture” */
  transform: scale(1.03);
}
/* === Boîte vidéo stylisée === */
.video-box {
  background: #faf6ed;
  border: 2px solid #cda75d;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  padding: 12px;
  margin: 20px 0;
  max-width: 720px;
  transition: all 0.3s ease;
}

.video-box:hover {
  transform: scale(1.01);
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

/* Titre */
.video-box h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.2em;
  color: #704214;
  text-align: center;
  margin-bottom: 10px;
}

/* === VIDÉOS === */
.article-content video {
  width: 40%;              /* réduit à 40 % de la largeur du bloc */
  max-width: 420px;        /* limite la taille max */
  border-radius: 8px;      /* coins arrondis */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: block;
  margin: 1em auto;        /* centrage automatique */
}
/* === Cadre vidéo adaptatif === */
.video-box {
  max-width: 480px;          /* réduit le cadre global */
  margin: 1.5em auto;
  padding: 1em;
  border: 2px solid #d2a55b;
  border-radius: 10px;
  background-color: #fff8ef;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}

/* Ajustement pour les vidéos internes */
/* === Vidéos “ZEN” : aucun code à retenir, juste <video> === */
.article-content video {
  display: block;
  margin: 0.8em auto;             /* centrée par défaut */
  max-width: 420px;               /* limite visuelle raisonnable */
  width: auto !important;         /* laisse l’éditeur gérer la taille si tu redimensionnes */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mobile : on garde un rendu propre */
@media (max-width: 768px) {
  .article-content video {
    max-width: 90%;
  }
}

/* ===== Bloc vidéo compact et adaptable ===== */
.video-box {
  position: relative;
  max-width: 360px;            /* taille par défaut du bloc */
  margin: 1.5em auto;
  padding: 1em 0.8em 0.9em;    /* top un peu plus grand à cause du cartouche */
  border: 2px solid #d9b36a;
  border-radius: 12px;
  background: #fff8ef;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}

/* Vidéo interne */
.video-box video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- Cartouche (bandeau titre) --- */
.video-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff0da;
  border: 2px solid #d9b36a;
  color: #5a3a12;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  white-space: nowrap;
}

/* Légende sous la vidéo (facultatif) */
.video-caption {
  margin-top: .6em;
  color: #65451f;
  font-size: .95rem;
}

/* Variantes de position/taille réutilisables dans l'article */
.video-left  { float: left;  margin: 1em 1.1em 1em 0; }
.video-right { float: right; margin: 1em 0 1em 1.1em; }
.video-small { max-width: 260px; }
.video-large { max-width: 500px; }

/* Mobile : on recentre tout si ça flotte */
@media (max-width: 768px) {
  .video-left, .video-right { float: none; margin: 1em auto; display: block; }
}
/* Le bloc figure se cale sur la largeur de la vidéo (shrink-to-fit) */
.article-content figure.vid {
  display: inline-block;
  margin: .8em auto;
  text-align: center;
}

/* Vidéo dans la figure */
.article-content figure.vid video {
  display: block;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Légende */
.article-content figure.vid figcaption {
  margin-top: .4em;
  color: #6b5642;
  font-style: italic;
}
/* Gabarit vidéo standard pour Garennes */
.garennes-video {
  width: 380px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: block;
  margin: 10px auto;
}
.article-content p {
  line-height: 1.6;
  margin-bottom: 0.8em;
}
.article-content figcaption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 4px;
}

.article-content a {
  text-decoration: none;
  color: #2255aa;
}
.article-content a:hover {
  text-decoration: underline;
}
/* === Vidéos Garennes ===================================== */
.article-content video.garennes-video{
  width: 380px !important;      /* taille standard des vidéos */
  max-width: 100%;
  height: auto !important;       /* on ignore tout height inline */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: block;
  margin: 8px 0 14px;
}
/* Variante plus compacte si la vidéo est verticale ou serrée */
.article-content video.garennes-video.small{
  width: 300px !important;
}
/* Légendes */
.article-content em{
  display:block;
  color:#666;
  margin-top:4px;
}
.garennes-video {
  width: 100%;       /* la cellule fixe la taille */
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* === Garennes.com : Bloc vidéo standard === */
.bloc-video-garennes {
  text-align: center;
  margin: 25px auto;
  max-width: 480px;
}

.garennes-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}

.legende-video {
  font-style: italic;
  color: #555;
  margin-top: 6px;
}

.lien-video {
  margin-top: 10px;
  font-size: 1.1em;
}

.lien-video a {
  text-decoration: none;
  color: #204a9c;
}

.lien-video a:hover {
  text-decoration: underline;
}

/* Vidéos dans les articles Garennes — limite la hauteur */
.article-content video,
.content-article video,
.item-page video {
  max-height: 400px !important;  /* force la limite */
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto 1em auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Ajustement mobile */
@media (max-width: 768px) {
  .article-content video,
  .content-article video,
  .item-page video {
    max-height: 250px !important;
    width: 100% !important;
  }
}

.vignette-luxe {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg,#d4af37,#f8e473);
  color: #111;
  border-radius: 8px;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.3);
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease-in-out;
}
.vignette-luxe:hover {
  background: linear-gradient(135deg,#f9d857,#fff6b2);
  transform: translateY(-2px);
}
.btn-video-luxe {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #d4af37, #f8e473);
  color: #222 !important;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.25);
  transition: all 0.25s ease-in-out;
}
.btn-video-luxe:hover {
  background: linear-gradient(135deg, #f9d857, #fff6b2);
  transform: translateY(-2px);
  box-shadow: 3px 4px 8px rgba(0,0,0,0.35);
  color: #000 !important;
}
/* Bouton doré autonome, sans Bootstrap */
a.btn-video-luxe{
  display:inline-block;text-decoration:none;
  padding:.6rem 1.25rem;border-radius:999px;font-weight:700;
  background:linear-gradient(#ffd76a,#f1b923);
  color:#1b1b1b;border:1px solid #d5a11e;
  box-shadow:0 .4rem .7rem rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.45);
}
a.btn-video-luxe:hover{filter:brightness(0.97)}
a.btn-video-luxe:before{
  content:"▶ "; font-weight:900; margin-right:.35rem;
}

/* Cible le conteneur du menu dans votre template */
.header-container .container-header-full-width nav ul.menu {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}
.header-container .container-header-full-width nav ul.menu > li {
    margin: 0 10px !important;
    position: relative !important;
}
.header-container .container-header-full-width nav ul.menu > li > a {
    display: block !important;
    color: white !important;
    padding: 12px 18px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    background-color: #e67e22 !important;
    border-radius: 4px !important;
}
.header-container .container-header-full-width nav ul.menu > li:hover > a {
    background-color: #d35400 !important;
}

/* Sous-menus */
.header-container .container-header-full-width nav ul.menu ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #e67e22 !important;
    min-width: 200px !important;
    list-style: none !important;
    padding: 0 !important;
    z-index: 9999 !important;
}
.header-container .container-header-full-width nav ul.menu > li:hover > ul {
    display: block !important;
}
.header-container .container-header-full-width nav ul.menu ul li a {
    display: block !important;
    color: white !important;
    padding: 10px 15px !important;
}
.header-container .container-header-full-width nav ul.menu ul li:hover {
    background-color: #d35400 !important;
}

/* Neutralisation ancienne règle menu (évite le blanc imposé) */
.header-container .container-header-full-width nav ul.menu ul li a {
  color: inherit !important;
}
/* Sous-menus : rendre le texte visible (le header force parfois du blanc) */
body.site .container-header .mod-menu__sub a,
body.site .container-header .mod-menu__sub a:visited,
body.site .container-header .mod-menu__sub a span {
  color: #111 !important;
}
/* ============================
   Dropdown "chouette" Cassiopeia
   ============================ */

/* Boîte du sous-menu */
body.site .container-header .mod-menu__sub {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 10px !important;
  padding: 10px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.18) !important;
  min-width: 260px !important;
  max-width: 340px !important;
}

/* Chaque item */
body.site .container-header .mod-menu__sub .nav-item {
  margin: 0 !important;
}

/* Lien = cartouche */
body.site .container-header .mod-menu__sub a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  padding: 10px 12px !important;
  margin: 4px 0 !important;
  border-radius: 8px !important;

  color: #111 !important;
  background: #faf7f0 !important;     /* léger fond */
  border: 1px solid rgba(0,0,0,.06) !important;

  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Survol / focus */
body.site .container-header .mod-menu__sub a:hover,
body.site .container-header .mod-menu__sub a:focus {
  background: #f3e6cf !important;
  border-color: rgba(0,0,0,.10) !important;
  color: #000 !important;
}

/* Séparateur discret entre cartouches (facultatif) */
body.site .container-header .mod-menu__sub .nav-item + .nav-item a {
  box-shadow: 0 -1px 0 rgba(0,0,0,.04) inset !important;
}

/* Images (si un item a une image) */
body.site .container-header .mod-menu__sub img {
  width: 100px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  flex: 0 0 auto !important;
  display: block !important;
}

/* Si un item n'a PAS d'image, on ne casse pas l'alignement */
body.site .container-header .mod-menu__sub a:not(:has(img)) {
  padding-left: 14px !important;
}

/* Evite les dropdowns interminables */
body.site .container-header .mod-menu__sub {
  max-height: 72vh !important;
  overflow: auto !important;
}
/* ===============================
   Desktop : pas d'hirondelles + hover
   =============================== */
@media (hover: hover) and (pointer: fine) {

  /* 1) Ouvrir les dropdowns au survol (et au clavier via focus) */
  .container-header .mod-menu li.deeper:hover > .mod-menu__sub,
  .container-header .mod-menu li.deeper:focus-within > .mod-menu__sub {
    display: block !important;
  }

  /* 2) Cacher les chevrons/boutons de toggle (desktop uniquement) */
  .container-header .mod-menu__toggle-sub,
  .container-header .mod-menu__toggle,
  .container-header .mod-menu__toggle-sub * ,
  .container-header .mod-menu__toggle * {
    display: none !important;
  }
}

.view-article a:hover {
    color: #d97706 !important;
    text-decoration: underline;
}

.nav-article {
    color: #0d6efd;
    font-weight: 500;
}

.nav-article:hover {
    color: #d32f2f;
    text-decoration: underline;
}
/* Remplacer le bleu du menu principal */
.maximenuck .maximenuck_bar,
.maximenuck .maximenuck_bar a {
    background-color: #d9732c !important;
}

/* Remplacer le bleu actif (onglet sélectionné) */
.maximenuck .maximenuck_bar .active > a {
    background-color: #c4621f !important;
}

/* Flèches et petits éléments bleus */
.maximenuck .maximenuck_bar a {
    color: #fff !important;
}
/* MENU ACTIF - MaxiMenu CK */
.maximenuck li.active > a,
.maximenuck li.current > a {
    background: #f2d2b6 !important;
    color: #5a2d0c !important;
}
/* Supprimer les flèches des menus MaxiMenu */
.maximenuck .haschild > a:after {
    display: none !important;
}
.maximenuck li.parent > a:after,
.maximenuck .haschild > a:after,
.maximenuck li.parent > a span:after {
    display: none !important;
}
.moduletitle {
    color: #2f5e8e;   /* bleu proche de "La Garenne" */
}
.module-title,
.moduletitle,
h3 {
    color: #2f5e8e !important;
}
.moduletitle {
    color: #2f5e8e;
    font-weight: 600;
}
.moduletable {
    border-left: 4px solid #2f5e8e;
}
img {
    border-radius: 6px;
}
.moduletable img {
    display: block;
    margin: auto;
}
/* Harmoniser la grille entre contenu principal et colonne droite */
.container-component,
.container-sidebar-right {
    padding-top: 0 !important;
}

/* Même alignement visuel des blocs */
.container-sidebar-right .moduletable,
.container-sidebar-right .card,
.container-sidebar-right .module {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ajustement horizontal fin de la colonne droite */
.container-sidebar-right {
    padding-left: 12px !important;
}
/* Variante plus franche */
.container-sidebar-right {
    margin-left: -8px !important;
}
.no-bg {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 4px 0 !important;
}