/* Theme Name: AQTech2026
Theme Description: AQ-Tech FR 2026 - feuille de style refactorisée.
Version: 0.1
Author: Alexandre Quarrey */

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

/*--------------------------------------------------------------
# Variables de couleurs
--------------------------------------------------------------*/
:root {
  --orange: #e94e1b;
  --orange80: #ef7743;
  --orange50: #f6ae87;
  --orange20: #fde0d0;

  --orange-2024: #de643b;

  --noir: #000;
  --noir95: #333333;
  --noir80: #575756;
  --noir50: #9d9d9c;
  --noir20: #dadada;
  --noirtrans: rgba(0, 0, 0, 0.6);

  --gris: #e0dacd;
  --gris80: #e6e1d7;
  --gris50: #efece6;
  --gris20: #f9f8f6;

  --inno: #f39207;
  --inno80: #f7aa47;
  --inno50: #fccb91;
  --inno20: #feebd4;

  --proto: #e3a77e;
  --proto80: #e9b998;
  --proto50: #f2d4be;
  --proto20: #faeee5;

  --indus: #bc5b40;
  --indus80: #c97b60;
  --indus50: #ddad97;
  --indus20: #f1ded5;

  --be360: #e8623f;
  --be36080: #ed8165;
  --be36050: #f3b09e;
  --be36020: #fae0d8;

  --elec: #e8773f;
  --elec80: #ed9265;
  --elec50: #f4bb9e;
  --elec20: #fbe4d8;

  --meca: #f09b51;
  --meca80: #f2b074;
  --meca50: #f6cda8;
  --meca20: #faebdc;

  --airbag: #f0ae51;
  --airbag80: #f3be74;
  --airbag50: #f7d6a7;
  --airbag20: #faeedc;
}

/*--------------------------------------------------------------
# Polices
--------------------------------------------------------------*/
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost.woff2") format("woff2"),
       url("../fonts/Jost.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost-Medium";
  src: url("../fonts/Jost-Medium.woff2") format("woff2"),
       url("../fonts/Jost-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# Classes utilitaires
--------------------------------------------------------------*/
.black    { color: var(--noir95); }
.bold     { font-weight: bold; }
.nowrap   { white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Trait de séparation sous les titres */
.titre-underline {
  width: 30%;
  height: 1px;
  background-color: var(--orange);
  margin: 10px 0 20px;
  border-radius: 2px;
}

/* Titres centrés : trait centré */
.TitreCentre .titre-underline {
  margin: 10px auto 20px;
  width: 50%;
}

.BlocGris20 {
  background-color: var(--gris20);
  padding-bottom: 50px;
}

.BlocNoirTrans {
  background: var(--noirtrans); /* noir à 50% */
}

.TexteNoir {
  color: var(--noir95);
}


/*--------------------------------------------------------------
# Styles de base (éléments HTML)
--------------------------------------------------------------*/
body {
  font-family: 'Jost', "Myriad Pro", Myriad, sans-serif;
  font-size: 18px;
  color: var(--noir95);
  background-color: #fff;
  line-height: 1.7;
  letter-spacing: 1px;
  word-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-weight: normal;
  min-width: 320px;
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* évite scrollbar horizontale pendant les animations slideLeft/slideRight */
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Jost";
  margin-top: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-weight: normal;
}

h1 {
  font-size: 3.5em;
  font-family: "Jost-Medium";
  text-transform: uppercase;
}

h2 {
  font-size: 2em;
  line-height: 1.5em;
  text-transform: uppercase;
  padding-top: 50px;
}

h3 { font-size: 1.3em; }

div, ul, p {
  margin: 0;
  padding: 0;
}

input, textarea, select, option {
  background-color: #fff3f3;
}

input, textarea, select {
  padding: 8px;
  border: 1px solid #f5c5c5;
  border-radius: 5px;
  width: 200px;
}

a {
  text-decoration: none;
}

a,
a:hover {
  -webkit-transition: color 0.1s;
  transition: color 0.1s;
}

@media screen and (max-width: 550px) {
  h2 {
    font-size: 1.5em;
    line-height: 1.3em;
  }
}

/*--------------------------------------------------------------
# Animations au scroll
--------------------------------------------------------------*/
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-slide-up,
.animate-slide-down,
.animate-slide-left,
.animate-slide-right {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.show-slide-up    { opacity: 1; animation: slideUp 0.8s ease-out forwards; }
.show-slide-down  { opacity: 1; animation: slideDown 0.8s ease-out forwards; }
.show-slide-left  { opacity: 1; animation: slideLeft 0.8s ease-out forwards; }
.show-slide-right { opacity: 1; animation: slideRight 0.8s ease-out forwards; }

@media screen and (max-width: 550px) {
  .animate-slide-up,
  .animate-slide-down,
  .animate-slide-left,
  .animate-slide-right {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
}

/*--------------------------------------------------------------
# Layout global
--------------------------------------------------------------*/
.container {
  width: 95%;
  max-width: calc(100% - 250px);
  min-width: 310px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media screen and (max-width: 1024px) {
  .container { max-width: calc(95% - 50px); }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .flecheH
  {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .container {
    max-width: calc(100% - 10px);
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.9em;
  }
}

/*--------------------------------------------------------------
# Boutons (composants réutilisables)
--------------------------------------------------------------*/
.btn-orange a {
  color: #fff;
  background-color: transparent;
  padding: 7px 15px;
  font-family: "Jost-Medium";
  border: 2px solid var(--orange-2024);
  line-height: 2.5em;
}
.TexteNoir .btn-orange a
{
  color: var(--noir95);
}


.btn-orange a:hover {
  color: var(--orange-2024);
}


/*--------------------------------------------------------------
# Liens inline contextuels (.lientexte) + markers (.liensection, .lienfille)
--------------------------------------------------------------*/
/* Liens orange en ligne dans les paragraphes */
a.lientexte {
  color: var(--orange80);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--orange80);
  transition: all 0.2s ease;
}
a.lientexte:hover {
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  text-decoration: none;
}
a.lientexte:focus {
  outline: 2px dashed var(--orange);
  outline-offset: 2px;
}

/* Markers ajoutés à .btn-orange pour cibler des familles de liens.
   Aucun style propre — gardés pour ciblage analytics / JS futur. */
.btn-orange.liensection,
.btn-orange.lienfille { /* rien à styler par défaut */ }


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

/* Affichage selon largeur d'écran */
.Show1024 { display: none; }
.Hide1024 { display: block; }

@media screen and (max-width: 1024px) {
  .Show1024 { display: block; }
  .Hide1024 { display: none; }
}

/* Conteneur principal du contenu (sous le header) */
#content {
  margin: 0;
  padding: 0;
  min-height: 500px;
}

/*--- Header MOBILE (≤ 1024px) ---*/
@media screen and (max-width: 1024px) {
  body {
    padding-top: 70px;
  }

  #headerMob {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid var(--orange20);
    padding: 10px 0;
    font-family: 'Jost';
  }

  #Moblogo,
  #Moblogo img {
    height: 50px;
    width: auto;
    max-width: 70%;
  }

  #mobIconeMenu {
    position: absolute;
    top: 18px;
    right: 20px;
  }

  #mobIconeMenu input {
    display: none;
  }

  /* Bouton hamburger */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 110;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--orange-2024);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animation burger → croix */
  #IDmenu-checkbox:checked + label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #IDmenu-checkbox:checked + label span:nth-child(2) {
    opacity: 0;
  }
  #IDmenu-checkbox:checked + label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Conteneur du menu coulissant */
  #mobMenuContainer {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 90;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  .menu-checkbox:checked + label + #mobMenuContainer {
    max-height: calc(100vh - 70px);
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  #mobMenu {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
  }

  /* Scroll ergonomique du menu mobile */
  #mobMenu::-webkit-scrollbar {
    width: 6px;
  }
  #mobMenu::-webkit-scrollbar-thumb {
    background: var(--orange20);
    border-radius: 3px;
  }

  /* Navigation principale */
  #mobnavmain ul {
    list-style: none;
  }

  #mobnavmain li {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
  }

  #mobnavmain li:last-child {
    border-bottom: none;
  }

  #mobnavmain li a {
    display: block;
    color: var(--orange-2024);
    font-weight: 600;
  }

  #mobnavmain li a:hover {
    background-color: var(--orange20);
  }

  /* Sous-menus mobiles */
  #mobnavmain ul.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobnavmain li.menu-item-has-children.open > ul.sub-menu {
    max-height: 600px;
  }

  #mobnavmain li.menu-item-has-children > a::after {
    content: "▼";
    float: right;
    font-size: 0.8em;
    color: var(--orange-2024);
    transition: transform 0.3s ease;
  }

  #mobnavmain li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
  }

  #mobnavmain ul.sub-menu li {
    padding-left: 35px;
    background-color: #fafafa;
  }

  /* Sélecteur de langue (mobile) */
  #fr-en {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  #fr-en a {
    display: inline-block;
  }

  #fr-en img {
    width: 38px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
  }

  #fr-en img:hover {
    transform: scale(1.1);
  }
}

