/* ===================================================================
   M'rabet Services — systeme de presentation des prestations
   -------------------------------------------------------------------
   Ecrit en mobile first : les regles de base valent pour le telephone,
   les @media (min-width) enrichissent ensuite pour tablette et desktop.

   Charge APRES css/style.css, dont il corrige quelques heritages.
   Fichier independant de sass/ : une recompilation du theme ne
   l'ecrasera pas.
   =================================================================== */

:root {
  --svc-yellow: #FFCD00;
  --svc-amber: #F7AF1D;
  --svc-dark: #1E2022;
  --svc-text: #3A3D40;
  --svc-muted: #6B7075;
  --svc-border: #E4E6E8;
  --svc-soft: #F6F7F8;
  --svc-radius: 14px;
  --svc-shadow: 0 1px 2px rgba(30, 32, 34, .06), 0 4px 16px rgba(30, 32, 34, .08);
  --svc-shadow-hover: 0 6px 14px rgba(30, 32, 34, .10), 0 18px 40px rgba(30, 32, 34, .14);
}

/* -------------------------------------------------------------------
   1. Corrections d'heritage
   ------------------------------------------------------------------- */

/* Le logo etait force a 400x200 en style inline : debordement horizontal
   sur telephone et ratio deforme. */
.site-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  margin: 10px 0;
}

@media (min-width: 768px) {
  .site-logo { max-width: 230px; }
}

@media (min-width: 992px) {
  .site-logo { max-width: 300px; }
}

.site-logo--footer {
  max-width: 150px;
  margin: 0 auto 10px;
}

/* Aucune page ne doit pouvoir defiler horizontalement.
   clip et non hidden : hidden fait de l'element un conteneur de
   defilement, ce qui neutralise position:sticky sur l'en-tete. clip
   coupe sans creer ce conteneur. Le theme applique overflow-x:hidden a
   #page, on le corrige de la meme facon. */
html, body, #page { overflow-x: clip; }

/* Le carrousel d'accueil etait fige a 700px de haut, quelle que soit la
   taille de l'ecran : sur telephone il mangeait plus que la fenetre.
   Le theme centre deja le titre verticalement, les <br/> qui servaient
   a le descendre ont ete retires du HTML. */
#colorlib-hero { min-height: clamp(360px, 62vh, 700px); }

#colorlib-hero .flexslider .slides li { min-height: clamp(360px, 62vh, 650px); }

#colorlib-hero .flexslider .slider-text,
#colorlib-hero .flexslider .slider-text > .slider-text-inner {
  height: clamp(360px, 62vh, 700px);
}

/* #colorlib-hero est en float:left : l'espaceur nettoie le flottant et
   donne une respiration proportionnee, la ou 14 <br/> donnaient une
   hauteur fixe impossible a adapter. */
.svc-hero-spacer {
  clear: both;
  height: clamp(24px, 6vw, 64px);
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
  /* Times New Roman etait impose en style inline, en rupture avec
     la Montserrat du reste du site. */
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 5.2vw, 50px);
  margin-bottom: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* -------------------------------------------------------------------
   1 bis. Page d'accueil
   ------------------------------------------------------------------- */

/* Le carrousel ne porte plus de texte : il ne sert que d'imagerie de
   fond. Le message est pose une seule fois par dessus, ce qui evite de
   repeter le meme bloc dans les 4 diapositives. */
/* float:left n'avait aucune utilite sur un bloc en pleine largeur, et
   obligeait la section suivante a nettoyer le flottant. */
#colorlib-hero { position: relative; float: none; }

.home-hero__content {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 20px 40px;
  pointer-events: none; /* laisse le carrousel recevoir les gestes */
}

@media (min-width: 768px) {
  .home-hero__content { padding: 0 30px 64px; }
}

.home-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero__content a { pointer-events: auto; }

.home-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 6.2vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.home-hero__lead {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .94);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.6vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .home-hero__actions { flex-direction: row; }
}

/* Degrade sombre en bas du carrousel : garantit la lisibilite du texte
   quelle que soit la photo affichee. */
