/* =====================================================
   Archi Aid — main stylesheet
   Palette et typographie reprises d'archiaid.ca :
   accent #6a1400, héro #e5e4e2, sections #0a0a0a / #fffcfc,
   titres Song Myung, texte Work Sans (20px / 25px)
   ===================================================== */

:root {
  --accent: #6a1400;
  --accent-hover: #8a2000;
  --hero-bg: #e5e4e2;
  --dark: #0a0a0a;
  --darker: #000000;
  --why-bg: #1e1e1e;
  --light: #ffffff;
  --off-white: #fffcfc;
  --text-dark: #000000;
  --text-grey: #333333;
  --text-light: #ffffff;
  --text-light-soft: rgba(255, 255, 255, 0.78);
  --font-heading: "Song Myung", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* les ancres s'alignent sous l'en-tête */
}
/* Le défilement par section (une section par coup de molette) est géré dans js/main.js */

body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* Comme l'original : conteneur pleine largeur, 70 px de marge latérale */
.container {
  width: 100%;
  padding-inline: 70px;
  margin-inline: auto;
}
@media (max-width: 960px) {
  .container { padding-inline: 32px; }
}
@media (max-width: 680px) {
  .container { padding-inline: 20px; }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }

/* ---------- Buttons (style Salient : rectangulaire, accent rouille) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 3px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-jumbo { font-size: 1.35rem; padding: 1.5rem 3.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
}

/* Logo à gauche, menu centré */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 0.8rem;
  gap: 1rem;
}
.header-inner .logo { justify-self: start; }
.header-inner .main-nav { justify-self: center; }
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { display: block; }
.logo img { height: 56px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }
.lang-switch {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* ---------- Hero (plein écran, fond blanc, texte noir centré) ---------- */
.hero {
  background: #ffffff;
  color: var(--text-dark);
  min-height: calc(100vh - 88px); /* toute la fenêtre sous l'en-tête */
  display: flex;
  align-items: center;
}

.hero-inner {
  padding-block: 3rem;
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.12;
  margin-bottom: 2rem;
}
.hero h1 .line { display: block; }

/* Entrée du héro : chaque élément glisse de la gauche vers sa place, l'un après l'autre */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-90px); }
  to { opacity: 1; transform: none; }
}
.hero h1 .line,
.hero .hero-lead,
.hero .btn-jumbo {
  opacity: 0;
  animation: slide-in-left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.3s; }
.hero .hero-lead { animation-delay: 0.55s; }
.hero .btn-jumbo { animation-delay: 0.75s; }