/*--- Header DESKTOP (≥ 1025px) ---*/
@media screen and (min-width: 1025px) {
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 120px;
    transition: all 0.3s ease;
  }

  #header.shrink {
    height: 100px;
    background: var(--noirtrans);
  }

  /* Logo */
  #logo-AQTech {
    flex: 0 0 auto;
    height: 100%;
  }

  #logo-AQTech img {
    height: 100%;
    width: auto;
    object-fit: cover;
    transition: all 0.3s ease;
  }

  /* Menu principal */
  #navmain {
    flex: 1;
    text-align: right;
  }

  #navmain .menu {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: 40px;
  }

  #navmain .menu > li {
    position: relative;
  }

  #navmain .menu > li > a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
  }

  #navmain .menu > li > a:hover {
    color: var(--orange-2024);
  }

  /* Bouton Contact (style btn-orange) */
  #navmain .menu > li > a[href*="contact"] {
    background: transparent;
    color: #fff;
    padding: 7px 15px;
    border: 2px solid var(--orange-2024);
    font-family: "Jost-Medium";
  }

  #navmain .menu > li > a[href*="contact"]:hover {
    color: var(--orange-2024);
    background: transparent;
  }

  /* Sous-menus desktop */
  #navmain .menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #2b2b2b;
    list-style: none;
    text-align: left;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 1001;
  }

  #navmain .menu li:hover > ul.sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #navmain .menu li ul.sub-menu li {
    margin: 0;
  }

  #navmain .menu li ul.sub-menu li a {
    display: block;
    padding: 12px 22px;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    position: relative;
  }

  #navmain .menu li ul.sub-menu li a:hover {
    background: rgba(228, 90, 45, 0.95);
    padding-left: 30px;
  }

  /* Trait orange à gauche au survol */
  #navmain .menu li ul.sub-menu li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: background 0.25s ease;
  }

  #navmain .menu li ul.sub-menu li a:hover::before {
    background: var(--orange-2024);
  }

  /* Sélecteur de langue (desktop) */
  #header #fr-en {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 2000;
  }

  #header #fr-en img {
    width: 20px;
    height: 13px;
  }
}

/* Ajustements responsive desktop */
@media screen and (max-width: 1400px) {
  #header {
    height: 125px;
    padding-left: 75px;
  }

  #navmain #primary-menu > li {
    padding-left: 5px;
    padding-right: 5px;
  }

  #navmain #primary-menu > li:first-child {
    padding-left: 20px;
  }

  #navmain .menu {
    gap: 30px;
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  color: #fff;
  background-color: var(--orange-2024);
  padding-top: 35px;
  padding-bottom: 15px;
  clear: both;
}

