/* ═══════════════════════════════════════════════════════════════
   GARDIEN DE SITE — design (modèle enfant de Cassiopeia) — v2.1 10/10/2026
   Fichier : media/templates/site/cassiopeia_gardien/css/user.css
   Couleurs : bleu nuit #1f2a5a, orange #e8772e (boutons #c2560f), crème #faf6ef
   Toutes les classes maison commencent par « gds- » (pas de conflit avec Joomla).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gds-nuit: #1f2a5a; --gds-nuit-2: #2b3878; --gds-orange: #e8772e; --gds-orange-fonce: #c2560f;
  --gds-creme: #faf6ef; --gds-texte: #2c3148; --gds-gris: #5d6378; --gds-bord: #e6e1d6;
  /* couleurs de Cassiopeia remplacées par les nôtres */
  --cassiopeia-color-primary: #1f2a5a;
  --cassiopeia-color-hover: #2b3878;
  --cassiopeia-color-link: #c2560f;
  --link-color: #c2560f;
  --link-hover-color: #8f3f0b;
}

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: #ffb27d !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 #8f3f0b; border: 0; }
.gds-btn:hover { background: #a94a0c; }
.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: #ffb27d; 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: #ffb27d; }
.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 #8f3f0b; }
.btn-primary:hover { background: #a94a0c !important; border-color: #a94a0c !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; }