/* ============================================
   COMPONENTS.CSS — Composants réutilisables
   Cartes, CTA, accordéon, portfolio, timeline
   ============================================ */

/* ---- Carte générique ---- */
.card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__body {
  padding: var(--gap-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---- Carte prestation (service) ---- */
.card-service {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  text-align: left;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  perspective: 600px;
  display: flex;
  flex-direction: column;
}

.card-service:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--shadow-xl);
}

.card-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--gap-md);
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
}

.card-service__icon svg,
.card-service__icon img {
  width: 32px;
  height: 32px;
}

.card-service__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.card-service__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--gap-md);
  flex-grow: 1;
}

.card-service__list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--gap-md);
  padding: 0;
}

.card-service__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--c-text);
  line-height: 1.6;
}

.card-service__list li + li {
  margin-top: var(--gap-xs);
}

.card-service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--c-teal);
  border-radius: 50%;
}

.card-service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease);
  margin-top: auto;
}

.card-service__link:hover {
  gap: var(--gap-sm);
}

.card-service__link::after {
  content: '\2192';
}

/* ---- Carte ouvrage ---- */
.card-ouvrage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.card-ouvrage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

.card-ouvrage:hover .card-ouvrage__img {
  transform: scale(1.08);
}

.card-ouvrage__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(15 28 46 / 95%) 0%,
    rgb(15 28 46 / 75%) 50%,
    rgb(15 28 46 / 30%) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap-lg);
  transition: background var(--dur-fast) var(--ease);
}

.card-ouvrage:hover .card-ouvrage__overlay {
  background: linear-gradient(
    to top,
    rgb(15 28 46 / 98%) 0%,
    rgb(15 28 46 / 80%) 60%,
    rgb(15 28 46 / 40%) 100%
  );
}

.card-ouvrage__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--gap-xs);
  text-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}

.card-ouvrage__category {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 85%);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.card-ouvrage__desc {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 80%);
  line-height: 1.5;
  margin-top: var(--gap-xs);
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

/* ---- Carte article (blog) ---- */
.card-blog {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-blog:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-blog__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-blog__body {
  padding: var(--gap-lg);
}

.card-blog__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-bottom: var(--gap-sm);
}

.card-blog__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
  line-height: 1.3;
}

.card-blog__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.card-blog__title a:hover {
  color: var(--c-primary);
}

.card-blog__excerpt {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Compteur animé ---- */
.counter {
  text-align: center;
  padding: var(--gap-lg);
}

.counter__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: var(--gap-sm);
  font-variant-numeric: tabular-nums;
}

.counter__label {
  font-size: 0.9375rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* Variante blanche (sur fond sombre) */
.counter--light .counter__number {
  color: var(--c-white);
}

.counter--light .counter__label {
  color: rgb(255 255 255 / 70%);
}

/* ---- Bandeau de confiance (logos partenaires) ---- */
.trust-banner {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  padding: var(--gap-lg) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trust-banner::-webkit-scrollbar {
  display: none;
}

.trust-banner__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-banner__item img,
.trust-banner__item svg {
  opacity: 0.75;
  filter: grayscale(0.3);
  transition:
    opacity var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease);
}

.trust-banner__item span {
  font-weight: 600;
  color: var(--c-steel);
}

.trust-banner__item:hover img,
.trust-banner__item:hover svg {
  opacity: 1;
  filter: grayscale(0);
}

.section--dark .trust-banner__item span,
.section--dark .trust-banner__item {
  color: rgb(255 255 255 / 80%);
}

.section--dark .trust-banner__item img,
.section--dark .trust-banner__item svg {
  opacity: 0.7;
  filter: grayscale(0) brightness(2);
}

.trust-banner__item img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ---- CTA flottant ---- */
.cta-floating {
  position: fixed;
  bottom: var(--gap-lg);
  right: var(--gap-lg);
  z-index: 900;
  animation: cta-pulse 3s ease-in-out infinite;
}

.cta-floating .btn {
  box-shadow: var(--shadow-xl);
  padding: 14px 24px;
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* Masquer le CTA flottant sur mobile (trop intrusif) */
@media (width <= 768px) {
  .cta-floating {
    bottom: var(--gap-md);
    right: var(--gap-md);
  }

  .cta-floating .btn {
    padding: 12px 18px;
    font-size: 0.8125rem;
  }
}

/* ---- Bandeau CTA pleine largeur ---- */
.cta-banner {
  background: var(--gradient-brand);
  color: var(--c-white);
  padding: var(--gap-xl) 0;
  text-align: center;
}

.cta-banner h2,
.cta-banner h3 {
  color: var(--c-white);
  margin-bottom: var(--gap-sm);
}

.cta-banner p {
  color: rgb(255 255 255 / 85%);
  margin-bottom: var(--gap-lg);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background-color: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-white);
}

.cta-banner .btn:hover {
  background-color: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow-lg);
}

