/*
Theme Name: EDI-TECH
Author: Intside
Description: Site vitrine et catalogue — Bootstrap, inline-block, rem, mobile-first
Version: 2.0
*/

/**
 * Table of Contents:
 *
 * 1.0 - Basic Structure
 *   1.1 - Reset
 *   1.2 - Typographie
 *   1.3 - Titres de contenu
 *   1.4 - Boutons
 *   1.5 - Sections
 *   1.6 - Navbar
 *   1.7 - Cartes & composants
 *   1.8 - Formulaires
 *   1.9 - Footer
 *   1.10 - Animations
 *   1.11 - Utilitaires
 * 2.0 - Media Queries (intégrées, mobile-first)
 * ----------------------------------------------------------------------------
 */

/* ═══════════════════════════════════════════════════════════
   1.1 - Reset
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: clip;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: clip;
  background-color: var(--bg-body);
  font-family: var(--font-body), sans-serif;
  /* Corps éditorial 17 → 19px (le DS montait à 20px en fluide) : les paliers
     remplacent le clamp() d'origine, interdit par le guide. */
  font-size: 1.0625rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  background: none;
  border: none;
}

span,
a {
  display: inline-block;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul li,
ol li {
  list-style-type: none;
}

::selection {
  background-color: rgba(29, 162, 73, 0.25);
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink-100);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lien d'évitement — visible uniquement au focus clavier */
.skip-to-main-content-link {
  position: absolute;
  /* Assez haut pour rester hors champ quelle que soit la taille du corps. */
  top: -6rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink-800);
  font-weight: 600;
  color: var(--on-dark);
  transition: top 0.2s ease;
}

.skip-to-main-content-link:focus {
  top: 1rem;
  color: var(--on-dark);
}

/* ═══════════════════════════════════════════════════════════
   1.2 - Typographie
   ═══════════════════════════════════════════════════════════ */

h1,
h2,
.h3,
.h4,
.h5,
.h6 {
  margin: 0;
  font-family: var(--font-heading), sans-serif;
  font-weight: 700;
  line-height: 1.15;
  /* Les titres portent des mots longs (« l'autonomie », « dimensionnement ») :
     sans cette césure, ils débordent la colonne sur les petits écrans. */
  overflow-wrap: break-word;
  color: var(--text-main);
}

/* Échelle éditoriale du design system : 40 → 80px pour h1, ratio ≥ 1,30 entre
   les niveaux. Les paliers 992 / 1200px remplacent les clamp() d'origine. */
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.08;
}

.h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.h4 {
  font-size: 1.25rem;
}

.h5 {
  font-size: 1.125rem;
}