.hero-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.55;
  color: var(--text-grey);
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-dark { background: var(--dark); color: var(--text-light); }
.section-black { background: var(--darker); color: var(--text-light); }
.section-offwhite { background: var(--off-white); color: var(--text-dark); }
.section-platinum { background: var(--hero-bg); color: var(--text-dark); }
.section-why { background: #000000; color: var(--text-light); }

.section-lead { max-width: 760px; margin-bottom: 2.5rem; color: var(--text-grey); }
.section-dark .section-lead,
.section-black .section-lead,
.section-why .section-lead { color: #ffffff; }

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }

/* ---------- Qui sommes-nous : bannière plein écran, texte sur dégradé ---------- */
.about-section {
  position: relative;
  height: calc(100vh - 88px); /* visible en entier sous l'en-tête, sans défiler */
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
  color: var(--text-light);
}
.about-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Léger dégradé noir au bas de l'image */
.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 25%,
    rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.about-text {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 640px;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem) clamp(1.8rem, 4vw, 3.2rem);
}
.about-text h2 { margin-bottom: 1rem; color: #ffffff; }
.about-text p { color: #ffffff; font-size: 0.98rem; margin-bottom: 0; }
@media (max-width: 680px) {
  .about-section { height: 78vh; min-height: 420px; }
  .about-text p { font-size: 0.88rem; }
}

/* ---------- Sections plein écran : chacune occupe la fenêtre entière ---------- */
#expertise,
#services,
#roadmap,
#clients,
#testimonials,
#highlights,
#why-us {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Notre Expertise : grand titre juste au-dessus des logos, bloc centré verticalement */
#expertise h2 {
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
#expertise .section-lead {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.5;
  max-width: 1040px;
  margin-bottom: 0;
}
#expertise .marquee { margin-top: clamp(2.5rem, 6vh, 4rem); }

/* ---------- Bandeau logos plateformes (défilement continu) ---------- */
.marquee {
  overflow: hidden;
  margin-top: clamp(4rem, 12vh, 8rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: marquee 110s linear infinite;
}
.marquee-track img {
  height: clamp(120px, 20vh, 190px);
  width: auto;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .marquee-track { gap: 3rem; }
  .marquee-track img { height: 90px; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Services ---------- */
.card-grid { display: grid; gap: 1.8rem; margin-top: 2.5rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 1rem 0.5rem;
  text-align: center;
}
.card h3 { margin-block: 1.2rem 0.7rem; }
.card p { color: var(--text-grey); font-size: 0.95rem; }

/* Le titre de Nos Services reste en haut de la section plein écran */
#services {
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 5vh, 3rem);
}
#services .card-grid { margin-top: clamp(2.5rem, 9vh, 6rem); }

/* ---------- Nos Services : tout tient dans une fenêtre ---------- */
#services {
  height: calc(100vh - 88px);
  min-height: 0;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
  overflow: hidden;
}
#services .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#services h2 { margin-bottom: 0.8rem; font-size: clamp(2rem, 5vmin, 3.75rem); }
#services .section-lead { margin-bottom: 0; font-size: clamp(0.95rem, 1.5vmin, 1.2rem); }
#services .card-grid {
  flex: 1;
  min-height: 0;
  margin-top: clamp(1rem, 3vh, 2.5rem);
  align-items: stretch;
}
#services .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.card-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Le titre occupe tout l'espace libre au-dessus de l'anneau et s'y centre :
   les trois titres sont ainsi à la même hauteur, entre le paragraphe et les images */