/* ---- Accordéon (FAQ) ---- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.accordion__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-white);
  border-left: 3px solid transparent;
  transition: border-left-color var(--dur-fast) var(--ease);
}

.accordion__item[open] {
  box-shadow: var(--shadow-sm);
  border-left-color: var(--c-teal);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--gap-md) var(--gap-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-night);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.accordion__trigger::-webkit-details-marker {
  display: none;
}

.accordion__trigger::marker {
  display: none;
  content: '';
}

.accordion__trigger:hover {
  background-color: var(--c-light-bg);
}

/* Icône d'ouverture/fermeture */
.accordion__trigger::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  margin-left: var(--gap-md);
}

.accordion__item[open] .accordion__trigger::after {
  content: '\2212'; /* signe moins */
}

.accordion__content {
  padding: 0 var(--gap-lg) var(--gap-lg);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.7;
}

.accordion details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-white);
  border-left: 3px solid transparent;
  margin-bottom: var(--gap-sm);
  transition: border-left-color var(--dur-fast) var(--ease);
}

.accordion details[open] {
  border-left-color: var(--c-teal);
  box-shadow: var(--shadow-sm);
}

.accordion details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) var(--gap-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-night);
  cursor: pointer;
  list-style: none;
}

.accordion details summary::-webkit-details-marker {
  display: none;
}

.accordion details > div,
.accordion details > p {
  padding: 0 var(--gap-lg) var(--gap-lg);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.7;
}

/* ---- FAQ page dédiée ---- */
.faq-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl);
  max-width: 820px;
  margin: 0 auto;
}

.faq-category {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.faq-category__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-xs);
}

.faq-category__title svg {
  color: var(--c-teal);
  flex-shrink: 0;
}

/* ---- FAQ page — details.accordion (standalone accordion items) ---- */
details.accordion {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-white);
  border-left: 3px solid transparent;
  margin-bottom: var(--gap-sm);
  transition: border-left-color var(--dur-fast) var(--ease);
}

details.accordion[open] {
  border-left-color: var(--c-teal);
  box-shadow: var(--shadow-sm);
}

details.accordion .accordion__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) var(--gap-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-night);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}

details.accordion .accordion__question::-webkit-details-marker {
  display: none;
}

details.accordion .accordion__question::marker {
  display: none;
  content: '';
}

details.accordion .accordion__question:hover {
  background-color: var(--c-light-bg);
}

details.accordion .accordion__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  flex-shrink: 0;
  margin-left: var(--gap-md);
}

details.accordion[open] .accordion__question::after {
  content: '\2212';
}

details.accordion .accordion__answer {
  padding: 0 var(--gap-lg) var(--gap-lg);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.7;
}

/* ---- FAQ (details/summary sur pages prestations) ---- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-white);
  border-left: 3px solid transparent;
  transition: border-left-color var(--dur-fast) var(--ease);
}

.faq__item[open] {
  border-left-color: var(--c-teal);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-md) var(--gap-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-night);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: '';
}

.faq__question:hover {
  background-color: var(--c-light-bg);
}

.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  flex-shrink: 0;
  margin-left: var(--gap-md);
}

.faq__item[open] .faq__question::after {
  content: '\2212';
}

.faq__answer {
  padding: 0 var(--gap-lg) var(--gap-lg);
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.7;
}

/* ---- Grille portfolio ---- */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-xl);
}

