/*!
 * MADITECH Corporation — feuille de style du site vitrine
 * ---------------------------------------------------------------------------
 * Organisation du fichier
 *   1. Variables de couleur (mode clair, puis mode sombre automatique)
 *   2. Base : texte, titres, boutons, étiquettes, cartes
 *   3. Une rubrique par section de la page (en-tête, accueil, solutions...)
 *   4. Fenêtres et messages flottants
 *   5. Adaptation aux écrans (tablette et smartphone)
 *
 * Variables principales
 *   --bg  fond de page          --sf  fond des cartes      --sf2 fond des cartes discrètes
 *   --tx  texte                 --mu  texte secondaire     --ln  filets et bordures
 *   --g   vert Maditech #008000 --o   orange #ff9800       --bl  bleu #014d75
 *   --dk  fond des panneaux sombres
 * Polices : Barlow (titres) et Libre Franklin (texte).
 * ---------------------------------------------------------------------------
 */

:root {
  --bg: #EDF3ED;
  --sf: #fff;
  --sf2: #F5F8F5;
  --tx: #0a0f0a;
  --mu: #53655A;
  --ln: rgba(10, 15, 10, .1);
  --tint: #D5E5D5;
  --g: #008000;
  --gd: #005a00;
  --o: #ff9800;
  --bl: #014d75;
  --dk: #0e1812;
  --ac: #005a00;
  
	--vert:        #008000;
    --vert-clair:  #2da62d;
    --vert-fonce:  #005a00;
    --orange:      #ff9800;
    --orange-clair:#ffb74d;
    --orange-fonce:#e65100;
    --bleu:        #014d75;
    --bleu-clair:  #0277bd;
    --gris:        #757575;
    --gris-clair:  #e0e0e0;
    --gris-fonce:  #424242;
    --blanc:       #ffffff;
    --fond-sombre: #0a0f0a;
    --fond-card:   #0f1a0f;
    --fond-section:#0d150d;

    --titre:   'Barlow', sans-serif;
    --corps:   'Libre Franklin', sans-serif;

    --rayon:   25px;
    --rayon-lg:18px;
    --ombre:   0 4px 24px rgba(0,0,0,0.35);
    --transition: 0.3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
		
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px)
}


/* ====================================================================
   ADAPTATION AUX ÉCRANS (RESPONSIVE)
   Tablette : jusqu'à 1040 px · Menu mobile : jusqu'à 900 px · Smartphone : jusqu'à 560 px
   ==================================================================== */
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f0a;
    --sf: #111b12;
    --sf2: #0d160e;
    --tx: #EAF3EA;
    --mu: #9FB59F;
    --ln: rgba(255, 255, 255, .1);
    --tint: #12261a;
    --ac: #ff9800
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f0a;
  --sf: #111b12;
  --sf2: #0d160e;
  --tx: #EAF3EA;
  --mu: #9FB59F;
  --ln: rgba(255, 255, 255, .1);
  --tint: #12261a;
  --ac: #ff9800
}

* {
  box-sizing: border-box
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	-webkit-text-size-adjust: 100%;
	-webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

body {
  margin: 0;
  /*background: var(--bg);*/
  color: var(--tx);
  font: 400 clamp(16px, .3vw + 14.6px, 16px)/1.7 "Libre Franklin", system-ui, sans-serif;
  overflow-x: clip;
  background: var(--fond-sombre);
}

	body:has(.mdtc-center-toast.show) {
        filter: blur(1px);
        transition: filter 0.3s ease;
    }

h1,
h2,
h3 {
  font-family: Barlow, sans-serif;
  line-height: 1.05;
  letter-spacing: -.005em;
  margin: 0;
  font-weight: 800
}

h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  text-transform: uppercase
}

h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 700;
  line-height: 1.2
}

p {
  margin: 0 0 1em
}

a {
  color: inherit
}

.w {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.4vw, 44px)
}

section {
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative
}

.ic {
  width: 26px;
  height: 26px;
  flex: none
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 26px;
  background: var(--o);
  color: #0a0f0a;
  border-radius: 40px;
  font: 700 14px Barlow, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s
}

.pill .ar,
.pc .ar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a0f0a;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none
}

