/* =============================================================================
   SOLUTIONS-SPÉCIFIQUES — CSS ADDITIONNEL (CLEAN MASTER)
   Source master : Personnalisation → CSS additionnel
   Organisation : Notepad++

   Recherche rapide (Ctrl+F) :
   @FORM        Forminator (upload FR)
   @HOME        Accueil (layout HERO)
   @PAGE68      Accueil page-id-68 (bannière tableau)
   @BTN-PLAQUE  Bouton plaque industrielle (.ss-btn)
   @BTN-TEX     Bouton texture industrielle (.ss-btn-tex)
   @BTN-NOIR    Bouton noir tressé (.ss-btn-noir)
   @ACCENT      Couleur d’accent + titres
   @HEADER      Plaque métal premium (header)
   @HERO        HERO premium FINAL (.ss-hero)
   @NAV         Menu signature stable
   @MIGRATION   Règles migrées utiles
   @CADRE       Système plaques (desktop) + HERO mobile (image seule)
   @RESP        Desktop / Mobile (hero-desktop / hero-mobile)
============================================================================= */


/* =============================================================================
   @FORM — Forminator — FR upload
============================================================================= */

/* Forminator upload: cacher l’anglais et afficher le FR à la place */
.forminator-upload--text{
  font-size: 0 !important;
  line-height: 0 !important;
}
.forminator-upload--text::after{
  content: "Glissez-déposez vos photos ici";
  font-size: 14px;
  line-height: 1.2;
  display: inline-block;
}

/* Le "(or)" */
.forminator-upload--inner .forminator-upload--or,
.forminator-upload--inner .forminator-upload--or *{
  font-size: 0 !important;
  line-height: 0 !important;
}
.forminator-upload--inner .forminator-upload--or::after{
  content: " (ou) ";
  font-size: 14px;
  line-height: 1.2;
  display: inline-block;
  opacity: .8;
}

/* Le lien "Choose Files" (on garde le lien cliquable, on change juste le texte) */
.forminator-upload--inner a{
  font-size: 0 !important;
  line-height: 0 !important;
}
.forminator-upload--inner a::after{
  content: "Parcourir les fichiers";
  font-size: 14px;
  line-height: 1.2;
  text-decoration: underline;
}

/* Complément (phrase FR) */
.forminator-upload::after{
  content: "Glissez-déposez vos photos ici ou cliquez sur « Parcourir les fichiers »";
  font-size: 14px;
  line-height: 1.4;
  display: block;
  text-align: center;
}


/* =============================================================================
   @HOME — Accueil — Layout HERO
============================================================================= */

