/* Gholami CRM Connect 1.4.1 — page « magazine » des actualités, événements et références (maquette « Article — bureau 1440 px »).
   S'ajoute à gcrm-article.css (diaporama, barre de lecture, apparitions). */
.gcrm-page {
  --p-nuit: #0c1f3d; --p-nuit-2: #0a1a33; --p-or: #c9a24c; --p-or-f: #a8842f; --p-creme: #f6efe2; --p-encre: #2b3445; --p-gris: #6b7280;
  --p-trait: #e6e1d6; --p-ease: cubic-bezier(.2, .8, .3, 1);
  --c-navy: var(--p-nuit); --c-nuit: var(--p-nuit-2); --c-or: var(--p-or); --c-or-f: var(--p-or-f); --c-ease: var(--p-ease);
  position: relative; display: block; background: #fff; color: var(--p-encre); font-size: 16px; overflow-x: clip;
}
.gcrm-page *, .gcrm-page *::before, .gcrm-page *::after { box-sizing: border-box; }
.gcrm-page .gcrm-ic { width: 1em; height: 1em; flex: none; }
.gcrm-page__sur { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--p-or); }

/* Bandeau */
.gcrm-page__hero { background: var(--p-nuit); color: #fff; padding: 46px 32px 64px; }
.gcrm-page--media .gcrm-page__hero { padding-bottom: 150px; }
.gcrm-page__hero-in { max-width: 820px; margin: 0 auto; }
/* 1.4.1 : image du bandeau de la rubrique (Actualités, Événements, Références) sous un voile bleu nuit */
.gcrm-page__hero--image { position: relative; isolation: isolate; overflow: hidden; }
.gcrm-page__hero-fond { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.gcrm-page__hero-fond::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 31, 61, .78) 0%, rgba(12, 31, 61, .7) 45%, rgba(12, 31, 61, .9) 100%); }
.gcrm-page__hero-in { position: relative; }
.gcrm-page__fil { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.gcrm-page__fil a { color: rgba(255, 255, 255, .72) !important; text-decoration: none; }
.gcrm-page__fil a:hover { color: var(--p-or); }
.gcrm-page__fil span[aria-current] { color: #fff; font-weight: 600; }
.gcrm-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.gcrm-page__tag { background: var(--p-or); color: var(--p-nuit); border-radius: 999px; padding: 6px 13px; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.gcrm-page__date { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; color: var(--p-or); }
.gcrm-page__titre { margin: 22px 0 0; color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.gcrm-page__titre span { color: var(--p-or); }
.gcrm-page__chapeau { margin: 26px 0 0; max-width: 680px; font-size: 16.5px; line-height: 1.75; color: rgba(255, 255, 255, .82); }
.gcrm-page__chapeau a { color: #fff; }

/* Photo / diaporama en carte qui chevauche le bandeau */
.gcrm-page__couv { position: relative; z-index: 2; max-width: 1040px; margin: -110px auto 0; padding: 0 32px; }
.gcrm-couv-seule, .gcrm-page__couv .gcrm-diapo__scene { margin: 0; border-radius: 16px; overflow: hidden; background: var(--p-nuit);
  box-shadow: 0 34px 70px -30px rgba(12, 31, 61, .55); border-bottom: 4px solid var(--p-or); border-top: 1px solid rgba(255, 255, 255, .35); }
/* 1.4.2 : halo blanc derrière le haut de la carte, qui se détache ainsi du bandeau bleu nuit */
.gcrm-page__couv::before { content: ""; position: absolute; z-index: -1; left: 32px; right: 32px; top: 0; height: 90px; border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 34px rgba(255, 255, 255, .42), 0 -2px 10px rgba(255, 255, 255, .3); pointer-events: none; }
.gcrm-couv-seule img { display: block; width: 100%; height: auto; margin: 0 !important; }
.gcrm-page__couv .gcrm-diapo { width: auto; margin: 0; }
.gcrm-page__couv .gcrm-diapo__scene { aspect-ratio: 16 / 10; }
.gcrm-page__couv .gcrm-diapo__vue::after { display: none; }   /* photos et infographies sans voile */
.gcrm-page__couv .gcrm-diapo__compteur { display: none; }   /* les vignettes indiquent déjà la position */
.gcrm-page__couv .gcrm-diapo__vue.est-active .gcrm-diapo__cadre img { animation: none; }
.gcrm-page__couv .gcrm-diapo__cadre[style*="--fond"]::before { display: none; }   /* image entière sur le bleu nuit de la carte */
.gcrm-page__couv .gcrm-diapo__vignettes { justify-content: center; }
.gcrm-page__couv .gcrm-diapo__vig { flex-basis: 84px; aspect-ratio: 4 / 3; border-radius: 9px; }
.gcrm-page__couv .gcrm-diapo__vig::after { border-radius: 9px; }

/* Texte et colonne */
.gcrm-page__grille { max-width: 1264px; margin: 0 auto; padding: 56px 32px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.gcrm-page__corps { min-width: 0; max-width: 770px; }
.gcrm-page__corps > p, .gcrm-sec > p, .gcrm-faq__r p, .gcrm-page__corps li { font-size: 15.5px; line-height: 1.85; color: var(--p-encre); }
.gcrm-page__corps p { margin: 0 0 18px; }
.gcrm-page__corps a:not(.gcrm-page__btn):not(.gcrm-tuile) { color: var(--p-nuit); text-decoration: none; background: linear-gradient(var(--p-or), var(--p-or)) 0 100% / 100% 1.5px no-repeat; }
.gcrm-page__corps a:not(.gcrm-page__btn):not(.gcrm-tuile):hover { color: var(--p-or-f); }
.gcrm-page__corps strong { color: var(--p-nuit); }
.gcrm-page__corps ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.gcrm-page__corps ul li { position: relative; padding-left: 26px; margin-top: 8px; }
.gcrm-page__corps ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--p-or); transform: rotate(45deg); }
.gcrm-page__corps ol:not(.gcrm-points) { margin: 0 0 20px; padding-left: 22px; }
.gcrm-page__corps img { max-width: 100%; height: auto; }

.gcrm-sec { margin: 54px 0 0; scroll-margin-top: 120px; }
.gcrm-sec:first-child { margin-top: 0; }
.gcrm-sec__n { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--p-gris); }
.gcrm-sec > h2, .gcrm-panneau h2 { margin: 8px 0 26px; padding: 0 0 20px; position: relative; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.22; font-weight: 800; color: var(--p-nuit); letter-spacing: -.01em; }
.gcrm-sec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 2px; background: var(--p-or); }
.gcrm-sec h3 { margin: 34px 0 14px; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--p-nuit); scroll-margin-top: 120px; }
.gcrm-sec h4 { margin: 26px 0 10px; font-size: 16.5px; font-weight: 800; color: var(--p-nuit); }

/* Images du texte en carte */
.gcrm-fig { margin: 30px 0 0; }
.gcrm-fig__cadre { border: 1px solid var(--p-trait); border-radius: 14px; overflow: hidden; border-bottom: 3px solid var(--p-or); background: #fff; }
.gcrm-fig__cadre img { display: block; width: 100%; height: auto; margin: 0 !important; }
.gcrm-fig__leg { margin: 10px 0 26px !important; font-size: 12.5px !important; line-height: 1.5 !important; color: var(--p-gris) !important; }
.gcrm-fig + :not(.gcrm-fig__leg) { margin-top: 26px; }

/* Citation */
.gcrm-citation { margin: 30px 0; padding: 26px 30px; background: var(--p-creme); border: 0; border-radius: 14px; font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--p-nuit); font-style: normal; }
.gcrm-citation p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.gcrm-citation cite { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 600; font-style: normal; color: var(--p-gris); }

/* Sous-titres en tuiles */
.gcrm-tuiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; margin: 26px 0 36px; }
.gcrm-tuile { display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 22px; background: var(--p-creme); border-radius: 14px; text-decoration: none; color: var(--p-nuit);
  transition: transform .35s var(--p-ease), box-shadow .35s var(--p-ease); }