.h6 {
  font-size: 1rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

strong {
  font-weight: 700;
  color: var(--primary-dark);
}

h1 strong,
h2 strong {
  font-weight: inherit;
  color: var(--primary-dark);
}

small {
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════
   1.3 - Titres de contenu
   ═══════════════════════════════════════════════════════════ */

.content-title-h1 h1,
.content-title-h2 h2 {
  text-wrap: balance;
}

.content-subtitle {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.content-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.content-link {
  font-weight: 600;
  color: var(--primary-dark);
  transition: color 0.2s;
}

.content-link:hover {
  color: var(--primary-hover);
}

.content-link svg {
  margin-left: 0.375rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.content-link:hover svg {
  transform: translateX(3px);
}

/* Kicker de section — l'étiquette ambre au-dessus des titres */
.section-label {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.section-label svg {
  margin-right: 0.375rem;
  vertical-align: -0.1875rem;
}

.section-label-light {
  background: rgba(29, 162, 73, 0.14);
  color: var(--green-300);
}

/* ═══════════════════════════════════════════════════════════
   1.4 - Boutons
   ═══════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.375;
  padding: 0.75rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-0.125rem);
}

.btn:active {
  transform: translateY(0);
}

.btn,
.btn:hover,
.btn:focus,
:not(.btn-check) + .btn:active,
.btn:first-child:active,
.btn:focus-visible {
  border-width: 1px;
  border-style: solid;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
:not(.btn-check) + .btn:active.btn-primary,
.btn:first-child:active.btn-primary,
.btn:focus-visible.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  color: #fff; /* 5,3:1 sur --primary (vert #157A39) */
  box-shadow: 0 4px 14px rgba(29, 162, 73, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 162, 73, 0.35);
}

.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
:not(.btn-check) + .btn:active.btn-dark,
.btn:first-child:active.btn-dark,
.btn:focus-visible.btn-dark {
  background-color: var(--ink-800);
  border-color: var(--ink-800);
  color: var(--ink-50);
}

.btn-dark:hover {
  background-color: var(--ink-700);
  border-color: var(--ink-700);
  box-shadow: 0 8px 24px rgba(14, 26, 45, 0.2);
}

.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
:not(.btn-check) + .btn:active.btn-outline-primary,
.btn:first-child:active.btn-outline-primary,
.btn:focus-visible.btn-outline-primary {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-outline-primary:hover {
  background-color: rgba(29, 162, 73, 0.06);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  background-color: var(--bg-section);
  border-color: var(--ink-300);
  color: var(--text-main);
}

.btn-white,
.btn-white:hover,
.btn-white:focus {
  background-color: var(--bg-card);
  border-color: var(--bg-card);
  color: var(--ink-800);
}

.btn-social,
.btn-social:hover,
.btn-social:focus {
  background-color: var(--green-600);
  border-color: var(--green-600);
  color: var(--ink-50);
}

.btn-social:hover {
  background-color: var(--green-700);
  border-color: var(--green-700);
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--destructive);
  border-color: var(--destructive);
  color: var(--ink-50);
}

button.btn {
  border: 1px solid transparent;
  cursor: pointer;
}

.btn svg {
  width: 17px;
  height: 17px;
  margin-right: 0.5rem;
  vertical-align: -0.25rem;
}

.btn-icon-right svg {
  margin-right: 0;
  margin-left: 0.5rem;
}

.btn-icon-right:hover svg {
  transform: translateX(3px);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.9375rem 1.75rem;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-group-inline .btn {
  margin: 0 0.625rem 0.625rem 0;
}

/* ═══════════════════════════════════════════════════════════
   1.5 - Sections
   ═══════════════════════════════════════════════════════════ */

.section-py {
  padding: 4rem 0;
}

.section-py-sm {
  padding: 3rem 0;
}

.section-bg {
  background-color: var(--bg-section);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--on-dark-secondary);
}

.section-dark h1,
.section-dark h2,
.section-dark .h3,
.section-dark .h4,
.section-dark .h5 {
  color: var(--on-dark);
}

.section-dark .content-subtitle,
.section-dark .content-desc {
  color: var(--on-dark-muted);
}

.section-bt {
  border-top: 1px solid var(--border);
}

.section-bb {
  border-bottom: 1px solid var(--border);
}

/* CTA final — dernière section avant le footer */
.final-cta {
  position: relative;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--ink-800);
  text-align: center;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  top: -6.25rem;
  left: 50%;
  width: 25rem;
  height: 25rem;
  margin-left: -12.5rem;
  border-radius: 50%;
  background: rgba(29, 162, 73, 0.08);
  pointer-events: none;
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--on-dark);
}

.final-cta p {
  margin-top: 1rem;
  color: var(--on-dark-muted);
}

.final-cta .btn-group-inline {
  margin-top: 2rem;
}

/* En-tête de page intérieure */
.page-hero {
  padding: 7.5rem 0 3rem;
  background-color: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.page-hero .content-subtitle {
  margin-top: 1rem;
}

.breadcrumb-custom {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.breadcrumb-custom a {
  color: var(--text-light);
  transition: color 0.2s;
}

.breadcrumb-custom a:hover {
  color: var(--primary-dark);
}

.breadcrumb-custom .sep {
  margin: 0 0.375rem;
}

/* ═══════════════════════════════════════════════════════════
   1.6 - Navbar
   ═══════════════════════════════════════════════════════════ */

nav {
  background-color: var(--overlay);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 3px rgba(14, 26, 45, 0.04);
}

.navbar-brand img {
  width: auto;
  height: 2.25rem;
}

.navbar-toggler {
  background: none;
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggler span + span {
  margin-top: 5px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav .navbar-collapse .navbar-nav .menu-item a {
  display: block;
  position: relative;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}

nav .navbar-collapse .navbar-nav .menu-item a:hover,
nav .navbar-collapse .navbar-nav .menu-item a.active {
  color: var(--primary-dark);
}

nav .navbar-collapse .navbar-nav .menu-item-has-children > a::before {
  content: '+';
  position: absolute;
  top: 0.75rem;
  right: 0.25rem;
  font-size: 1.25rem;
  color: var(--text-light);
  transition: transform 0.2s ease-in-out;
}

nav .navbar-collapse .navbar-nav .menu-item-has-children > a[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

nav .navbar-collapse .navbar-nav .menu-item .sub-menu .menu-item a {
  padding: 0.625rem 0 0.625rem 1.25rem;
  border-bottom: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

nav .navbar-collapse .navbar-nav .menu-item .sub-menu .menu-item a svg {
  margin-right: 0.5rem;
  vertical-align: -0.25rem;
  color: var(--primary);
}

.navbar-cta {
  padding: 1.125rem 0 0;
}

.navbar-cta .btn {
  display: block;
  width: 100%;
  margin: 0 0 0.625rem;
  text-align: center;
}

/* Groupe panier + hamburger (mobile) */
.navbar-actions > * {
  vertical-align: middle;
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Panier — pastille de comptage */
.nav-cart {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  text-align: center;
  line-height: 2.75rem;
  color: var(--text-muted);
  transition: background-color 0.2s, color 0.2s;
}

.nav-cart:hover {
  background-color: var(--bg-section);
  color: var(--text-main);
}

.nav-cart svg {
  vertical-align: middle;
}

.nav-cart-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border: 2px solid var(--bg-body);
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 0.875rem;
  color: var(--ink-800);
}

/* ═══════════════════════════════════════════════════════════
   1.7 - Cartes & composants
   ═══════════════════════════════════════════════════════════ */

.service-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Cartes empilées dans une même colonne : la hauteur suit le contenu
   (height: 100% ne vaut que pour des cartes réparties en `row`/`col`). */
.service-stack .service-card {
  height: auto;
}

.service-card .h4,
.service-card .h5 {
  margin-top: 1.25rem;
}

.service-card p {
  margin-top: 0.75rem;
}

.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  text-align: center;
  line-height: 3.25rem;
  color: var(--primary-dark);
}

.service-icon svg {
  vertical-align: middle;
}

.service-icon-social {
  background: var(--success-light);
  color: var(--accent-dark);
}

.service-icon-ink {
  background: var(--info-light);
  color: var(--text-main);
}

/* Carte média (produit, réalisation) */
.media-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.media-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.media-card-img {
  position: relative;
  background: var(--bg-section);
  overflow: hidden;
}

.media-card-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .media-card-img img {
  transform: scale(1.04);
}

.media-card-img .chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.media-card-body {
  padding: 1.25rem;
}

.media-card-body .h5 {
  transition: color 0.2s;
}

.media-card:hover .media-card-body .h5 {
  color: var(--primary-dark);
}

.media-card-meta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Placeholder d'image manquante — occupe le même cadre que l'image */
.media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding-top: 20%;
  background: var(--bg-section);
  text-align: center;
  color: var(--ink-300);
}

/* Chips & badges */
.chip {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
}

.chip svg {
  margin-right: 0.25rem;
  vertical-align: -0.1875rem;
}

.chip-solar {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.chip-green {
  background: var(--success-light);
  color: var(--accent-dark);
}

.chip-red {
  background: var(--destructive-light);
  color: var(--destructive);
}

.chip-ink {
  background: var(--info-light);
  color: var(--text-muted);
}

.chip-outline {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}

/* Statistiques */
.stat-block .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-block .stat-label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.section-dark .stat-block .stat-number {
  color: var(--green-400);
}

.section-dark .stat-block .stat-label {
  color: var(--on-dark-muted);
}

/* Liste de points cochés */
.check-list li {
  position: relative;
  padding-left: 1.875rem;
}

.check-list li + li {
  margin-top: 0.75rem;
}

.check-list li svg {
  position: absolute;
  top: 0.1875rem;
  left: 0;
  color: var(--accent-dark);
}

/* Étapes numérotées */
.step-item .step-index {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink-800);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  line-height: 2.5rem;
  color: var(--green-400);
}

.step-item .h5 {
  margin-top: 1rem;
}

.step-item p {
  margin-top: 0.5rem;
}

/* Citation / témoignage */
.quote-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.quote-card .quote-mark {
  color: var(--green-300);
}

.quote-card blockquote {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-main);
}

.quote-author {
  margin-top: 1.25rem;
}

.quote-author > * {
  vertical-align: middle;
}

.quote-author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-light);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  line-height: 2.75rem;
  color: var(--primary-dark);
}

.quote-author-meta {
  margin-left: 0.75rem;
  font-size: 0.875rem;
}

.quote-author-meta .name {
  display: block;
  font-weight: 700;
  color: var(--text-main);
}

/* État vide */
.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  text-align: center;
}

.empty-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-section);
  text-align: center;
  line-height: 3.5rem;
  color: var(--text-light);
}