.portfolio-filter {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.portfolio-filter:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.portfolio-filter.active {
  background-color: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

/* Élément portfolio */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Legacy portfolio item without img-wrap: use aspect-ratio */
.portfolio-item:not(:has(.portfolio-item__img-wrap)) {
  aspect-ratio: 4 / 3;
}

.portfolio-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-item__img {
  transform: scale(1.06);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(15 23 42 / 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  padding: var(--gap-lg);
  text-align: center;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--gap-xs);
}

.portfolio-item__cat {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 70%);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Lightbox (visionneuse plein écran) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgb(15 23 42 / 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease),
    visibility var(--dur-fast) var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: absolute;
  top: var(--gap-lg);
  right: var(--gap-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 10%);
  border: none;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.lightbox__close:hover {
  background-color: rgb(255 255 255 / 25%);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 10%);
  border: none;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.lightbox__nav:hover {
  background-color: rgb(255 255 255 / 25%);
}

.lightbox__nav--prev {
  left: var(--gap-lg);
}

.lightbox__nav--next {
  right: var(--gap-lg);
}

/* ---- Lightbox overlay (classes JS dynamiques) ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgb(15 23 42 / 95%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: rgb(255 255 255 / 80%);
  font-size: 0.9375rem;
  margin-top: var(--gap-md);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--gap-lg);
  right: var(--gap-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 10%);
  border: none;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1;
  transition: background-color var(--dur-fast) var(--ease);
}

.lightbox-close:hover {
  background-color: rgb(255 255 255 / 25%);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 10%);
  border: none;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1;
  transition: background-color var(--dur-fast) var(--ease);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgb(255 255 255 / 25%);
}

.lightbox-prev {
  left: var(--gap-lg);
}

.lightbox-next {
  right: var(--gap-lg);
}

body.lightbox-open {
  overflow: hidden;
}

@media (width <= 768px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* ---- Chronologie (Timeline) ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--gap-lg) 0;
}

/* Ligne verticale centrale */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--c-border);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: var(--gap-md) var(--gap-lg);
}

/* Éléments pairs à gauche, impairs à droite */
.timeline__item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: var(--gap-xl);
}

.timeline__item:nth-child(even) {
  margin-left: 50%;
  text-align: left;
  padding-left: var(--gap-xl);
}

/* Point sur la ligne */
.timeline__item::before {
  content: '';
  position: absolute;
  top: var(--gap-lg);
  width: 14px;
  height: 14px;
  background-color: var(--c-primary);
  border: 3px solid var(--c-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline__item:nth-child(odd)::before {
  right: -7px;
}

.timeline__item:nth-child(even)::before {
  left: -7px;
}

.timeline__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--gap-xs);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-xs);
}

.timeline__desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Timeline responsive : colonne unique sur mobile */
@media (width <= 768px) {
  .timeline::before {
    left: 16px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline__item::before,
  .timeline__item:nth-child(odd)::before,
  .timeline__item:nth-child(even)::before {
    left: 10px;
    right: auto;
  }
}

/* ---- Badge (étiquettes normes, catégories) ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 100px;
  white-space: nowrap;
  background-color: var(--c-light-bg);
  color: var(--c-text);
}

.badge--primary {
  background-color: rgb(30 58 95 / 10%);
  color: var(--c-primary);
}

.badge--success {
  background-color: rgb(16 185 129 / 10%);
  color: var(--c-success);
}

.badge--accent {
  background-color: rgb(245 158 11 / 10%);
  color: var(--c-accent);
}

.badge--dark {
  background-color: var(--c-night);
  color: var(--c-white);
}

/* ---- Conteneur de carte (Google Maps) ---- */
.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Groupes de formulaire ---- */
.form-group {
  margin-bottom: var(--gap-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-night);
  margin-bottom: var(--gap-xs);
}

.form-group .form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: var(--gap-xs);
}

/* États de validation */
.form-group--error .form-input,
.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: #ef4444;
}

.form-group--error .form-error {
  display: block;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: var(--gap-xs);
}

.form-group--success .form-input,
.form-group--success input,
.form-group--success textarea,
.form-group--success select {
  border-color: var(--c-success);
}

/* ---- Messages d'alerte ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* Information */
.alert--info {
  background-color: rgb(30 58 95 / 8%);
  border-color: rgb(30 58 95 / 20%);
  color: #1e3a5f;
}

/* Succès */
.alert--success {
  background-color: rgb(16 185 129 / 8%);
  border-color: rgb(16 185 129 / 20%);
  color: #065f46;
}

/* Avertissement */
.alert--warning {
  background-color: rgb(245 158 11 / 8%);
  border-color: rgb(245 158 11 / 20%);
  color: #92400e;
}