.gcrm-tuile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(12, 31, 61, .45); }
.gcrm-tuile b { font-size: 26px; font-weight: 700; line-height: 1; position: relative; padding-bottom: 12px; }
.gcrm-tuile b::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--p-or); }
.gcrm-tuile span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }

/* Points clés (lignes en →) en cartes crème */
.gcrm-page .gcrm-points { list-style: none; margin: 22px 0 26px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gcrm-page .gcrm-point { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 20px 20px 22px !important; background: var(--p-creme); border: 0; border-radius: 14px; }
.gcrm-page .gcrm-point::before, .gcrm-page .gcrm-point::after { display: none; }
.gcrm-page .gcrm-point:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(12, 31, 61, .45); }
.gcrm-page .gcrm-point__n { width: auto; height: auto; display: block; clip-path: none; background: none; color: var(--p-nuit); font-size: 24px; font-weight: 700; letter-spacing: 0; padding-bottom: 10px; position: relative; }
.gcrm-page .gcrm-point__n::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--p-or); }
.gcrm-page .gcrm-point:hover .gcrm-point__n { transform: none; }
.gcrm-page .gcrm-point__t { padding: 0; font-size: 14.5px; line-height: 1.6; color: var(--p-encre); }
.gcrm-page .gcrm-point__t strong { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p-nuit); margin-bottom: 4px; }

