/* ==========================================================================
   GROUP DMELEC Côte d'Ivoire
   Feuille de styles principale
   ========================================================================== */

:root {
  /* Identité GROUP DMELEC — les couleurs relevées sur le logo :
     le bleu #00349A du mot GROUP, le filet #0073C2 qui le souligne,
     et le vert #17B812 du mot DMELEC. */
  --c-primary: #00349A;
  --c-primary-dark: #002878;
  --c-primary-deep: #001B52;
  --c-primary-light: #0073C2;
  --c-primary-soft: #E7ECF8;
  --c-accent: #0073C2;
  --c-accent-dark: #005B9B;
  --c-accent-soft: #E3F0FA;

  /* Vert du logo : couleur d'accent, par touches. Jamais en aplat de
     bouton — le bleu reste la couleur d'action. */
  --c-green: #17B812;
  --c-green-dark: #0F9A0B;
  --c-green-soft: #E3F7E2;
  --c-green-ink: #0B5C09;

  /* Couleur d'appel : boutons et icones. C'est le bleu du logo, le même
     que --c-primary. Le texte posé dessus est blanc : --c-cta-on. */
  --c-cta: #00349A;
  --c-cta-dark: #002878;
  --c-cta-soft: #E7ECF8;
  --c-cta-ink: #00246B;
  --c-cta-on: #FFFFFF;

  /* Neutres */
  --c-ink: #0F1522;
  --c-body: #5A6376;
  --c-muted: #8A93A6;
  --c-line: #E4E8EF;
  --c-surface: #F4F6F9;
  --c-surface-2: #EDF0F5;
  --c-white: #FFFFFF;
  --c-dark: #0E1016;
  --c-dark-2: #171A23;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Ombres */
  --sh-sm: 0 1px 2px rgba(15, 21, 34, .06);
  --sh-md: 0 4px 16px rgba(15, 21, 34, .07);
  --sh-lg: 0 14px 40px rgba(15, 21, 34, .10);

  /* Rythme */
  --wrap: 1200px;
  --gut: 24px;
  --sec: 96px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

/* L'attribut `hidden` doit l'emporter : sans cela, une règle `display: grid`
   ou `display: flex` plus loin le neutralise sans prévenir. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec); }

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

/* --------------------------------------------------------------------------
   Titres de section
   -------------------------------------------------------------------------- */

.sec-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.sec-head p {
  margin: 14px 0 0;
  color: var(--c-body);
  font-size: .975rem;
}

.sec-head--light h2 { color: var(--c-white); }
.sec-head--light p { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.btn__ico {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-accent);
  flex: none;
  transition: transform .25s var(--ease);
}

.btn__ico svg { width: 13px; height: 13px; }

.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ico { transform: translateX(3px); }

.btn--primary { background: var(--c-cta); color: var(--c-cta-on); }
.btn--primary:hover { background: var(--c-cta-dark); }
.btn--primary .btn__ico { background: var(--c-cta-on); color: var(--c-cta); }

.btn--deep { background: var(--c-primary); color: var(--c-white); }
.btn--deep:hover { background: var(--c-primary-dark); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px var(--c-cta);
  padding-right: 14px;
}

.btn--ghost .btn__ico { background: var(--c-cta); color: var(--c-cta-on); }
.btn--ghost:hover { background: var(--c-cta); color: var(--c-cta-on); }
.btn--ghost:hover .btn__ico { background: var(--c-cta-on); color: var(--c-cta); }

.btn--sm { padding: 9px 10px 9px 18px; font-size: .82rem; }
.btn--sm .btn__ico { width: 24px; height: 24px; }

.btn-center { display: flex; justify-content: center; margin-top: 48px; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

/* Le logo fourni porte déjà la raison sociale : pas de texte à côté. */
.logo__img {
  height: 54px;
  width: auto;
}

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin: 0; padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-block: 6px;
  transition: color .2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width .28s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current='page'] { color: var(--c-accent); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { width: 100%; }

.header .btn { flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Bouton panier de l'en-tête, avec sa pastille de comptage. */
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color .25s, color .25s, background .25s;
}

.cart-btn svg { width: 20px; height: 20px; }

.cart-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.cart-btn__n {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--c-white);
}

/* --------------------------------------------------------------------------
   Notification brève
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: var(--r-pill);
  background: var(--c-dark);
  color: var(--c-white);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.toast svg {
  width: 20px; height: 20px;
  flex: none;
  color: var(--c-green);
}

.toast a {
  flex: none;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  color: #8FD4FF;
  font-weight: 700;
}

.toast a:hover { color: var(--c-white); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   Page panier
   -------------------------------------------------------------------------- */

.panier {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.panier__lignes { display: grid; gap: 14px; }

.pline {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color .25s, box-shadow .25s;
}

.pline:hover { border-color: transparent; box-shadow: var(--sh-md); }

.pline__media {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--c-surface);
  overflow: hidden;
}

.pline__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pline__main { min-width: 0; }

.pline__cat {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pline h3 { font-size: 1rem; line-height: 1.35; margin: 0; }

.pline__ref {
  margin: 5px 0 0;
  font-size: .8rem;
  color: var(--c-muted);
}

.pline__del {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--c-muted);
  transition: background .2s, color .2s;
}

.pline__del svg { width: 18px; height: 18px; }
.pline__del:hover { background: #FDECEC; color: #C0392B; }

/* Encadré de synthèse, collant au défilement */
.panier__aside {
  position: sticky;
  top: 104px;
  padding: 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.panier__aside h2 { font-size: 1.15rem; margin-bottom: 18px; }

.panier__sum { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }

.panier__sum li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
  color: var(--c-body);
}

.panier__sum b { color: var(--c-ink); }

.panier__devis {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: .82rem;
  line-height: 1.6;
}

.panier__aside .btn { width: 100%; justify-content: center; }

.panier__clear {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-muted);
  font: inherit;
  font-size: .82rem;
  text-decoration: underline;
}

.panier__clear:hover { color: #C0392B; }

/* Panier vide */
.panier-vide {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.panier-vide__ico {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.panier-vide__ico svg { width: 38px; height: 38px; }
.panier-vide h2 { font-size: 1.5rem; margin-bottom: 12px; }
.panier-vide p { color: var(--c-body); line-height: 1.75; }
.panier-vide .btn-center { margin-top: 28px; }

@media (max-width: 980px) {
  .panier { grid-template-columns: 1fr; }
  .panier__aside { position: static; }
}

@media (max-width: 620px) {
  .pline {
    grid-template-columns: 72px 1fr auto;
    row-gap: 14px;
  }
  .pline__main { grid-column: 2 / -1; }
  .pline .qty { grid-column: 2; }
  .pline__del { grid-column: 3; justify-self: end; }
}

/* --------------------------------------------------------------------------
   Rappel du panier dans le formulaire
   -------------------------------------------------------------------------- */

.recap {
  margin-bottom: 26px;
  padding: 20px 22px;
  border: 1px solid var(--c-primary-soft);
  border-left: 4px solid var(--c-green);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.recap__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.recap__head h3 { font-size: .95rem; margin: 0; }
.recap__head a { font-size: .82rem; color: var(--c-primary); text-decoration: underline; }

.recap__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.recap__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .86rem;
  color: var(--c-body);
}

.recap__list b { flex: none; color: var(--c-ink); }

.recap__note { margin: 14px 0 0; font-size: .78rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   Hero — diaporama pleine largeur
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--c-dark);
  isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero__slide.is-active { opacity: 1; }

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

.hero__slide.is-active img { animation: heroZoom 9s ease-out forwards; }

@keyframes heroZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 20, .92) 0%, rgba(10, 12, 20, .74) 38%, rgba(10, 12, 20, .22) 72%, rgba(10, 12, 20, .35) 100%),
    linear-gradient(180deg, rgba(0, 128, 201, .3), rgba(14, 16, 22, .55));
}

.hero__in { position: relative; padding-block: 100px 182px; }

.hero__copy { max-width: 620px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 10px;
  margin-bottom: 26px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--c-white);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(23, 184, 18, .3);
}