/* Erreur */
.alert--error {
  background-color: rgb(239 68 68 / 8%);
  border-color: rgb(239 68 68 / 20%);
  color: #991b1b;
}

/* ---- Page héro (pages intérieures sans image plein écran) ---- */
.page-hero {
  background-color: var(--c-night);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: var(--gap-2xl) 0 var(--gap-xl);
  color: var(--c-white);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(15 23 42 / 85%) 0%,
    rgb(30 58 95 / 70%) 50%,
    rgb(74 157 132 / 35%) 100%
  );
  z-index: 1;
}

.page-hero > .container,
.page-hero > .page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gap-lg);
}

.page-hero__content h1,
.page-hero h1,
.page-hero h2 {
  color: var(--c-white);
}

.page-hero p,
.page-hero__desc {
  color: rgb(255 255 255 / 85%);
}

.page-hero__lead {
  font-size: 1.125rem;
  color: rgb(255 255 255 / 85%);
  max-width: 60ch;
  margin: 0 auto;
}

.page-hero .breadcrumb,
.hero .breadcrumb {
  justify-content: center;
  margin-bottom: var(--gap-md);
}

.page-hero .breadcrumb__link,
.page-hero .breadcrumb__item,
.hero .breadcrumb__link,
.hero .breadcrumb__item {
  color: rgb(255 255 255 / 75%);
}

.page-hero .breadcrumb__link:hover,
.hero .breadcrumb__link:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.page-hero .breadcrumb__current,
.page-hero .breadcrumb__item--current,
.page-hero .breadcrumb__item--active,
.hero .breadcrumb__current,
.hero .breadcrumb__item--current,
.hero .breadcrumb__item--active {
  color: var(--c-white);
  font-weight: 600;
}

.page-hero .breadcrumb__sep,
.hero .breadcrumb__sep {
  color: rgb(255 255 255 / 60%);
  margin: 0 6px;
  font-weight: 400;
}

.page-hero .breadcrumb__item + .breadcrumb__item::before,
.hero .breadcrumb__item + .breadcrumb__item::before {
  color: rgb(255 255 255 / 50%);
}

/* ---- Feature card (ouvrage types) ---- */
.card-feature,
.feature-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-feature:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-feature__icon,
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--gap-md);
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
}

.card-feature__icon svg,
.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.card-feature__title,
.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.card-feature__desc,
.feature-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Two-column content layouts ---- */
.content-two-col,
.layout-2col,
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.content-two-col__text,
.layout-2col__text,
.split-content__text {
  /* text column */
}

.content-two-col__image,
.layout-2col__img,
.split-content__visual {
  /* image column */
}

.content-two-col__image img,
.layout-2col__img img,
.split-content__visual img,
.split-content__img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius-lg);
}

/* ---- Table styling ---- */
.comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table,
table.styled,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th,
table.styled th,
.prose th {
  background-color: var(--c-night);
  color: var(--c-white);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.comparison-table td,
table.styled td,
.prose td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: top;
}

.comparison-table tr:nth-child(even),
table.styled tr:nth-child(even),
.prose tr:nth-child(even) {
  background-color: var(--c-light-bg);
}

.comparison-table tr:last-child td,
table.styled tr:last-child td,
.prose tr:last-child td {
  border-bottom: none;
}

/* ---- LOD grid (niveaux de détail BIM) ---- */
.lod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-lg);
}

.lod-item {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.lod-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.lod-item--highlight {
  border-color: var(--c-primary);
  border-width: 2px;
}

.lod-item__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  background-color: var(--c-light-bg);
  color: var(--c-text);
  margin-bottom: var(--gap-sm);
}

.lod-item__badge--primary {
  background-color: rgb(30 58 95 / 10%);
  color: var(--c-primary);
}

.lod-item__badge--accent {
  background-color: rgb(245 158 11 / 10%);
  color: var(--c-accent);
}

.lod-item h3 {
  font-size: 1.125rem;
  margin-bottom: var(--gap-sm);
}

.lod-item p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Gallery grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-lg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--c-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.gallery-item--large {
  grid-column: 1 / -1;
}

.gallery-item img,
.gallery-item__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-item--large img {
  aspect-ratio: 21 / 9;
}