/* Panneau bleu nuit (points « Libellé : texte ») */
.gcrm-panneau { background: var(--p-nuit); border-radius: 18px; overflow: hidden; color: #fff; }
.gcrm-panneau__img img { display: block; width: 100%; height: 240px; object-fit: cover; margin: 0 !important; }
.gcrm-panneau__in { padding: 36px 34px 34px; }
.gcrm-panneau h2 { color: #fff; padding: 0; margin: 12px 0 16px; }
.gcrm-panneau p { color: rgba(255, 255, 255, .8) !important; font-size: 15px !important; }
.gcrm-panneau strong { color: #fff; }
.gcrm-panneau__cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.gcrm-panneau__carte { background: var(--p-nuit-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 20px 18px; }
.gcrm-panneau__carte b { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--p-or); margin-bottom: 10px; }
.gcrm-panneau__carte span { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.gcrm-panneau__pied { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; font-weight: 600; }

/* Questions fréquentes */
.gcrm-faq { border-top: 1px solid var(--p-trait); }
.gcrm-faq__q { border-bottom: 1px solid var(--p-trait); }
.gcrm-faq__q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font-size: 15.5px; font-weight: 700; color: var(--p-nuit); }
.gcrm-faq__q summary::-webkit-details-marker { display: none; }
.gcrm-faq__q summary .gcrm-ic { font-size: 16px; transition: transform .3s var(--p-ease); }
.gcrm-faq__q[open] summary .gcrm-ic { transform: rotate(90deg); }
.gcrm-faq__q summary:hover { color: var(--p-or-f); }
.gcrm-faq__r { padding: 0 0 20px; }
.gcrm-faq__r > :last-child { margin-bottom: 0; }

/* Partage, sources */
.gcrm-page__partage { display: flex; align-items: center; gap: 8px; margin-top: 44px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--p-gris); }
.gcrm-page__partage span { margin-right: 6px; }
.gcrm-page__partage a, .gcrm-page__partage button { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--p-trait);
  background: #fff; color: var(--p-nuit); cursor: pointer; font-size: 16px; padding: 0; transition: background .25s, color .25s, transform .3s var(--p-ease); }
.gcrm-page__partage a:hover, .gcrm-page__partage button:hover, .gcrm-page__partage .est-copie { background: var(--p-nuit); color: var(--p-or); transform: translateY(-2px); }
.gcrm-page__sources { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--p-trait); }
.gcrm-page__sources .gcrm-page__sur { color: var(--p-nuit); }
.gcrm-page__sources ul { list-style: none; padding: 0; margin: 12px 0 0; }
.gcrm-page__sources li { padding: 0 !important; margin: 0 0 6px !important; font-size: 12.5px !important; line-height: 1.55 !important; color: var(--p-gris) !important; }
.gcrm-page__sources li::before { display: none !important; }

/* Colonne de droite */
.gcrm-page__cote { min-width: 0; position: relative; align-self: stretch; }
.gcrm-page__colle { position: sticky; top: 120px; display: grid; gap: 18px; }
.gcrm-page__devis { background: var(--p-nuit); color: #fff; border-radius: 14px; padding: 24px 22px 20px; box-shadow: 0 20px 40px -26px rgba(12, 31, 61, .6); }
.gcrm-page__devis-t { margin-top: 10px; font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.gcrm-page__devis-t b, .gcrm-page__bande h2 b { color: var(--p-or); font-weight: inherit; }
.gcrm-page__devis p { margin: 10px 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.gcrm-page__devis .gcrm-page__btn { width: 100%; }
.gcrm-page__tel { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; }
/* 1.4.1 : informations pratiques d'un événement, chantier d'une référence */
.gcrm-page__infos { background: var(--p-creme); border-radius: 14px; padding: 22px 22px 20px; display: grid; gap: 10px; }
.gcrm-page__infos dl { margin: 4px 0 6px; display: grid; gap: 0; }
.gcrm-page__info { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--p-trait); }
.gcrm-page__info:last-child { border-bottom: 0; }
.gcrm-page__info dt { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--p-gris); }
.gcrm-page__info dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--p-nuit); line-height: 1.45; }
.gcrm-page__infos .gcrm-page__btn { width: 100%; }
.gcrm-page__infos .gcrm-page__btn--creux { color: var(--p-nuit) !important; border-color: var(--p-nuit); }
.gcrm-page__infos .gcrm-page__btn--creux:hover { background: var(--p-nuit); color: #fff !important; }
.gcrm-page__sommaire { background: var(--p-creme); border-radius: 14px; padding: 20px 20px 16px; }
.gcrm-page__sommaire .gcrm-page__sur { color: var(--p-nuit); }
.gcrm-page__sommaire ol { list-style: none; margin: 12px 0 0; padding: 0; }
.gcrm-page__sommaire li { margin: 0; }
.gcrm-page__sommaire a { display: block; padding: 6px 0; font-size: 13px; line-height: 1.45; color: var(--p-encre); text-decoration: none; transition: color .2s, transform .25s var(--p-ease); }
.gcrm-page__sommaire a:hover, .gcrm-page__sommaire a.est-active { color: var(--p-or-f); transform: translateX(3px); }
.gcrm-page__sommaire a.est-active { font-weight: 700; }
.gcrm-liees { border: 1px solid var(--p-trait); border-radius: 14px; padding: 20px 20px 8px; background: #fff; }
.gcrm-liees .gcrm-page__sur { color: var(--p-nuit); }
.gcrm-liee { display: block; padding: 14px 0; text-decoration: none; color: var(--p-nuit); border-bottom: 1px solid var(--p-trait); }
.gcrm-liee:last-child { border-bottom: 0; }
.gcrm-liee small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--p-gris); }
.gcrm-liee strong { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; font-weight: 700; }
.gcrm-liee em { display: block; margin-top: 8px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }
.gcrm-liee:hover strong { color: var(--p-or-f); }