.pill .ar svg,
.pc .ar svg {
  width: 18px;
  height: 18px
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 152, 0, .35)
}

.pill.o {
  background: none;
  color: var(--tx);
  box-shadow: inset 0 0 0 1.5px var(--ln)
}

.pill.o:hover {
  box-shadow: inset 0 0 0 1.5px var(--g);
  color: var(--g)
}

.pill.o .ar {
  background: var(--g)
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px
}

.lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12.5px Barlow;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 14px
}

.lab svg {
  width: 16px;
  height: 16px
}

.h2w {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px)
}

.h2w h2:after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--o);
  margin-top: 16px
}

.h2w p {
  color: var(--mu);
  margin: 16px 0 0
}

.card,
.soft,
.cd {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 26px
}

.soft {
  background: var(--sf2);
  padding: clamp(20px, 2.4vw, 30px)
}

.cd {
  padding: clamp(22px, 2.6vw, 32px)
}

.card {
  padding: clamp(22px, 3vw, 36px)
}

/* ====================================================================
   EN-TÊTE ET NAVIGATION
   ==================================================================== */
.hd {
  position: sticky;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 60;
  margin: 12px auto 0;
  width: min(1240px, calc(100% - 28px))
}

.hd .in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 10px 0 14px;
  background: color-mix(in srgb, var(--sf) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ln);
  border-radius: 40px
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font: 800 19px Barlow;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-right: auto
}

.logo small {
  display: block;
  font: 500 10.5px "Libre Franklin";
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange);
  text-transform:uppercase;
  margin-top:3px;
}

.lm {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--g);
  display: grid;
  place-items: center;
  flex: none;
  padding: 4px
}

.lm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 14.5px;
  font-weight: 500
}

.nav a {
  text-decoration: none;
  color: var(--mu);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: .25s
}

.nav a:hover,
.nav a.on {
  color: var(--tx);
  border-color: var(--o)
}

.m-only {
  display: none
}

.hd .pill {
  min-height: 46px;
  padding-left: 20px;
  font-size: 13px
}

.hd .pill .ar {
  width: 34px;
  height: 34px
}

.bg {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--sf2);
  color: var(--tx);
  cursor: pointer;
  padding: 0
}

.bg span,
.bg span:before,
.bg span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: auto;
  position: relative;
  transition: .3s
}

.bg span:before,
.bg span:after {
  content: "";
  position: absolute;
  left: 0
}

.bg span:before {
  top: -6px
}

.bg span:after {
  top: 6px
}

.bg[aria-expanded="true"] span {
  background: transparent
}

.bg[aria-expanded="true"] span:before {
  top: 0;
  transform: rotate(45deg)
}

.bg[aria-expanded="true"] span:after {
  top: 0;
  transform: rotate(-45deg)
}

.snav {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 34px
}

.snav a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mu);
  text-decoration: none;
  transition: .25s
}

.snav a:hover {
  color: var(--tx);
  background:var(--orange);
}

.snav a.on {
  background:var(--orange);
  color: #fff
}

.snav .ic {
  width: 21px;
  height: 21px
}

@media(min-width:1360px) {
  .snav {
    display: flex
  }
}

/* ====================================================================
   SECTION D'ACCUEIL (HERO)
   ==================================================================== */
.hero {
  padding-top: clamp(28px, 4vw, 56px)
}

.hg {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center
}

.hero h1 {
  text-transform: uppercase;
  margin: 6px 0 24px
}

.hero h1 .s {
  display: block;
  font-size: clamp(26px, 3.6vw, 48px);
  color: var(--tx)
}

.hero h1 .b {
  display: block;
  font-size: clamp(50px, 8vw, 112px);
  line-height: .92;
  color: var(--g);
  margin: 6px 0
}

.hero p.l {
  color: var(--mu);
  max-width: 470px;
  font-size: clamp(16px, 1.3vw, 19px);
  margin-bottom: 30px
}

.bs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center
}

.art {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto
}

.disc {
  position: absolute;
  left: 12%;
  top: 8%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tint);
  display:none;
}

.afr0 {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 62%;
  height: auto;
  opacity: .55
}

.dots {
  position: absolute;
  right: 0;
  top: 34%;
  width: 96px;
  height: auto;
  color: var(--g);
  opacity: .5
}

