/* ═══════════════════════════════════════════════════════════════
   SITE MODÈLE — Gardien de site — style v1.0 du 10/10/2026 (base : style Gardien v2.1)
   Fichier : media/templates/site/cassiopeia_gardien/css/user.css
   POUR CHANGER LES COULEURS D'UN SITE : modifier SEULEMENT le bloc « THÈME » ci-dessous.
   Palettes prêtes à copier : voir le fichier palettes-couleurs.txt du kit.
   Toutes les classes maison commencent par « gds- ».
   ═══════════════════════════════════════════════════════════════ */

/* ════════ THÈME (les 9 couleurs du site) ════════ */
:root {   /* palette BOULANGERIE (brun chocolat + doré) */
  --gds-nuit: #4a2c1a;           /* couleur principale : en-tête, titres, bas de page */
  --gds-nuit-2: #6b4029;         /* principale, un peu plus claire (survols) */
  --gds-orange: #d4a03a;         /* couleur d'accent : soulignés, pastilles */
  --gds-orange-fonce: #9a6512;   /* accent foncé : boutons et liens (lisible sur blanc) */
  --gds-accent-survol: #7f520e;  /* bouton survolé */
  --gds-accent-ombre: #5e3c0a;   /* petite ombre sous les boutons */
  --gds-accent-clair: #f2cf82;   /* accent clair, sur fond foncé */
  --gds-creme: #fbf5ea;          /* fond doux des sections */
  --gds-bord: #ecdfc8;           /* bordures fines */
}
/* ════════ FIN DU THÈME — ne rien changer en dessous ════════ */

:root {
  --gds-texte: #2c3148; --gds-gris: #5d6378;
  --cassiopeia-color-primary: var(--gds-nuit);
  --cassiopeia-color-hover: var(--gds-nuit-2);
  --cassiopeia-color-link: var(--gds-orange-fonce);
  --link-color: var(--gds-orange-fonce);
  --link-hover-color: var(--gds-accent-ombre);
}

body { font-family: system-ui, "Segoe UI", Roboto, Ubuntu, "DejaVu Sans", sans-serif; color: var(--gds-texte); line-height: 1.6; }
h1, h2, h3, h4 { color: var(--gds-nuit); line-height: 1.2; }