.infographic-title {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vmin, 2.4rem);
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
  text-align: center;
}
/* Infographie vectorielle : anneau, segments, textes sur arcs, illustration au centre */
.infographic {
  flex: 0 1 auto;
  min-height: 0;
  width: min(80%, 420px);
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.infographic svg {
  width: 100%;
  height: 100%;
  max-width: 420px;
  overflow: visible;
  transition: transform 0.3s ease;
}
.card-img:hover .infographic svg { transform: scale(1.04); }
.infographic svg.tourne { animation: tourner 0.9s cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes tourner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.infographic .segment {
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
  outline: none;
}
.infographic .segment-label {
  font-family: var(--font-body);
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}
/* Couleurs par anneau (mêmes teintes que les images d'origine) */
.infographic[data-infographic="entreprise"] .segment { fill: #6a1400; }
.infographic[data-infographic="entreprise"] .segment-label { fill: #ffffff; }
.infographic[data-infographic="bim"] .segment { fill: #b3abab; }
.infographic[data-infographic="bim"] .segment-label { fill: #1e1e1e; }
.infographic[data-infographic="site"] .segment { fill: #e5e4e2; }
.infographic[data-infographic="site"] .segment-label { fill: #1e1e1e; }
/* Au survol : le segment change de couleur, on comprend qu'il est cliquable */
.infographic[data-infographic="entreprise"] .segment:hover,
.infographic[data-infographic="entreprise"] .segment:focus-visible { fill: #a53a1c; }
.infographic[data-infographic="bim"] .segment:hover,
.infographic[data-infographic="bim"] .segment:focus-visible,
.infographic[data-infographic="site"] .segment:hover,
.infographic[data-infographic="site"] .segment:focus-visible { fill: var(--accent); }
.infographic .segment:hover + .segment-labels .segment-label,
.infographic .segment:focus-visible + .segment-labels .segment-label { fill: #ffffff; }
.infographic .center-image { cursor: pointer; }

@media (max-width: 960px) {
  #services { height: auto; overflow: visible; }
  #services .card-grid { align-items: start; }
  .infographic-title { flex: 0 0 auto; margin-bottom: 1rem; }
  .infographic svg { height: auto; aspect-ratio: 1; }
}

/* Fenêtre d'explication d'un service */
.service-modal { width: min(520px, 100%); }
.service-modal .modal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.2rem 1.5rem 0;
}
.service-modal .modal-header { padding-top: 0.4rem; }
.service-modal .modal-body { padding: 0.6rem 1.5rem 1.6rem; }
.service-modal .modal-body p {
  color: var(--text-dark);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.service-modal .modal-body p:last-child { margin-bottom: 0; }
.service-modal .modal-body ul {
  margin: 0.2rem 0 0 1.1rem;
  color: var(--text-dark);
  line-height: 1.55;
}

/* ---------- Feuille de route (titre à gauche, 4 cartes en verre dépoli) ---------- */
#roadmap {
  position: relative;
  overflow: hidden;
  justify-content: center;
}
/* Halos derrière les cartes : c'est ce que le flou des cartes vient diffuser */
#roadmap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 45% at 18% 80%, rgba(106, 20, 0, 0.55) 0%, rgba(106, 20, 0, 0) 70%),
    radial-gradient(30% 40% at 62% 30%, rgba(229, 228, 226, 0.14) 0%, rgba(229, 228, 226, 0) 70%),
    radial-gradient(34% 40% at 90% 85%, rgba(138, 32, 0, 0.4) 0%, rgba(138, 32, 0, 0) 70%);
}
.roadmap-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 5.5rem);
}
.roadmap-heading {
  font-size: clamp(2.6rem, 6.2vmin, 5.6rem);
  line-height: 1.05;
  margin: 0;
  color: #ffffff;
  max-width: min(100%, 26ch);
}

.step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 2rem);
}
.step-card {
  position: relative;
  min-height: clamp(280px, 38vmin, 420px);
  padding: clamp(1.6rem, 2.4vmin, 2.4rem);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  /* Verre dépoli : fond translucide, flou de l'arrière-plan, bordure et reflet */
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -20px 40px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Reflet diagonal en haut de la carte */
.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%);
  opacity: 0.8;
}
.step-num {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.2vmin, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: clamp(1.4rem, 3vmin, 2.4rem);
}
.step-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.9vmin, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.step-card p {
  font-size: clamp(0.9rem, 1.35vmin, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  padding-right: 2rem;
}
.step-glyph {
  position: absolute;
  right: clamp(1.2rem, 2vmin, 1.8rem);
  bottom: clamp(1.2rem, 2vmin, 1.8rem);
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.7);
}
.step-glyph svg { width: 100%; height: 100%; }

/* Carte mise en avant (dégradé rouille), et même effet au survol des autres */
.step-card.featured,
.step-card:hover {
  background: linear-gradient(160deg, #8a2000 0%, #6a1400 45%, #2a0800 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(106, 20, 0, 0.5),
    0 30px 70px rgba(106, 20, 0, 0.45);
  transform: translateY(-8px);
}
.step-card.featured p,
.step-card:hover p { color: rgba(255, 255, 255, 0.85); }
.step-card.featured .step-glyph,
.step-card:hover .step-glyph { color: #ffffff; }
/* Quand on survole une autre carte, la carte en avant redevient en verre */
.step-cards:hover .step-card.featured:not(:hover) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 60%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -20px 40px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.45);
  transform: none;
}
.step-cards:hover .step-card.featured:not(:hover) p { color: rgba(255, 255, 255, 0.68); }
.step-cards:hover .step-card.featured:not(:hover) .step-glyph { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 960px) {
  .step-cards { grid-template-columns: repeat(2, 1fr); }
  .roadmap-heading { max-width: none; }
}
@media (max-width: 680px) {
  .step-cards { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
}

/* ---------- Clients (cartes de logos suspendues, texte centré dessous) ---------- */
#clients {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: clamp(2rem, 6vh, 4rem);
  background: linear-gradient(180deg, #f2f1f0 0%, var(--off-white) 55%);
  overflow: hidden;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(0.8rem, 2vw, 3.5rem);
  width: 100%;                      /* d'un bord à l'autre de la fenêtre */
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 5rem);
  align-items: start;
}
/* Chaque colonne : un fil vertical depuis le haut de la fenêtre jusqu'à la carte */
.logo-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--drop, 40px);
}
.logo-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--drop, 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22));
}
/* Chute des cartes : cachées au-dessus, puis lâchées quand la section apparaît */
@keyframes drop-card {
  0%   { transform: translateY(-160%); opacity: 0; }
  55%  { transform: translateY(6%); opacity: 1; }
  75%  { transform: translateY(-3%); }
  90%  { transform: translateY(1.5%); }
  100% { transform: none; opacity: 1; }
}
@keyframes drop-string {
  from { transform: scaleY(0); }
  to { transform: none; }
}
.logo-col.reveal { opacity: 1; transform: none; transition: none; }   /* pas de fondu générique ici */
.logo-col::before { transform-origin: top; }
.logo-col.reveal:not(.visible) .logo-card { transform: translateY(-160%); opacity: 0; }
.logo-col.reveal:not(.visible)::before { transform: scaleY(0); }
.logo-col.visible .logo-card { animation: drop-card 1.1s cubic-bezier(0.25, 0.9, 0.35, 1) backwards; }
.logo-col.visible::before { animation: drop-string 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
/* Chaque ficelle est lâchée avec un léger décalage */
.logo-col:nth-child(1).visible .logo-card, .logo-col:nth-child(1).visible::before { animation-delay: 0.05s; }
.logo-col:nth-child(2).visible .logo-card, .logo-col:nth-child(2).visible::before { animation-delay: 0.22s; }
.logo-col:nth-child(3).visible .logo-card, .logo-col:nth-child(3).visible::before { animation-delay: 0.12s; }
.logo-col:nth-child(4).visible .logo-card, .logo-col:nth-child(4).visible::before { animation-delay: 0.32s; }
.logo-col:nth-child(5).visible .logo-card, .logo-col:nth-child(5).visible::before { animation-delay: 0.18s; }
.logo-col:nth-child(6).visible .logo-card, .logo-col:nth-child(6).visible::before { animation-delay: 0.4s; }
.logo-col:nth-child(7).visible .logo-card, .logo-col:nth-child(7).visible::before { animation-delay: 0.08s; }
.logo-col:nth-child(8).visible .logo-card, .logo-col:nth-child(8).visible::before { animation-delay: 0.28s; }

/* Hauteurs variées, comme des cartes qui pendent */
.logo-col:nth-child(1) { --drop: clamp(70px, 14vh, 225px); }
.logo-col:nth-child(2) { --drop: clamp(20px, 5vh, 90px); }
.logo-col:nth-child(3) { --drop: clamp(50px, 10vh, 165px); }
.logo-col:nth-child(4) { --drop: clamp(10px, 3vh, 54px); }
.logo-col:nth-child(5) { --drop: clamp(36px, 8vh, 135px); }
.logo-col:nth-child(6) { --drop: clamp(16px, 4vh, 72px); }
.logo-col:nth-child(7) { --drop: clamp(64px, 13vh, 210px); }
.logo-col:nth-child(8) { --drop: clamp(30px, 7vh, 120px); }

.logo-card {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  background: #ffffff;
  border-radius: clamp(14px, 1.2vw, 26px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  padding: 8%;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);          /* tous les logos en noir */
  transition: transform 0.35s ease;
}
/* Au survol : la carte se soulève et pivote légèrement, le logo grossit un peu */
.logo-card:hover {
  transform: translateY(-14px) rotate(-3deg) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}
.logo-col:nth-child(even) .logo-card:hover { transform: translateY(-14px) rotate(3deg) scale(1.04); }
.logo-card:hover img { transform: scale(1.08); }

/* Texte centré, prend le reste de la fenêtre */
.clients-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(2rem, 6vh, 4rem);
}
.pill-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-grey);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.4rem;
}
.clients-copy h2 {
  font-size: clamp(2.4rem, 5.5vmin, 4.6rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}
.clients-copy h2 .muted { color: #8a8a8a; }
.clients-copy .section-lead {
  font-size: clamp(1.05rem, 1.8vmin, 1.4rem);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: var(--text-dark);
}
.btn-dark {
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-size: 0.95rem;
}
.btn-dark:hover { background: var(--accent); }

@media (max-width: 960px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .logo-col:nth-child(n) { --drop: 24px; }
  .logo-col:nth-child(even) { --drop: 56px; }
}
@media (max-width: 680px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .logo-card { border-radius: 12px; aspect-ratio: 4 / 3; padding: 12%; }
}

/* ---------- Témoignages (citation centrée, guillemet dans un rond, points de navigation) ---------- */
#testimonials { justify-content: center; text-align: center; }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-grey);
  margin-bottom: 1rem;
}
.testimonials-inner h2 { margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }
.testimonial-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
  padding-top: 0.9rem;   /* le guillemet ouvrant est haut dans son cadratin : on le recentre */
  color: var(--text-dark);
  margin-bottom: clamp(1.6rem, 4vh, 2.8rem);
}
/* Les citations se superposent ; seule l'active est visible (fondu) */
.testimonial-slides {
  position: relative;
  width: 100%;
  max-width: 1200px;
}
/* La citation active est dans le flux (la hauteur suit), les autres sont superposées, invisibles */
.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}
.testimonial.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}
.testimonial p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vmin, 1.9rem);
  line-height: 1.45;
  color: var(--text-dark);
  margin: 0 0 clamp(1.6rem, 4vh, 2.6rem);
}
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.testimonial footer strong { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.testimonial footer span { font-size: 0.95rem; color: #777777; }
.testimonial-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: clamp(1.8rem, 4vh, 3rem);
}
.testimonial-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #333333;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease;
}
.testimonial-dots button[aria-selected="true"] { background: #333333; }

/* ---------- Réalisations (carrousel de grandes photos, texte blanc dans la carte) ---------- */
.section-white { background: #ffffff; color: var(--text-dark); }
#highlights {
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 4vh, 3rem);
}
.projects-title {
  text-align: center;
  font-size: clamp(2.8rem, 7.5vmin, 6.4rem);
  line-height: 1.02;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.projects-title .muted { color: #8a8a8a; }

.project-carousel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}
.project-track {
  --gap: clamp(0.8rem, 1.2vw, 1.4rem);
  display: flex;
  gap: var(--gap);
  width: 100%;
  padding-inline: 70px;
  scroll-padding-inline: 70px;   /* l'accrochage respecte la marge */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.project-track::-webkit-scrollbar { display: none; }
.project-card {
  position: relative;
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);   /* trois cartes visibles */
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 88px - 220px);
  border-radius: 22px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover img { transform: scale(1.06); }
/* Voile sombre en bas pour la lisibilité du texte blanc */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 100%);
}
.project-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.2rem, 2vmin, 1.8rem);
  color: #ffffff;
}
.project-text h3 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.7vmin, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}
.project-text p {
  font-size: clamp(0.82rem, 1.2vmin, 1rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
/* Flèches posées sur les bords du carrousel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-arrow:hover { background: var(--accent); transform: translateY(-50%) scale(1.06); }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 960px) {
  .project-track { padding-inline: 32px; scroll-padding-inline: 32px; }
  .project-card { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 680px) {
  .project-track { padding-inline: 20px; scroll-padding-inline: 20px; }
  .project-card { flex-basis: 84vw; aspect-ratio: 4 / 3; }
  .carousel-arrow { width: 44px; height: 44px; }
}

/* ---------- Pourquoi nous (photo + texte dans une seule fenêtre, sans défiler) ---------- */
#why-us {
  height: calc(100vh - 88px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 0 clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}
#why-us { position: relative; }
.team-photo {
  position: absolute;   /* la photo couvre toute la section, le texte vient par-dessus */
  inset: 0;
  width: 100%;
  margin: 0;
}
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;   /* on coupe le haut, on garde les visages */
}
/* Dégradé : la photo se fond dans le noir de la section */
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.6) 55%, #000000 100%);
  pointer-events: none;
}
/* Le texte remonte sur la zone fondue */
.why-copy {
  position: relative;
  z-index: 1;
  flex: none;
  margin-top: auto;      /* collé en bas... */
  min-height: 46%;       /* ...mais assez haut pour que le titre commence vers 55 % de la section */
}
@media (max-width: 680px) {
  #why-us { height: auto; overflow: visible; }
  .team-photo { position: relative; inset: auto; }
  .team-photo img { height: 60vh; }
  .why-copy { margin-top: -3rem; min-height: 0; }
}
.section-why h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin-bottom: 1rem; }
.section-why .card-grid { margin-top: 1.6rem; }
.pillar { border-top: 3px solid var(--accent); padding-top: 1.4rem; }
.pillar h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  color: #fff;
}
.pillar p { font-size: 0.93rem; color: var(--text-light-soft); }