.mas {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform .4s
}

.mas img {
  display: block;
  width: 100%;
  height: auto
}

.mas.zoomed {
  transform: translateX(-50%) scale(1.06)
}

.bub {
  position: absolute;
  left: 62%;
  top: -4%;
  background: #0a0f0a;
  color: #fff;
  font: 600 13px "Libre Franklin";
  padding: 8px 14px;
  border-radius: 14px 14px 14px 4px;
  white-space: nowrap;
  display:none;
}

.ft {
  position: absolute;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 22px;
  padding: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(10, 15, 10, .1);
  animation: fl 7s ease-in-out infinite alternate;
  text-decoration: none;
  color: var(--tx)
}

.ft img {
  width: clamp(64px, 11vw, 104px);
  height: auto;
  display: block;
  border-radius: 12px
}

.ft small {
  font: 700 11px Barlow;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mu);
  margin-top: 4px
}

.t1 {
  left: 0;
  top: 22%;
  transform: rotate(-7deg)
}

.t2 {
  right: 2%;
  top: 6%;
  transform: rotate(6deg);
  animation-delay: -2s
}

.t3 {
  right: -3%;
  bottom: 20%;
  transform: rotate(-5deg);
  animation-delay: -4s
}

.bd {
  position: absolute;
  color: #fff;
  border-radius: 16px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  background: rgba(0, 128, 0, .12);
  border: 1px solid rgba(0, 128, 0, .35);
}

.bd b {
  display: block;
  font: 700 14px Barlow;
  color: var(--o)
}

.d0 {
  left: -10%;
  bottom: 30%
}

.d1 {
  left: -3%;
  bottom: 4%
}

.d2 {
  right: 0;
  bottom: -3%
}

@keyframes fl {
  to {
    translate: 0 -10px
  }
}

/* ====================================================================
   PANNEAU « POURQUOI CHOISIR MADITECH »
   ==================================================================== */
.panel {
  background: var(--dk);
  color: #EAF3EA;
  border-radius: 30px;
  padding: clamp(24px, 3.4vw, 44px)
}

.panel .lab {
  color: #7fc7ff
}

.pg4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0
}

.pg4>div {
  padding: 6px clamp(14px, 2vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, .12)
}

.pg4>div:first-child {
  border: 0;
  padding-left: 0
}

.pg4 .ic {
  color: var(--o);
  width: 30px;
  height: 30px;
  margin-bottom: 16px
}

.pg4 h3 {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .03em;
  margin-bottom: 8px
}

.pg4 p {
  font-size: 14px;
  color: #A9BFA9;
  margin: 0;
  line-height: 1.55
}

/* ====================================================================
   CARROUSEL DES SOLUTIONS
   ==================================================================== */
.car {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center
}

.car h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 0
}

.car h2:after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bl);
  margin-top: 14px
}

.cb {
  display: flex;
  gap: 10px;
  margin-top: 28px
}

.cb button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: var(--sf);
  color: var(--tx);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .25s
}

.cb button:last-child {
  background: #0a0f0a;
  color: #fff;
  border-color: #0a0f0a
}

.cb button:hover {
  border-color: var(--o)
}

.cb .ic {
  width: 20px;
  height: 20px
}

.cb button:last-child .ic {
  transform: scaleX(-1)
}

.cs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none
}

.cs::-webkit-scrollbar {
  display: none
}

.pc {
  flex: 0 0 clamp(210px, 22vw, 250px);
  scroll-snap-align: start;
  position: relative;
  text-align: left;
  background: var(--sf2);
  border: 1px solid var(--ln);
  border-radius: 26px;
  padding: 14px 14px 16px;
  cursor: pointer;
  color: var(--tx);
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s, border-color .3s
}

.pc:hover {
  transform: translateY(-4px);
  border-color: var(--g)
}

.pc .pi {
  background: #fff;
  border-radius: 18px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 10px
}

.pc .pi img {
  width: 118px;
  height: 118px;
  object-fit: contain
}

.pc b {
  font: 700 18px Barlow
}

.pc small {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.4
}

.pc .st2 {
  font: 600 13px "Libre Franklin";
  color: var(--ac);
  margin-top: 10px;
  padding-right: 48px
}