#footer .colfooter {
  width: 20%;
  margin-left: 2.5%;
  margin-right: 2.5%;
  min-height: 150px;
  float: left;
}

#footer #colfoot2,
#footer #colfoot3,
#footer #colfoot4 {
  font-family: 'Jost';
}

#footer #colfoot2 img {
  width: 50%;
  height: auto;
}

/* Liens du menu footer */
#footer #colfoot3 li {
  list-style: none;
}

#footer #colfoot3 li a {
  color: #fff;
  text-transform: capitalize;
}

#footer #colfoot3 li a:hover {
  text-decoration: underline;
}

#footer #colfoot3 #NavFooter1 li a {
  font-weight: bold;
}

#footer #colfoot3 #NavFooter2 {
  margin-top: 15px;
}

/* Bloc contact + réseaux sociaux */
#footer #colfoot4 .RS img {
  height: 25px;
  width: auto;
}

#footer #colfoot4 .btn-blanc {
  padding-top: 5px;
  padding-bottom: 10px;
  text-align: left;
}

#footer #colfoot4 .btn-blanc a {
  font-weight: bold;
}

#footer #colfoot4 .btn-blanc a:hover {
  color: #fff;
  background-color: var(--orange-2024);
}

/* Bouton blanc générique (utilisé dans le footer) */
.btn-blanc a {
  color: var(--noir95);
  background-color: #fff;
  padding: 7px 15px;
  font-family: "Jost-Medium";
  line-height: 2.5em;
}

.btn-blanc a:hover {
  background-color: var(--noir95);
  color: #fff;
}

/* Responsive footer */
@media (max-width: 768px) {
  #footer #colfoot1,
  #footer #colfoot2 {
    display: none;
  }

  #footer .colfooter {
    width: 45%;
    margin-left: 1.5%;
    margin-right: 1.5%;
  }
}

@media (max-width: 550px) {
  #footer {
    padding-top: 0;
  }

  #footer .colfooter {
    width: 95%;
    margin: auto;
    float: none;
    margin-bottom: 0;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #footer #colfoot3 {
    border-bottom: 1px solid #fff;
  }
}


/*------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------
# Bloc1Titre — bandeau d'entête avec vidéo en fond
--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------------*/

#Bloc1Titre {
  position: relative;
  overflow: hidden;
}

#Bloc1Titre.Full {
  height: 100vh;
}

#Bloc1Titre.TroisQuart {
  height: 75vh;
}

/* Média en arrière-plan : vidéo (home) OU image .imagetitre (pages internes) */
#Bloc1Titre video,
#Bloc1Titre img.imagetitre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Calque sombre par-dessus la vidéo (couche 2) */
#Bloc1Titre .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--noirtrans);
  z-index: 2;
}

/* Contenu titre + sous-titre (couche 3) */
#Bloc1TitreContent {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: left;
  padding: 0 5%;
}

#Bloc1TitreContent img {
  height: 40px;
  width: auto;
}

#Bloc1TitreContent h1 {
  padding-right: 25px;
  line-height: 1.1em;
}

#Bloc1TitreContent h2 {
  margin-top: 0;
  font-size: 1.2em;
  font-family: "Jost";
}

/* --- Texte rotatif dans le h1 --- */
.rotating-wrapper {
  /* Décalage vertical fin du mot animé (3px si trop haut, -3px si trop bas) */
  --vertical-offset: 3px;
  /* Hauteur de ligne du mot animé (>1 si écrasé en haut, <1 si écrasé en bas) */
  --word-line-height: 1;

  display: inline-block;
  position: relative;
  vertical-align: baseline;
  height: 1em;
  line-height: var(--word-line-height);
  overflow: hidden;
  top: var(--vertical-offset);
}

/* Sizer invisible : force la largeur du conteneur au mot le plus long */
.rotating-sizer {
  display: inline-block;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}

/* Track contenant tous les mots empilés verticalement */
.rotating-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.rotating-word {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  color: var(--orange-2024);
  font-weight: inherit;
  white-space: nowrap;
}

/* Accessibilité : respect du "reduced motion" */
@media (prefers-reduced-motion: reduce) {
  .rotating-track {
    transition: none;
  }
}

/* --- Responsive Bloc1Titre --- */
@media screen and (max-width: 1400px) {
  #Bloc1TitreContent h1 {
    font-size: 2.5em;
  }

  #Bloc1TitreContent h2 {
    font-size: 1em;
  }
}

@media screen and (max-width: 1024px) {
  #Bloc1Titre.Full {
    height: calc(100vh - 70px);
  }

  #Bloc1Titre.TroisQuart {
    height: calc(75vh - 70px);
  }

  #Bloc1Titre.Full #Bloc1TitreContent {
    height: calc(90vh - 70px);
  }

  #Bloc1TitreContent {
    top: 10%;
  }

  #Bloc1TitreContent img {
    height: 30px;
  }

  #Bloc1TitreContent h1 {
    font-size: 2.5em;
  }

  #Bloc1TitreContent h2 {
    font-size: 1em;
  }
}

@media screen and (max-width: 768px) {
  .rotating-wrapper {
    display: block;
    margin-top: 5px;
  }

  #Bloc1TitreContent {
    padding-left: 15px;
    padding-right: 15px;
  }

  #Bloc1TitreContent img {
    height: 30px;
  }

  #Bloc1TitreContent h1 {
    font-size: 2em;
  }

  #Bloc1TitreContent h2 {
    font-size: 1em;
  }
}