.hero h1 { color: var(--c-white); }
.hero h1 em { font-style: normal; color: #7fc4ea; }

.hero__lead {
  margin: 22px 0 36px;
  max-width: 520px;
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .btn--light { background: var(--c-cta); color: var(--c-cta-on); }
.hero .btn--light .btn__ico { background: var(--c-cta-on); color: var(--c-cta); }
.hero .btn--light:hover { background: var(--c-cta-dark); }

.hero .btn--outline {
  background: rgba(255, 255, 255, .06);
  color: var(--c-white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
  padding-right: 14px;
}

.hero .btn--outline .btn__ico { background: rgba(255, 255, 255, .16); color: var(--c-white); }
.hero .btn--outline:hover { background: rgba(255, 255, 255, .14); }

/* Contrôles du diaporama */
.hero__nav {
  position: absolute;
  left: 0; right: 0; bottom: 38px;
  z-index: 3;
}

.hero__nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__dots { display: flex; gap: 10px; }

.hero__dot {
  width: 38px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .3);
  transition: background .3s, width .3s var(--ease);
}

.hero__dot.is-active { background: var(--c-green); width: 62px; }

.hero__arrows { display: flex; gap: 10px; }

.hero__arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--c-white);
  backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s;
}

.hero__arrow:hover { background: var(--c-accent); border-color: var(--c-accent); }
.hero__arrow svg { width: 16px; height: 16px; }