.pc .ar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  background: var(--o);
  color: #0a0f0a
}

.pc .ar svg {
  width: 16px;
  height: 16px
}

/* ====================================================================
   BANDEAU DE CHIFFRES CLÉS
   ==================================================================== */
.band {
  background: var(--g);
  color: #fff;
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: clamp(18px, 2.6vw, 30px) 0
}

.band>div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px clamp(14px, 2vw, 30px);
  border-left: 1px solid rgba(255, 255, 255, .28)
}

.band>div:first-child {
  border: 0
}

.band .ic {
  width: 36px;
  height: 36px
}

.band b {
  display: block;
  font: 800 clamp(26px, 3vw, 36px)/1 Barlow
}

.band span {
  font-size: 13.5px;
  opacity: .92;
  line-height: 1.35;
  display: block
}

/* ====================================================================
   IDENTITÉ ET SYSTÈME COGNITIF DE GESTION (SCG)
   ==================================================================== */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center
}

.lead p {
  color: var(--mu)
}

.lead p strong {
  color: var(--tx);
  font-weight: 600
}

/* Les trois couches de l'infrastructure (Business Layer, SCG, Frameworks) :
   même largeur et même hauteur sur tous les appareils.
   La grille impose des lignes de hauteur égale ; les tailles de texte sont fixes. */
.lys {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
  width: 100%;
}

.ly {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 16px 22px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-left: 6px solid var(--c);   /* --c : couleur propre à chaque couche */
  border-radius: 18px;
}

.ly b {
  font: 700 19px/1.2 Barlow, sans-serif;
}

.ly span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--mu);
}

.g3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px
}

.soft h3 {
  margin: 10px 0 8px
}

.soft p {
  color: var(--mu);
  font-size: .96em;
  margin: 0
}

.soft .ic {
  color: var(--g)
}

.soft .tag {
  margin-bottom: 4px
}

.soft b {
  font: 800 clamp(34px, 4vw, 48px)/1 Barlow;
  color: var(--g);
  display: block
}

.soft b+span {
  color: var(--mu);
  font-size: 14.5px
}

.tag {
  display: inline-block;
  font: 700 12px Barlow, sans-serif;
  letter-spacing: .08em;
  padding: 3px 12px;
  border-radius: 20px;
  color: var(--t, #014d75);
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent)
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ln);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: top
}

.thumb span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #0a0f0a;
  color: #fff;
  font: 600 13px "Libre Franklin";
  padding: 7px 16px;
  border-radius: 20px
}

.sov {
  background: var(--dk);
  color: #EAF3EA;
  border-radius: 28px;
  padding: clamp(24px, 3.4vw, 44px)
}

.sov .lab {
  color: var(--o)
}

.sov q {
  display: block;
  font: 700 clamp(24px, 2.8vw, 36px)/1.15 Barlow;
  quotes: "« " " »";
  margin-bottom: 18px
}

.sov p {
  color: #A9BFA9;
  margin: 0;
  font-size: .97em
}

/* ====================================================================
   PLATEFORME ET EXTRAITS DE CODE
   ==================================================================== */
.fw {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px
}

.fw .cd {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.fw .k {
  font: 700 12.5px Barlow;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ac)
}

.fw p {
  color: var(--mu);
  margin: 0
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px
}

.chips span {
	font-size: 0.68rem;
  padding: 2px 8px;
  background: rgba(0,128,0,0.12);
  border: 1px solid rgba(0,128,0,0.25);
  border-radius: 4px;
  color: #81c784;
}

.pl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font: 500 12.5px ui-monospace, Menlo, Consolas, monospace;
  margin-top: auto;
  padding-top: 6px
}

.pl span {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 128, 0, .12);
  border: 1px solid rgba(0, 128, 0, .35)
}

.pl i {
  font-style: normal;
  color: var(--o)
}