@media screen and (max-width: 550px) {
  #Bloc1TitreContent {
    padding-left: 0;
    padding-right: 0;
  }

  #Bloc1TitreContent img {
    height: 15px;
  }

  #Bloc1TitreContent h1 {
    font-size: 2em;
  }

  #Bloc1TitreContent h2 {
    font-size: 0.9em;
  }
}

/*------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------
# BlocTexteSeul 
--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------------*/

.BlocTexteSeul
{
  padding-bottom: 50px;
}
/*------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------
# BlocImageTexte — bloc image (ou slider) à gauche + texte à droite
   Modifiers de largeur : .TroisQuart (img 30% / text 70%) ou .Demi (50/50)
--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------------*/

.BlocImageTexte {
  padding-top: 150px;
  padding-bottom: 150px;
}

.BlocImageTexte > .container {
  display: flex;
}

/* Flèche déco (img.absolute dans .container) */
.BlocImageTexte > .container > .absolute {
  bottom: 40px;
  right: -40px;
  width: 25px;
  height: auto;
}

/* --- Conteneur texte --- */
.BlocImageTexteText {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.BlocImageTexte.TroisQuart .BlocImageTexteText {
  width: 70%;
}

.BlocImageTexte.DeuxTiers .BlocImageTexteText {
  width: 60%;
}

.BlocImageTexte.Demi .BlocImageTexteText {
  width: 50%;
}

.BlocImageTexteText p {
  margin-bottom: 30px;
  width: 90%;
}

.BlocImageTexte ul {
  margin-left: 70px;
}

/* --- Conteneur image / slider --- */
.BlocImageTexteImg {
  position: relative;
  transform: translateX(-50px);
  max-width: 500px;
}

.BlocImageTexte.TroisQuart .BlocImageTexteImg {
  width: 30%;
}

.BlocImageTexte.DeuxTiers .BlocImageTexteImg {
  width: 40%;
  max-width: none;
}

.BlocImageTexte.Demi .BlocImageTexteImg {
  width: 50%;
}

/* Zone carrée fixe qui clip les slides en défilement */
.BlocImageTexteImg .slides-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.BlocImageTexteImg .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.BlocImageTexteImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Cas image directe (sans slider) : on contraint le conteneur au carré */
.BlocImageTexteImg:not(:has(.slides-viewport)) {
  aspect-ratio: 1 / 1;
}

.BlocImageTexteImg .dots {
  width: 100%;
  text-align: center;
  margin-top: 15px;
}

.BlocImageTexteImg .dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: var(--orange50);
  border-radius: 50%;
  cursor: pointer;
}

.BlocImageTexteImg .dots span.active {
  background-color: var(--orange);
}

/* Modifier : alignement vertical centré de l'image et du texte */
.BlocImageTexte.VCenter > .container {
  align-items: center;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .BlocImageTexte.Demi .BlocImageTexteText {
    width: 100%;
  }
    .BlocImageTexte > .container {
    display: block;
  }

  .BlocImageTexte.DeuxTiers .BlocImageTexteText {
    width: 100%;
  }

.BlocImageTexte.DeuxTiers .BlocImageTexteImg {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(0px);
  }

  .BlocImageTexte
  {
    padding-top: 50px;
    padding-bottom: 50px;
  }

}