.empty-state .h5 {
  margin-top: 1rem;
}

.empty-state p {
  margin-top: 0.5rem;
}

/* Bandeau d'alerte / message flash */
.alert-custom {
  position: relative;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.9375rem;
}

.alert-custom svg {
  position: absolute;
  top: 1.0625rem;
  left: 1.125rem;
}

.alert-success {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--success-light);
  color: var(--accent-dark);
}

.alert-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--destructive-light);
  color: var(--destructive);
}

.alert-warning {
  border-color: rgba(29, 162, 73, 0.3);
  background: var(--warning-light);
  color: var(--primary-dark);
}

/* Étape de suivi (timeline) */
.timeline-step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  bottom: 0;
  left: 1.1875rem;
  width: 2px;
  background: var(--border);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step .timeline-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  text-align: center;
  line-height: 2.5rem;
  color: var(--text-light);
}

.timeline-step.is-done::before {
  background: var(--accent);
}

.timeline-step.is-done .timeline-dot {
  border-color: transparent;
  background: var(--success-light);
  color: var(--accent-dark);
}

.timeline-step.is-current .timeline-dot {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* FAQ */
.faq-wrap details {
  border-bottom: 1px solid var(--border);
}

.faq-wrap summary {
  display: block;
  position: relative;
  padding: 1.1875rem 2.5rem 1.1875rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

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

.faq-wrap summary::after {
  content: '+';
  position: absolute;
  top: 1rem;
  right: 0.25rem;
  font-size: 1.375rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-wrap details[open] summary::after {
  transform: rotate(45deg);
}

.faq-wrap details p {
  padding: 0 0.25rem 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   1.8 - Formulaires
   ═══════════════════════════════════════════════════════════ */

.form-label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1875rem var(--primary-light);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--destructive);
}

textarea.form-control {
  resize: none;
}

.form-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--destructive);
}