/* ── En-tête ── */
.container-header { background: var(--gds-nuit) !important; background-image: none !important; box-shadow: none; }
.container-header .navbar-brand .brand-logo img { max-height: 46px; width: auto; }
.container-header .site-description { color: rgba(255,255,255,.8); font-size: .82rem; }
.container-header .mod-menu > li > a { color: #fff; opacity: .92; }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a { border-bottom: 2px solid var(--gds-orange); text-decoration: none; }
.container-header .mod-menu__sub { background: var(--gds-nuit); border-radius: 8px; padding: .4rem .2rem; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.container-header .mod-menu__sub a { color: #fff !important; opacity: .95; display: block; padding: .25rem .8rem; }
.container-header .mod-menu__sub a:hover { color: var(--gds-accent-clair) !important; text-decoration: none; }

/* ── Boutons ── */
.gds-btn, a.gds-btn { display: inline-block; background: var(--gds-orange-fonce); color: #fff !important; text-decoration: none !important; font-weight: 600; padding: .75rem 1.4rem; border-radius: 8px; box-shadow: 0 3px 0 var(--gds-accent-ombre); border: 0; }
.gds-btn:hover { background: var(--gds-accent-survol); }
.gds-btn.gds-clair { background: #fff; color: var(--gds-nuit) !important; box-shadow: 0 3px 0 #c9cde0; }
.gds-lien { color: var(--gds-orange-fonce); font-weight: 600; text-decoration: none; }

/* ── Bandeau principal (module en position « banner », accueil seulement) ── */
.gds-heros { background: linear-gradient(135deg, var(--gds-nuit) 0%, var(--gds-nuit-2) 100%); color: #fff; padding: 3.5rem 1.5rem 4.2rem; position: relative; overflow: hidden; }
.gds-heros::after { content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(232,119,46,.28), rgba(232,119,46,0) 70%); }
.gds-heros-grille { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.gds-surtitre { color: var(--gds-accent-clair); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: .8rem; }
.gds-heros h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: .6rem 0 1rem; }
.gds-heros h1 em { font-style: normal; color: var(--gds-accent-clair); }
.gds-heros .gds-intro { font-size: 1.15rem; opacity: .93; max-width: 580px; margin: 0 0 1.6rem; }
.gds-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.gds-carte-garde { background: #fff; color: var(--gds-texte); border-radius: 14px; padding: 1.3rem 1.5rem; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.gds-carte-garde h3 { margin: 0 0 .6rem; font-size: 1rem; }
.gds-ligne { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--gds-bord); font-size: .92rem; }
.gds-ligne:last-of-type { border-bottom: 0; }
.gds-ok { color: #1f8a4c; font-weight: 700; }
.gds-carte-garde small { color: var(--gds-gris); font-size: .75rem; }

/* ── Bande des 4 atouts ── */
.gds-confiance { background: var(--gds-creme); border-bottom: 1px solid var(--gds-bord); }
.gds-confiance-grille { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; padding: 1.4rem 1.5rem; }
.gds-atout { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; }
.gds-pastille { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--gds-nuit); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.gds-atout b, .gds-atout strong { display: block; color: var(--gds-nuit); }

/* ── Sections de l'article d'accueil ── */
.gds-section { margin: 3.2rem 0; }
.gds-section h2 { font-size: 1.9rem; margin: 0 0 .4rem; }
.gds-chapo { color: var(--gds-gris); font-size: 1.05rem; margin: 0 0 1.8rem; max-width: 700px; }
.gds-fond { background: var(--gds-creme); border-radius: 18px; padding: 2.2rem; }

.gds-grille-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.gds-grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gds-grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.gds-carte { border: 1px solid var(--gds-bord); border-radius: 14px; padding: 1.6rem; background: #fff; display: flex; flex-direction: column; position: relative; }
.gds-carte h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.gds-carte p { margin: 0 0 1rem; color: var(--gds-gris); flex: 1; }
.gds-icone { width: 52px; height: 52px; border-radius: 12px; background: var(--gds-creme); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .9rem; }
.gds-prix { font-size: 1.6rem; font-weight: 800; color: var(--gds-nuit); }
.gds-prix small { font-size: .85rem; font-weight: 500; color: var(--gds-gris); }
.gds-vedette { border: 2px solid var(--gds-orange); box-shadow: 0 10px 30px rgba(232,119,46,.15); }
.gds-badge { position: absolute; top: -12px; left: 22px; background: var(--gds-orange-fonce); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.gds-etapes { counter-reset: gds-e; }
.gds-etape { background: #fff; border-radius: 14px; padding: 1.3rem; border: 1px solid var(--gds-bord); }
.gds-etape::before { content: "✔"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gds-orange-fonce); color: #fff; font-weight: 800; margin-bottom: .6rem; }
.gds-etape b, .gds-etape strong { color: var(--gds-nuit); display: block; margin-bottom: .2rem; }
.gds-etape span { color: var(--gds-gris); font-size: .92rem; }

.gds-moi { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; align-items: center; border: 1px solid var(--gds-bord); border-radius: 16px; padding: 1.6rem; }
.gds-moi img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 35% 30%; border: 4px solid var(--gds-creme); box-shadow: 0 0 0 2px var(--gds-orange); }
.gds-moi h3 { margin: 0 0 .4rem; }
.gds-moi p { margin: 0 0 .5rem; color: var(--gds-gris); }
.gds-etiquettes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.gds-etiquettes li, .gds-etiquettes span { background: var(--gds-creme); border: 1px solid var(--gds-bord); border-radius: 20px; padding: 2px 11px; font-size: .82rem; }

.gds-ecran { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--gds-nuit), var(--gds-nuit-2)); box-shadow: 0 16px 40px rgba(31,42,90,.25); display: grid; place-items: center; }
.gds-ecran img { width: 90px; }
.gds-lecture { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: var(--gds-orange-fonce); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(232,119,46,.25); }
.gds-lecture::after { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.gds-ecran .gds-st { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; padding: 4px 12px; border-radius: 6px; font-size: .88rem; white-space: nowrap; }

.gds-conseil { padding: 0; overflow: hidden; }
.gds-conseil .gds-bandeau { height: 92px; display: grid; place-items: center; font-size: 2.3rem; }
.gds-conseil .gds-corps { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.gds-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gds-orange-fonce); }

.gds-msg { text-align: center; }
.gds-msg .gds-rond { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; margin: 0 auto .6rem; }
.gds-msg img { width: 118px; height: 118px; margin: 0 auto .8rem; display: block; }
.gds-msg a { display: inline-block; color: #fff !important; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .9rem; border-radius: 8px; }
.gds-wa { background: #1f9e55; } .gds-li { background: #06a14a; } .gds-za { background: #0068ff; } .gds-fb { background: #1877f2; }

.gds-appel { background: linear-gradient(135deg, var(--gds-orange-fonce), var(--gds-orange)); color: #fff; border-radius: 18px; padding: 2.4rem 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.gds-appel h2 { color: #fff; margin: 0 0 .4rem; }
.gds-appel p { margin: 0; opacity: .95; }

/* ── Bulle de discussion (module en position « debug », toutes les pages) ── */
.gds-bulle { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 1000; }
.gds-bulle .gds-mini { display: flex; gap: 8px; }
.gds-bulle .gds-mini a { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.gds-bulle .gds-principal { background: #1f9e55; color: #fff; border-radius: 30px; padding: .75rem 1.1rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ── Bas de page ── */
.container-footer { background: var(--gds-nuit) !important; background-image: none !important; }
.container-footer .mod-menu { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.container-footer .mod-menu > li + li::before { content: "·"; margin-right: 1.5rem; opacity: .6; }
.container-footer a { color: #fff; }

/* ── Ajouts v1.1 (09/10, après le premier essai sur le site) ── */
.container-header .brand-logo, .container-header .brand-logo:hover { text-decoration: none; color: #fff; }
.btn-primary, a.btn-primary { background: var(--gds-orange-fonce) !important; border-color: var(--gds-orange-fonce) !important; color: #fff !important; font-weight: 600; border-radius: 8px; box-shadow: 0 3px 0 var(--gds-accent-ombre); }
.btn-primary:hover { background: var(--gds-accent-survol) !important; border-color: var(--gds-accent-survol) !important; }
.com-content-article__body h2 { margin-top: 1.6rem; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: var(--gds-creme); }

.gds-grille-2.gds-egal { grid-template-columns: 1fr 1fr; align-items: stretch; }
.gds-grille-2.gds-haut { align-items: start; }

/* étapes numérotées seulement dans un bloc .gds-etapes ; ailleurs, une coche */
.gds-etapes .gds-etape::before { counter-increment: gds-e; content: counter(gds-e); }

/* Dans un article : on cache le titre de la rubrique (chaque article a déjà son propre grand titre) */
.com-content-article.item-page > .page-header { display: none; }

/* ── Page Conseils (liste) ── */
.com-content-category .list-author, .com-content-category thead, .com-content-category .com-content-category__pagination-limit,
.com-content-category .btn-toolbar { display: none !important; }
.com-content-category table, .com-content-category table th, .com-content-category table td { border: 0 !important; background: transparent !important; --bs-table-accent-bg: transparent; }
.com-content-category tbody tr { border-bottom: 1px solid var(--gds-bord) !important; }
.com-content-category tbody th, .com-content-category tbody td { padding: .9rem .4rem !important; }
.com-content-category .list-title a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.com-content-category .list-title a::before { content: "→ "; color: var(--gds-orange); }

/* ── Page Contact ── */
.com-contact > h2, .com-contact > .page-header, .com-contact .com-contact__container { display: none; }
.com-contact .contact-form legend { font-size: 1.25rem; color: var(--gds-nuit); font-weight: 700; }
.com-contact .contact-form { background: #fff; border: 1px solid var(--gds-bord); border-radius: 14px; padding: 1.6rem; }
.gds-promesses { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.gds-promesses li { background: var(--gds-creme); border: 1px solid var(--gds-bord); border-radius: 20px; padding: 4px 14px; font-weight: 600; color: var(--gds-nuit); }

/* ── Téléphone et tablette ── */
@media (max-width: 900px) {
  .gds-heros-grille, .gds-grille-2 { grid-template-columns: 1fr; }
  .gds-grille-3 { grid-template-columns: 1fr; }
  .gds-grille-4, .gds-confiance-grille { grid-template-columns: 1fr 1fr; }
  .gds-appel { flex-direction: column; align-items: flex-start; }
  .gds-bulle .gds-principal span { display: none; }
}
@media (max-width: 520px) {
  .gds-grille-4, .gds-confiance-grille { grid-template-columns: 1fr; }
  .gds-moi { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ── Ajout v2.1 (10/10) : questions de la FAQ et sous-titres simples, plus petits que les titres de partie ── */
.com-content-article__body .gds-section > h3 { font-size: 1.15rem; margin: 1.2rem 0 .35rem; }
.com-content-article__body .gds-section > h2 + h3 { margin-top: .6rem; }

/* prix jamais coupés dans les lignes de tarifs (v1.1, 10/10/2026) */
.gds-ligne > strong:last-child { white-space: nowrap; padding-left: .8rem; }
.gds-ligne > div small { color: var(--gds-gris); }

/* avis : étoiles dorées, cartes bien rangées (v1.2, 10/10/2026) */
.gds-carte p.gds-etoiles { flex: 0 0 auto; margin: 0 0 .5rem; color: var(--gds-orange); font-size: 1.2rem; letter-spacing: 2px; }
.gds-carte p.gds-qui { flex: 0 0 auto; margin: 0; color: var(--gds-texte); }

/* finitions (v1.2, 10/10/2026) : pas de cadre autour des modules main-top ; ligne « site de démonstration » */
.main-top.card { border: 0; background: transparent; box-shadow: none; }
.main-top.card > .card-body { padding: 0; }
.gds-demo { font-size: .8rem; opacity: .85; margin: .6rem 0 0; color: #fff; }
.gds-demo a { color: var(--gds-accent-clair) !important; }

/* ════ v1.3 (11/10/2026) — commun à tous les modèles ════ */
/* Police des titres réglable dans le THÈME (--gds-titres) ; sans réglage, la police normale */
h1, h2, h3, .gds-heros h1 { font-family: var(--gds-titres, inherit); }
/* Bandeau d'appel : dégradé foncé → contraste du texte blanc toujours ≥ 4,5 (WCAG) */
.gds-appel { background: linear-gradient(135deg, var(--gds-nuit), var(--gds-orange-fonce)); }
/* Section SOMBRE (alternance clair / sombre) */
.gds-sombre { background: var(--gds-nuit); color: #fff; border-radius: 18px; padding: 2.2rem; }
.gds-sombre h2, .gds-sombre h3, .gds-sombre strong, .gds-sombre b { color: #fff; }
.gds-sombre .gds-tag { color: var(--gds-accent-clair); }
.gds-sombre a:not(.gds-btn) { color: var(--gds-accent-clair); }
.gds-sombre p, .gds-sombre li { color: rgba(255,255,255,.9); }
.gds-sombre .gds-ligne { border-bottom-color: rgba(255,255,255,.18); }
.gds-sombre .gds-carte { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.gds-sombre .gds-carte p { color: rgba(255,255,255,.85); }
/* Questions fréquentes : <details> lisibles */
.gds-faq details { border-bottom: 1px solid var(--gds-bord); padding: .9rem 0; }
.gds-faq summary { cursor: pointer; font-weight: 700; color: var(--gds-nuit); list-style: none; }
.gds-faq summary::after { content: " +"; color: var(--gds-orange-fonce); }
.gds-faq details[open] summary::after { content: " −"; }
.gds-faq details p { margin: .6rem 0 0; color: var(--gds-gris); }

/* ════ v1.4 (11/10/2026) — séquence numérotée en cercle (pages « déroulé d'un soin ») ════ */
.gds-deroule { counter-reset: gds-d; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.gds-deroule > div { background: #fff; border: 1px solid var(--gds-bord); border-radius: 14px; padding: 1.2rem; }
.gds-deroule > div::before { counter-increment: gds-d; content: counter(gds-d); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gds-nuit); color: #fff; font-weight: 800; margin-bottom: .6rem; }
.gds-deroule b { display: block; color: var(--gds-nuit); margin-bottom: .25rem; }
.gds-deroule span { color: var(--gds-gris); font-size: .92rem; }
.gds-avertissement { border-left: 4px solid var(--gds-orange-fonce); background: var(--gds-creme); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
@media (max-width: 900px) { .gds-deroule { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gds-deroule { grid-template-columns: 1fr; } }

/* v1.4 : laisser la place au badge de la 1re carte sous un titre */
.gds-section > h2 + .gds-grille-2, .gds-section > h2 + .gds-grille-3, .gds-section > h2 + .gds-grille-4 { margin-top: 1.6rem; }

/* Sélecteur de langues (04/11/2026, ajout des langues EN/ZH/TH/VI) : lisible, langue active bien visible, assez grand pour le doigt */
.mod-languages__list { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: .35rem 0; list-style: none; }
.mod-languages__list li { margin: 0; }
.mod-languages__list a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .6rem; border-radius: 6px; color: #fff; text-decoration: none; }
.mod-languages__list a:hover, .mod-languages__list a:focus-visible { text-decoration: underline; outline: 2px solid #fff; outline-offset: 2px; }
.mod-languages__list .lang-active a { background: #fff; color: #1d1d1d; font-weight: 700; }
/* Nom du site sur deux lignes si besoin (noms chinois longs sur téléphone, 04/11/2026) */
.container-header .navbar-brand { min-width: 0; max-width: 100%; }
.container-header .brand-logo span { white-space: normal; overflow-wrap: anywhere; }