@media screen and (max-width: 768px) {

  .BlocImageTexte.DeuxTiers .BlocImageTexteImg {
    width: 60%
  }

  .BlocImageTexte.TroisQuart .BlocImageTexteImg {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .BlocImageTexte.TroisQuart .BlocImageTexteText {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
    .BlocImageTexte.DeuxTiers .BlocImageTexteImg {
    width: 75%
  }
  .BlocImageTexte > .container > .absolute {
    right: 0;
  }
}

/*------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------
# BgImage — image de fond + voile sombre (composant réutilisable)
   Usage : ajouter .BgImage sur le conteneur, puis en enfants directs :
     <img class="BgImageMedia" src="..." alt="" />
     <div class="BgImageOverlay"></div>
     <!-- contenu normal -->
--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------------*/
.BgImage {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.BgImageMedia {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.BgImageOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Variante claire : voile blanc + texte sombre */
.BgImage.BgImageClair {
  color: var(--noir95);
}

.BgImage.BgImageClair .BgImageOverlay {
  background: rgba(255, 255, 255, 0.75);
}

/* Tout le contenu réel doit passer au-dessus du voile */
.BgImage > *:not(.BgImageMedia):not(.BgImageOverlay) {
  position: relative;
  z-index: 2;
}

/*------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------
# MultiCol — bloc en colonnes (titre haut + cartes images)
   Modifier : .TroisCol (3 cartes à 33%)
--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------------*/

/* Carrousel horizontal unifié pour tous les .MultiCol (DeuxCol/TroisCol/QuatreCol/CinqCol).
   Les modifieurs de colonne restent dans le HTML pour la sémantique mais n'affectent plus le layout.
   Cartes à largeur fixe, scroll horizontal toujours actif (souris drag + swipe doigt). */
.MultiCol .list_carre_container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-left: 10px;
  cursor: grab;
  margin: auto;
  padding-bottom: 100px;
  gap: 20px;
}
.MultiCol .list_carre_container:active {
  cursor: grabbing;
}
.MultiCol .list_carre_container::-webkit-scrollbar {
  display: none;
}

.MultiCol .list_carre_article {
  /* 33.333% - (2 × gap) / 3 pour que 3 cartes + 2 gaps tiennent pile dans le slider */
  flex: 0 0 calc(33.333% - 14px);
  padding: 0 10px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Quand le card est rendu en <a> par realisation_card() : hérite la couleur du parent (blanc par défaut, noir si .TexteNoir) */
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}
.MultiCol .list_carre_article:hover {
  color: var(--orange);
}

/* Wrapper inséré par JS autour de chaque .list_carre_container, sert d'ancre aux flèches.
   Le padding latéral réserve l'espace des flèches pour qu'elles ne chevauchent pas les cartes. */
.list_carre_wrapper {
  position: relative;
  padding: 0 60px;
}

/* Flèches "voir plus" — visibles uniquement si le slider déborde côté correspondant */
.list_carre_arrow {
  position: absolute;
  top: 0;
  bottom: 100px; /* compense le padding-bottom du slider pour centrer sur les cartes */
  margin: auto 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease, transform 0.2s ease;
  padding: 0;
}
.list_carre_arrow_left  { left: 8px; }
.list_carre_arrow_right { right: 8px; }
.list_carre_arrow:hover {
  transform: scale(1.1);
}
.list_carre_arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.MultiCol h2
{
  padding-top: 50px;
  padding-bottom: 0px;
}

.MultiCol h3
{
  margin-bottom: 10px;
}


.MultiCol .titre-underline {
  margin-bottom: 50px;
}

/* Image carrée des cartes */
.MultiCol .image-carre {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.MultiCol .list_carre_article .image-carre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.MultiCol .list_carre_article .image-carre img:hover {
  transform: scale(1.05);
}

.MultiCol .list_carre_article .titre-underline {
  margin-bottom: 10px;
}

.MultiCol p {
  margin-bottom: 25px;
  font-size: 0.9em;
}

/* GrilleReal — override du carrousel par une grille wrap (utilisé pour /fr/realisations/) */
.MultiCol.GrilleReal .list_carre_wrapper {
  padding: 0;
}
.MultiCol.GrilleReal .list_carre_container {
  flex-wrap: wrap;
  overflow-x: visible;
  cursor: default;
  justify-content: center;
  gap: 30px;
  padding-bottom: 50px;
}
.MultiCol.GrilleReal .list_carre_container:active {
  cursor: default;
}
.MultiCol.GrilleReal .list_carre_article {
  flex: 0 0 calc(33.333% - 30px);
  padding: 0;
  color: inherit;
  text-decoration: none;
  display: block;
}
.MultiCol.GrilleReal .list_carre_article:hover h3 {
  color: var(--orange);
}
.accroche-real {
  text-align: center;
  font-style: italic;
  font-size: 1.1em;
  margin: 30px 0 60px;
}
@media (max-width: 1024px) {
  .MultiCol.GrilleReal .list_carre_article {
    flex: 0 0 calc(50% - 30px);
  }
}
@media (max-width: 600px) {
  .MultiCol.GrilleReal .list_carre_article {
    flex: 0 0 100%;
  }
}

/* Mobile : cartes à 85% pour laisser voir le bord de la carte suivante */
@media screen and (max-width: 768px) {
  .MultiCol .list_carre_container {
    gap: 30px;
    padding: 0 5% 20px;
    scroll-padding-left: 5%;
  }
  .MultiCol .list_carre_article {
    flex: 0 0 85%;
  }
  .list_carre_wrapper {
    padding: 0;
  }
  .list_carre_arrow {
    display: none;
  }
}

/*--------------------------------------------------------------
# bloc_expertise — chemin alterné gauche/droite (4 étapes)
   Modifiers de position : .expertise_debut, .expertise_gauche,
   .expertise_droite, .expertise_fin
--------------------------------------------------------------*/

.bloc_expertise {
  display: flex;
  position: relative;
  padding-bottom: 40px;
  margin-top: 20px;
}

.bloc_expertise.expertise_debut {
  margin-top: 50px;
}

.bloc_expertise.expertise_fin {
  margin-bottom: 70px;
}

/* En mode gauche, image à droite et texte à gauche */
.bloc_expertise.expertise_gauche {
  flex-direction: row-reverse;
}

/* --- Conteneur image (60% de largeur) --- */
.bloc_expertise_img_container {
  width: 60%;
  padding: 0 40px;
}

.bloc_expertise_img_container > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 3;
  transition: transform 0.3s ease;
}

.bloc_expertise_img_container > img:hover {
  transform: scale(1.05);
}

/* --- Conteneur texte (40%, centré verticalement, texte noir) --- */
.bloc_expertise_text_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  padding: 50px 0 50px 6px;
  color: var(--noir95);
}

.bloc_expertise_text_container > h2 {
  font-size: 1.5em;
  margin-bottom: 0;
}

.bloc_expertise_text_container > ul {
  margin: 25px 0 30px 0;
  list-style-type: none;
  line-height: normal;
}

.bloc_expertise_text_container > ul > li {
  margin-bottom: 5px;
}

/* --- Flèches déco positionnées selon le sens du chemin --- */
.bloc_expertise.expertise_debut .expertise_fleche {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: auto;
}

.bloc_expertise.expertise_gauche .expertise_fleche {
  position: absolute;
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  height: 350px;
  width: auto;
}

.bloc_expertise.expertise_droite .expertise_fleche {
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  height: 350px;
  width: auto;
}

.bloc_expertise .btn-orange
{
  margin-top: 20px;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  /* Image au-dessus, texte en-dessous (même ordre que le HTML) */
  .bloc_expertise,
  .bloc_expertise.expertise_gauche {
    flex-direction: column;
    padding-top: 30px;
  }

  .bloc_expertise_img_container {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
  }

  .bloc_expertise_text_container {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .bloc_expertise_text_container h2{
    padding-top: 0;
  }

  .bloc_expertise.expertise_debut .expertise_fleche {
    top: 0;
    left: 10px;
    width: auto;
    height: 20px;
  }

  .bloc_expertise.expertise_gauche .expertise_fleche {
    left: -10px;
    top: 0;
    transform: none;
    width: 20px;
    height: auto;
  }

  .bloc_expertise.expertise_droite .expertise_fleche {
    right: -10px;
    top: 0;
    transform: none;
    width: 20px;
    height: auto;
  }
}

/*--------------------------------------------------------------
# grid-expertises — grille 5 items (1 grand + 4 petits)
   avec overlay-titre sur chaque image
--------------------------------------------------------------*/

.grid-expertises {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* --- Bloc principal (Smart Textile, à gauche, 50%) --- */
.grid-expertises .expertise-item.large {
  position: relative;
  width: 50%;
}

.grid-expertises .expertise-item.large .img-container {
  width: 100%;
}

/* --- 4 carrés en grille 2x2 (à droite, 50%) --- */
.small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 50%;
}

/* --- Style commun des items --- */
.grid-expertises .expertise-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.grid-expertises .img-container {
  position: relative;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 1 / 1;
}

.grid-expertises .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all 0.4s ease;
}

.grid-expertises .expertise-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* --- Overlay permanent (bandeau bas avec le titre) --- */
.grid-expertises .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.grid-expertises .expertise-item.large .overlay {
  height: 20%;
}

.grid-expertises .overlay h3 {
  font-family: 'Jost';
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.grid-expertises .expertise-item:hover .overlay {
  background: rgba(222, 100, 59, 0.6); /* var(--orange-2024) à 60% */
}

/* --- Responsive : ≥551px et ≤1024px : empilage vertical, large en 1ère ligne --- */
@media (max-width: 1024px) and (min-width: 551px) {
  /* min-width: 551 = juste au-dessus du breakpoint mobile à 550 */
  .grid-expertises {
    flex-direction: column;
    gap: 20px;
  }

  .grid-expertises .expertise-item.large {
    width: 100%;
  }

  .grid-expertises .small-grid {
    width: 100%;
  }
}

/* --- Responsive : ≤550px : tout en colonne unique --- */
@media (max-width: 550px) {
  .grid-expertises {
    flex-direction: column;
    gap: 20px;
  }

  .grid-expertises .expertise-item .img-container {
    aspect-ratio: auto;
    height: 220px;
  }

  .small-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .grid-expertises .expertise-item.large {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

/*--------------------------------------------------------------
# BlocCTA — Image + texte d'appel à l'action
   Composant autonome (ne dépend pas de BlocImageTexte) pour pouvoir
   évoluer indépendamment.
   Reprend les anciens réglages de .ImageTexte du style.css d'origine.
--------------------------------------------------------------*/

.BlocCTA {
  padding-top: 150px;
  padding-bottom: 150px;
}

.BlocCTA > .container {
  display: flex;
  align-items: center;
}

/* Flèche déco (img.absolute dans .container) */
.BlocCTA > .container > .absolute {
  bottom: 40px;
  right: -40px;
  width: 25px;
  height: auto;
}

/* --- Conteneur image (40% à gauche, hauteur fixe 300px) --- */
.BlocCTAImg {
  position: relative;
  transform: translateX(-50px);
  max-width: 500px;
  width: 40%;
  height: 300px;
  overflow: hidden;
}

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

/* --- Conteneur texte (60% à droite, centré verticalement) --- */
.BlocCTAText {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
  margin: auto;
}

.BlocCTAText p {
  margin-bottom: 30px;
  width: 90%;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .BlocCTA {
  padding-top: 50px;
  padding-bottom: 50px;
}
  .BlocCTA > .container {
    display: block;
  }

  .BlocCTAImg {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .BlocCTAText {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .BlocCTA > .container > .absolute {
    right: 0;
  }
}

/*--------------------------------------------------------------
# Fil d'Ariane (breadcrumb)
   Usage : <nav id="Ariane" class="breadcrumb-container BlocGris20">
             <div class="container">
               <a href="/fr/">Accueil</a>
               <span class="breadcrumb-separator">›</span>
               <span class="breadcrumb-current">Page actuelle</span>
             </div>
           </nav>
--------------------------------------------------------------*/

.breadcrumb-container {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--noir95);
}

.breadcrumb-container a {
  color: var(--orange);
  text-decoration: none;
}

.breadcrumb-container a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--noir50);
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--noir95);
}

@media screen and (max-width: 550px) {
  .breadcrumb-container {
    font-size: 0.8rem;
    padding: 8px 0;
  }
  .breadcrumb-separator {
    margin: 0 5px;
  }
}

/*--------------------------------------------------------------
# FAQ (accordéon)
   Le JS dans aqtech2025.js gère le toggle .active sur .faq_item
   Usage : <div class="faq-container">
             <div class="faq">
               <div class="faq_item">
                 <h4 class="faq_question">...</h4>
                 <p class="faq_reponse">...</p>
               </div>
             </div>
           </div>
--------------------------------------------------------------*/

.faq-container {
  max-width: 100%;
  margin: 30px auto;
  text-align: left;
}

.faq_item {
  border-bottom: 1px solid var(--noir20);
  padding: 16px 0;
  cursor: pointer;
  position: relative;
}

.faq_item:last-child {
  border-bottom: none;
}

.faq_question {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding-right: 30px;
  color: var(--noir95);
}

.faq_question::after {
  content: "›";
  position: absolute;
  right: 4px;
  top: 50%;
  margin-top: -16px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--orange);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.faq_item.active .faq_question::after {
  transform: rotate(90deg);
}

.faq_reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  margin: 0;
  color: var(--noir80);
  line-height: 1.6;
}

.faq_item.active .faq_reponse {
  max-height: 800px;
  margin-top: 12px;
}

@media screen and (max-width: 550px) {
  .faq_question {
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Image4Cartes — 4 piliers/icônes en grille 2×2
   Usage : <div class="Image4Cartes">
             <div class="icone-pilier">
               <i class="fa-solid fa-xxx"></i>
               <h4>Titre</h4>
               <p>Texte</p>
             </div>
             ... × 4
           </div>
   À utiliser à l'intérieur d'un BlocImageTexte.Demi typiquement.
--------------------------------------------------------------*/

.Image4Cartes {
  width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  justify-items: center;
  align-items: start;
  padding: 40px;
}

.Image4Cartes .icone-pilier {
  background-color: #fff;
  padding: 30px 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
}

.Image4Cartes .icone-pilier:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.Image4Cartes .icone-pilier i {
  font-size: 42px;
  color: var(--orange);
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.Image4Cartes .icone-pilier:hover i {
  color: var(--orange80);
  transform: scale(1.1);
}

.Image4Cartes .icone-pilier h4 {
  font-family: 'Jost-Medium', 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--noir95);
}

.Image4Cartes .icone-pilier p {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--noir80);
  line-height: 1.4em;
}

@media screen and (max-width: 1024px) {
  .Image4Cartes {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .Image4Cartes {
    padding: 0;
    gap: 10px;
  }
  .Image4Cartes .icone-pilier {
    padding: 30px 0;
  }
}


/*--------------------------------------------------------------
# Page Contact — équipe + cartes flip + map
--------------------------------------------------------------*/

/* === Équipe (Bloc 2) === */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 20px 0;
}
.team-member {
  text-align: center;
  max-width: 350px;
}
.team-photo img.photo {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
  border-radius: 8px;
}
.team-photo img.photo:hover {
  filter: grayscale(0%);
}
.team-member h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 15px;
}
.fonction {
  color: var(--noir80);
  font-size: 0.95em;
  margin: 5px 0 15px;
}

/* === Cartes Contact (Bloc 3) === */
#Bloc3Contact {
  padding-top: 0;
  padding-bottom: 75px;
  margin-bottom: 0;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

/* Structure flip 3D */
.card-flip {
  position: relative;
  width: 280px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 16px;
}
.card-flip.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* Faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
.card-front {
  background-color: #fff;
  color: #000;
  transform: rotateY(0deg);
  z-index: 2;
}
.card-back {
  background-color: #fff;
  color: #000;
  transform: rotateY(180deg);
}
.card-orange .card-front,
.card-orange .card-back {
  background-color: var(--orange);
  color: #fff;
}
.card-orange .card-back a { color: #fff; }
.card-back a { color: #000; }

/* Détails carte */
.card h3 {
  margin-bottom: 20px;
  font-size: 1.4em;
  line-height: 1.3;
}
.card-face .muted {
  opacity: 0.7;
  font-style: italic;
}
.card-number {
  position: absolute;
  bottom: -15px;
  right: 0;
  font-size: 55px;
  font-weight: bold;
  opacity: 0.08;
  pointer-events: none;
}

/* Carte statique (adresse) */
.card-static {
  width: 280px;
  height: 220px;
  background: #fff;
  padding: 10px 15px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Lien email/tel dans les cartes */
.contact-link {
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

/* Responsive cartes */
@media screen and (max-width: 992px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  .card-flip,
  .card-static {
    width: 90%;
    max-width: 400px;
  }
}

/* === Bloc adresse + téléphone + email (après le formulaire, avant la carte) === */
#BlocAdresseTel {
  padding: 40px 0 20px;
}
#BlocAdresseTel h2 {
  text-align: center;
}
#BlocAdresseTel .titre-underline {
  margin: 0 auto 30px;
}
.adresse-tel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.adresse-tel-item {
  flex: 1 1 240px;
  max-width: 280px;
  text-align: center;
}
.adresse-tel-item h3 {
  font-family: "Jost-Medium", sans-serif;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange-2024);
  margin-bottom: 10px;
}
.adresse-tel-item p {
  margin: 6px 0;
  line-height: 1.5;
}
.adresse-tel-item .contact-link {
  font-size: 1.05em;
  font-weight: 500;
  color: var(--noir95);
  text-decoration: none;
  border-bottom: 1px dotted var(--orange80);
  transition: color 0.2s ease;
}
.adresse-tel-item .contact-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.adresse-tel-help {
  font-size: 0.8em;
  color: var(--noir50);
  font-style: italic;
}

/* === Map Google (Bloc 4) === */
#Bloc4Contact {
  padding: 50px 0;
  margin-top: 0;
}
#Bloc4Contact .container {
  text-align: center;
}
#Bloc4Contact .container iframe#MapContact {
  max-width: 90%;
  width: 600px;
  margin: auto;
  border: 0;
}