.form-hint {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.form-privacy {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.check-option {
  display: block;
  position: relative;
  padding: 0.75rem 0.875rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-option input {
  position: absolute;
  top: 0.9375rem;
  left: 0.875rem;
  margin: 0;
  accent-color: var(--primary);
}

.check-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ═══════════════════════════════════════════════════════════
   1.9 - Footer
   ═══════════════════════════════════════════════════════════ */

.footer-custom {
  padding: 4rem 0 1.5rem;
  background-color: var(--bg-dark);
  color: var(--on-dark-muted);
}

.footer-custom .h5,
.footer-col-title {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-brand img {
  width: auto;
  height: 2.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-claim {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-dark);
}

.footer-claim strong {
  color: var(--green-400);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.footer-nav a,
.footer-contact li {
  display: block;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.footer-nav a {
  padding: 0.3125rem 0;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--green-400);
}

.footer-contact li {
  position: relative;
  padding: 0.3125rem 0 0.3125rem 1.75rem;
}

.footer-contact li svg {
  position: absolute;
  top: 0.5rem;
  left: 0;
  color: var(--green-400);
}

.footer-social {
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 50%;
  background: var(--border-on-dark);
  text-align: center;
  line-height: 2.75rem;
  color: var(--on-dark-muted);
  transition: background-color 0.3s, color 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--ink-800);
}

.footer-social a svg {
  vertical-align: middle;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.75rem;
  color: var(--ink-400);
}

.footer-base span {
  display: block;
}

.footer-base span + span {
  margin-top: 0.375rem;
}

.footer-base a {
  color: var(--ink-400);
  transition: color 0.2s;
}

.footer-base a:hover {
  color: var(--green-400);
}

/* ═══════════════════════════════════════════════════════════
   1.10 - Animations
   ═══════════════════════════════════════════════════════════ */

.fade-up {
  /* Le contenu reste accessible même sans JavaScript. */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.16s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.28s; }
.delay-6 { transition-delay: 0.30s; }
.delay-7 { transition-delay: 0.34s; }
.delay-8 { transition-delay: 0.38s; }
.delay-9 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   1.11 - Utilitaires
   ═══════════════════════════════════════════════════════════ */

.bg-opacity {
  background-color: var(--bg-section);
}

.text-primary-custom {
  color: var(--primary-dark);
}

.text-muted-custom {
  color: var(--text-light);
}

.text-main-custom {
  color: var(--text-main);
}

.rounded-custom {
  border-radius: var(--radius-xl);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

.divider {
  height: 1px;
  background: var(--border);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.icon-inline svg {
  vertical-align: -0.1875rem;
}

/* ═══════════════════════════════════════════════════════════
   1.12 - Page : accueil
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */

.kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-300);
}

/* ── Barre de confiance ─────────────────────────────────── */

/* ── Cartes « douleur » (section sombre) ────────────────── */

/* ── Bandeau soleil ─────────────────────────────────────── */

/* ── Liste des expertises ───────────────────────────────── */

/* ── Vitrine méthode ────────────────────────────────────── */

/* ── Packs ──────────────────────────────────────────────── */

/* Pack sur mesure */

.chip-outline-dark {
  display: inline-block;
  border: 1px solid var(--border-on-dark-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark-secondary);
}

/* ── Cartes de chiffres ─────────────────────────────────── */

.fact-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}

.fact-value span {
  margin-left: 0.125rem;
  font-size: 1.25rem;
  vertical-align: top;
}

/* ── Étapes du processus ────────────────────────────────── */
.process-card {
  height: 100%;
  border: 1px solid var(--border-on-dark-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.process-card:hover {
  border-color: rgba(29, 162, 73, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.process-visual {
  position: relative;
}

.process-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.process-card:hover .process-visual img {
  transform: scale(1.08);
}

.process-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, var(--ink-900), rgba(14, 26, 45, 0.3) 45%, transparent);
}

.process-number {
  position: absolute;
  top: 0.75rem;
  right: 1.125rem;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.process-icon {
  position: absolute;
  bottom: 0.875rem;
  left: 1.125rem;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--primary);
  text-align: center;
  line-height: 2.75rem;
  color: var(--ink-800);
}

.process-icon svg {
  vertical-align: middle;
}

.process-body {
  padding: 1.5rem;
}

.process-body .h5 {
  color: var(--on-dark);
}

.process-body p {
  color: var(--on-dark-muted);
}

.final-cta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

/* ═══════════════════════════════════════════════════════════
   1.13 - Page : à propos
   ═══════════════════════════════════════════════════════════ */

.page-hero-alt {
  background-color: var(--bg-alt);
}

.purpose-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  box-shadow: var(--shadow-brand);
  text-align: center;
  line-height: 3.5rem;
  color: var(--ink-800);
}

.purpose-icon svg {
  vertical-align: middle;
}

.purpose-icon-ink {
  background: var(--ink-800);
  box-shadow: var(--shadow-md);
  color: var(--ink-50);
}

.reason-index {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  vertical-align: middle;
}

.reason-rule {
  width: calc(100% - 3rem);
  height: 1px;
  margin-left: 1rem;
  background: var(--border);
  vertical-align: middle;
}

.value-index {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--ink-300);
  transition: color 0.5s ease;
}

.directory {
  border-top: 1px solid var(--border-strong);
}

.directory-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.directory-row .kicker {
  color: var(--text-light);
}

.directory-title {
  transition: color 0.3s ease;
}

.directory-row:hover .directory-title {
  color: var(--primary-dark);
}

/* ═══════════════════════════════════════════════════════════
   1.14 - Pages : catalogue & fiche produit
   ═══════════════════════════════════════════════════════════ */

.catalog-count {
  align-self: flex-end;
}

/* Barre de filtres — défilement horizontal sur mobile */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.filter-scroll {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  margin-right: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-section);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.2s, color 0.2s;
}

.filter-chip svg {
  margin-right: 0.375rem;
  vertical-align: -0.1875rem;
}

.filter-chip:hover {
  background: var(--ink-100);
}

.filter-chip.is-active {
  background: var(--ink-800);
  box-shadow: var(--shadow-md);
  color: var(--ink-50);
}

/* Carte produit */
.product-card .kicker {
  color: var(--text-light);
}

.product-card-title {
  margin-top: 0.25rem;
  line-height: 1.35;
}

.product-card-title a:hover {
  color: var(--primary-dark);
}

.product-card-desc {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.product-card-tags {
  margin-top: 1rem;
}

.product-card-tags li {
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
}

.product-card-actions {
  margin-top: 1.25rem;
  overflow: hidden;
}

.product-card-actions .btn {
  float: left;
}

.product-card-add {
  float: right;
}

.btn-cart {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(29, 162, 73, 0.25);
  border-radius: 50%;
  background: var(--green-50);
  text-align: center;
  line-height: 2.75rem;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-cart:hover {
  background: var(--primary);
  color: var(--ink-800);
}

.btn-cart svg {
  vertical-align: middle;
}

/* Pagination Bootstrap — habillage maison */
.pagination-wrapper .pagination {
  margin: 0;
  justify-content: center;
}

.pagination-wrapper .page-link {
  margin: 0 0.1875rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-main);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pagination-wrapper .page-link:hover {
  border-color: var(--primary);
  background: var(--green-50);
  color: var(--primary-dark);
}

.pagination-wrapper .page-item.active .page-link {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--ink-800);
}

.pagination-wrapper .page-item.disabled .page-link {
  background: var(--bg-section);
  color: var(--text-light);
}

/* ── Fiche produit ──────────────────────────────────────── */
.page-hero-flat {
  border-bottom: none;
  background-color: transparent;
}

.product-gallery {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-section);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-gallery-empty {
  aspect-ratio: 1;
  padding-top: 40%;
}

.product-gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.product-thumbs {
  margin-top: 1rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
  display: none;
}

.product-thumb {
  width: 5rem;
  height: 5rem;
  margin-right: 0.75rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb:hover,
.product-thumb.is-active {
  border-color: var(--primary);
}

.product-title {
  font-size: 2rem;
}

.product-highlights li {
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.05);
  font-size: 0.9375rem;
  color: var(--text-main);
}

.product-highlights li svg {
  margin-right: 0.375rem;
  vertical-align: -0.1875rem;
  color: var(--accent-dark);
}

.product-assurances {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.assurance > li {
  display: inline-block;
  vertical-align: middle;
}

.assurance-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  text-align: center;
  line-height: 2.5rem;
  color: var(--primary-dark);
}

.assurance-icon svg {
  vertical-align: middle;
}

.assurance-icon-green {
  background: var(--success-light);
  color: var(--accent-dark);
}

.assurance .label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.assurance .value {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── Onglets ────────────────────────────────────────────── */
.tabs-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.tabs-nav {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-trigger {
  padding: 0.875rem 1.25rem;
  border-bottom: 2px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-trigger:hover {
  color: var(--text-main);
}

.tab-trigger.is-active {
  border-bottom-color: var(--primary);
  color: var(--text-main);
}

.tab-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

.spec-row {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-section);
  overflow: hidden;
}

.spec-key {
  float: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.spec-value {
  float: right;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
  color: var(--text-main);
}

.feature-row {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  background: var(--green-50);
  font-size: 0.9375rem;
  color: var(--text-main);
}

.feature-row svg {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--accent-dark);
}

/* Variante CTA alignée à gauche */
.final-cta-left {
  text-align: left;
}

.final-cta-left .btn-group-inline {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   1.15 - Pages : réalisations
   ═══════════════════════════════════════════════════════════ */

.page-hero-green {
  background-color: var(--green-50);
}

/* Carte projet — visuel plein cadre, contenu en surimpression */
.study-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--bg-section);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.study-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.study-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.study-card:hover .study-card-img {
  transform: scale(1.08);
}

.study-card-img-empty {
  background: linear-gradient(140deg, var(--green-600), var(--primary));
}

.study-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(14, 26, 45, 0.92), rgba(14, 26, 45, 0.25) 55%, transparent);
}

.study-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}

.study-card-body {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1;
}

.study-card-place {
  color: var(--green-300);
}

.study-card-place svg {
  margin-right: 0.25rem;
  vertical-align: -0.125rem;
}

.study-card-title {
  display: block;
  color: var(--on-dark);
}

.study-card-desc {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-dark-secondary);
}

.study-card-date {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.study-card-date svg {
  margin-right: 0.375rem;
  vertical-align: -0.125rem;
}

.study-card-link {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green-300);
}

.study-card-link svg {
  margin-left: 0.375rem;
  vertical-align: -0.1875rem;
  transition: transform 0.25s ease;
}

.study-card:hover .study-card-link svg {
  transform: translateX(4px);
}

/* Galerie */
.gallery-group {
  margin-bottom: 3rem;
}

.gallery-group-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.gallery-group-title svg {
  margin-right: 0.625rem;
  vertical-align: -0.25rem;
  color: var(--primary-dark);
}

.gallery-group-count {
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
}

.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-section);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 0.875rem 0.75rem;
  background: linear-gradient(to top, rgba(14, 26, 45, 0.88), transparent);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--on-dark);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
}