#colorlib-hero .flexslider .slides li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 32, 34, .15) 0%,
    rgba(30, 32, 34, .35) 45%,
    rgba(30, 32, 34, .85) 100%
  );
}

/* Bloc "26 ans d'experience" */
.home-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  border-radius: var(--svc-radius);
  background: var(--svc-dark);
  color: #fff;
  text-align: center;
}

.home-highlight__num {
  display: block;
  color: var(--svc-yellow);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(44px, 11vw, 64px);
  font-weight: 700;
  line-height: 1;
}

.home-highlight__unit {
  display: block;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-highlight__label {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .7);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
}

/* Deux colonnes : texte + bloc chiffre */
.home-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .home-about { grid-template-columns: 2fr 1fr; gap: 32px; }
}

.home-about__text {
  margin: 0;
  color: var(--svc-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

/* Les puces du carrousel etaient centrees en bas, a l'endroit meme ou se
   trouve desormais le texte. Sur grand ecran on les envoie a droite ;
   sur telephone le contenu occupe toute la largeur, on les masque. */
#colorlib-hero .flexslider .flex-control-nav {
  display: none;
}

@media (min-width: 768px) {
  #colorlib-hero .flexslider .flex-control-nav {
    display: block;
    bottom: 22px;
    padding-right: 30px;
    text-align: right;
  }
}

/* flexslider numerote ses puces (1, 2, 3, 4) ; le theme les stylait en
   barres sans masquer le texte, qui debordait sous chaque barre. */
#colorlib-hero .flexslider .flex-control-nav li a {
  display: inline-block;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* Bandeau de chiffres cles.
   Le theme applique padding: 7em 0 a #colorlib-counter, ce qui ajoutait
   plus de 200px de vide : la grille gere deja son propre rythme. */
/* Le selecteur #colorlib-counter du theme (padding: 7em 0, ramene a
   3em sous 768px) l'emporte sur une simple classe : on le neutralise
   avec la meme specificite. */
#colorlib-counter.home-counters {
  padding: 0;
}

.home-counters {
  background: var(--svc-dark);
}

.home-counters__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 20px;
  text-align: center;
}

@media (min-width: 600px) {
  .home-counters__grid { grid-template-columns: repeat(3, 1fr); padding: 56px 30px; }
}

.home-counters__item .icon i {
  color: var(--svc-yellow);
  font-size: 40px;
}

.home-counters__item .colorlib-counter {
  display: block;
  margin: 12px 0 4px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.home-counters__item .colorlib-counter-label {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------
   2. Hero de page service
   ------------------------------------------------------------------- */

.svc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  /* clamp : jamais ecrasant sur telephone, jamais ridicule sur grand ecran */
  min-height: clamp(320px, 58vh, 560px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--svc-dark);
}

.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 32, 34, .30) 0%,
    rgba(30, 32, 34, .45) 45%,
    rgba(30, 32, 34, .82) 100%
  );
}

.svc-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

@media (min-width: 768px) {
  .svc-hero__inner { padding: 0 30px 64px; }
}

.svc-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--svc-yellow);
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.svc-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 6.2vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.svc-hero__lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.6vw, 19px);
  font-weight: 300;
  line-height: 1.6;
}

/* -------------------------------------------------------------------
   3. Sections et titres
   ------------------------------------------------------------------- */

.svc-section {
  padding: 48px 0;
  background: #fff;
}

@media (min-width: 768px) { .svc-section { padding: 72px 0; } }
@media (min-width: 992px) { .svc-section { padding: 88px 0; } }

.svc-section--soft { background: var(--svc-soft); }
.svc-section__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) { .svc-section__inner { padding: 0 30px; } }

.svc-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

@media (min-width: 768px) { .svc-heading { margin-bottom: 48px; } }

.svc-heading__title {
  margin: 0 0 18px;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 4.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}

/* Filet jaune sous le titre : rappel de marque, presente sur chaque section */
.svc-heading__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: var(--svc-yellow);
}

.svc-heading__text {
  margin: 0;
  color: var(--svc-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.3vw, 17px);
  font-weight: 300;
  line-height: 1.75;
}