/*--------------------------------------------------------------
# Formulaire Contact (BlocFormContact)
--------------------------------------------------------------*/
#BlocFormContact {
  padding: 50px 0;
}
#BlocFormContact h2 {
  text-align: center;
}
#BlocFormContact .titre-underline {
  margin-left: auto;
  margin-right: auto;
}
#BlocFormContact > .container > p {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}

/* Bandeaux de statut */
.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  margin: 0 auto 25px;
  max-width: 720px;
  font-size: 0.95em;
  border-left: 4px solid;
}
.form-message-success {
  background: #e6f4ea;
  border-color: #2e7d32;
  color: #1b5e20;
}
.form-message-error {
  background: #fdecea;
  border-color: #c62828;
  color: #8b1a1a;
}

/*--------------------------------------------------------------
# Blog — listing, cartes, filtres, pagination, article
--------------------------------------------------------------*/

/* Filtres tags */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 10px;
}
.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gris20);
  color: var(--noir95);
  border: 1px solid var(--noir20);
  border-radius: 20px;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-filter:hover {
  background: var(--orange20);
  border-color: var(--orange);
}
.blog-filter.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.blog-filter-count {
  font-size: 0.85em;
  opacity: 0.7;
}
.blog-filter.active .blog-filter-count {
  opacity: 1;
}

