/* ============================================= */
/* --- 1. RESET & CONFIGURATION DE BASE --- */
/* ============================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  font-family: 'segoe', sans-serif;
  overflow-x: hidden; /* Empêche le scroll horizontal sur mobile */
}
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { transition: all .3s ease; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- FONTS --- */
@font-face {      
    font-family: "segoe";
    src: url("../fonts/segoe.ttf") format("truetype"); /* Chemin ajusté si besoin */
    font-display: swap;
}
@font-face {      
    font-family: "lobster";
    src: url("../fonts/lobster.ttf") format("truetype");
    font-display: swap;
}

/* ============================================= */
/* --- 2. CLASSES UTILITAIRES (LEGACY) --- */
/* Gardées pour compatibilité avec SST.php / MAC.php */
/* ============================================= */

/* Flexbox */
.dflex { display: flex; }
.flex_column { flex-direction: column; }
.flex_wrap { flex-wrap: wrap; }
.justify_content_center { justify-content: center; }
.space_around { justify-content: space-around; }
.align_item_center { align-items: center; }
.align_item_start { align-items: flex-start; }
.align_item_stretch { align-items: stretch; }
.dflexcenter { display: flex; justify-content: center; align-items: center; }
.gap10px { gap: 10px; }
.gap20px { gap: 20px; }
.gap30px { gap: 30px; }

/* Dimensions */
.h2vh { height: 2vh; }
.h10vh { height: 10vh; }
.h40vh { height: 40vh; }
.w100px { width: 100px; }
.w5ps { width: 5%; }
.w10ps { width: 10%; }
.w20ps { width: 20%; }
.w30ps { width: 30%; }
.w35ps { width: 35%; }
.w40ps { width: 40%; }
.w50ps { width: 50%; }
.w60ps { width: 60%; }
.w80ps { width: 80%; }
.w90ps { width: 90%; }
.w100ps { width: 100%; }

/* Couleurs de Fond (Legacy) */
.bgblack { background-color: black; }
.bgwhite { background-color: white; }
.bgred { background-color: #a71d2a; }
.bggreen { background-color: #063711; }
.bgOrange { background-color: #bb4d03; }
.bgarticle { background-color: #f5f3f3; }

/* Gradients complexes (SST/MAC) */
.bgblackdesign { background: linear-gradient(to right, #000, #1a1a1a); }
.bgblackclass { background: linear-gradient(to right, #2c3e50, #000); }
.bgbluedesign { background: linear-gradient(135deg, #042b80, #3C5A9A); }
.bgreno { background-image: linear-gradient(45deg, #f06363, #e6736b); } /* Simplifié pour perf */
.bgbleureno { background-image: linear-gradient(45deg, #2b9ec9, #0e94ad); }
.bgnettoyage { background-image: linear-gradient(135deg, #319366, #24f04b); }
.bgorangedesign { background-image: linear-gradient(135deg, #bb4d03, #e67e22); }
.bgreddesign { background: linear-gradient(135deg, #a71d2a 0%, #d9534f 100%); }

/* Typographie */
.segoe { font-family: 'segoe', sans-serif; }
.lobster { font-family: 'lobster', cursive; }
.bold { font-weight: bold; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.txtdecorationnone { text-decoration: none; }
.txt_center { text-align: center; }
.txt_justify { text-align: justify; }
.txt_right { text-align: right; }
.lh24px { line-height: 24px; }
.lh30px { line-height: 30px; }
.lh40px { line-height: 40px; }

/* Tailles Police */
.fs12 { font-size: 12px; }
.fs14 { font-size: 14px; }
.fs16 { font-size: 16px; }
.fs18 { font-size: 18px; }
.fs20 { font-size: 20px; }
.fs24 { font-size: 24px; }
.fs30 { font-size: 30px; }
.fs40 { font-size: 40px; }
.fs50 { font-size: 50px; }
.fs60 { font-size: 60px; }

/* Couleurs Texte */
.clrwhite { color: white; }
.clrblack { color: #000; }
.clrgrey { color: #666; }
.clrgreen { color: #319366; }
.clrblue { color: #042b80; }
.clrred { color: #a71d2a; }
.clrorange { color: #bb4d03; }
.clrgold { color: #ffd700; }

/* Espacement & Position */
.p10px { padding: 10px; }
.p15px { padding: 15px; }
.p20px { padding: 20px; }
.p30px { padding: 30px; }
.p40px { padding: 40px; }
.p50px { padding: 50px; }
.pl40px { padding-left: 40px; }
.pr40px { padding-right: 40px; }
.pb10px { padding-bottom: 10px; }

.margin10auto { margin: 10px auto; }
.margin20auto { margin: 20px auto; }
.mt5px { margin-top: 5px; }
.mt10px { margin-top: 10px; }
.mt20px { margin-top: 20px; }
.mt30px { margin-top: 30px; }
.mt50px { margin-top: 50px; }
.mb10px { margin-bottom: 10px; }
.mb20px { margin-bottom: 20px; }
.mb30px { margin-bottom: 30px; }
.mb40px { margin-bottom: 40px; }
.mb50px { margin-bottom: 50px; }
.ml10px { margin-left: 10px; }
.ml15px { margin-left: 15px; }
.ml20px { margin-left: 20px; }

.relative { position: relative; }
.absolute { position: absolute; }
.top1 { top: 1%; }
.top5 { top: 5%; }
.left1 { left: 1%; }

/* Bordures & Effets */
.borderadius20 { border-radius: 20px; }
.borderadius30 { border-radius: 30px; }
.borderadius50 { border-radius: 50%; }
.borderadius30top { border-radius: 30px 30px 0 0; }
.borderadius30bottom { border-radius: 0 0 30px 30px; }
.borderbottomwhite { border-bottom: 1px solid white; }
.borderbottomgray { border-bottom: 1px solid #eee; }
.boxshadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hover-scale:hover { transform: scale(1.05); transition: transform 0.3s; }

/* ============================================= */
/* --- 3. MENU DE NAVIGATION --- */
/* ============================================= */
.menu {
    background-image: linear-gradient(to right, #000 0%, #1a1a1a 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.menu ol {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.menu > ol > li {
    position: relative;
}
.menu > ol > li > a {
    display: block;
    padding: 20px 25px;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}
.menu > ol > li:hover > a {
    background-color: #333;
    color: #bb4d03; /* Touche Orange */
}
/* Sous-menu */
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}
.menu li:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.menu .sub-menu li a {
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    text-transform: capitalize;
    font-size: 14px;
}
.menu .sub-menu li a:hover {
    background-color: #042b80; /* Bleu */
    color: white;
}

/* ============================================= */
/* --- 4. SLIDER ANCIEN (Interventions) --- */
/* ============================================= */
.outer-wrapper { width: 90%; margin: 50px auto; max-width: 1000px; }
.s-wrap {
    width: 100%;
    padding-bottom: 55%;
    position: relative;
    border: 10px solid #fff;
    background-color: #efefe8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    border-radius: 20px;
}
.s-wrap > input { display: none; }
.s-wrap .s-content {
    margin: 0; padding: 0;
    position: absolute; top: 0; left: 0;
    width: 500%; height: 100%;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.s-wrap .s-item {
    display: inline-block; width: 20%; height: 100%;
    background-repeat: no-repeat; background-size: cover; background-position: center;
}
/* Images du slider (chemins relatifs) */
.s-wrap .s-item-1 { background-image: url("../img/photo20.png"); }
.s-wrap .s-item-2 { background-image: url("../img/photo21.png"); }
.s-wrap .s-item-3 { background-image: url("../img/photo3.png"); }
.s-wrap .s-item-4 { background-image: url("../img/photo4.png"); }
.s-wrap .s-item-5 { background-image: url("../img/photo5.png"); }

/* Contrôles du slider */
.s-type-1 .s-control { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; }
.s-type-1 .s-control > label {
    display: inline-block; width: 12px; height: 12px; margin: 0 5px;
    border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer;
}
.s-type-1 #s-1:checked ~ .s-control .s-c-1,
.s-type-1 #s-2:checked ~ .s-control .s-c-2,
.s-type-1 #s-3:checked ~ .s-control .s-c-3,
.s-type-1 #s-4:checked ~ .s-control .s-c-4,
.s-type-1 #s-5:checked ~ .s-control .s-c-5 { background: white; transform: scale(1.2); }

.s-type-1 #s-1:checked ~ .s-content { transform: translateX(0%); }
.s-type-1 #s-2:checked ~ .s-content { transform: translateX(-20%); }
.s-type-1 #s-3:checked ~ .s-content { transform: translateX(-40%); }
.s-type-1 #s-4:checked ~ .s-content { transform: translateX(-60%); }
.s-type-1 #s-5:checked ~ .s-content { transform: translateX(-80%); }
/* ============================================= */
/* --- 5. NOUVEAUX STYLES (INDEX 2.0 & HERO) --- */
/* ============================================= */

/* --- Hero Dynamique (include_hero.php) --- */
.hero-dynamic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 20px;
  background-size: cover;
  background-position: center;
}
.hero-date-card {
  /* Style de la carte date/heure */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: #333;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: fit-content;
  min-width: 200px;
  text-align: center;
  border-bottom: 4px solid #bb4d03;
}

/* --- Section Logo & Nav Blocks --- */
.section-logo { display: flex; justify-content: center; padding: 20px 0; }
.main-logo { width: 300px; max-width: 80%; }

.section-nav-blocks { padding: 40px 20px; }
.nav-blocks-container { 
  display: flex; 
  justify-content: center; 
  gap: 0; 
  width: 100%; 
  max-width: 1400px; 
  margin: 0 auto; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
  border-radius: 20px; 
  overflow: hidden; 
}
.nav-block { 
  flex: 1; 
  padding: 60px 20px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  transition: all 0.3s ease; 
}
.block-sst { background: linear-gradient(135deg, #319366, #24f04b); }
.block-mac { background: linear-gradient(45deg, #e6736b, #f06363); }

.nav-block-img { height: 180px; margin-bottom: 20px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2)); }
.nav-block-title { font-size: 3rem; font-weight: bold; color: white; text-transform: uppercase; margin-bottom: 10px; }
.nav-block-desc { font-size: 1.2rem; color: white; background: rgba(0,0,0,0.3); padding: 10px 20px; border-radius: 30px; margin-bottom: 20px; }

.btn-action { 
  padding: 12px 30px; 
  border-radius: 50px; 
  background: white; 
  font-weight: bold; 
  text-transform: uppercase; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
  transition: transform 0.2s;
}
.btn-action:hover { transform: scale(1.1); }
.btn-green { color: #319366; }
.btn-blue { color: #a71d2a; }

/* --- Section ASAP --- */
.section-asap { 
  background: linear-gradient(135deg, #a71d2a 0%, #d9534f 100%); 
  padding: 60px 20px; 
  text-align: center; 
}
.section-title { font-size: 2.5rem; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; }
.section-subtitle { font-size: 1.2rem; width: 80%; margin: 0 auto 40px; line-height: 1.6; }
.white { color: white; }
.dark { color: #333; }
.blue { color: #042b80; }

.asap-grid { 
  display: flex; 
  justify-content: center; 
  gap: 30px; 
  flex-wrap: wrap; 
}
.asap-card { 
  background: black; 
  color: white; 
  padding: 40px 20px; 
  border-radius: 20px; 
  width: 300px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.asap-card:hover { transform: translateY(-10px); }
.asap-title { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; }

.btn-main { 
  display: inline-block; 
  margin-top: 40px; 
  padding: 15px 40px; 
  background: black; 
  color: white; 
  font-size: 1.2rem; 
  font-weight: bold; 
  border-radius: 50px; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.btn-main:hover { background: #333; transform: scale(1.05); }

/* --- Section Vidéo --- */
.section-video { padding: 60px 20px; background: #f4f6f9; text-align: center; }
.video-player { width: 80%; max-width: 900px; border-radius: 20px; }

/* --- Section Reviews (Avis Clients) CORRIGÉE --- */
.section-reviews { 
  background: linear-gradient(to bottom, #111, #000); 
  padding: 60px 20px; 
  color: white; 
  text-align: center; 
}
.reviews-container { 
  display: flex; 
  justify-content: center; 
  gap: 40px; 
  flex-wrap: wrap; 
  margin-top: 40px; 
}
.review-card-home { 
  width: 300px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}
.review-avatar-wrapper { margin-bottom: 15px; }
.avatar-circle { 
  width: 100px; height: 100px; 
  border-radius: 50%; 
  border: 4px solid white; 
  object-fit: cover; 
  background: white; 
}
.review-author { font-size: 1.5rem; font-weight: bold; margin-bottom: 5px; }
.review-stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 20px; }

/* BULLE BLANCHE / TEXTE NOIR */
.review-bubble { 
  background: white; 
  color: #333 !important; /* Force le noir */
  padding: 20px; 
  border-radius: 15px; 
  position: relative; 
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
  width: 100%;
}
.review-bubble::after { 
  content: ''; 
  position: absolute; 
  top: -10px; 
  left: 50%; 
  transform: translateX(-50%); 
  border-width: 0 10px 10px; 
  border-style: solid; 
  border-color: transparent transparent white transparent; 
}
.review-text { 
  color: #333 !important; 
  font-size: 1rem; 
  line-height: 1.5; 
  font-style: italic; 
}

.btn-secondary { 
  display: inline-block; 
  margin-top: 40px; 
  padding: 12px 30px; 
  background: white; 
  color: #042b80; 
  border-radius: 30px; 
  font-weight: bold; 
}
.btn-secondary:hover { background: #eee; }

/* --- Section Partenaires & Slider --- */
.section-slider { text-align: center; }
.section-partners { 
  padding: 60px 0; 
  background: #fff; 
  text-align: center; 
}
.pic-ctn { 
  position: relative; width: 100%; height: 200px; margin-top: 30px; 
}
.pic { 
  position: absolute; 
  top: 0; left: calc(50% - 100px); 
  width: 200px; height: 100%; 
  object-fit: contain; 
  opacity: 0; 
  animation: display 12s infinite; 
}
@keyframes display {
  0% { transform: translateX(200px); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  30% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(-200px); opacity: 0; }
  100% { transform: translateX(-200px); opacity: 0; }
}
.pic:nth-child(2) { animation-delay: 4s; }
.pic:nth-child(3) { animation-delay: 8s; }

/* ============================================= */
/* --- 6. PAGE CONTACT (MODERNE) --- */
/* ============================================= */
.contact-wrapper {
  display: flex; flex-wrap: wrap; gap: 40px; 
  max-width: 1200px; margin: 0 auto; padding: 40px 20px;
}
.contact-form-col {
  flex: 2; background: white; padding: 40px; 
  border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contact-info-col {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
}
.info-card {
  background: #042b80; color: white; padding: 30px; 
  border-radius: 20px; box-shadow: 0 10px 20px rgba(4, 43, 128, 0.2);
}
.info-card a { color: white; border-bottom: 1px dashed rgba(255,255,255,0.5); }
.form-input {
  width: 100%; padding: 15px; border: 2px solid #eee; 
  border-radius: 10px; background: #f9f9f9; margin-bottom: 20px; font-family: 'segoe';
}
.form-input:focus { border-color: #042b80; background: white; outline: none; }
.submit-btn {
  width: 100%; padding: 18px; 
  background: linear-gradient(135deg, #042b80 0%, #3C5A9A 100%); 
  color: white; border: none; border-radius: 50px; 
  font-size: 18px; font-weight: bold; cursor: pointer;
}

/* ============================================= */
/* --- 7. PAGE FORMATIONS (GRILLE) --- */
/* ============================================= */
.grid-formations {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 40px; 
  max-width: 1200px; margin: 0 auto; padding: 40px 20px;
}
.card-formation {
  background: white; border-radius: 20px; overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
  display: flex; flex-direction: column; transition: transform 0.3s;
}
.card-formation:hover { transform: translateY(-10px); }
.card-img-top {
  width: 100%; height: 250px; object-fit: contain; 
  background: #f9f9f9; padding: 20px; border-bottom: 5px solid #eee;
}
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; }
.tag { background: #f0f0f0; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; color: #555; }

/* Couleurs Bordures */
.border-green { border-color: #319366; }
.border-orange { border-color: #bb4d03; }
.clr-green { color: #319366; }
.clr-orange { color: #bb4d03; }

/* ============================================= */
/* --- 8. PAGE AVIS (GRILLE) --- */
/* ============================================= */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 30px; max-width: 1200px; margin: 0 auto; padding: 40px 20px;
}
.review-card {
  background: white; border-radius: 15px; padding: 30px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column;
  border-top: 4px solid #042b80;
}
.review-header { display: flex; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.review-avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; object-fit: cover; }

/* ============================================= */
/* --- 9. RESPONSIVE MOBILE FINAL --- */
/* ============================================= */
@media (max-width: 768px) {
  .nav-blocks-container { flex-direction: column; border-radius: 0; }
  .video-player { width: 100%; }
  .contact-wrapper { flex-direction: column-reverse; padding: 10px; }
  .contact-form-col { padding: 20px; }
  .grid-formations { grid-template-columns: 1fr; }
  .card-img-top { height: 200px; }
  .section-title { font-size: 2rem; }
  .main-logo { width: 60%; }
  .hero-dynamic h1 { font-size: 2.5rem !important; }
}

/* ====================================================== */
/* --- CORRECTIFS & GALERIE (A AJOUTER A LA FIN) --- */
/* ====================================================== */

/* 1. RÉPARATION DES COULEURS SST / MAC (Style "D'avant") */
/* On force le retour des dégradés d'origine avec !important */

.bgnettoyage { 
  background-image: linear-gradient(336deg, rgba(161, 161, 161, 0.07) 0%, rgba(161, 161, 161, 0.07) 50%,rgba(36, 36, 36, 0.07) 50%, rgba(36, 36, 36, 0.07) 100%),linear-gradient(69deg, rgba(68, 68, 68, 0.04) 0%, rgba(68, 68, 68, 0.04) 50%,rgba(203, 203, 203, 0.04) 50%, rgba(203, 203, 203, 0.04) 100%),linear-gradient(291deg, rgba(193, 193, 193, 0.03) 0%, rgba(193, 193, 193, 0.03) 50%,rgba(165, 165, 165, 0.03) 50%, rgba(165, 165, 165, 0.03) 100%),linear-gradient(151deg, rgba(202, 202, 202, 0.02) 0%, rgba(202, 202, 202, 0.02) 50%,rgba(158, 158, 158, 0.02) 50%, rgba(158, 158, 158, 0.02) 100%),linear-gradient(260deg, rgba(87, 87, 87, 0.03) 0%, rgba(87, 87, 87, 0.03) 50%,rgba(45, 45, 45, 0.03) 50%, rgba(45, 45, 45, 0.03) 100%),linear-gradient(323deg, rgba(160, 160, 160, 0.01) 0%, rgba(160, 160, 160, 0.01) 50%,rgba(57, 57, 57, 0.01) 50%, rgba(57, 57, 57, 0.01) 100%),linear-gradient(253deg, rgba(122, 122, 122, 0.02) 0%, rgba(122, 122, 122, 0.02) 50%,rgba(222, 222, 222, 0.02) 50%, rgba(222, 222, 222, 0.02) 100%),linear-gradient(159deg, rgba(213, 213, 213, 0.01) 0%, rgba(213, 213, 213, 0.01) 50%,rgba(149, 149, 149, 0.01) 50%, rgba(149, 149, 149, 0.01) 100%),linear-gradient(138deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.05) 50%,rgba(111, 111, 111, 0.05) 50%, rgba(111, 111, 111, 0.05) 100%),linear-gradient(135deg, #319366,#24f04b) !important;
}

.bgreno { 
  background-image: linear-gradient(45deg, rgb(240, 99, 99) 0%, rgb(240, 99, 99) 11%,rgb(230, 115, 107) 11%, rgb(230, 115, 107) 24%,rgb(220, 132, 114) 24%, rgb(220, 132, 114) 29%,rgb(210, 148, 122) 29%, rgb(210, 148, 122) 45%,rgb(199, 164, 129) 45%, rgb(199, 164, 129) 87%,rgb(189, 181, 137) 87%, rgb(189, 181, 137) 90%,rgb(179, 197, 144) 90%, rgb(179, 197, 144) 100%),linear-gradient(67.5deg, rgb(240, 99, 99) 0%, rgb(240, 99, 99) 11%,rgb(230, 115, 107) 11%, rgb(230, 115, 107) 24%,rgb(220, 132, 114) 24%, rgb(220, 132, 114) 29%,rgb(210, 148, 122) 29%, rgb(210, 148, 122) 45%,rgb(199, 164, 129) 45%, rgb(199, 164, 129) 87%,rgb(189, 181, 137) 87%, rgb(189, 181, 137) 90%,rgb(179, 197, 144) 90%, rgb(179, 197, 144) 100%),linear-gradient(135deg, rgb(240, 99, 99) 0%, rgb(240, 99, 99) 11%,rgb(230, 115, 107) 11%, rgb(230, 115, 107) 24%,rgb(220, 132, 114) 24%, rgb(220, 132, 114) 29%,rgb(210, 148, 122) 29%, rgb(210, 148, 122) 45%,rgb(199, 164, 129) 45%, rgb(199, 164, 129) 87%,rgb(189, 181, 137) 87%, rgb(189, 181, 137) 90%,rgb(179, 197, 144) 90%, rgb(179, 197, 144) 100%),linear-gradient(90deg, rgb(156, 174, 7),rgb(129, 53, 44)) !important;
}

.bgorangedesign { 
  background-image: linear-gradient(112.5deg, rgb(199, 149, 37) 0%, rgb(199, 149, 37) 2%,rgb(202, 137, 37) 2%, rgb(202, 137, 37) 10%,rgb(205, 124, 37) 10%, rgb(205, 124, 37) 38%,rgb(208, 112, 37) 38%, rgb(208, 112, 37) 64%,rgb(210, 100, 36) 64%, rgb(210, 100, 36) 66%,rgb(213, 87, 36) 66%, rgb(213, 87, 36) 78%,rgb(216, 75, 36) 78%, rgb(216, 75, 36) 100%),linear-gradient(157.5deg, rgb(199, 149, 37) 0%, rgb(199, 149, 37) 2%,rgb(202, 137, 37) 2%, rgb(202, 137, 37) 10%,rgb(205, 124, 37) 10%, rgb(205, 124, 37) 38%,rgb(208, 112, 37) 38%, rgb(208, 112, 37) 64%,rgb(210, 100, 36) 64%, rgb(210, 100, 36) 66%,rgb(213, 87, 36) 66%, rgb(213, 87, 36) 78%,rgb(216, 75, 36) 78%, rgb(216, 75, 36) 100%),linear-gradient(67.5deg, rgb(199, 149, 37) 0%, rgb(199, 149, 37) 2%,rgb(202, 137, 37) 2%, rgb(202, 137, 37) 10%,rgb(205, 124, 37) 10%, rgb(205, 124, 37) 38%,rgb(208, 112, 37) 38%, rgb(208, 112, 37) 64%,rgb(210, 100, 36) 64%, rgb(210, 100, 36) 66%,rgb(213, 87, 36) 66%, rgb(213, 87, 36) 78%,rgb(216, 75, 36) 78%, rgb(216, 75, 36) 100%),linear-gradient(90deg, rgb(65, 48, 207),rgb(202, 204, 121)) !important;
}

/* 2. CORRECTIF ASAP CARDS (Texte blanc sur fond blanc) */
/* On force le texte en NOIR si le fond est blanc */
.card-formation .card-body p, 
.card-formation .card-body h3,
.card-formation .tag {
  color: #333; /* Texte noir par défaut */
}
/* Sauf pour les titres où on veut de la couleur spécifique */
.card-formation .clr-green { color: #319366 !important; }
.card-formation .clr-orange { color: #bb4d03 !important; }
.card-formation .clr-blue { color: #042b80 !important; }

/* 3. GALERIE MODERNE (Masonry Grid) */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding: 10px;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 250px; /* Hauteur fixe pour uniformité */
}
.gallery-item:hover {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}
.gallery-item:hover img {
  filter: brightness(0.7);
}
.gallery-item .overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-weight: bold;
  font-family: 'segoe';
  font-size: 1.2rem;
  pointer-events: none;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
/* ============================================= */
/* --- STYLE GALERIE MODERNE (Interventions) --- */
/* ============================================= */

.gallery-section {
  width: 100%;
  padding: 40px 20px;
  background-color: #f5f3f3;
}

.gallery-intro {
  margin-bottom: 50px;
}

/* Grille Masonry Responsive */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 280px; /* Hauteur fixe pour uniformiser */
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit la case sans déformer */
  transition: filter 0.3s;
}

/* Effet Overlay au survol */
.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 43, 128, 0.6); /* Bleu transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'segoe', sans-serif;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 30px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .modern-gallery {
      grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* Une seule colonne */
  }
  .gallery-item {
      height: 250px;
  }
}

/* ============================================= */
/* --- NOUVEAU MENU RESPONSIVE (NAVBAR 2.0) --- */
/* ============================================= */

/* --- 1. Conteneur Principal --- */
.navbar {
  background-color: #000; /* Fond noir profond */
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  position: sticky; /* Reste en haut au scroll */
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: 'segoe', sans-serif;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
}

/* --- 2. Logo --- */
.nav-logo {
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-logo:hover {
  color: #bb4d03; /* Touche Orange au survol */
}

/* --- 3. Menu Desktop --- */
.nav-menu {
  display: flex;
  list-style: none;
  margin-bottom: 0;
  align-items: center;
}

.nav-item {
  padding: 0 15px;
  position: relative;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s ease; /* Transition douce "normale" */
  padding: 10px 0;
  display: block;
  font-size: 16px;
  text-transform: uppercase;
}

/* Effet de soulignement Smooth */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #042b80; /* Bleu FormAline */
  transition: width 0.4s ease;
  margin-top: 5px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #bb4d03; /* Orange */
}

/* Bouton Contact Spécial */
.btn-contact-nav {
  background-color: #bb4d03;
  padding: 8px 20px !important;
  border-radius: 50px;
  margin-left: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-contact-nav:hover {
  background-color: #042b80;
  color: white !important;
  transform: translateY(-2px);
}
.btn-contact-nav::after { display: none; } /* Pas de soulignement pour le bouton */

/* --- 4. Menu Déroulant (Dropdown) --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px); /* Décalé vers le bas */
  background: #1a1a1a;
  width: 220px;
  border-top: 3px solid #bb4d03;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease; /* Apparition smooth */
  padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Remonte à sa place */
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  text-transform: capitalize;
}

.dropdown-link:hover {
  background-color: #333;
  color: #fff;
  padding-left: 25px; /* Petit décalage vers la droite */
}

/* --- 5. Menu Burger (Mobile) --- */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.4s ease-in-out;
  background-color: white;
}

/* --- 6. RESPONSIVE (Tablettes & Mobiles) --- */
@media (max-width: 960px) {
  .hamburger {
      display: block;
      z-index: 1001; /* Au-dessus du menu ouvert */
  }

  /* Animation du Burger en Croix (X) */
  .hamburger.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
      background-color: #bb4d03;
  }
  .hamburger.active .bar:nth-child(2) {
      opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
      background-color: #bb4d03;
  }

  /* Panneau Menu Mobile */
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 0;
      flex-direction: column;
      background-color: rgba(0, 0, 0, 0.98); /* Fond quasi opaque */
      width: 100%;
      height: 100vh; /* Toute la hauteur */
      text-align: center;
      transition: 0.5s ease; /* Vitesse d'ouverture du panneau */
      padding-top: 100px; /* Espace pour ne pas coller en haut */
  }

  .nav-menu.active {
      left: 0;
  }

  .nav-item {
      margin: 15px 0;
      opacity: 0; /* Caché par défaut pour l'animation */
      transform: translateY(20px); /* Décalé vers le bas */
  }

  /* Animation d'apparition des liens un par un */
  .nav-menu.active .nav-item {
      animation: fadeUp 0.5s ease forwards;
  }
  
  /* Délais pour l'effet cascade */
  .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.4s; }
  .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.5s; }
  .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.6s; }
  .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.7s; }

  @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
  }

  .nav-link { font-size: 1.5rem; }
  
  /* Gestion du dropdown sur mobile */
  .dropdown-menu {
      position: static; /* Rentre dans le flux */
      transform: none;
      background: transparent;
      width: 100%;
      opacity: 1;
      visibility: visible;
      display: none; /* Caché par défaut */
      box-shadow: none;
      border: none;
      padding-bottom: 20px;
  }
  
  /* Afficher le sous-menu au survol ou clic sur mobile */
  .has-dropdown:hover .dropdown-menu {
      display: block;
  }
  
  .dropdown-link { font-size: 1.2rem; color: #aaa; }
}

/* ================================================= */
/* --- PATCH CORRECTIF : LAYOUT SST / MAC --- */
/* ================================================= */

/* 1. Comportement par défaut (ORDINATEUR) */
/* La classe .none doit impérativement cacher l'élément */
.none { 
  display: none !important; 
}

/* La classe resp_display_none ne fait rien sur PC (donc l'élément s'affiche) */
.resp_display_none { 
  display: flex !important; 
}

/* Force la largeur et le flex sur PC */
.w50ps { width: 50%; }
.dflex { display: flex; }


/* 2. Comportement MOBILE (Tablettes et Téléphones) */
@media (max-width: 960px) {
  
  /* On passe en colonne unique */
  .resp_flex_column { 
      flex-direction: column !important; 
  }
  
  /* On force la largeur à 100% */
  .resp_w100ps { 
      width: 100% !important; 
      max-width: 100% !important;
  }

  /* GESTION AFFICHAGE / MASQUAGE MOBILE */
  
  /* Cacher l'élément "Desktop Only" (celui qui a resp_display_none) */
  .resp_display_none { 
      display: none !important; 
  }

  /* Afficher l'élément "Mobile Only" (celui qui a resp_displayyes) */
  /* Note : On utilise !important pour écraser le .none du desktop */
  .resp_displayyes { 
      display: flex !important; 
  }
  
  /* Ajustements esthétiques mobile */
  .bloctexteleft, .bloctexteright {
      text-align: center !important; /* Centre le texte sur mobile */
      margin-bottom: 20px;
  }
  
  /* Centre les images sur mobile */
  .resp_dflexcenter {
      justify-content: center !important;
      align-items: center !important;
  }
}

/* ============================================= */
/* --- RESTAURATION TIMELINE (STYLE D'ORIGINE) --- */
/* ============================================= */

.timeline-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px 0;
}

/* La ligne verticale centrale */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #3C5A9A; /* Bleu FormAline */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

/* Les éléments (Blocs) */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Bloc Gauche (1er, 3ème...) */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 60px; /* Espace pour le rond */
}

/* Bloc Droit (2ème, 4ème...) */
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 60px; /* Espace pour le rond */
}

/* Les Icônes Rondes (au milieu) */
.timeline-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 20px;
  background-color: white;
  border: 4px solid #3C5A9A;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3C5A9A;
  box-shadow: 0 0 0 4px #f5f3f3; /* Petit halo pour couper la ligne */
}

/* Positionnement précis des icônes */
.timeline-item:nth-child(odd) .timeline-icon {
  right: -30px; /* Centré sur la ligne (60px / 2) */
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -30px; /* Centré sur la ligne (60px / 2) */
}

/* Le contenu (Boite Blanche) */
.timeline-content {
  padding: 25px 30px;
  background-color: white;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-title {
  font-size: 24px;
  font-weight: bold;
  font-family: 'segoe', sans-serif;
  color: #042b80;
  margin-bottom: 15px;
}

.timeline-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  font-family: 'segoe', sans-serif;
}

/* --- RESPONSIVE MOBILE (Timeline devient verticale simple) --- */
@media (max-width: 768px) {
  /* On déplace la ligne tout à gauche */
  .timeline-container::after {
    left: 30px;
  }
  
  /* Les items prennent toute la largeur */
  .timeline-item {
    width: 100%;
    padding-left: 80px; /* Espace à gauche pour la ligne */
    padding-right: 20px;
    text-align: left !important; /* Force l'alignement gauche partout */
  }
  
  /* On annule le décalage gauche/droite */
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  /* On place toutes les icônes sur la ligne à gauche */
  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0px; /* Centré sur la ligne à 30px (30 - 30) */
    right: auto;
  }
}

/* --- Photo de Profil Ronde (Page Formaline) --- */
.profile-pic {
  width: 200px;          /* Largeur fixe */
  height: 200px;         /* Hauteur identique pour former un carré de base */
  border-radius: 50% !important; /* Force le cercle parfait */
  object-fit: cover;     /* Recadre l'image sans la déformer */
  border: 5px solid white; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto 20px auto; /* Centre l'image et ajoute une marge en bas */
}

/* ============================================= */
/* --- NOUVEAU CARROUSEL (REMPLACE S-WRAP) --- */
/* ============================================= */

.modern-carousel-section {
  padding: 60px 0;
  background-color: white;
  text-align: center;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 500px; /* Hauteur PC */
  margin: 40px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit tout le cadre sans déformer */
  display: block;
}

/* Boutons Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(4, 43, 128, 0.9); /* Bleu */
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Indicateurs (Points) */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .carousel-container {
      height: 300px; /* Hauteur réduite sur mobile */
      width: 100%;
      border-radius: 0;
  }
  .carousel-btn {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }
}

/* ================================================= */
/* --- CORRECTIF : SECTION PARTENAIRES (GRID) --- */
/* ================================================= */

/* On remplace le vieux carrousel par une grille flexible */
.pic-ctn {
  position: relative;
  width: 100%;
  height: auto !important; /* On retire la hauteur fixe */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Permet aux logos de passer à la ligne */
  gap: 50px; /* Espace aéré entre les logos */
  padding: 40px 20px;
}

/* Style des logos individuels */
.pic {
  position: relative !important; /* Plus de position absolute */
  top: auto !important;
  left: auto !important;
  width: 180px !important; /* Taille harmonisée */
  height: 120px !important;
  object-fit: contain;
  opacity: 1 !important; /* Toujours visible */
  animation: none !important; /* On arrête l'animation qui bug */
  

}

/* Effet au survol de la souris */
.pic:hover {
  transform: scale(1.1); /* Léger zoom */
}

/* Adaptation Mobile */
@media (max-width: 768px) {
  .pic-ctn {
      gap: 30px;
  }
  .pic {
      width: 120px !important;
      height: 80px !important;
  }
}

/* ============================================= */
/* --- PAGE ACTUALITÉS (BLOG) --- */
/* ============================================= */

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-thumb-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #042b80;
  margin-bottom: 15px;
  line-height: 1.3;
  font-family: 'segoe', sans-serif;
}

.news-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  font-family: 'segoe', sans-serif;
  margin-bottom: 20px;
}

/* Gestion du contenu riche (TinyMCE) */
.news-excerpt p { margin-bottom: 10px; }
.news-excerpt ul { list-style: disc; margin-left: 20px; margin-bottom: 10px; }
.news-excerpt strong { font-weight: bold; }

/* Responsive */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