.svc-heading--left { margin-left: 0; text-align: left; }
.svc-heading--left .svc-heading__title::after { margin-left: 0; }

/* -------------------------------------------------------------------
   4. Grille de cartes — 1 / 2 / 3 colonnes
   ------------------------------------------------------------------- */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 992px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* Variante bloquee a 2 colonnes, pour les series de 2 ou 4 elements */
@media (min-width: 992px) {
  .svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------
   5. Carte de prestation
   ------------------------------------------------------------------- */

.svc-card {
  position: relative; /* ancre le lien etire des cartes cliquables */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--svc-border);
  border-radius: var(--svc-radius);
  box-shadow: var(--svc-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Carte entierement cliquable.
   Le lien reel est etire sur toute la surface par un pseudo-element :
   il n'y a donc qu'une seule zone cliquable dans le DOM, et un lecteur
   d'ecran n'annonce pas deux liens identiques par carte. */
.svc-card--clickable { cursor: pointer; }

.svc-card--clickable .svc-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* La selection de texte reste possible : le texte repasse au-dessus de
   la zone etiree, seul le vide alentour declenche le lien. */
.svc-card--clickable .svc-card__title,
.svc-card--clickable .svc-card__text {
  position: relative;
  z-index: 2;
}

/* Le titre suit la couleur du lien au survol : la carte se lit comme
   un seul element interactif. */
.svc-card--clickable:hover .svc-card__title,
.svc-card--clickable:focus-within .svc-card__title {
  color: var(--svc-amber);
}

/* L'anneau de focus doit entourer la carte, pas le seul libelle. */
.svc-card--clickable:focus-within {
  outline: 3px solid var(--svc-amber);
  outline-offset: 3px;
}

.svc-card--clickable .svc-card__link:focus-visible {
  outline: none;
}

.svc-card:hover,
.svc-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--svc-shadow-hover);
}

.svc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--svc-soft);
}

/* Repli pour les navigateurs sans aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .svc-card__media { height: 200px; }
}

.svc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

@media (min-width: 768px) { .svc-card__body { padding: 24px; } }

.svc-card__title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 14px;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

/* Barre jaune a gauche du titre : le motif qui unifie toutes les cartes */
.svc-card__title::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 3px;
  background: var(--svc-yellow);
}