/* Boutons */
.gcrm-page__btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--p-or); background: var(--p-or); color: var(--p-nuit) !important;
  border-radius: 999px; padding: 14px 24px; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important;
  cursor: pointer; transition: background .25s, color .25s, transform .3s var(--p-ease), box-shadow .3s; }
.gcrm-page__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(201, 162, 76, .8); background: #d6b05a; }
.gcrm-page__btn .gcrm-ic { font-size: 15px; }
.gcrm-page__btn--creux { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .8); }
.gcrm-page__btn--creux:hover { background: #fff; color: var(--p-nuit) !important; box-shadow: none; }

/* Bande finale */
.gcrm-page__bande { background: var(--p-nuit); color: #fff; padding: 66px 32px; }
.gcrm-page__bande-in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px 48px; flex-wrap: wrap; }
.gcrm-page__bande h2 { margin: 12px 0 0; color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; max-width: 420px; }
.gcrm-page__bande p { margin: 18px 0 0; max-width: 400px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.gcrm-page__bande-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Bande « Newsletter » du thème en crème sous les articles, comme sur la maquette */
body.gcrm-page-article .gib-news { background: #f6efe2 !important; color: #0c1f3d; }
body.gcrm-page-article .gib-news .gib-news__titre { color: #0c1f3d !important; }
body.gcrm-page-article .gib-news .gib-news__texte, body.gcrm-page-article .gib-news .gib-news__consent { color: #4b5563 !important; }
body.gcrm-page-article .gib-news input[type="email"] { border-radius: 999px; border: 1px solid #d8d2c6; background: #fff; }
body.gcrm-page-article .gib-news .gib-btn--gold { border-radius: 999px; background: #0c1f3d; color: #fff; border-color: #0c1f3d; }

/* Le thème n'ajoute ni marge ni fond autour de la page */
body.gcrm-page-article .site-main, body.gcrm-page-article main { padding-top: 0; }

@media (max-width: 1100px) {
  .gcrm-page__grille { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .gcrm-page__corps { max-width: none; }
  .gcrm-page__colle { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 700px) {
  .gcrm-page__hero { padding: 30px 18px 40px; }
  .gcrm-page--media .gcrm-page__hero { padding-bottom: 90px; }
  .gcrm-page__titre { font-size: 27px; }
  .gcrm-page__chapeau { font-size: 15.5px; }
  .gcrm-page__couv { margin-top: -66px; padding: 0 14px; }
  .gcrm-page__couv::before { left: 14px; right: 14px; }
  .gcrm-page__couv .gcrm-diapo__scene { aspect-ratio: 4 / 3; }
  .gcrm-page__grille { padding: 32px 18px 52px; }
  .gcrm-tuiles, .gcrm-panneau__cartes { grid-template-columns: minmax(0, 1fr); }
  .gcrm-tuile { flex-direction: row; align-items: center; gap: 16px; }
  .gcrm-tuile b { padding: 0 14px 0 0; font-size: 22px; }
  .gcrm-tuile b::after { left: auto; right: 0; top: 0; bottom: 0; width: 2px; height: auto; }
  .gcrm-panneau__in { padding: 26px 20px; }
  .gcrm-panneau__img img { height: 180px; }
  .gcrm-page__bande { padding: 48px 18px; }
  .gcrm-page__bande-btns, .gcrm-page__bande-btns .gcrm-page__btn { width: 100%; }
  .gcrm-citation { padding: 22px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gcrm-page *, .gcrm-page *::before, .gcrm-page *::after { animation: none !important; transition-duration: .01ms !important; }
}