/* HERO Accueil — débordement éditorial discret */
body.home .hero-layout{
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
body.home .hero-layout .wp-block-image{
  margin-left: -120px;
}
@media (max-width: 900px){
  body.home .hero-layout .wp-block-image{
    margin-left: 0;
  }
}

/* HERO ACCUEIL — centrage propre */
.hero-accueil{
  text-align: center;
}
.hero-accueil h1,
.hero-accueil p{
  text-align: center;
}

/* Liste centrée mais lisible */
.hero-accueil ul{
  list-style: none;
  padding-left: 0;
  margin: 16px auto 0;
  display: inline-block;
  text-align: left;
}
.hero-accueil li{
  margin: 6px 0;
}
.hero-accueil li::before{
  content: "• ";
}


/* =============================================================================
   @PAGE68 — Accueil (page-id-68) — Bannière tableau : supprimer tout liseré
============================================================================= */

.page-id-68 .wp-block-cover,
.page-id-68 .wp-block-cover__inner-container{
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.page-id-68 .wp-block-cover{
  overflow: hidden !important;
}

.page-id-68 .wp-block-cover .wp-block-cover__image-background,
.page-id-68 .wp-block-cover img{
  display: block !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Afficher le cadre complet dans la couverture du tableau */
.tableau-cadre .wp-block-cover__image-background,
.tableau-cadre .wp-block-cover__background{
  object-fit: contain !important;
  background-size: contain !important;
}


/* =============================================================================
   @BTN-PLAQUE — Bouton — Plaque industrielle (.ss-btn)
============================================================================= */

.ss-btn,
.ss-btn *{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

/* Plaque */
.ss-btn .wp-block-button__link{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  background: url("https://solutions-specifiques.com/wp-content/uploads/2026/02/bouton-sans-titre-1.png")
    center/100% 100% no-repeat !important;

  width: 420px;
  max-width: 92vw;
  min-height: 118px;

  padding: 0 !important;
  color: #f3dcbf !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease !important;
}

/* Hover (site seulement) */
.ss-btn .wp-block-button__link:hover{
  transform: translateY(-3px) scale(1.01) !important;
  filter: brightness(1.08) saturate(1.12) !important;
  box-shadow:
    0 0 18px rgba(255,140,0,.35),
    0 0 30px rgba(255,140,0,.25) !important;
}


/* =============================================================================
   @BTN-TEX — Bouton — Texture industrielle + effet clic (.ss-btn-tex)
============================================================================= */

.ss-btn-tex .wp-block-button__link{
  /* nettoyage WP */
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;

  /* texture */
  background-image: url("https://solutions-specifiques.com/wp-content/uploads/2026/02/texture-bouton-1.png") !important;
  background-repeat: repeat !important;
  background-size: 420px auto !important;
  background-position: center !important;

  /* texte */
  color: #f3dcbf !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;

  /* forme */
  padding: 16px 26px !important;
  border-radius: 8px !important;

  /* relief */
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;

  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

/* Hover glow */
.ss-btn-tex .wp-block-button__link:hover{
  background-color: transparent !important;
  transform: translateY(-3px) scale(1.01) !important;
  filter: brightness(1.15) contrast(1.05) !important;
  box-shadow:
    0 0 18px rgba(255,140,0,.35),
    0 0 30px rgba(255,140,0,.25),
    0 14px 30px rgba(0,0,0,.4) !important;
}

/* Focus clavier */
.ss-btn-tex .wp-block-button__link:focus-visible{
  outline: 3px solid rgba(255,140,0,.55) !important;
  outline-offset: 4px !important;
}

/* Clic — effet mécanique premium */
.ss-btn-tex .wp-block-button__link:active{
  transform: translateY(3px) scale(.995) !important;
  filter: brightness(.85) contrast(1.15) !important;
  box-shadow:
    inset 0 4px 8px rgba(0,0,0,.55),
    inset 0 -2px 4px rgba(255,255,255,.08) !important;
}


/* =============================================================================
   @BTN-NOIR — Bouton — Tressage noir premium (.ss-btn-noir)
============================================================================= */

.ss-btn-noir .wp-block-button__link{
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,.55) 0px,
      rgba(0,0,0,.55) 6px,
      rgba(0,0,0,0) 6px,
      rgba(0,0,0,0) 18px
    ),
    repeating-linear-gradient(
      45deg,
      #121212 0px,
      #121212 12px,
      #070707 12px,
      #070707 24px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 6px,
      rgba(255,255,255,0) 6px,
      rgba(255,255,255,0) 18px
    ),
    linear-gradient(145deg, #0a0a0a, #000);

  background-blend-mode: multiply, normal, overlay, normal;

  color: #ffffff !important;
  padding: 18px 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);

  font-weight: 700;
  letter-spacing: 0.8px;

  box-shadow:
    0 10px 28px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* Hover */
.ss-btn-noir .wp-block-button__link:hover{
  transform: translateY(-4px);
  filter: brightness(1.10);
  box-shadow:
    0 16px 36px rgba(0,0,0,.62),
    0 0 22px rgba(255,140,0,.30);
}

/* Clic */
.ss-btn-noir .wp-block-button__link:active{
  transform: translateY(2px);
  box-shadow: inset 0 4px 8px rgba(0,0,0,.7);
}


/* =============================================================================
   @ACCENT — Couleurs d’accent + titres
============================================================================= */

.ss-accent{ color: #1300E4; }

strong,
b{ color: #1300E4; }

h1, h2, h3,
h1 a, h2 a, h3 a{
  color: #1300E4;
  transition: color .25s ease, text-shadow .25s ease, transform .2s ease;
}

h1:hover, h2:hover, h3:hover,
h1:hover a, h2:hover a, h3:hover a{
  color: #3a46ff !important;
  text-shadow: 0 0 14px rgba(19,0,228,.55);
  transform: translateY(-2px);
}


/* =============================================================================
   @HEADER — Plaque métal premium (final)
============================================================================= */

header .wp-block-group.alignwide{
  position: relative;
  z-index: 0;
  overflow: hidden;

  border-bottom: 2px solid rgba(0,0,0,.55);
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.15),
    0 4px 12px rgba(0,0,0,.25),
    inset 0 8px 18px rgba(0,0,0,.35),
    inset 0 -6px 12px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.25);

  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,.12) 0%,
      rgba(255,255,255,.05) 8%,
      rgba(255,255,255,0) 20%
    );
  background-blend-mode: soft-light;
}

header .wp-block-group.alignwide::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    linear-gradient(to bottom,
      rgba(80,55,25,.10) 0%,
      rgba(80,55,25,.06) 55%,
      rgba(80,55,25,0) 100%
    ),
    radial-gradient(120% 90% at 50% 0%,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.10) 55%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,.42) 0%,
      rgba(0,0,0,.20) 34%,
      rgba(0,0,0,.08) 58%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(to right,
      rgba(0,0,0,.16) 0%,
      rgba(0,0,0,0) 20%,
      rgba(0,0,0,0) 80%,
      rgba(0,0,0,.16) 100%
    ),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.022) 0px,
      rgba(255,255,255,.022) 2px,
      rgba(0,0,0,.022) 2px,
      rgba(0,0,0,.022) 4px
    );

  mix-blend-mode: multiply;
  pointer-events:none;
  z-index:0;
}