.svc-card__text {
  flex: 1;
  margin: 0;
  color: var(--svc-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.svc-card__link::after {
  content: "\2192";
  transition: transform .2s ease;
}

.svc-card:hover .svc-card__link::after { transform: translateX(4px); }

.svc-card__link:hover,
.svc-card__link:focus {
  color: var(--svc-amber);
  text-decoration: none;
}

/* -------------------------------------------------------------------
   6. Bandeau d'appel au contact (bas de chaque page service)
   ------------------------------------------------------------------- */

.svc-cta {
  background: var(--svc-dark);
  color: #fff;
  text-align: center;
}

.svc-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

@media (min-width: 768px) { .svc-cta__inner { padding: 68px 30px; } }

.svc-cta__title {
  margin: 0 0 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.svc-cta__text {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .75);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.svc-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 600px) {
  .svc-cta__actions { flex-direction: row; justify-content: center; }
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 48px : cible tactile confortable, recommandation WCAG */
  min-height: 48px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.svc-btn--primary {
  background: var(--svc-yellow);
  color: var(--svc-dark);
}

.svc-btn--primary:hover,
.svc-btn--primary:focus {
  background: var(--svc-amber);
  color: var(--svc-dark);
  text-decoration: none;
}

.svc-btn--ghost {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}

.svc-btn--ghost:hover,
.svc-btn--ghost:focus {
  border-color: var(--svc-yellow);
  color: var(--svc-yellow);
  text-decoration: none;
}

/* -------------------------------------------------------------------
   7. Galerie photo (ouvre le lightbox magnific-popup)
   ------------------------------------------------------------------- */

.svc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .svc-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 992px) {
  .svc-gallery { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.svc-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center center;
  background-color: var(--svc-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

@supports not (aspect-ratio: 4 / 3) {
  .svc-gallery__item { height: 140px; }
}

.svc-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 32, 34, 0);
  transition: background-color .25s ease;
}

.svc-gallery__item:hover,
.svc-gallery__item:focus {
  transform: scale(1.02);
  box-shadow: var(--svc-shadow-hover);
}

.svc-gallery__item:hover::after,
.svc-gallery__item:focus::after {
  background: rgba(30, 32, 34, .18);
}

/* -------------------------------------------------------------------
   8. Accessibilite
   ------------------------------------------------------------------- */

.svc-card a:focus-visible,
.svc-btn:focus-visible {
  outline: 3px solid var(--svc-amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card__link::after,
  .svc-btn {
    transition: none;
  }
  .svc-card:hover { transform: none; }
}

/* -------------------------------------------------------------------
   9. Formulaire de contact
   ------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.65fr 1fr; gap: 40px; }
}

/* La carte qui porte le formulaire */
.svc-form {
  padding: 24px 20px;
  border: 1px solid var(--svc-border);
  border-radius: var(--svc-radius);
  background: #fff;
  box-shadow: var(--svc-shadow);
}

@media (min-width: 768px) { .svc-form { padding: 32px; } }

.svc-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 600px) {
  .svc-form__row { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.svc-field { margin-bottom: 18px; }

.svc-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* .form-control est conserve : le CSS d'erreur et le JS s'y appuient. */
.svc-field .form-control {
  width: 100%;
  /* 48px : cible tactile confortable */
  min-height: 48px;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--svc-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* 16px evite le zoom automatique d'iOS au focus */
  font-weight: 300;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.svc-field textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.svc-field .form-control::placeholder {
  color: #A7ACB1;
  opacity: 1;
}

.svc-field .form-control:focus {
  border-color: var(--svc-amber);
  box-shadow: 0 0 0 3px rgba(247, 175, 29, .25);
  outline: none;
}

.svc-form__submit {
  margin-top: 4px;
  border: 0;
  width: 100%;
}

@media (min-width: 600px) {
  .svc-form__submit { width: auto; min-width: 240px; }
}

/* Panneau de coordonnees a cote du formulaire */
.contact-panel {
  padding: 24px 20px;
  border-radius: var(--svc-radius);
  background: var(--svc-dark);
  color: #fff;
}

@media (min-width: 768px) { .contact-panel { padding: 30px 26px; } }

.contact-panel__title {
  margin: 0 0 20px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.contact-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-panel__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.contact-panel__list li:first-child { border-top: 0; padding-top: 0; }

.contact-panel__list i {
  flex: none;
  margin-top: 3px;
  color: var(--svc-yellow);
  font-size: 18px;
}

.contact-panel__list a,
.contact-panel__list span {
  color: rgba(255, 255, 255, .85);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  text-decoration: none;
}

.contact-panel__list a:hover,
.contact-panel__list a:focus {
  color: var(--svc-yellow);
  text-decoration: none;
}

/* -------------------------------------------------------------------
   10. Pied de page
   ------------------------------------------------------------------- */

/* Le theme applique padding: 7em 0 ; on reprend la main. */
#colorlib-footer.site-footer {
  padding: 0;
  background: var(--svc-dark);
  color: rgba(255, 255, 255, .7);
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 20px 0;
}

@media (min-width: 768px) { .site-footer__inner { padding: 64px 30px 0; } }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (min-width: 992px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; }
}

.site-footer__title {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--svc-yellow);
}

.site-footer__text {
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li { margin-bottom: 12px; }

.site-footer__links a {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .65);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  text-decoration: none;
  transition: color .18s ease;
}

.site-footer__links i {
  flex: none;
  margin-top: 3px;
  color: var(--svc-yellow);
  font-size: 16px;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: var(--svc-yellow);
  text-decoration: none;
}

/* Coordonnees non cliquables (adresse) : meme presentation, sans lien */
.site-footer__links .is-plain {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .65);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: rgba(255, 255, 255, .75);
  font-size: 17px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus {
  border-color: var(--svc-yellow);
  background: var(--svc-yellow);
  color: var(--svc-dark);
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

@media (min-width: 700px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
}

/* -------------------------------------------------------------------
   11. En-tete
   -------------------------------------------------------------------
   Le theme posait la navigation en position:absolute par dessus le
   carrousel : le logo se retrouvait sur la photo, illisible et
   partiellement masque. On la transforme en barre pleine, collante,
   dans le flux — plus rien ne peut recouvrir le logo.

   La classe .colorlib-nav est conservee : main.js clone .menu-1 > ul
   pour construire le menu mobile, et le sous-menu desktop depend de
   cet ancetre. On surcharge, on ne remplace pas.
   ------------------------------------------------------------------- */

.colorlib-nav.site-header {
  position: sticky;
  top: 0;
  right: auto;
  left: auto;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--svc-border);
  box-shadow: 0 1px 12px rgba(30, 32, 34, .07);
}

.site-header__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
}

@media (min-width: 768px) { .site-header__inner { padding: 12px 24px; } }

/* --- Marque : embleme + nom --- */
.site-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.site-brand:hover, .site-brand:focus { text-decoration: none; }

.site-brand__mark {
  flex: none;
  width: auto;
  height: 46px;
}

@media (min-width: 768px) { .site-brand__mark { height: 58px; } }
@media (min-width: 992px) { .site-brand__mark { height: 66px; } }

.site-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand__name {
  color: #17405C;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
}

@media (min-width: 768px) { .site-brand__name { font-size: 17px; } }

.site-brand__tag {
  margin-top: 3px;
  color: var(--svc-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.3;
}

@media (min-width: 768px) { .site-brand__tag { font-size: 12.5px; } }

/* Le slogan est conserve a toutes les tailles : sur les petits ecrans on
   reduit l'embleme et la typographie plutot que de le masquer. */
@media (max-width: 420px) {
  .site-brand { gap: 9px; }
  .site-brand__mark { height: 40px; }
  .site-brand__name { font-size: 12.5px; }
  .site-brand__tag { font-size: 10px; }
}

@media (max-width: 340px) {
  .site-brand__mark { height: 34px; }
  .site-brand__name { font-size: 11.5px; }
  .site-brand__tag { font-size: 9.5px; }
}

/* --- Liens : masques tant que le menu mobile prend le relais --- */
.colorlib-nav.site-header .menu-1 { display: none; }

@media (min-width: 992px) {
  .colorlib-nav.site-header .menu-1 { display: block; }
}

.colorlib-nav.site-header .menu-1 ul { margin: 0; }

.colorlib-nav.site-header .menu-1 ul li a {
  padding: 12px 10px;
  color: var(--svc-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: color .2s ease;
}

.colorlib-nav.site-header .menu-1 ul li a:hover,
.colorlib-nav.site-header .menu-1 ul li a:focus {
  color: var(--svc-amber);
}

.colorlib-nav.site-header .menu-1 ul li.active > a { color: var(--svc-amber); }

/* Le theme affichait le sous-menu en noir : carte claire, coherente */
.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown {
  top: 46px;
  padding: 10px;
  border: 1px solid var(--svc-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 32, 34, .16);
}

.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown::before {
  border-bottom-color: #fff;
}

.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown li { display: block; }

.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--svc-text);
  font-size: 14px;
}

.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown li a:hover,
.colorlib-nav.site-header .menu-1 ul li.has-dropdown .dropdown li a:focus {
  background: var(--svc-soft);
  color: var(--svc-dark);
}


/* Les icones du menu etaient forcees a 24-25px en style inline : trop
   massives dans une barre compacte. */
.colorlib-nav.site-header .menu-1 ul li a i {
  margin-right: 5px;
  font-size: 15px;
}

/* L'en-tete etant collant, une ancre (#about, #services, #contact)
   viendrait se placer dessous. On reserve sa hauteur. */
#about, #services, #contact {
  scroll-margin-top: 80px;
}

@media (min-width: 768px) { #about, #services, #contact { scroll-margin-top: 96px; } }
@media (min-width: 992px) { #about, #services, #contact { scroll-margin-top: 104px; } }

/* -------------------------------------------------------------------
   12. Menu mobile
   -------------------------------------------------------------------
   Ecrit de zero. Celui du theme melait survol et clic, laissait la page
   verrouillee apres une ancre, et son sous-menu a deplier ajoutait une
   etape inutile. Ici les prestations sont listees a plat : un appui,
   une destination.
   ------------------------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  /* 48px : cible tactile confortable */
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--svc-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.nav-toggle:hover { background: var(--svc-soft); }

.nav-toggle:focus-visible {
  outline: 3px solid var(--svc-amber);
  outline-offset: 2px;
}

@media (min-width: 992px) { .nav-toggle { display: none; } }

/* Trois barres dessinees avec un seul element */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--svc-dark);
  transition: transform .22s ease, opacity .18s ease;
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

/* Croix a l'ouverture */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Voile --- */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(30, 32, 34, 0);
  transition: background-color .25s ease;
}

.menu-mobile.is-ouvert { background: rgba(30, 32, 34, .55); }

.menu-mobile[hidden] { display: none; }

/* --- Panneau --- */
.menu-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--svc-dark);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .35);
  transform: translateX(100%);
  transition: transform .26s ease;
}