/* Carte article (utilise list_carre_article + ajouts) */
.blog-card-date {
  font-size: 0.85em;
  color: var(--noir50);
  margin-top: 10px;
  font-style: italic;
}
.blog-card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.blog-card-tags .blog-tag {
  font-size: 0.75em;
  padding: 2px 8px;
  background: var(--gris20);
  border-radius: 3px;
  color: var(--noir80);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 60px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--noir20);
  background: #fff;
  color: var(--noir95);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}
.page-link:hover {
  background: var(--orange20);
  border-color: var(--orange);
}
.page-link.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  pointer-events: none;
}
.page-link-nav {
  font-weight: 500;
}

/* Article : corps */
.blog-article-body {
  padding: 60px 20px;
  max-width: 800px;
}
.blog-article-body h2 {
  font-size: 1.5em;
  padding-top: 30px;
  margin-bottom: 10px;
}
.blog-article-body h3 {
  font-size: 1.2em;
  padding-top: 20px;
  margin-bottom: 8px;
}
.blog-article-body p {
  margin: 15px 0;
  line-height: 1.7;
}
.blog-article-body ul,
.blog-article-body ol {
  margin: 15px 0 15px 30px;
}
.blog-article-body li {
  margin: 6px 0;
}
.blog-article-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}
.blog-article-body a {
  color: var(--orange);
  text-decoration: underline;
}
.blog-article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 10px 20px;
  margin: 20px 0;
  background: var(--gris20);
  font-style: italic;
}