/* Bandeau de repères */
.hero-stats {
  background: var(--c-primary-dark);
  color: var(--c-white);
}

.hero-stats__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stats__item {
  padding: 32px 26px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.hero-stats__item:last-child { border-right: 0; }

.hero-stats__n {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.hero-stats__l {
  display: block;
  margin-top: 4px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .03em;
}

/* --------------------------------------------------------------------------
   Catalogue — onglets + cartes
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.tab {
  padding: 10px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-body);
  font-size: .84rem;
  font-weight: 600;
  transition: all .22s var(--ease);
}

.tab:hover { border-color: var(--c-accent); color: var(--c-accent); }

.tab.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Carte produit
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(15, 21, 34, .13);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--c-white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform .5s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }

/* Fanion de categorie, en haut a gauche du visuel. */
.card__flag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
  border-top: 1px solid var(--c-line);
}

.card__title {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  transition: color .25s;
}

.card:hover .card__title { color: var(--c-primary-dark); }

.card__desc {
  margin: 9px 0 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--c-body);
}

/* Ligne d'application, avec sa pastille, sur le modele de la
   disponibilite du modèle. */
.card__avail {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-primary-dark);
}

.card__avail::before {
  content: '';
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary);
}

/* Référence interne, celle que l'on cite dans une demande. */
.card__ref {
  margin: 10px 0 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.card__price {
  margin: 10px 0 16px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-ink);
}

.card__price span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
}

/* Quantité à gauche, ajout à droite : la ligne tient sur une seule rangée. */
.card__foot {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--c-cta);
  color: var(--c-cta-on);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .25s var(--ease);
}

.card__cta svg { width: 17px; height: 17px; flex: none; }
.card__cta:hover { background: var(--c-cta-dark); }

/* Rappel discret : cette référence est déjà au panier. */
.card__in {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-green-ink);
}

.card__in::before {
  content: '';
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c-green);
}

.card__in:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Pas-à-pas de quantité
   -------------------------------------------------------------------------- */

.qty {
  display: flex;
  align-items: center;
  flex: none;
  height: 46px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  background: var(--c-white);
  overflow: hidden;
}

.qty button {
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: background .2s, color .2s;
}

.qty button:hover { background: var(--c-surface); color: var(--c-primary); }

.qty input {
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--c-line);
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  color: var(--c-ink);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty input:focus { outline: 0; background: var(--c-primary-soft); }

/* Sur une grille serrée, le pas-à-pas passe sous le bouton. */
@media (max-width: 420px) {
  .card__foot { flex-wrap: wrap; }
  .card__cta { height: 46px; }
}


/* Visuel de remplacement en attendant les photos du client */
.ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--c-white), var(--c-surface-2));
}

.ph svg { width: 44%; height: auto; opacity: .3; color: var(--c-primary); padding: 0; }

/* --------------------------------------------------------------------------
   Domaines d'intervention
   -------------------------------------------------------------------------- */

.grid-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sector {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--c-white);
  isolation: isolate;
  background: var(--c-primary-dark);
}

.sector img {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.sector::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 16, 22, .18) 30%, rgba(14, 16, 22, .88) 100%);
  transition: background .35s;
}

.sector:hover img { transform: scale(1.07); }
.sector:hover::after { background: linear-gradient(180deg, rgba(0, 128, 201, .45) 10%, rgba(14, 16, 22, .9) 100%); }