.menu-mobile.is-ouvert .menu-mobile__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .menu-mobile,
  .menu-mobile__panel { transition: none; }
}

/* --- Liens --- */
.menu-mobile__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-mobile__list a {
  display: block;
  /* 52px de haut : on vise confortablement au pouce */
  padding: 15px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .9);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.menu-mobile__list a:hover,
.menu-mobile__list a:focus {
  background: rgba(255, 255, 255, .08);
  color: var(--svc-yellow);
  text-decoration: none;
}

.menu-mobile__list a:focus-visible {
  outline: 2px solid var(--svc-yellow);
  outline-offset: -2px;
}

/* Page courante */
.menu-mobile__list a[aria-current="page"] {
  background: rgba(255, 205, 0, .12);
  color: var(--svc-yellow);
  font-weight: 700;
}

/* Intitule du groupe de prestations : les 4 pages sont listees a plat,
   sans etape de depliage. */
.menu-mobile__label {
  margin: 18px 0 6px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .45);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu-mobile__list--indente a { padding-left: 24px; }

.menu-mobile__separateur {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: rgba(255, 255, 255, .12);
}

/* --- Appel a l'action en bas de panneau --- */
.menu-mobile__cta {
  margin-top: auto;
  padding-top: 22px;
}

.menu-mobile__cta .svc-btn { width: 100%; }