header .wp-block-group.alignwide > *{
  position: relative;
  z-index: 1;
}

header h1{
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}


/* =============================================================================
   @HERO — HERO premium FINAL (validé)
============================================================================= */

.ss-hero{
  position: relative;
  overflow: hidden;
  padding: 90px 20px 110px;
  text-align: center;

  background: linear-gradient(to bottom, rgba(0,0,0,.14), rgba(0,0,0,.42));
  border-bottom: 8px solid rgba(0,0,0,.75);
  box-shadow:
    inset 0 -2px 0 rgba(255,255,255,.12),
    inset 0 -10px 18px rgba(0,0,0,.45),
    0 6px 14px rgba(0,0,0,.45);
}

.ss-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 70% at 50% 0%,
      rgba(255,255,255,.16) 0%,
      rgba(255,255,255,.06) 22%,
      rgba(255,255,255,0) 55%
    ),
    linear-gradient(to right,
      rgba(0,0,0,.14) 0%,
      rgba(0,0,0,0) 20%,
      rgba(0,0,0,0) 80%,
      rgba(0,0,0,.14) 100%
    );
  pointer-events:none;
  mix-blend-mode: soft-light;
}

.ss-hero > *{
  position: relative;
  z-index: 1;
}

/* H1 HERO */
.ss-hero h1{
  color: #1300E4 !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.12 !important;
  margin: 0 0 18px !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
  transition: color .25s ease, text-shadow .25s ease, transform .2s ease;
}

.ss-hero:hover h1,
.ss-hero h1:hover{
  color: #3a46ff !important;
  text-shadow: 0 0 14px rgba(19,0,228,.55);
  transform: translateY(-2px);
}

/* Paragraphe HERO (global) */
.ss-hero p{
  color: #111 !important;
  text-shadow: none !important;
  max-width: 900px;
  margin: 0 auto !important;
}


/* =============================================================================
   @NAV — Menu signature stable
============================================================================= */

header .wp-block-navigation a{
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  transition: transform .18s ease, color .18s ease, background-color .18s ease;
}

header .wp-block-navigation a::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: rgba(255,140,0,.65);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  opacity: 0;
}

header .wp-block-navigation a:hover{
  transform: translateY(-1px);
  color: #1300E4 !important;
  background-color: rgba(0,0,0,.12);
}

header .wp-block-navigation a:hover::after{
  transform: scaleX(1);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255,140,0,.45));
}

header .wp-block-navigation .current-menu-item > a,
header .wp-block-navigation .current_page_item > a{
  color: #f3dcbf !important;
  background-color: rgba(0,0,0,.14);
}

