/* =====================================================================
   pages.css - styles des pages ajoutees au template Unifex.
   Charge APRES main.css. Aucune regle d'origine n'est modifiee ici :
   tout est prefixe .pg-* ou scope a une page, sauf les gouttieres
   .gy-6..12 que Bootstrap ne fournit pas au-dela de gy-5.
   Palette reprise du theme : var(--main-600) lime, var(--main-two-600)
   orange, #f4f2ee fond doux, #02090f noir.
   ===================================================================== */

/* ---------- gouttieres manquantes (Bootstrap s-arrete a gy-5) ---------- */
.gy-6  { --bs-gutter-y: 2rem; }
.gy-7  { --bs-gutter-y: 2.5rem; }
.gy-8  { --bs-gutter-y: 3rem; }
.gy-9  { --bs-gutter-y: 3.5rem; }
.gy-10 { --bs-gutter-y: 4rem; }
.gy-12 { --bs-gutter-y: 5rem; }

/* ---------- hero de page ---------- */
.page-hero,
.pg-404 {
  background: #f4f2ee;
  padding-block: 220px 120px;
}
.pg-alt-hero {
  padding-block: 180px 120px;
}
.pg-alt-hero.is-light {
  background: #f4f2ee;
  padding-block: 220px 120px;
}
@media screen and (max-width: 1199px) {
  .page-hero, .pg-404, .pg-alt-hero.is-light { padding-block: 180px 90px; }
  .pg-alt-hero { padding-block: 140px 90px; }
}
@media screen and (max-width: 767px) {
  .page-hero, .pg-404, .pg-alt-hero.is-light { padding-block: 150px 70px; }
  .pg-alt-hero { padding-block: 120px 70px; }
}
/* Sur un telephone, 150px au-dessus d-un en-tete qui en fait 99 laissaient
   l-en-tete de page occuper 60 % du premier ecran pour trois lignes de texte.
   On garde de quoi degager l-en-tete collant, sans plus. */
@media screen and (max-width: 575px) {
  .page-hero, .pg-404, .pg-alt-hero.is-light { padding-block: 120px 55px; }
  .pg-alt-hero { padding-block: 100px 55px; }
}

/* titre geant : on borne la taille d-origine (328px) pour que les mots
   longs ne debordent pas du conteneur */