.menu-mobile__phone {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px;
  color: rgba(255, 255, 255, .8);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.menu-mobile__phone i { color: var(--svc-yellow); }

.menu-mobile__phone:hover,
.menu-mobile__phone:focus { color: var(--svc-yellow); text-decoration: none; }

/* --- Page figee pendant l'ouverture ---
   position:fixed sur body plutot que overflow:hidden : c'est le seul
   moyen fiable d'empecher le defilement d'arriere-plan sur iOS. Le JS
   memorise puis restaure la position. */
body.menu-ouvert {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Filet de securite : au-dela du seuil desktop le bouton de fermeture
   n'existe plus. Meme si le JavaScript echouait a refermer le menu, la
   page ne doit jamais rester figee sans issue. */
@media (min-width: 992px) {
  .menu-mobile { display: none !important; }

  body.menu-ouvert {
    position: static;
    overflow: visible;
    top: auto !important;
  }
}

/* Le panneau recoit le focus a l'ouverture (pratique des boites de
   dialogue) : pas d'anneau visible, il n'y a rien a selectionner. */
.menu-mobile__panel:focus { outline: none; }

/* -------------------------------------------------------------------
   13. Numero principal
   -------------------------------------------------------------------
   Le 24 155 119 est le numero principal : il vient en tete de chaque
   liste et sert a tous les boutons d'appel.
   ------------------------------------------------------------------- */

/* Panneau a cote du formulaire */
.contact-panel__principal a {
  display: block;
  color: var(--svc-yellow) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

.contact-panel__principal em {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
}

.contact-panel__principal i { margin-top: 6px; }

/* Pied de page */
.site-footer__links a.is-principal {
  color: var(--svc-yellow);
  font-size: 17px;
  font-weight: 700;
}

.site-footer__links a.is-principal em {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer__links a.is-principal:hover,
.site-footer__links a.is-principal:focus { color: #fff; }

/* Le bouton d'appel des pages prestations porte le numero principal :
   on lui donne le meme poids visuel que le bouton de devis. */
.svc-cta__actions .svc-btn--ghost { font-weight: 700; }

/* -------------------------------------------------------------------
   14. En-tete compact au defilement
   -------------------------------------------------------------------
   L'en-tete reste colle en haut ; passe un certain defilement il se
   reduit pour rendre de la hauteur au contenu. Applique aux ecrans
   mobiles et tablette, ou la place verticale est la plus rare.
   ------------------------------------------------------------------- */

.site-header__inner,
.site-brand__mark,
.site-brand__name,
.site-brand__tag,
.nav-toggle {
  transition: height .22s ease, padding .22s ease, font-size .22s ease,
              width .22s ease;
}

@media (max-width: 991px) {
  .colorlib-nav.site-header.is-compact {
    box-shadow: 0 2px 18px rgba(30, 32, 34, .14);
  }

  .site-header.is-compact .site-header__inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header.is-compact .site-brand { gap: 9px; }
  .site-header.is-compact .site-brand__mark { height: 32px; }
  .site-header.is-compact .site-brand__name { font-size: 11.5px; }
  .site-header.is-compact .site-brand__tag  { font-size: 9.5px; }

  .site-header.is-compact .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-header.is-compact .nav-toggle__bars,
  .site-header.is-compact .nav-toggle__bars::before,
  .site-header.is-compact .nav-toggle__bars::after {
    width: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner,
  .site-brand__mark,
  .site-brand__name,
  .site-brand__tag,
  .nav-toggle { transition: none; }
}

/* -------------------------------------------------------------------
   15. Marque du pied de page
   -------------------------------------------------------------------
   Le logo complet en image montrait un halo clair sur fond sombre : le
   detourage rend le fond creme transparent, mais les pixels
   d'anticrenelage des lettres — melange d'encre et de creme — restent
   opaques et clairs. Invisibles sur blanc, ils cernaient le texte sur
   le fond anthracite.

   Le nom est donc compose en Montserrat (net a toute taille) et
   l'embleme est pose sur une pastille claire, ou son propre liserè se
   fond sans se voir.
   ------------------------------------------------------------------- */

.site-footer__brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.site-footer__brand:hover,
.site-footer__brand:focus { text-decoration: none; }

.site-footer__chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
}

.site-footer__chip img {
  width: auto;
  height: 40px;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.site-footer__brand-name {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.site-footer__brand-tag {
  margin-top: 3px;
  color: rgba(255, 255, 255, .55);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
}

@media (min-width: 700px) {
  .site-footer__chip { width: 66px; height: 66px; }
  .site-footer__chip img { height: 46px; }
  .site-footer__brand-name { font-size: 16px; }
  .site-footer__brand-tag { font-size: 12.5px; }
}

/* -------------------------------------------------------------------
   16. Bandeau de chiffres : compact sur mobile
   -------------------------------------------------------------------
   Il empilait trois blocs en pleine hauteur, soit plus de 400px pour
   trois nombres. Sur mobile les trois tiennent sur une seule ligne.
   ------------------------------------------------------------------- */

@media (max-width: 599px) {
  .home-counters__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 22px 12px;
  }

  .home-counters__item .icon i { font-size: 22px; }

  .home-counters__item .colorlib-counter {
    margin: 6px 0 2px;
    font-size: 26px;
  }

  .home-counters__item .colorlib-counter-label {
    font-size: 10px;
    letter-spacing: .06em;
  }
}

/* Ecrans tres etroits : le mot "Partenaires" ne doit pas casser la ligne */
@media (max-width: 360px) {
  .home-counters__item .colorlib-counter-label { font-size: 9px; }
  .home-counters__item .colorlib-counter { font-size: 23px; }
}