/* Modale d'agrandissement */
.lightbox-content {
  border: none;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}

.lightbox-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.lightbox-head .h6 {
  float: left;
  max-width: calc(100% - 2.5rem);
}

.lightbox-head .btn-close {
  float: right;
}

.lightbox-content img {
  width: 100%;
}

/* Fiche projet */
.study-meta-tags li {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
}

.study-meta li {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 0.9375rem;
}

.study-meta li svg {
  margin-right: 0.375rem;
  vertical-align: -0.1875rem;
  color: var(--text-light);
}

.study-meta strong {
  color: var(--text-main);
}

.study-cover {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.study-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

/* ═══════════════════════════════════════════════════════════
   1.16 - Pages : contact, devis, panier, suivi
   ═══════════════════════════════════════════════════════════ */

.form-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.contact-intro {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--ink-800);
  color: var(--on-dark-muted);
  overflow: hidden;
}

.contact-intro::after {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(29, 162, 73, 0.18);
  pointer-events: none;
}

.contact-intro > * {
  position: relative;
  z-index: 1;
}

.contact-intro .h3 {
  margin-top: 0.5rem;
  color: var(--on-dark);
}

.contact-tile {
  display: block;
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-tile:hover {
  border-color: var(--border-hover);
}

.contact-tile-static:hover {
  border-color: var(--border);
}

.contact-tile-icon {
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  text-align: center;
  line-height: 3rem;
  vertical-align: middle;
  color: var(--primary-dark);
}

.contact-tile-icon svg {
  vertical-align: middle;
}

.contact-tile-icon-ink {
  background: var(--info-light);
  color: var(--text-main);
}

.contact-tile-icon-green {
  background: var(--success-light);
  color: var(--accent-dark);
}

.contact-tile-icon-neutral {
  background: var(--bg-section);
  color: var(--text-muted);
}

.contact-tile-body {
  vertical-align: middle;
}

.contact-tile-body .kicker {
  color: var(--text-light);
}

.contact-tile-body .value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ── Formulaire de devis ────────────────────────────────── */
.form-card-title {
  color: var(--text-main);
}

.form-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  text-align: center;
  line-height: 2.25rem;
  vertical-align: middle;
  color: var(--primary-dark);
}