.cdw {
  margin-top: 18px
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.tabs button {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-bottom: 0;
  padding: 12px 18px;
  min-height: 44px;
  font: 600 14.5px "Libre Franklin";
  color: var(--mu);
  cursor: pointer;
  border-radius: 16px 16px 0 0
}

.tabs button[aria-selected="true"] {
  background: #060a07;
  color: #fff;
  border-color: #060a07
}

.code {
  margin: 0;
  background: #060a07;
  color: #DCE9DC;
  padding: clamp(16px, 2.4vw, 28px);
  font: 13px/1.65 ui-monospace, Menlo, Consolas, monospace;
  overflow: auto;
  max-height: 520px;
  border-top: 3px solid var(--o);
  border-radius: 0 20px 20px 20px;
  tab-size: 4;
  scrollbar-width: none;
  overscroll-behavior: contain
}

.code::-webkit-scrollbar {
  width: 0;
  height: 0
}

@media (hover:hover) {
  .code:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent
  }

  .code:hover::-webkit-scrollbar {
    width: 6px;
    height: 6px
  }

  .code:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 6px
  }

  .code:hover::-webkit-scrollbar-track {
    background: transparent
  }
}

.code .token-comment,
.code .cm {
  color: #6f8f78;
  font-style: italic
}

.code .token-string {
  color: #ffcc80
}

.code .token-keyword {
  color: #4fc3f7
}

.code .token-function {
  color: #a5d6a7
}

.code .token-variable {
  color: #f2f6f2
}

.code .token-number {
  color: #ffb74d
}

.code .token-class {
  color: #80cbc4
}

.code[hidden] {
  display: none
}

/* ====================================================================
   MADITECH WEBSTORE
   ==================================================================== */
.mw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center
}

.modes {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px
}

.modes>div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--ln);
  border-radius: 18px;
  background: var(--sf)
}

.modes .mi {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 128, 0, .12);
  color: var(--ac);
  display: grid;
  place-items: center;
  flex: none
}

.modes .mi .ic {
  width: 24px;
  height: 24px
}

.modes b {
  font: 700 17px Barlow;
  display: block
}

.modes span {
  font-size: 14px;
  color: var(--mu);
  line-height: 1.5
}

.store {
  padding: clamp(18px, 2.6vw, 28px)
}

.sh {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px
}

.sh b {
  font: 700 19px Barlow;
  display: block
}

.sh span {
  font-size: 13px;
  color: var(--mu);
  display: block;
  line-height: 1.4
}

.lt {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ln);
  display: grid;
  place-items: center;
  flex: none;
  padding: 6px
}

.lt img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.sb {
  border: 1px solid var(--ln);
  border-radius: 30px;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--mu);
  margin-bottom: 14px
}

.tl {
  display: grid;
  gap: 10px
}

.tile {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ln);
  border-radius: 16px;
  background: var(--sf2)
}

.tile i {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--g);
  display: grid;
  place-items: center;
  font: 800 18px Barlow;
  font-style: normal;
  color: #fff;
  overflow:hidden
}

.tile i img{
	width:45px;
}

.tile b {
  font: 700 17px Barlow;
  display: block
}

.tile span {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.4;
  display: block
}

.tile .u {
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ac);
  font-weight: 600;
  white-space: nowrap
}

/* ====================================================================
   ÉQUIPE, TÉMOIGNAGES ET IMPLANTATION
   ==================================================================== */
.tm,
.qs,
.geo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px
}

.qs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr))
}

.geo {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr))
}

.tp {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--tint)
}

.tp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(100%);
}

.cd:hover .tp img {
    filter: grayscale(0%);
}

.tp.lg {
  background: #fff;
  border: 1px solid var(--ln);
  display: grid;
  place-items: center;
  padding: 20px
}

.tp.lg img {
  object-fit: contain
}

.tp.mono {
  display: grid;
  place-items: center;
  font: 800 56px Barlow;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
  color: #fff;
  border: #2da62d 2px inset;
}

.tm .r {
  color: var(--ac);
  font: 600 14px/1.35 "Libre Franklin";
  margin: 6px 0 10px
}

.tm p {
  font-size: .93em;
  color: var(--mu)
}

.tm .chips {
  margin-top: 12px
}

.qs .cd {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.st {
  color: var(--o);
  letter-spacing: 4px;
  font-size: 15px
}

.qs blockquote {
  margin: 0;
  font-size: 1.02em
}

.qs blockquote+blockquote {
  color: var(--mu);
  font-size: .95em
}

.wh {
  margin-top: auto;
  display: flex;
  gap: 14px;
  align-items: center
}

.mn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 17px Barlow;
  background: var(--dk);
  color: #fff;
  flex: none;
  box-shadow: 0 0 0 2px var(--g)
}