.sector__in { max-width: 80%; }

.sector h3 { color: var(--c-white); font-size: 1.15rem; }

.sector p {
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.sector__go {
  position: absolute;
  right: 22px; bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-primary);
  transition: background .25s, color .25s, transform .25s var(--ease);
}

.sector__go svg { width: 13px; height: 13px; }
.sector:hover .sector__go { background: var(--c-cta); color: var(--c-cta-on); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */

.about { background: var(--c-dark); color: rgba(255, 255, 255, .75); }

.about__in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  aspect-ratio: 1 / .92;
}

.about__mosaic figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-dark-2);
}

.about__mosaic figure:first-child { grid-row: span 2; }
.about__mosaic img { width: 100%; height: 100%; object-fit: cover; }

.about h2 { color: var(--c-white); }

.about__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--c-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about p { font-size: .95rem; }

.about__values {
  display: grid;
  gap: 16px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.about__values li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about__values .ico {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(254, 197, 0, .18);
  color: #FFD659;
}

.about__values .ico svg { width: 17px; height: 17px; }
.about__values b { display: block; color: var(--c-white); font-size: .95rem; }
.about__values span { font-size: .85rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */

.section--soft { background: var(--c-surface); }

.grid-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.quote {
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
}

.quote__stars { display: flex; gap: 3px; color: #F5A623; margin-bottom: 14px; }
.quote__stars svg { width: 15px; height: 15px; }

.quote p {
  margin: 0 0 20px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--c-body);
}

.quote__who { display: flex; align-items: center; gap: 12px; }

.quote__av {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 700;
  font-size: .85rem;
}

.quote__who b { display: block; font-size: .88rem; color: var(--c-ink); }
.quote__who span { font-size: .78rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   Actualités
   -------------------------------------------------------------------------- */

.news {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
}

.post-lead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 32px;
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--c-white);
  isolation: isolate;
  background: var(--c-primary-dark);
}

.post-lead img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.post-lead::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 16, 22, .1) 35%, rgba(14, 16, 22, .9) 100%);
}

.post-lead:hover img { transform: scale(1.05); }
.post-lead h3 { color: var(--c-white); font-size: 1.4rem; max-width: 90%; }

.post-list { display: grid; gap: 18px; align-content: start; }

.post {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: box-shadow .3s var(--ease), border-color .3s;
}

.post:hover { box-shadow: var(--sh-md); border-color: transparent; }

.post__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface);
}

.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post h3 { font-size: 1rem; line-height: 1.4; }

.post__meta,
.post-lead__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .76rem;
  color: var(--c-muted);
}

.post-lead__meta { color: rgba(255, 255, 255, .72); margin-bottom: 12px; }

.post__meta span,
.post-lead__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post__meta svg,
.post-lead__meta svg { width: 13px; height: 13px; }
.post__meta { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Bandeau d'appel
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding-block: 72px;
  background: linear-gradient(120deg, var(--c-primary-deep) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
  color: var(--c-white);
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  right: -90px; top: -90px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.cta-band__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--c-white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 10px 0 0; color: rgba(255, 255, 255, .82); }

.cta-band .btn--light { background: var(--c-cta); color: var(--c-cta-on); }
.cta-band .btn--light .btn__ico { background: var(--c-cta-on); color: var(--c-cta); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, .62);
  font-size: .88rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-block: 72px 56px;
}

.footer h4 {
  margin-bottom: 20px;
  color: var(--c-white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__brand .logo__img { height: 52px; }
.footer__brand p { margin: 20px 0 0; max-width: 300px; line-height: 1.7; }

.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.footer__list a { transition: color .2s, padding-left .2s var(--ease); }
.footer__list a:hover { color: var(--c-white); padding-left: 5px; }

.footer__contact { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }

.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--c-green); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
}

.footer__social { display: flex; gap: 10px; }

.footer__social a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--c-white);
  transition: background .25s;
}

.footer__social a:hover { background: var(--c-accent); }
.footer__social svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Page produits
   -------------------------------------------------------------------------- */

.pagehead {
  position: relative;
  padding-block: 88px;
  background: var(--c-primary-deep);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}

/* Photo de fond propre a chaque page. */
.pagehead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Voile bleu : dense a gauche sous le texte, plus transparent a droite
   pour laisser respirer l'image. */