.form-card-icon svg {
  vertical-align: middle;
}

.form-card-icon-ink {
  background: var(--info-light);
  color: var(--text-main);
}

.form-card-icon-green {
  background: var(--success-light);
  color: var(--accent-dark);
}

.form-card-optional {
  margin-left: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-card fieldset legend {
  float: none;
  width: auto;
}

.project-option {
  display: block;
  position: relative;
  height: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.project-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.project-option-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.project-option-label {
  display: block;
  font-weight: 700;
  color: var(--text-main);
}

.project-option-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.project-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--green-50);
}

.project-option:has(input:checked) .project-option-icon {
  color: var(--primary-dark);
}

.project-option:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Panier & récapitulatif ─────────────────────────────── */
.cart-line {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease;
}

.cart-line:hover {
  border-color: var(--border-hover);
}

.cart-line-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-section);
  text-align: center;
  line-height: 5rem;
  color: var(--ink-300);
  overflow: hidden;
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-cat {
  color: var(--primary-dark);
}

.cart-line-desc {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

.cart-line-action {
  margin-top: 1rem;
  text-align: right;
}

.btn-remove {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--destructive-light);
  text-align: center;
  line-height: 2.75rem;
  color: var(--destructive);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-remove svg {
  vertical-align: middle;
}

/* Récapitulatif (devis, panier) : carte claire bordée. */
.summary-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-muted);
}

.summary-count,
.summary-title {
  color: var(--text-main);
}