.wh b {
  font: 700 17px Barlow;
  display: block
}

.wh small {
  color: var(--mu);
  font-size: 13.5px;
  line-height: 1.35;
  display: block
}

.geo .cd h3 {
  margin-bottom: 2px
}

.geo .h {
  color: var(--ac);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px
}

.geo ul {
  margin: 0;
  padding: 0;
  list-style: none
}

.geo li {
  padding: 9px 0;
  border-top: 1px solid var(--ln);
  font-weight: 500
}

.geo li small {
  display: block;
  color: var(--mu);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.4
}

.afr {
  width: min(26vw, 300px);
  height: auto;
  opacity: .6;
  justify-self: end
}

#implantation {
      padding: 96px 0;
      background: var(--fond-section);
    }

    .implantation-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 12px;
    }

    .region-card {
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--rayon-lg);
      overflow: hidden;
      transition: border-color var(--transition);
    }

    .region-card:hover {
      border-color: rgba(0,128,0,0.3);
    }

    .region-header {
      padding: 20px 22px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .region-flag {
      font-size: 1.8rem;
      margin-bottom: 8px;
    }

    .region-name {
      font-family: var(--titre);
      font-weight: 800;
      font-size: 1.1rem;
      margin-bottom: 4px;
    }

    .region-count {
      font-size: 0.75rem;
      color: var(--orange);
      font-weight: 600;
    }

    .region-cities {
      padding: 16px 22px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .city-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .city-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-top: 5px;
      flex-shrink: 0;
    }

    .dot-siege { background: var(--orange); }
    .dot-filiale{ background: var(--vert-clair); }
    .dot-partner{ background: var(--bleu-clair); }

    .city-name {
      font-size: 0.88rem;
      font-weight: 600;
      margin-bottom: 1px;
    }

    .city-detail {
      font-size: 0.76rem;
      color: rgba(255,255,255,0.4);
    }

    .city-contact {
      font-size: 0.73rem;
      color: var(--orange);
      margin-top: 2px;
    }

    .region-legend {
      display: flex;
      gap: 16px;
      padding: 12px 22px;
	border-top: 1px solid rgba(255,255,255,0.05);
      flex-wrap: wrap;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.68rem;
      color: rgba(255,255,255,0.4);
    }

    .legend-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }

/* ====================================================================
   BLOC FINAL (CITATION ET APPEL À L'ACTION)
   ==================================================================== */
.fin {
  display: grid;
  grid-template-columns: .8fr 1.3fr 1fr;
  background: var(--dk);
  color: #EAF3EA;
  border-radius: 32px;
  overflow: hidden
}

.mdtc-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,128,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,128,0,0.04) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}

.mdtc-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(0,128,0,0.1) 0%, transparent 55%), radial-gradient(ellipse at 20% 70%, rgba(255,152,0,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.fin .ph {
	position: relative;
  overflow: hidden;
  background-color:#fff;
}

.fin .ph img {
  position: static;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.w:hover .ph img{
	filter: grayscale(0%);
}

.fin .ph span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #0a0f0a;
  color: #fff;
  font: 600 13px "Libre Franklin";
  padding: 7px 14px;
  border-radius: 20px
}

.fin .qt {
  padding: clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center
}

.fin .qm {
  font: 800 70px/.6 Barlow;
  color: var(--o);
  font-family:serif;
}

.fin q {
  display: block;
  font: 500 clamp(22px, 2.6vw, 34px)/1.25 "Libre Franklin";
  quotes: none;
  margin: 12px 0 16px
}

.fin cite {
  font-style: normal;
  color: #A9BFA9;
  font-size: 14.5px
}

.fin .go {
  margin: clamp(16px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  align-self: center
}

.fin .go h3 {
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 10px
}

.fin .go p {
  color: #A9BFA9;
  font-size: 14.5px
}

/* ====================================================================
   CONTACT, NEWSLETTER ET FORMULAIRE
   ==================================================================== */
.ct2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start
}

.ct2 h2 {
  margin-bottom: 6px
}

.ci a,
.ci p {
  display: block;
  color: var(--mu);
  margin: 0 0 6px;
  text-decoration: none
}

.ci a{
	color:#fff;
}

.ci a:hover {
  color: var(--g)
}

.ci {
  margin-top: 18px
}

.news {
  margin-top: 24px;
  padding: clamp(18px, 2.6vw, 28px)
}

.news h3 {
  font-size: 21px;
  margin-bottom: 8px
}

.news p {
  color: var(--mu);
  font-size: .94em;
  margin: 0 0 14px
}

.nr {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.nr input {
  flex: 1 1 200px
}

.nr .btn {
  flex: none
}

.soc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--mu)
}

.soc a {
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: 4px 14px;
  opacity: .6;
  cursor: not-allowed
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

form .f {
  grid-column: 1/-1
}

form h3 {
  font-size: 26px
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mu)
}

input,
select,
textarea {
  font: 400 16px "Libre Franklin", sans-serif;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--ln);
  background: var(--sf2);
  color: var(--tx)
}