.pagehead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(0, 69, 111, .96) 0%,
    rgba(0, 69, 111, .9) 34%,
    rgba(0, 94, 150, .74) 62%,
    rgba(0, 128, 201, .58) 100%);
}

.pagehead::before {
  content: '';
  position: absolute;
  right: -120px; top: -140px;
  z-index: -1;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.pagehead__in { position: relative; }
.pagehead h1 { color: var(--c-white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.pagehead p { margin: 14px 0 0; max-width: 560px; color: rgba(255, 255, 255, .78); }

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .62);
}

.crumb a:hover { color: var(--c-white); }

.shop {
  display: grid;
  grid-template-columns: 274px 1fr;
  gap: 40px;
  align-items: start;
}

/* La colonne de filtres reste figée pendant que les produits défilent.
   Le collant porte sur l'aside : son emplacement de grille fait toute la
   hauteur de la rangée, ce qui lui donne la course nécessaire. */
.shop__side {
  position: sticky;
  top: 102px;
  align-self: start;
  max-height: calc(100vh - 126px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.filters {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--c-line);
}

.filters__head h2 { font-size: 1.05rem; }

.filters__reset {
  border: 0;
  background: none;
  padding: 0;
  color: var(--c-accent);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: underline;
}

.filters__reset:hover { color: var(--c-primary); }

.fgroup { padding-block: 20px; border-bottom: 1px solid var(--c-line); }
.fgroup:last-child { border-bottom: 0; padding-bottom: 4px; }

.fgroup > h3 {
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: .85rem;
  color: var(--c-body);
  cursor: pointer;
  transition: color .2s;
}

.check:hover { color: var(--c-ink); }

.check input {
  appearance: none;
  width: 17px; height: 17px;
  flex: none;
  border: 1.5px solid var(--c-line);
  border-radius: 5px;
  background: var(--c-white);
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}

.check input::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: rotate(-45deg) scale(0);
  transition: transform .18s var(--ease);
  margin-top: -2px;
}

.check input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

.check__n { margin-left: auto; font-size: .76rem; color: var(--c-muted); }

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--c-muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font: inherit;
  font-size: .88rem;
  color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
}

.search input::placeholder { color: var(--c-muted); }

.search input:focus {
  outline: 0;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.shop__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* La colonne de résultats est plus étroite que la pleine largeur : on resserre
   le pas de la grille pour conserver trois colonnes sur grand écran. */
.shop .grid-products {
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}

.shop__count { font-size: .88rem; }
.shop__count b { color: var(--c-ink); font-weight: 700; }

.shop__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.search--bar { min-width: 230px; }

.select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select select {
  appearance: none;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font: inherit;
  font-size: .84rem;
  color: var(--c-ink);
  cursor: pointer;
}

.select select:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }

.select svg {
  position: absolute;
  right: 13px;
  width: 13px; height: 13px;
  color: var(--c-muted);
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: .78rem;
  font-weight: 600;
}

.chip svg { width: 11px; height: 11px; }
.chip:hover { background: var(--c-primary); color: var(--c-white); }

.empty {
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.empty svg { width: 46px; height: 46px; color: var(--c-muted); margin: 0 auto 18px; }
.empty h3 { margin-bottom: 8px; }

.filters-toggle { display: none; }

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Adaptatif
   -------------------------------------------------------------------------- */

@media (max-width: 1150px) {
  /* Le bouton d'en-tête laisse la place à la navigation avant le passage en burger. */
  .header .btn { display: none; }
}

@media (max-width: 1080px) {
  :root { --sec: 76px; }
  .about__in { grid-template-columns: 1fr; gap: 44px; }
  .news { grid-template-columns: 1fr; }
  .grid-quotes { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .shop { grid-template-columns: 1fr; }
  .shop__side { position: static; max-height: none; overflow: visible; }
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .grid-sectors { grid-template-columns: repeat(2, 1fr); }
  .hero-stats__in { grid-template-columns: repeat(2, 1fr); }
  .hero-stats__item:nth-child(2) { border-right: 0; }
  .hero-stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }

  .nav {
    /* Ancré sous l'en-tête plutôt qu'à une hauteur fixe : la barre supérieure
       peut changer de hauteur selon la largeur de l'écran. */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 5;
    margin: 0;
    padding: 20px var(--gut) 28px;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-lg);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }

  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .nav__link::after { display: none; }

  .burger { display: grid; margin-left: auto; }
  .header__in { gap: 14px; }
  .header .btn { display: none; }
}