.summary-lead {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.summary-points {
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-points li {
  padding: 0.3125rem 0;
  font-size: 1rem;
  color: var(--text-main);
}

.summary-points li svg {
  margin-right: 0.625rem;
  vertical-align: -0.1875rem;
  color: var(--primary);
}

.summary-head {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.summary-head .chip {
  float: left;
}

.summary-head-count {
  float: right;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-main);
}

.summary-list {
  margin-top: 1rem;
}

.summary-list li {
  position: relative;
  padding: 0.5rem 1.75rem 0.5rem 3.25rem;
  font-size: 1rem;
}

.summary-list-thumb {
  position: absolute;
  top: 0.375rem;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-section);
  text-align: center;
  line-height: 2.5rem;
  color: var(--text-light);
  overflow: hidden;
}

.summary-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-list-name {
  color: var(--text-main);
}

.summary-list-check {
  position: absolute;
  top: 0.625rem;
  right: 0;
  color: var(--primary);
}

.summary-link {
  display: inline-flex;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  align-items: center;
  transition: color 0.2s;
}

.summary-link:hover {
  color: var(--accent);
}

.summary-link svg {
  margin-right: 0.375rem;
  vertical-align: -0.1875rem;
}

.help-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-section);
}

.help-card .h6 svg {
  margin-right: 0.5rem;
  vertical-align: -0.25rem;
  color: var(--primary-dark);
}

.help-card p {
  font-size: 1rem;
}

/* ── Pastilles de statut ────────────────────────────────── */
.status-badge {
  padding: 0.25rem 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge-md {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
}

.status-badge svg {
  margin-right: 0.25rem;
  vertical-align: -0.125rem;
}

.status-dot {
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.0625rem;
}

.status-success {
  border-color: rgba(29, 162, 73, 0.2);
  background: var(--success-light);
  color: var(--success);
}

.status-warning {
  border-color: rgba(180, 83, 9, 0.2);
  background: var(--warning-light);
  color: var(--warning);
}

.status-progress {
  border-color: rgba(29, 162, 73, 0.2);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.status-info,
.status-accent,
.status-neutral {
  border-color: var(--border);
  background: var(--info-light);
  color: var(--text-muted);
}

.status-danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: var(--destructive-light);
  color: var(--destructive);
}

/* ── Suivi de projet ────────────────────────────────────── */
.tracking-submit {
  align-self: flex-end;
}

.tracking-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tracking-head {
  padding: 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.tracking-head-kicker {
  color: var(--primary-dark);
}

.tracking-head p:last-child {
  font-size: 0.9375rem;
}

.tracking-head-status {
  align-self: center;
}

.tracking-body {
  padding: 1.75rem;
}

.tracking-cancelled {
  padding: 2.5rem 1rem;
  text-align: center;
}

.tracking-cancelled-icon {
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: 50%;
  background: var(--destructive-light);
  text-align: center;
  line-height: 4.5rem;
  color: var(--destructive);
}

.tracking-cancelled-icon svg {
  vertical-align: middle;
}

.tracking-cancelled .h4 {
  color: var(--destructive);
}

/* Barre d'avancement des 3 phases */
.tracking-progress {
  position: relative;
  height: 0.25rem;
  margin: 0 8% 2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-section);
}

.tracking-progress-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transition: width 0.5s ease;
}

.tracking-progress-0 { width: 0; }
.tracking-progress-25 { width: 25%; }
.tracking-progress-50 { width: 50%; }
.tracking-progress-75 { width: 75%; }
.tracking-progress-100 {
  width: 100%;
  background: var(--accent);
}

.phase-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-section);
  overflow: hidden;
}

.phase-card.is-active {
  border-color: rgba(29, 162, 73, 0.35);
  background: var(--green-50);
}

.phase-card.is-complete {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--green-50);
}

.phase-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.phase-card.is-active .phase-head {
  border-bottom-color: rgba(29, 162, 73, 0.25);
}

.phase-card.is-complete .phase-head {
  border-bottom-color: rgba(16, 185, 129, 0.25);
}

.phase-icon {
  width: 3rem;
  height: 3rem;
  margin-right: 0.75rem;
  border-radius: var(--radius);
  background: var(--ink-200);
  text-align: center;
  line-height: 3rem;
  vertical-align: middle;
  color: var(--text-muted);
}

.phase-icon svg {
  vertical-align: middle;
}

.phase-card.is-active .phase-icon {
  background: var(--primary);
  color: var(--ink-800);
}

.phase-card.is-complete .phase-icon {
  background: var(--green-600);
  color: var(--ink-50);
}

.phase-titles {
  vertical-align: middle;
}

.phase-titles .kicker {
  color: var(--text-light);
}

.phase-card.is-active .phase-titles .kicker {
  color: var(--primary-dark);
}

.phase-card.is-complete .phase-titles .kicker {
  color: var(--accent-dark);
}

.phase-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.phase-steps {
  padding: 1.25rem;
}

.phase-steps li {
  position: relative;
  padding: 0 0 1.25rem 1.75rem;
}

.phase-steps li:last-child {
  padding-bottom: 0;
}

.phase-steps li::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  bottom: 0.25rem;
  left: 0.4375rem;
  width: 2px;
  background: var(--border);
}

.phase-steps li:last-child::before {
  display: none;
}

.phase-steps li.is-done::before {
  background: rgba(16, 185, 129, 0.4);
}