/* ---------- Pied de page (grand format) ---------- */
.site-footer { background: var(--darker); color: var(--text-light-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  padding-block: clamp(4.5rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem);
}
.footer-logo img { height: clamp(64px, 9vmin, 96px); width: auto; filter: brightness(0) invert(1); }
.footer-brand p {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.5vmin, 1.25rem);
  line-height: 1.6;
  max-width: 34ch;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.95rem, 1.4vmin, 1.15rem);
  color: #fff;
  margin-bottom: 1.4rem;
}
.site-footer p { margin-bottom: 0.9rem; font-size: clamp(1.05rem, 1.6vmin, 1.35rem); }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: clamp(1.6rem, 3vh, 2.4rem);
  font-size: clamp(0.9rem, 1.2vmin, 1.05rem);
}
.footer-bottom p { margin: 0; font-size: inherit; }

/* ---------- Modale Connexion / Création de compte ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  color: var(--text-dark);
  width: min(440px, 100%);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem 0;
}
.modal-header h3 { font-size: 1.5rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-grey);
  padding: 0.2rem 0.4rem;
}
.modal-close:hover { color: var(--accent); }

.modal-tabs {
  display: flex;
  margin: 1rem 1.5rem 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
.modal-tab {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-grey);
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.modal-tab:hover { color: var(--accent); }

.modal-form { display: none; padding: 1.5rem; }
.modal-form.active { display: block; }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-grey);
  margin-bottom: 0.35rem;
}
.form-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  background: #fff;
  color: var(--text-dark);
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106, 20, 0, 0.15);
}

.modal-form .btn { width: 100%; text-align: center; margin-top: 0.4rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-grey);
  text-align: center;
}
.form-note.success { color: #1a7a2e; }

body.modal-locked { overflow: hidden; }

/* ---------- Animation d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero h1 .line, .hero .hero-lead, .hero .btn-jumbo { animation: none; opacity: 1; }
  .logo-col.reveal:not(.visible) .logo-card { transform: none; opacity: 1; }
  .logo-col.reveal:not(.visible)::before { transform: none; }
  .logo-col.visible .logo-card, .logo-col.visible::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 18px; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 5%;
    gap: 1rem;
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
}