@media (max-width: 680px) {
  :root { --sec: 60px; --gut: 18px; }
  .grid-sectors { grid-template-columns: 1fr; }
  .grid-quotes { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr; }
  .about__mosaic { aspect-ratio: 1 / .7; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-block: 52px 40px; }
  .post { grid-template-columns: 104px 1fr; gap: 14px; }
  .hero__in { padding-block: 72px 156px; }
  .hero__nav-in { justify-content: center; }
  .hero__arrows { display: none; }
  .cta-band__in { flex-direction: column; align-items: flex-start; }

  /* Barre d'outils du catalogue : chaque contrôle sur toute la largeur. */
  .shop__bar { gap: 14px; }
  .shop__tools { width: 100%; }
  .search--bar { flex: 1 1 100%; min-width: 0; }
  .select { flex: 1 1 100%; }
  .select select { width: 100%; }
  .filters-toggle { flex: 1 1 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

/* Le nombre de colonnes suit le nombre de cartes : `auto-fit` supprime les
   pistes restées vides. Quatre cartes tiennent donc sur quatre colonnes,
   cinq sur cinq, sans règle dédiée à chaque page. */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.service__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--c-cta-soft);
  color: var(--c-cta-ink);
  transition: background .3s, color .3s;
}

.service:hover .service__ico { background: var(--c-cta); color: var(--c-cta-on); }
.service__ico svg { width: 24px; height: 24px; }

.service h3 { margin-bottom: 10px; font-size: 1.1rem; }

.service p {
  margin: 0 0 20px;
  font-size: .88rem;
  line-height: 1.6;
}

.service__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--c-accent);
  font-size: .84rem;
  font-weight: 600;
}

.service__go svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.service:hover .service__go svg { transform: translateX(4px); }

/* Lignes illustrées alternées */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature + .feature { margin-top: 84px; }
.feature:nth-child(even) .feature__media { order: 2; }

.feature__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-surface);
}

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

.feature__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--c-accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.feature p { font-size: .95rem; }

/* Listes à coches */
.ticks {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .89rem;
  line-height: 1.55;
}

.ticks li::before {
  content: '';
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080C9' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Trois formules de location */
.grid-formules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.formule {
  padding: 28px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.formule__n {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c-primary-dark);
  color: var(--c-white);
  font-size: .82rem;
  font-weight: 700;
}

.formule h3 { margin-bottom: 10px; font-size: 1.05rem; }
.formule p { margin: 0; font-size: .87rem; line-height: 1.6; }

/* Trois énergies de chariots */
.grid-energies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.energie {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
}

.energie__tag {
  align-self: flex-start;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.energie h3 { margin-bottom: 14px; font-size: 1.15rem; }
.energie .ticks { margin: 0 0 24px; }
.energie .btn { align-self: flex-start; margin-top: auto; }

/* --------------------------------------------------------------------------
   Actualités
   -------------------------------------------------------------------------- */

.grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.article__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-surface);
}

.article__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.article:hover .article__media img { transform: scale(1.06); }

.article__cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  color: var(--c-green-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.article__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.article h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 10px; }

.article p {
  margin: 0 0 18px;
  font-size: .87rem;
  line-height: 1.6;
}