.phase-step-dot {
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-card);
}

.phase-steps li.is-done .phase-step-dot {
  border-color: var(--green-600);
  background: var(--green-600);
}

.phase-steps li.is-current .phase-step-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.phase-step-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
}

.phase-steps li.is-done .phase-step-label {
  color: var(--accent-dark);
}

.phase-steps li.is-current .phase-step-label {
  color: var(--primary-dark);
}

.phase-step-date {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.tracking-products {
  padding: 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}

.tracking-products .h5 svg {
  margin-right: 0.5rem;
  vertical-align: -0.25rem;
  color: var(--primary-dark);
}

.tracking-product {
  position: relative;
  padding: 0.75rem 2rem 0.75rem 3.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.tracking-product-thumb {
  position: absolute;
  top: 0.625rem;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  text-align: center;
  line-height: 2.5rem;
  color: var(--ink-300);
  overflow: hidden;
}

.tracking-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tracking-product-check {
  position: absolute;
  top: 0.875rem;
  right: 0.75rem;
  color: var(--accent-dark);
}

.tracking-info {
  padding: 1.75rem;
  border-top: 1px solid var(--border);
}

.tracking-info .kicker {
  color: var(--text-light);
}

.tracking-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  word-break: break-word;
  color: var(--text-main);
}

/* ── Pages légales ──────────────────────────────────────── */
.legal-block + .legal-block {
  margin-top: 2.5rem;
}

.legal-block h2 {
  margin-bottom: 1rem;
}

.legal-block p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal-card {
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.legal-card .h6,
.legal-card-key {
  display: block;
  margin-bottom: 0.375rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.legal-card-key {
  color: var(--primary-dark);
}

.legal-card .h6 svg,
.legal-card-key svg {
  margin-right: 0.5rem;
  vertical-align: -0.25rem;
  color: var(--primary);
}

.legal-card li:last-child {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-card-right {
  height: 100%;
}

.check-list-solar li svg {
  color: var(--primary);
}

.legal-contact {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-section);
}

.legal-contact-list li {
  color: var(--text-muted);
}

.legal-contact-list li svg {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   2.0 - Media Queries
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .footer-base span {
    display: inline;
  }

  .footer-base span + span {
    float: right;
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .h3 {
    font-size: 2rem;
  }

  .h4 {
    font-size: 1.375rem;
  }

  .content-subtitle {
    font-size: 1.3125rem;
  }

  .section-py {
    padding: 7rem 0;
  }

  .section-py-sm {
    padding: 4.5rem 0;
  }

  .page-hero {
    padding: 10rem 0 4.5rem;
  }

  .final-cta {
    padding: 4.5rem 3rem;
  }

  .stat-block .stat-number {
    font-size: 3rem;
  }

  /* Navigation horizontale */
  nav .navbar-collapse .navbar-nav .menu-item a {
    padding: 0.5rem 0;
    margin: 0 0.875rem;
    border-bottom: none;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  nav .navbar-collapse .navbar-nav .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  nav .navbar-collapse .navbar-nav .menu-item > a:hover::after,
  nav .navbar-collapse .navbar-nav .menu-item > a.active::after {
    transform: scaleX(1);
  }

  nav .navbar-collapse .navbar-nav .menu-item-has-children > a::before {
    display: none;
  }

  nav .navbar-collapse .navbar-nav .menu-item .sub-menu {
    position: absolute;
    top: 100%;
    left: 0.875rem;
    z-index: 60;
    min-width: 16rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.25rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  nav .navbar-collapse .navbar-nav .menu-item-has-children:hover > .sub-menu,
  nav .navbar-collapse .navbar-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav .navbar-collapse .navbar-nav .menu-item .sub-menu .menu-item a {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
  }

  nav .navbar-collapse .navbar-nav .menu-item .sub-menu .menu-item a:hover {
    background: var(--bg-section);
    color: var(--primary-dark);
  }

  nav .navbar-collapse .navbar-nav .menu-item .sub-menu .menu-item a::after {
    display: none;
  }

  nav .navbar-collapse .menu-navigation-menu-container {
    margin: 0 auto;
  }

  .navbar-cta {
    padding: 0;
  }

  .navbar-cta .btn {
    display: inline-block;
    width: auto;
    margin: 0 0 0 0.5rem;
  }

  .navbar-brand img {
    height: 2.5rem;
  }

  .footer-custom {
    padding: 5rem 0 1.5rem;
  }

  .footer-claim {
    font-size: 1.5rem;
  }

  /* Accueil */

  .fact-value {
    font-size: 3rem;
  }

  .fact-value span {
    font-size: 1.5rem;
  }

  .final-cta-note {
    text-align: center;
  }

  /* À propos */

  /* Panier & devis */
  .cart-line-action {
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .summary-card,
  .quote-sticky {
    position: sticky;
    top: 6.5rem;
  }

  .form-card {
    padding: 2.5rem;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 1.1875rem;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  .h3 {
    font-size: 2.375rem;
  }

  .content-subtitle {
    font-size: 1.5rem;
  }
}