.gallery-item figcaption,
.gallery-item__caption {
  padding: var(--gap-md) var(--gap-lg);
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ---- Software card ---- */
.software-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.software-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.software-card__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--gap-md);
}

.software-card__features {
  list-style: disc;
  padding-left: var(--gap-lg);
  font-size: 0.875rem;
  color: var(--c-text);
}

.software-card__features li + li {
  margin-top: var(--gap-xs);
}

/* ---- Material card ---- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

.material-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
}

.material-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.material-card__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--gap-md);
}

.material-card__list {
  list-style: disc;
  padding-left: var(--gap-lg);
  font-size: 0.875rem;
  color: var(--c-text);
}

.material-card__list li + li {
  margin-top: var(--gap-xs);
}

/* ---- Norm detail card ---- */
.norms-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

.norm-detail-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
}

.norm-detail-card__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  background-color: rgb(30 58 95 / 10%);
  color: var(--c-primary);
  margin-bottom: var(--gap-sm);
}

.norm-detail-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.norm-detail-card__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Process steps ---- */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: var(--gap-lg);
  padding: var(--gap-lg) 0;
  border-bottom: 1px solid var(--c-border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--c-white);
  font-size: 1.25rem;
  font-weight: 800;
}

.process-step__content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--gap-sm);
}

.process-step__content p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Team card ---- */
.card-team {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-team:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-team__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-team__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-team__info {
  padding: var(--gap-lg);
}

.card-team__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-xs);
}

.card-team__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--gap-sm);
}

.card-team__bio {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Tool card ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

.card-tool {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-tool:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-tool__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--gap-md);
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
}

.card-tool__icon svg {
  width: 28px;
  height: 28px;
}

.card-tool__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.card-tool__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Value card ---- */
.card-value {
  text-align: center;
  padding: var(--gap-lg);
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--gap-md);
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
}

.card-value__icon svg {
  width: 28px;
  height: 28px;
}

.card-value__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.card-value__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.card-value__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}

/* ---- Deliverable card (plans d'exécution) ---- */
.deliverable-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.deliverable-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.deliverable-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--gap-md);
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
}

.deliverable-card__icon svg {
  width: 28px;
  height: 28px;
}

.deliverable-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.deliverable-card p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Contrainte globale : icônes SVG dans les cartes ---- */
[class*='card'] [class*='icon'] svg,
[class*='-card'] [class*='icon'] svg {
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
}

/* ---- Styled list (zone intervention) ---- */
.list-styled {
  list-style: disc;
  padding-left: var(--gap-lg);
  margin-bottom: var(--gap-md);
}

.list-styled li + li {
  margin-top: var(--gap-sm);
}

.list-styled li {
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 6px 0;
}

/* ---- Legal content ---- */
.legal-content {
  max-width: 100%;
  padding-left: var(--gap-lg);
  padding-right: var(--gap-lg);
}

/* ---- Blog article styles ---- */
.page-hero--article {
  padding-bottom: var(--gap-2xl);
}

.page-hero--article h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 700px;
  line-height: 1.25;
  margin-bottom: var(--gap-md);
}

.page-hero__desc {
  font-size: 1rem;
  color: rgb(255 255 255 / 75%);
  max-width: 600px;
  line-height: 1.7;
  margin-top: var(--gap-sm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 70%);
}

.article-meta__date {
  font-weight: 500;
}

.article-meta__author {
  font-weight: 400;
}

.article-meta__author strong {
  font-weight: 700;
  color: var(--c-white);
}

.article-meta__reading {
  color: rgb(255 255 255 / 55%);
}

.card-blog__tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-brand);
  color: var(--c-white);
  border-radius: 100px;
}

.container--narrow {
  max-width: 800px;
}

.section--no-padding-top {
  padding-top: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
  padding-bottom: var(--gap-lg);
}

.section--no-padding-top .container--narrow {
  max-width: var(--max-w);
}

.article-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.article-figure__img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-figure__caption {
  padding: 12px var(--gap-lg);
  background-color: var(--c-white);
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-style: italic;
}

.article-figure--inline {
  margin: 28px 0;
}

.article-figure--inline .article-figure__img {
  aspect-ratio: 16 / 9;
}

/* ---- Article TOC ---- */
.article-toc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.article-toc__title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.article-toc__list {
  columns: 2;
  column-gap: 32px;
  list-style: decimal;
  padding-left: 20px;
}