.article .post__meta { margin-top: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-body);
  font-size: .72rem;
  font-weight: 600;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Adaptatif des nouvelles sections
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature + .feature { margin-top: 56px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .grid-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-formules,
  .grid-energies { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .grid-services,
  .grid-posts { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Survol — un vocabulaire commun à tous les blocs
   Lever léger, ombre portée, bordure qui s'efface, média qui respire.
   Les règles de prefers-reduced-motion plus haut neutralisent le tout.
   -------------------------------------------------------------------------- */

/* Témoignages */
.quote {
  position: relative;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}

.quote::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}

.quote:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.quote:hover::before { transform: scaleY(1); }

.quote__av { transition: background .3s, color .3s; }
.quote:hover .quote__av { background: var(--c-accent); color: var(--c-white); }

/* Formules de location */
.formule {
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}

.formule:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.formule__n { transition: background .3s, transform .3s var(--ease); }
.formule:hover .formule__n { background: var(--c-accent); transform: scale(1.1); }

/* Énergies de chariots */
.energie {
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}

.energie:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.energie__tag { transition: background .3s, color .3s; }
.energie:hover .energie__tag { background: var(--c-accent); color: var(--c-white); }

/* Lignes illustrées */
.feature__media img { transition: transform .6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.05); }

/* Mosaïque de la section À propos */
.about__mosaic img { transition: transform .6s var(--ease), opacity .3s; }
.about__mosaic figure:hover img { transform: scale(1.06); }
.about__mosaic:hover img { opacity: .6; }
.about__mosaic figure:hover img { opacity: 1; }

/* Articles en liste */
.post { transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.post:hover { transform: translateY(-3px); }
.post__media img { transition: transform .5s var(--ease); }
.post:hover .post__media img { transform: scale(1.08); }
.post h3 { transition: color .25s; }
.post:hover h3 { color: var(--c-accent); }

.post-lead h3 { transition: color .25s; }

/* Titres des cartes article */
.article h3 { transition: color .25s; }
.article:hover h3 { color: var(--c-accent); }

/* Repères sous le hero */
.hero-stats__item { transition: background .3s; }
.hero-stats__item:hover { background: rgba(255, 255, 255, .07); }

/* Services : la carte entière réagit, pas seulement le lien */
.service__go { transition: color .25s; }
.service:hover .service__go { color: var(--c-primary); }

/* Liens du pied de page et valeurs À propos */
.about__values .ico { transition: background .3s, color .3s, transform .3s var(--ease); }
.about__values li:hover .ico { background: var(--c-cta); color: var(--c-cta-on); transform: translateY(-2px); }

/* Coordonnées du pied de page */
.footer__contact li { transition: color .25s; }
.footer__contact li:hover { color: rgba(255, 255, 255, .9); }

/* Signature de l'agence, dans la barre basse du pied de page. */
.credit {
  color: rgba(255, 255, 255, .4);
  letter-spacing: .01em;
}

.credit a {
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
  transition: color .25s;
}

.credit a:hover { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   Partenaires — bandeau de logos en défilement continu
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

/* La piste contient deux copies de la série : à -50 % la seconde a pris
   exactement la place de la première, la boucle est invisible. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Les marques sont posées en toutes lettres : aucun logo de tiers n'est
   reproduit ici. Chaque plaquette se dimensionne sur son texte. */
.marquee__item {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0 14px;
}

.brand {
  display: block;
  white-space: nowrap;
  padding: 12px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  transition: color .3s, border-color .3s, box-shadow .3s;
}

.marquee__item:hover .brand {
  color: var(--c-primary);
  border-color: var(--c-primary);
  box-shadow: var(--sh-sm);
}

/* Le logo seul : ni cadre, ni fond, ni coin arrondi. Les logos gardent
   leurs couleurs — on ne retouche pas une marque déposée. */
.brand--logo {
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand--logo img {
  max-width: 170px;
  max-height: 100%;
  width: auto;
  height: auto;
  opacity: .78;
  transition: opacity .3s;
}

.marquee__item:hover .brand--logo { border: 0; box-shadow: none; }
.marquee__item:hover .brand--logo img { opacity: 1; }

@media (max-width: 680px) {
  .brand--logo { height: 44px; }
  .brand--logo img { max-width: 130px; }
}

/* --------------------------------------------------------------------------
   Références — logos posés, sans défilement
   -------------------------------------------------------------------------- */

.refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.refs figure {
  display: grid;
  place-items: center;
  height: 86px;
  margin: 0;
}

.refs img {
  max-width: 220px;
  max-height: 100%;
  width: auto;
  height: auto;
  opacity: .9;
  transition: opacity .3s;
}

.refs figure:hover img { opacity: 1; }

@media (max-width: 480px) {
  .refs { gap: 34px; }
  .refs figure { height: 66px; }
  .refs img { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

@media (max-width: 680px) {
  .marquee__item { padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   Pages de texte — mentions légales, confidentialité, confirmation
   -------------------------------------------------------------------------- */

.legal { max-width: 760px; margin: 0 auto; }

.legal h2 {
  margin: 44px 0 14px;
  font-size: 1.22rem;
  color: var(--c-ink);
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li { color: var(--c-body); line-height: 1.8; }

.legal p { margin: 0 0 14px; }

.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.legal a { color: var(--c-primary); text-decoration: underline; }
.legal a:hover { color: var(--c-primary-dark); }

.legal dl {
  display: grid;
  grid-template-columns: minmax(170px, auto) 1fr;
  gap: 10px 24px;
  margin: 0 0 14px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.legal dt { font-weight: 700; color: var(--c-ink); font-size: .9rem; }
.legal dd { margin: 0; color: var(--c-body); font-size: .92rem; }

.legal .todo {
  display: inline-block;
  padding: 1px 9px;
  border-radius: var(--r-pill);
  background: var(--c-green-soft);
  color: var(--c-green-ink);
  font-size: .78rem;
  font-weight: 700;
}

.legal__updated { margin-top: 44px; font-size: .84rem; color: var(--c-muted); }

@media (max-width: 600px) {
  .legal dl { grid-template-columns: 1fr; gap: 4px 0; padding: 20px; }
  .legal dd { margin-bottom: 10px; }
}

/* Page de confirmation après envoi du formulaire */
.thanks { max-width: 560px; margin: 0 auto; text-align: center; }

.thanks__ico {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--c-cta-soft);
  color: var(--c-cta-ink);
}

.thanks__ico svg { width: 36px; height: 36px; }
.thanks h1 { margin-bottom: 14px; }
.thanks p { color: var(--c-body); line-height: 1.8; }
.thanks .btn-center { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Citation — mot du Directeur Général
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Champs de formulaire — communs au contact et à l'espace client
   -------------------------------------------------------------------------- */

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: .82rem; font-weight: 600; color: var(--c-ink); }
.field label .req { color: var(--c-accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font: inherit;
  font-size: .9rem;
  color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { min-height: 136px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.field input[aria-invalid='true'] { border-color: #C0392B; }

.field__hint { margin: 0; font-size: .76rem; color: var(--c-muted); }

.form__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.form__note { font-size: .8rem; color: var(--c-muted); margin: 0; }

@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Espace client — connexion et création de compte
   -------------------------------------------------------------------------- */

.auth {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 38px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--sh-md);
}

.auth h2 { font-size: 1.3rem; margin-bottom: 6px; }
.auth__intro { margin: 0 0 24px; font-size: .9rem; color: var(--c-body); }

/* Avertissement : l'espace client n'est pas encore branché. */
.auth__warn {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--c-cta-soft);
  color: var(--c-primary-dark);
  font-size: .82rem;
  line-height: 1.6;
}

.auth__warn svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.auth .fields { display: grid; gap: 18px; margin: 0; }

.auth__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: .84rem;
}

.auth__options a { color: var(--c-primary); text-decoration: underline; }

.auth .btn { width: 100%; justify-content: center; margin-top: 24px; }

.auth__alt {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-size: .88rem;
  color: var(--c-body);
  text-align: center;
}

.auth__alt a { color: var(--c-primary); font-weight: 700; text-decoration: underline; }

/* Case à cocher d'acceptation */
.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--c-body);
}

.consent input {
  width: 17px; height: 17px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
}

.consent a { color: var(--c-primary); text-decoration: underline; }

/* Message de validation, posé sous un champ */
.field__err {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: #C0392B;
}

.field__err[hidden] { display: none; }

@media (max-width: 560px) {
  .auth { padding: 26px 22px; }
}

/* Portrait du Directeur Général, en vis-à-vis de sa citation. */
.dg {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.dg__portrait {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--sh-md);
}

.dg__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dg .quote { max-width: none; margin: 0; }

@media (max-width: 860px) {
  .dg {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
    text-align: left;
  }
  .dg__portrait { width: 180px; }
}

.quote {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 44px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}

.quote p {
  margin: 0;
  color: var(--c-ink);
  font-size: 1.08rem;
  line-height: 1.85;
}

.quote footer {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.quote footer b { color: var(--c-primary); font-size: .98rem; }
.quote footer span { color: var(--c-muted); font-size: .86rem; }

@media (max-width: 680px) {
  .quote { padding: 28px 24px; }
  .quote p { font-size: 1rem; }
}

/* Le bandeau des marques au bas du hero a été retiré : les marques restent
   présentées dans leur propre section, plus bas sur la page d'accueil.
   Les commandes du diaporama reprennent donc leur position de base
   (.hero__nav, bottom: 38px). */