.page-hero .breadcrumb-title,
.pg-404 .breadcrumb-title,
.pg-alt-hero .breadcrumb-title {
  font-size: clamp(3.25rem, 13vw, 15rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.page-hero-shape {
  inset-inline-end: -80px;
  inset-block-start: 40px;
  max-width: 460px;
  opacity: 0.45;
  pointer-events: none;
}
.page-crumb { list-style: none; margin: 0; padding: 0; }
.page-crumb a { transition: 0.3s; }

/* ---------- fonds de section ---------- */
.pg-soft { background: #f4f2ee; }
.pg-dark .tw-sub-tilte { color: var(--main-600); }

/* ---------- listes a puces ---------- */
.pg-list { list-style: none; margin: 0; padding: 0; }

/* ---------- lien fleche ---------- */
.pg-arrow-link {
  transition: 0.35s;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.pg-arrow-link i { transition: transform 0.35s; }
.pg-arrow-link:hover { color: var(--main-two-600) !important; }
.pg-arrow-link:hover i { transform: translate(4px, -4px); }

/* ---------- carte service ---------- */
.pg-service {
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: 0.4s;
}
.pg-service:hover {
  border-color: var(--main-600);
  box-shadow: 0 24px 60px rgba(2, 9, 15, 0.08);
  transform: translateY(-6px);
}
.pg-service-thumb {
  width: 88px; height: 88px;
  background: #f4f2ee;
  display: inline-flex; align-items: center; justify-content: center;
  transition: 0.4s;
}
.pg-service:hover .pg-service-thumb { background: var(--main-600); }
.pg-service-thumb img { max-width: 52px; height: auto; }
.pg-service-num { color: #e5e7eb; line-height: 1; }
.pg-service:hover .pg-service-num { color: var(--main-two-600); }

/* ---------- etapes de process ---------- */
.pg-step { border-top: 2px solid rgba(2, 9, 15, 0.12); padding-block-start: 2rem; }
.pg-dark .pg-step { border-top-color: rgba(255, 255, 255, 0.16); }
.pg-step-num { color: var(--main-two-600); }

/* ---------- carte projet ---------- */
.pg-project { color: inherit; }
.pg-project-thumb { background: #f4f2ee; }
.pg-project-thumb img { transition: transform 0.6s ease; display: block; }
.pg-project:hover .pg-project-thumb img { transform: scale(1.06); }
.pg-project-cat { color: var(--main-two-600); letter-spacing: 0.08em; }
.pg-project-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  background: #f4f2ee; color: #02090f;
  transition: 0.4s;
}
.pg-project:hover .pg-project-icon {
  background: var(--main-600);
  transform: rotate(45deg);
}
.pg-project-body { border-top: 1px dashed rgba(2, 9, 15, 0.18); }

/* ---------- liste de projets avec apercu au survol ---------- */
.pg-rows { border-top: 1px dashed rgba(2, 9, 15, 0.25); }
.pg-row {
  border-bottom: 1px dashed rgba(2, 9, 15, 0.25);
  position: relative;
  color: inherit;
  transition: 0.4s;
}
.pg-row:hover { padding-inline: 1.5rem; background: #f4f2ee; }
.pg-row-num { color: var(--main-two-600); flex: 0 0 auto; }
.pg-row-title { color: #02090f; transition: 0.4s; }
.pg-row:hover .pg-row-title { color: var(--main-two-600); }
.pg-row-cat, .pg-row-year { color: rgba(2, 9, 15, 0.55); }
.pg-row-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  border: 1px solid rgba(2, 9, 15, 0.2);
  transition: 0.4s;
}
.pg-row:hover .pg-row-icon {
  background: var(--main-600);
  border-color: var(--main-600);
  transform: rotate(45deg);
}
.pg-row-reveal {
  position: absolute;
  inset-inline-end: 12%;
  inset-block-start: 50%;
  width: 240px; height: 150px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-50%) scale(0.85) rotate(-6deg);
  transition: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.pg-row:hover .pg-row-reveal {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(-3deg);
}
@media screen and (max-width: 991px) {
  .pg-row-reveal { display: none; }
  .pg-row-title { font-size: 1.75rem; }
}

/* ---------- equipe ---------- */
.pg-member-thumb { background: #f4f2ee; }
.pg-member-thumb img { transition: transform 0.6s ease; display: block; }
.pg-member:hover .pg-member-thumb img { transform: scale(1.05); }
.pg-member-social {
  list-style: none; margin: 0; padding: 0;
  position: absolute;
  inset-inline: 0; inset-block-end: 20px;
  opacity: 0; transform: translateY(14px);
  transition: 0.4s;
}
.pg-member:hover .pg-member-social { opacity: 1; transform: translateY(0); }
.pg-member-social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #02090f; border-radius: 6px;
  transition: 0.3s;
}
.pg-member-social a:hover { background: var(--main-600); }

/* ---------- temoignages ---------- */
.pg-quote {
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: 0.4s;
}
.pg-quote:hover {
  border-color: var(--main-600);
  box-shadow: 0 24px 60px rgba(2, 9, 15, 0.08);
}
.pg-quote-stars { color: var(--main-two-600); }
.pg-quote-mark { width: 44px; opacity: 0.35; }
.pg-quote-avatar { width: 60px; height: 60px; object-fit: cover; }

/* ---------- blog ---------- */
.pg-post {
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: 0.4s;
}
.pg-post:hover {
  border-color: var(--main-600);
  box-shadow: 0 24px 60px rgba(2, 9, 15, 0.08);
  transform: translateY(-6px);
}
.pg-post-thumb img { transition: transform 0.6s ease; display: block; }
.pg-post:hover .pg-post-thumb img,
.pg-post-row:hover .pg-post-thumb img { transform: scale(1.06); }
.pg-post-cat {
  background: var(--main-600);
  color: #02090f;
  letter-spacing: 0.06em;
}
.pg-post-row { border-bottom: 1px dashed rgba(2, 9, 15, 0.2); padding-block-end: 2.5rem; }
.pg-post-row:last-child { border-bottom: 0; }

/* ---------- pagination ---------- */
.pg-pagination a {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(2, 9, 15, 0.15);
  border-radius: 6px;
  color: #02090f; font-weight: 700;
  transition: 0.3s;
}
.pg-pagination a:hover, .pg-pagination a.is-active {
  background: var(--main-600);
  border-color: var(--main-600);
}

/* ---------- tarifs ---------- */
.pg-plan {
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: 0.4s;
}
.pg-plan:hover { box-shadow: 0 24px 60px rgba(2, 9, 15, 0.08); transform: translateY(-6px); }
.pg-plan.is-featured { background: #02090f; border-color: #02090f; }
.pg-plan.is-featured h3,
.pg-plan.is-featured .pg-plan-price,
.pg-plan.is-featured span,
.pg-plan.is-featured p { color: #fff; }
.pg-plan.is-featured .pg-plan-badge { color: #02090f; }
.pg-plan-badge { background: var(--main-600); color: #02090f; }
.pg-plan-off { opacity: 0.45; text-decoration: line-through; }
.pg-plan-price { color: #02090f; }

/* ---------- contact ---------- */
.pg-contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: 0.4s;
  color: inherit;
}
.pg-contact-card:hover {
  border-color: var(--main-600);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(2, 9, 15, 0.08);
}
.pg-contact-icon {
  width: 64px; height: 64px;
  background: #f4f2ee;
  font-size: 1.6rem; color: #02090f;
  transition: 0.4s;
}
.pg-contact-card:hover .pg-contact-icon { background: var(--main-600); }

.pg-form { background: #f4f2ee; }
.pg-input {
  background: #fff;
  border: 1px solid #e5e7eb;
  min-height: 60px;
  padding-inline: 1.25rem;
  box-shadow: none;
}
.pg-input:focus {
  border-color: var(--main-600);
  box-shadow: none;
  background: #fff;
}
textarea.pg-input { min-height: 150px; padding-block: 1rem; }
.pg-label { font-size: 0.95rem; }
.pg-check { width: 18px; height: 18px; accent-color: var(--main-two-600); }

/* ---------- sidebar / widgets ---------- */
.pg-sidebar { position: sticky; inset-block-start: 40px; }
.pg-sticky { position: sticky; inset-block-start: 120px; }
@media screen and (max-width: 991px) {
  .pg-sidebar, .pg-sticky { position: static; }
}
.pg-widget { background: #f4f2ee; }
.pg-widget.is-dark { background: #02090f; }
.pg-side-nav { list-style: none; margin: 0; padding: 0; }
.pg-side-nav a {
  background: #fff;
  color: #02090f;
  font-weight: 600;
  margin-block-end: 10px;
  transition: 0.3s;
}
.pg-side-nav a:hover, .pg-side-nav a.is-active { background: var(--main-600); }
.pg-file { background: #fff; transition: 0.3s; color: #02090f; }
.pg-file:hover { background: var(--main-600); }
.pg-file i { font-size: 1.8rem; color: var(--main-two-600); }
.pg-recent { list-style: none; margin: 0; padding: 0; }
.pg-recent a { transition: 0.3s; }
.pg-recent a:hover .text-heading { color: var(--main-two-600); }
.pg-recent-thumb { width: 72px; height: 72px; object-fit: cover; flex: 0 0 72px; }

/* ---------- article ---------- */
.pg-article p { line-height: 1.75; }
.pg-article h2 { margin-block-start: 2.5rem; }
.pg-quote-block { background: #f4f2ee; border-inline-start: 4px solid var(--main-600); }
.pg-article-foot { border-top: 1px dashed rgba(2, 9, 15, 0.2); }
.pg-tag { background: #f4f2ee; color: #02090f; transition: 0.3s; }
.pg-tag:hover { background: var(--main-600); }
.pg-share {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(2, 9, 15, 0.15); border-radius: 6px;
  color: #02090f; transition: 0.3s;
}
.pg-share:hover { background: var(--main-600); border-color: var(--main-600); }

/* ---------- meta projet ---------- */
.pg-meta-row { border-block: 1px dashed rgba(2, 9, 15, 0.2); }
.pg-meta { border-inline-start: 2px solid var(--main-600); padding-inline-start: 1.5rem; }
.pg-nextprev { border-top: 1px dashed rgba(2, 9, 15, 0.2); flex-wrap: wrap; }

/* ---------- encarts ---------- */
.pg-mini { background: #f4f2ee; }
.pg-mini-icon {
  width: 56px; height: 56px;
  background: var(--main-600); color: #02090f; font-size: 1.5rem;
}

/* ---------- compteurs ---------- */
.pg-counter h3 { color: inherit; }
.pg-dark .pg-counter { border-inline-start: 2px solid rgba(255, 255, 255, 0.16); }
.pg-dark .pg-counter h3 span { color: var(--main-600); }

/* ---------- bandeau marquee ---------- */
.pg-marquee {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}
.pg-marquee-track { width: max-content; animation: pg-marq 45s linear infinite; }
.pg-marquee-item {
  white-space: nowrap;
  padding-inline-end: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}
@keyframes pg-marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-marquee-track { animation: none; }
}

/* ---------- CTA ---------- */
.pg-cta { background: var(--main-600); }
.pg-cta .tw-sub-tilte { color: #02090f; }

/* ---------- accordeon (harmonisation) ---------- */
.common-accordion .accordion-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.common-accordion .accordion-button {
  background: #fff;
  padding-block: 1.5rem;
  padding-inline: 1.75rem 3.5rem;
}
.common-accordion .accordion-body {
  padding-block: 0 1.75rem;
  padding-inline: 1.75rem;
}