header .wp-block-navigation .current-menu-item > a::after,
header .wp-block-navigation .current_page_item > a::after{
  transform: scaleX(1);
  opacity: 1;
}


/* =============================================================================
   @MIGRATION — petites règles utiles
============================================================================= */

/* Accessibilité focus (optionnel mais OK) */
:where(.wp-site-blocks :focus){
  outline-width: 2px;
  outline-style: solid;
}

/* Fond global */
body{
  background: url("https://solutions-specifiques.com/wp-content/uploads/2026/02/fond-pale-4.png")
    center top / cover no-repeat fixed;
}


/* =============================================================================
   @CADRE — Système "plaques" (DESKTOP) + HERO mobile (image seule)
   Objectif :
   - Desktop : garder ss-cadre-haut / ss-cadre-bas (position absolue)
   - Mobile  : AFFICHER SEULEMENT L’IMAGE (aucun texte superposé)
   Prérequis éditeur :
   - Bloc HERO desktop : classes "ss-hero-cadre hero-desktop"
   - Bloc HERO mobile  : classes "ss-hero-cadre hero-mobile"
   - Desktop : H2 class "ss-cadre-haut" / Paragraphe class "ss-cadre-bas"
============================================================================= */


/* =============================================================================
   @RESP — Afficher 1 seul HERO (anti-doublon)
============================================================================= */

/* Desktop par défaut */
body .ss-hero-cadre.hero-desktop{ display: block !important; }
body .ss-hero-cadre.hero-mobile{  display: none  !important; }

/* Mobile */
@media (max-width: 980px){
  body .ss-hero-cadre.hero-desktop{ display: none  !important; }
  body .ss-hero-cadre.hero-mobile{  display: block !important; }
}


/* =============================================================================
   @CADRE — BASE commune (les 2 HERO)
============================================================================= */

.ss-hero-cadre{
  position: relative !important;
  overflow: hidden !important;
}


/* =============================================================================
   @CADRE-DESKTOP — Plaques (Haut/Bas) UNIQUEMENT sur Desktop
============================================================================= */

body .ss-hero-cadre.hero-desktop .ss-cadre-haut{
  position: absolute !important;
  top: 11% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: min(880px, 82%) !important;
  padding-inline: 16px !important;
  text-align: center !important;
  z-index: 5 !important;

  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body .ss-hero-cadre.hero-desktop .ss-cadre-bas{
  position: absolute !important;
  top: 71.6% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: min(720px, 70%) !important;
  padding-inline: 22px !important;
  text-align: center !important;
  z-index: 5 !important;

  margin: 0 !important;
  line-height: 1.25 !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
  text-wrap: balance;
  color: #ffffff !important;
}

/* Ajustements desktop “petit écran” */
@media (max-width: 900px){
  body .ss-hero-cadre.hero-desktop .ss-cadre-haut{
    top: 11.8% !important;
    width: min(760px, 90%) !important;
    padding-inline: 14px !important;
  }
  body .ss-hero-cadre.hero-desktop .ss-cadre-bas{
    top: 76.0% !important;
    width: min(680px, 92%) !important;
    padding-inline: 16px !important;
    font-size: clamp(13px, 2.8vw, 15px) !important;
  }
}


/* =============================================================================
   @MOBILE — SUPPRESSION TOTALE DU PARAGRAPHE / TEXTE SUR HERO MOBILE
   Règle : sur mobile, on garde l’image seulement.
============================================================================= */

@media (max-width: 980px){

  /* Si par erreur un ancien paragraphe existe encore dans le HERO mobile */
  body .ss-hero-cadre.hero-mobile .ss-cadre-bas,
  body .ss-hero-cadre.hero-mobile .ss-cadre-haut{
    display: none !important;
  }

  /* Supprimer le groupe texte superposé (si présent dans l’éditeur) */
  body .ss-hero-cadre.hero-mobile .ss-hero-text{
    display: none !important;
  }

  /* Sécurité : supprimer tout paragraphe/h2 à l’intérieur du HERO mobile */
  body .ss-hero-cadre.hero-mobile p,
  body .ss-hero-cadre.hero-mobile h1,
  body .ss-hero-cadre.hero-mobile h2,
  body .ss-hero-cadre.hero-mobile h3{
    display: none !important;
  }
}