textarea {
  min-height: 130px;
  resize: vertical
}

.msg {
  min-height: 1.4em;
  font-size: 15px;
  color: var(--mu)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: var(--o);
  color: #0a0f0a;
  font: 700 14px Barlow, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 40px;
  border: 0;
  cursor: pointer;
  transition: .3s
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 152, 0, .35)
}

.btn:disabled {
  opacity: .6
}

footer {
  background: var(--dk);
  color: #A9BFA9;
  border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
  margin: clamp(24px, 4vw, 48px) auto;
  width: min(1240px, calc(100% - 28px));
  font-size: 15.5px
}

.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px)
}

footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
  text-transform: uppercase
}

footer a {
  display: block;
  text-decoration: none;
  padding: 5px 0
}

footer a:hover {
  color: var(--o)
}

footer p {
  margin: 0 0 10px
}

footer .lm {
  margin-bottom: 16px
}

.cp {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

/* ====================================================================
   FENÊTRES, MESSAGES ET BOUTONS FLOTTANTS
   ==================================================================== */
.cur,
.cur-r {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s
}

.cur {
  width: 8px;
  height: 8px;
  background: var(--o)
}

.cur-r {
  width: 34px;
  height: 34px;
  border: 1px solid var(--g)
}

.cur.on,
.cur-r.on {
  opacity: 1
}

.scg-modal,
.sol-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 5, .86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.scg-modal.open,
.sol-modal.open {
  display: flex
}

.scg-modal[hidden],
.sol-modal[hidden] {
  display: none
}

.scg-modal-content {
  max-width: min(96vw, 980px);
  max-height: 90vh;
  border-radius: 14px;
  background: #fff;
  object-fit: contain
}

.scg-close,
.sm-x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #0a0f0a;
  font-size: 26px;
  cursor: pointer;
  z-index: 2
}

.sm-box {
  position: relative;
  background: var(--sf);
  color: var(--tx);
  border-radius: 28px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(22px, 3vw, 36px)
}

.sm-box .sm-x {
  top: 12px;
  right: 12px;
  background: var(--sf2);
  width: 42px;
  height: 42px
}

.sm-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px
}

.sm-top .lt {
  width: 84px;
  height: 84px
}

.sm-top h3 {
  font-size: 30px;
  margin-top: 6px
}

.sm-body p {
  color: var(--mu)
}

.sm-act {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px
}

.mdtc-ai-modal {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: .4s;
  width: min(92vw, 420px)
}

.mdtc-ai-modal.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

.mdtc-ai-box {
  background: #0a0f0a;
  color: #EAF3EA;
  border: 1px solid var(--g);
  border-radius: 20px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55
}

.scroll-btn {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: #0a0f0a;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center
}

.scroll-btn:hover {
  border-color: var(--o);
  color: var(--o)
}

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

.mdtc-center-toast,
.mdtc-notify {
  position: fixed;
  left: 50%;
  z-index: 260;
  background: #0a0f0a;
  color: #EAF3EA;
  border: 1px solid var(--g);
  border-radius: 16px;
  padding: 13px 22px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: .35s;
  max-width: 92vw;
  text-align: center
}