.article-toc__list li {
  padding: 5px 0;
  font-size: 0.875rem;
  break-inside: avoid;
  color: var(--c-muted);
}

.article-toc__list a {
  color: var(--c-steel);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.article-toc__list a:hover {
  color: var(--c-teal);
}

/* ---- Article sections ---- */
.article-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.article-section:last-of-type {
  border-bottom: none;
}

.article-section h2 {
  font-size: 1.375rem;
  margin-bottom: 20px;
  padding: 14px 0 14px 20px;
  color: var(--c-steel);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--c-teal);
  background: linear-gradient(90deg, rgb(74 157 132 / 5%) 0%, transparent 40%);
}

.article-section h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--c-night);
  font-weight: 600;
}

.article-section h4 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--c-night);
  font-weight: 600;
}

.article-section p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #4b5c6e;
  margin-bottom: 20px;
  max-width: 65ch;
}

.article-section p strong {
  color: var(--c-night);
  font-weight: 600;
}

.article-section ul,
.article-section ol {
  padding-left: 24px;
  margin: 16px 0 24px;
}

.article-section ul {
  list-style: none;
}

.article-section ul > li {
  position: relative;
  padding-left: 18px;
}

.article-section ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
}

.article-section ol {
  list-style: decimal;
}

.article-section li {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 8px;
  color: #4b5c6e;
}

.article-section li strong {
  color: var(--c-night);
}

.article-section a {
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-section a:hover {
  color: var(--c-steel);
}

/* ---- Article callout ---- */
.article-callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  margin: 28px 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-teal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--c-text);
}

.article-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-teal);
}

.article-callout p {
  margin: 0;
  font-size: 0.875rem;
  max-width: none;
}

.article-callout--tip {
  border-left-color: var(--c-teal);
  background: rgb(74 157 132 / 4%);
}

/* ---- Article formula ---- */
.article-formula {
  text-align: center;
  padding: 24px;
  margin: 24px 0;
  background: var(--c-night);
  color: var(--c-white);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.article-formula strong {
  font-size: 1.25rem;
}

/* ---- Article table ---- */
.article-table-wrapper {
  margin: 24px 0 32px;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-table th {
  background: var(--c-steel);
  color: var(--c-white);
  font-weight: 600;
  text-align: left;
  padding: 11px 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.article-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}

.article-table tr:nth-child(even) {
  background-color: var(--c-light-bg);
}

.article-table tr:last-child td {
  border-bottom: none;
}

/* ---- Article CTA ---- */
.article-cta {
  text-align: center;
  padding: 48px 40px;
  margin: 48px 0;
  background: var(--c-night);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article-cta h3 {
  color: var(--c-white);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.article-cta p {
  color: rgb(255 255 255 / 70%);
  max-width: 50ch;
  margin: 0 auto 28px;
  font-size: 0.9375rem;
}

.article-cta__actions {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  flex-wrap: wrap;
}

.article-cta .btn {
  text-decoration: none;
}

.article-cta .btn-primary {
  background: var(--c-white);
  color: var(--c-night);
  border-color: var(--c-white);
  font-weight: 700;
}

.article-cta .btn-primary:hover {
  background: rgb(255 255 255 / 90%);
  color: var(--c-night);
}

.article-cta__actions .btn-secondary {
  color: var(--c-white);
  border-color: rgb(255 255 255 / 40%);
}

.article-cta__actions .btn-secondary:hover {
  background: rgb(255 255 255 / 10%);
  border-color: var(--c-white);
  color: var(--c-white);
}

/* ---- Article nav (back to blog) ---- */
.article-nav {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
  margin-top: 40px;
}

.article-nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-steel);
  text-decoration: none;
}

.article-nav__back:hover {
  color: var(--c-teal);
}

@media (width <= 768px) {
  .article-toc__list {
    columns: 1;
  }

  .article-callout {
    flex-direction: column;
    gap: 8px;
  }

  .article-section h2 {
    font-size: 1.25rem;
  }
}

@media (width <= 768px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
  }

  .page-hero--article h1 {
    font-size: 1.5rem;
  }

  .container--narrow {
    padding-left: var(--gap-md);
    padding-right: var(--gap-md);
  }
}

/* ---- Blog "Retour au blog" link ---- */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: var(--gap-lg);
}