/* Date + auteur dans le hero */
.blog-hero-date {
  font-size: 0.95em;
  opacity: 0.95;
  margin-top: 10px;
  font-style: italic;
}
.blog-hero-date time { font-style: normal; font-weight: 500; }
.blog-hero-author { opacity: 0.85; }

/* Signature auteur (EEAT) en fin d'article */
.blog-article-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 25px;
  margin: 50px 0 0;
  background: var(--gris20);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
}
.blog-author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95em;
  line-height: 1.5;
}
.blog-author-info strong {
  font-size: 1.1em;
  color: var(--noir);
}
.blog-author-info a {
  align-self: flex-start;
  margin-top: 5px;
}
@media (max-width: 600px) {
  .blog-article-author { flex-direction: column; align-items: center; text-align: center; }
}

/* Tags sous l'article */
.blog-article-tags {
  padding: 20px;
  margin: 0 auto 40px;
  max-width: 800px;
  border-top: 1px solid var(--noir20);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.blog-article-tags strong {
  margin-right: 8px;
}
.blog-article-tags .blog-tag {
  padding: 4px 12px;
  background: var(--gris20);
  border-radius: 3px;
  color: var(--noir80);
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
}
.blog-article-tags .blog-tag:hover {
  background: var(--orange);
  color: #fff;
}

/* Modal de confirmation envoi formulaire contact */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  animation: modalFadeIn 0.3s ease;
  cursor: pointer;
}
.contact-modal-content {
  position: relative;
  background: #fff;
  max-width: 520px;
  width: 100%;
  padding: 50px 35px 40px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2.2em;
  line-height: 1;
  cursor: pointer;
  color: var(--noir50);
  padding: 0;
  width: 36px;
  height: 36px;
  transition: color 0.2s;
}
.contact-modal-close:hover {
  color: var(--noir);
}
.contact-modal-icon {
  font-size: 4em;
  color: var(--orange);
  margin-bottom: 18px;
  line-height: 1;
}
.contact-modal-content h2 {
  color: var(--noir);
  margin: 0 0 15px;
  padding: 0;
  text-transform: none;
  font-size: 1.8em;
}
.contact-modal-content p {
  color: var(--noir80);
  margin-bottom: 30px;
  font-size: 1em;
  line-height: 1.5;
}
.contact-modal-content .btn-orange {
  display: inline-block;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Formulaire */
#contact-form {
  max-width: 860px;
  margin: 0 auto;
}

/* Honeypot caché aux humains, accessible aux bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sections (fieldset) */
.form-section {
  border: 0;
  padding: 20px 0 10px;
  margin: 0;
  border-top: 1px solid var(--noir20);
}
.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.form-section legend {
  font-family: "Jost-Medium", sans-serif;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange-2024);
  padding: 0 0 10px;
}

/* Rangées */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}
.form-row-2 > .form-field { flex: 1 1 0; min-width: 0; }
.form-row:not(.form-row-2) > .form-field { flex: 1 1 100%; }

/* Champ */
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--noir95);
}
.form-field .req {
  color: var(--orange);
  font-weight: bold;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95em;
  padding: 10px 12px;
  border: 1px solid var(--noir20);
  border-radius: 3px;
  background: #fff;
  color: var(--noir95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 78, 27, 0.12);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%23575756' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
  cursor: pointer;
}

/* Mini aide sous le champ */
.form-help {
  font-size: 0.75em;
  color: var(--noir50);
  margin-top: 4px;
  display: block;
}

/* Champ en erreur (validation côté serveur) */
.form-field.field-error input,
.form-field.field-error select,
.form-field.field-error textarea {
  border-color: #c62828;
  background: #fdf6f6;
}
.form-rgpd.field-error {
  background: #fdf6f6;
  padding: 8px;
  border-radius: 3px;
}

/* Case RGPD */
.form-rgpd {
  margin: 25px 0 20px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9em;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--orange-2024);
  flex-shrink: 0;
}

/* Bouton envoi (calé sur btn-orange mais natif <button>) */
.form-submit {
  text-align: center;
  margin-top: 10px;
}
.btn-orange-submit {
  font-family: "Jost-Medium", sans-serif;
  font-size: 1em;
  color: #fff;
  background-color: var(--orange-2024);
  border: 2px solid var(--orange-2024);
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-orange-submit:hover {
  background-color: transparent;
  color: var(--orange-2024);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-row-2 > .form-field {
    flex: 1 1 100%;
    margin-bottom: 18px;
  }
  .form-row-2 > .form-field:last-child {
    margin-bottom: 0;
  }
}