.mdtc-center-toast {
  top: calc(92px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -10px)
}

.mdtc-notify {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px)
}

.mdtc-center-toast.show,
.mdtc-notify.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

.mdtc-center-toast.error,
.mdtc-notify.error {
  border-color: #e5484d
}

.mdtc-notify .ni {
  color: #4cd964;
  margin-right: 10px;
  font-weight: 700
}

.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1)
}

.js .rv.in {
  opacity: 1;
  transform: none
}

.md b+span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mu);
  margin-top: 2px
}

.md b {
  line-height: 1.2
}

.i3 {
  grid-template-columns: repeat(3, 1fr)
}

.i3 .soft {
  padding: clamp(14px, 2.4vw, 28px)
}

.i3 .soft h3 {
  font-size: clamp(16px, 1.6vw + 6px, 22px);
  margin: 8px 0 6px
}

.i3 .soft p {
  font-size: clamp(13px, .7vw + 8px, 15.5px);
  line-height: 1.55
}

.i3 .soft b {
  font-size: clamp(24px, 4.6vw, 46px)
}

.i3 .soft b+span {
  display: block;
  font-size: clamp(11.5px, .8vw + 6px, 14.5px);
  line-height: 1.35
}

@media(max-width:699px) {
  .i3:not(.s3) {
    grid-template-columns: 1fr
  }

  .s3 {
    gap: 8px
  }

  .s3 .soft {
    padding: 12px 10px;
    border-radius: 18px;
    text-align: center
  }

  .s3 .soft b {
    font-size: clamp(22px, 7.4vw, 30px)
  }
}

@media(max-width:1040px) {

  .hg,
  .two,
  .mw,
  .ct2,
  .fin {
    grid-template-columns: 1fr
  }

  .pg4 {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px
  }

  .pg4>div:nth-child(3) {
    border-left: 0;
    padding-left: 0
  }

  .band {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px
  }

  .band>div:nth-child(3) {
    border-left: 0
  }

  .fg {
    grid-template-columns: 1fr 1fr
  }

  .car {
    grid-template-columns: 1fr
  }

  .cb {
    margin-top: 16px
  }

  .fin .ph {
    min-height: 280px
  }

  .afr {
    display: none
  }

  .art {
    max-width: 520px
  }
}

@media(max-width:900px) {
  .bg {
    display: block
  }

  .hd .pill {
    display: none
  }

  .nav {
    display: none;
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(88px + env(safe-area-inset-top, 0px));
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 20px;
    background: var(--sf);
    border: 1px solid var(--ln);
    border-radius: 26px;
    font-size: 19px;
    max-height: calc(100vh - 120px);
    overflow: auto
  }

  .nav.open {
    display: flex
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--ln)
  }

  .nav a:last-child {
    border-bottom: 0
  }

  .m-only {
    display: block
  }
}

@media(max-width:560px) {

  .pg4,
  .band,
  .fg,
  form {
    grid-template-columns: 1fr
  }

  .pg4>div,
  .band>div {
    border-left: 0 !important;
    padding-left: 0
  }

  .logo small {
    display: none
  }

  .tile {
    grid-template-columns: 44px 1fr
  }

  .tile .u {
    display: none
  }

  .pill {
    width: 100%;
    justify-content: space-between
  }

  .bub {
    left: 50%;
    font-size: 12px
  }

  .d2 {
    display: none
  }

  .t1 {
    left: -2%
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

  html {
    scroll-behavior: auto
  }

  .js .rv {
    opacity: 1;
    transform: none
  }

  .cur,
  .cur-r {
    display: none
  }
}

.eco-strip .pw {
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 13px;
}

.pw {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: var(--sf);
  color: var(--ac);
  font: 600 11.5px/1.3 "Libre Franklin";
  text-align: left
}

.sol-modal .pw {
  margin-top: 14px
}

.eco-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

.eco-strip .pw {
  margin-top: 0;
  padding: 7px 14px;
  font-size: 13px
}

footer .ip-note {
  margin: 28px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #8FA68F
}

footer .ip-note strong {
  color: #fff
}

.mark{
	color:#E4F5F5;
}

.txtbrand{
	color:var(--orange);
}

.cite-mark{
	font-size:12px;
	color:var(--vert);
}