.article-back:hover {
  color: var(--c-teal);
}

/* ---- Portfolio item info (realisations page extended) ---- */
.portfolio-item__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-item__img-wrap .portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(15 23 42 / 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.portfolio-item:hover .portfolio-item__img-wrap .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__zoom {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255 / 20%);
  border: none;
  border-radius: 50%;
  color: var(--c-white);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.portfolio-item__zoom:hover {
  background-color: rgb(255 255 255 / 40%);
}

.portfolio-item__zoom svg {
  width: 24px;
  height: 24px;
}

.portfolio-item__info {
  padding: var(--gap-md) var(--gap-lg);
}

.portfolio-item__category {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  margin-bottom: var(--gap-xs);
}

.portfolio-item__meta {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.portfolio-empty {
  text-align: center;
  color: var(--c-muted);
  padding: var(--gap-xl) 0;
}

/* ---- Info card (secteurs, avantages) ---- */
.info-card {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  border-top: 3px solid var(--c-teal);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.info-card__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Prose block (styled text container) ---- */
.prose-block {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-xl) var(--gap-lg);
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.prose-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.prose-block p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--c-text);
}

.prose-block p strong {
  color: var(--c-night);
}

/* ---- Section helpers ---- */
.section--sm {
  padding: var(--gap-lg) 0;
}

.section--pt-0 {
  padding-top: 0;
}

.section__intro {
  font-size: 1rem;
  color: var(--c-text);
  max-width: 60ch;
  margin: var(--gap-sm) auto 0;
}

/* ---- Responsive composants ---- */
@media (width <= 1024px) {
  .content-two-col,
  .layout-2col,
  .split-content {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

@media (width <= 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .trust-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
    overflow-x: visible;
  }

  .lightbox__nav {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lod-grid,
  .materials-grid,
  .norms-detail-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: column;
    gap: var(--gap-md);
  }

  .comparison-table {
    margin-left: calc(var(--gap-md) * -1);
    margin-right: calc(var(--gap-md) * -1);
    padding: 0 var(--gap-md);
  }

  .comparison-table table {
    font-size: 0.75rem;
  }

  .comparison-table th {
    font-size: 0.75rem;
    padding: 8px 6px;
    white-space: normal;
  }

  .comparison-table td {
    padding: 8px 6px;
  }

  .article-table-wrapper {
    margin-left: calc(var(--gap-md) * -1);
    margin-right: calc(var(--gap-md) * -1);
    padding: 0 var(--gap-md);
  }

  .article-table {
    font-size: 0.75rem;
  }

  .article-table th {
    font-size: 0.75rem;
    padding: 8px 6px;
    white-space: normal;
  }

  .article-table td {
    padding: 8px 6px;
  }
}

@media (width <= 480px) {
  .card__body {
    padding: var(--gap-md);
  }

  .card-service {
    padding: var(--gap-md);
  }

  .card-blog__body {
    padding: var(--gap-md);
  }

  .counter__number {
    font-size: 2rem;
  }

  .norms-grid {
    grid-template-columns: 1fr;
  }

  .card-step {
    padding: var(--gap-md);
  }
}

/* ---- Norms grid (ouvrages pages) ---- */
.norms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-md);
}

.norm-badge {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 12px 16px;
  background-color: var(--c-white);
  border-left: 3px solid var(--c-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.norm-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.norm-badge__code {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-steel);
  white-space: nowrap;
  min-width: 100px;
}

.norm-badge__label {
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* ---- Norm item (detailed norms with code + title + desc) ---- */
.norm-item {
  background-color: var(--c-white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-teal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.norm-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.norm-item__code {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-teal);
  letter-spacing: 0.02em;
}

.norm-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-night);
}

.norm-item__desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ---- Card step (approach/process numbered cards) ---- */
.card-step {
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  padding: var(--gap-lg);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.card-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-brand);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: var(--gap-md);
}

.card-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-sm);
}

.card-step__desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---- Quality grid (plans d'exécution QA section) ---- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.quality-item {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.quality-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quality-item > svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--c-white);
  stroke: var(--c-white);
}

.quality-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: var(--gap-xs);
}

.quality-item p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}

@media (width <= 768px) {
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-item {
    flex-direction: column;
  }
}
