/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       HEADER    XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   TOP BAR (Vert - Statique)
   ========================================================================== */
.top-bar {
    background-color: #006837; /* Vert forêt */
    color: white;
    padding: 8px 0;
    font-size: 13px;
    position: relative;
    z-index: 1002;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

.contact-info i {
    margin-right: 5px;
}

/* Bouton Consultation dans la Top Bar */
.btn-top-consult {
    background-color: #e71d1d;
    color: white !important;
    padding: 6px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-right: 0 !important;
    transition: background 0.3s;
}

.btn-top-consult:hover {
    background-color: #1a3a50;
}

/* ==========================================================================
   MAIN HEADER (Sticky - Gris Clair)
   ========================================================================== */
.main-header {
    background-color: #F5F7FA;
    padding: 15px 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
}

/* État Sticky "Scrolled" */
.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: rgba(245, 247, 250, 0.98);
}

.header-flex {
    align-items: center;
}

.logo img {
    height: 85px;
    display: block;
    transition: height 0.3s;
}

.main-header.scrolled .logo img {
    height: 50px;
}

.nav-container {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: #006837;
}

.nav-links i {
    font-size: 12px;
}

/* ==========================================================================
   DROPDOWN MENU (Desktop)
   ========================================================================== */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border-top: 3px solid #006837;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: #006837;
}

/* ==========================================================================
   BURGER MENU
   ========================================================================== */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
}

/* ==========================================================================
   MOBILE NAV OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 20px;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-close {
    font-size: 30px;
    text-align: right;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-links a,
.mobile-dropdown span {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/* Accordéon Mobile */
.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
    background: #f9f9f9;
}

.mobile-dropdown.open .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    border: none;
    margin: 0;
    padding: 8px 0;
}

.mobile-submenu a {
    font-size: 14px;
    font-weight: normal;
}

.mobile-cta-btn {
    display: block;
    background: #006837;
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin-top: 20px;
}

/* ==========================================================================
   HERO SLIDER SECTION
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Hero Content */
.hero-content {
    position: absolute;
    text-align: center;
    width: 100%;
    max-width: 900px;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    background-color: rgba(85, 85, 85, 0.85);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    padding: 15px 40px;
    margin-bottom: 0;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-content h1:hover {
    background-color: rgba(60, 60, 60, 0.95);
    transform: scale(1.02);
}

.hero-content p {
    background-color: #2b47a1;
    color: white;
    font-size: 1.2rem;
    padding: 12px 30px;
    margin: 0 auto 30px auto;
    width: fit-content;
    transition: all 0.3s ease;
}

.hero-content p:hover {
    background-color: #1e337a;
    padding: 12px 45px;
}

.btn-book {
    background-color: #2b47a1;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 40px;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background-color: white;
    color: #2b47a1;
    border: 2px solid #2b47a1;
}

/* Animations */
.slide.active .animate-title {
    animation: fadeInUp 0.6s forwards;
}

.slide.active .animate-subtitle {
    animation: fadeInUp 0.8s forwards;
}

.slide.active .animate-btn {
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ==========================================================================
   CONSULTING SECTION
   ========================================================================== */
:root {
    --primary-color: #2C5370;
    --bg-consulting: #f8f9fa;
    --text-dark: #111;
    --text-body: #555;
}

.consulting-expert-section {
    padding: 100px 0;
    background-color: var(--bg-consulting);
    overflow: hidden;
}

.consulting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.consulting-header {
    margin-bottom: 40px;
}

.service-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.service-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.consulting-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.consulting-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 90%;
}

.consulting-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.consulting-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.item-content {
    flex: 1;
}

.item-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.item-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.5;
}

.consulting-image-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    max-width: 450px;
}

.expert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 20px 20px 0 var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE - MOBILE & TABLETTE
   ========================================================================== */

@media (max-width: 992px) {
    /* ✅ CACHER LA TOP BAR VERTE SUR MOBILE/TABLETTE */
    .top-bar {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 10px 20px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}






/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       SECTION - slder  XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

/* ========================================================
   TENSION1 HERO SLIDER CSS
   ======================================================== */
.t1-hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* HAUTEUR EXACTE DEMANDÉE SUR DESKTOP */
    overflow: hidden;
    background-color: #111;
}

.t1-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.t1-slide.active {
    opacity: 1;
    visibility: visible;
}

.t1-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out; /* Effet Ken Burns subtil */
}

.t1-slide.active .t1-bg-img {
    transform: scale(1);
}

.t1-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10,20,30,0.8) 0%, rgba(10,20,30,0.4) 100%);
    z-index: 1;
}

/* --- Contenu --- */
.t1-content {
    position: absolute;
    top: 50%;
    left: 10%; /* Aligné à gauche pour un look pro B2B */
    transform: translateY(-50%);
    z-index: 2;
    max-width: 800px;
    color: #fff;
}

.t1-badge {
    display: inline-block;
    background: #2C5370; /* Ta couleur primaire */
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.t1-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

.t1-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    max-width: 700px; /* Limite la largeur pour éviter les lignes trop longues */
}

.t1-btn {
    display: inline-flex;
    padding: 16px 32px;
    background: #fff;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.t1-btn:hover {
    background: #2C5370;
    color: #fff;
}

/* Animations d'entrée du texte */
.t1-slide.active .t1-badge { transition: all 0.6s ease 0.3s; opacity: 1; transform: translateY(0); }
.t1-slide.active .t1-title { transition: all 0.6s ease 0.5s; opacity: 1; transform: translateY(0); }
.t1-slide.active .t1-subtitle { transition: all 0.6s ease 0.7s; opacity: 1; transform: translateY(0); }
.t1-slide.active .t1-btn { transition: all 0.6s ease 0.9s; opacity: 1; transform: translateY(0); }

/* --- Contrôles --- */
.t1-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}

.t1-nav-btn:hover { background: rgba(255,255,255,0.4); }
.t1-prev { left: 30px; }
.t1-next { right: 30px; }

.t1-dots {
    position: absolute;
    bottom: 30px;
    left: 10%;
    z-index: 5;
    display: flex; gap: 10px;
}

.t1-dot {
    width: 30px; height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.t1-dot.active { background: #fff; width: 50px; }

/* ========================================================
   RESPONSIVE (Mobile)
   ======================================================== */
@media (max-width: 900px) {
    .t1-hero-slider { height: 500px; }
    .t1-title { font-size: 2.2rem; }
    .t1-content { left: 5%; right: 5%; text-align: center; }
    .t1-dots { left: 50%; transform: translateX(-50%); }
    .t1-prev, .t1-next { display: none; } /* Cacher les flèches sur petit écran */
}

@media (max-width: 600px) {
    .t1-hero-slider { height: 450px; } /* Ajusté pour ne pas déborder sur téléphone */
    .t1-title { font-size: 1.8rem; line-height: 1.2;}
    .t1-subtitle { font-size: 0.95rem; display: -webkit-box ;
              -webkit-line-clamp : 3; /* Coupe le texte s'il est trop long sur 3 lignes */
              -webkit-box-orient: vertical;
              overflow: hidden;}
    .t1-btn { width: 100%; justify-content: center; }
    .t1-badge {margin-bottom: 10px;}
}


/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       SECTION - services  XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

/* --- Section "Our Products" - Structure Révisée --- */
.products-section {
    background-color: #f4f4f4;
    padding: 40px 20px;
    width: 100%;
}

.products-grid-layout {
    display: grid;
    /* Colonne 1 étroite (TXT + Carré), Colonne 2 large (2 Rectangles) */
    grid-template-columns: 35% 1fr; 
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 100%; /* Étiré sur la largeur */
    margin: 0 auto;
}

/* Gestion du contenu des blocs */
.grid-item {
    display: flex;
    flex-direction: column;
}

.intro-block {
    justify-content: center;
    padding-right: 20px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Styles des Cartes Produits */
.product-card {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    color: #fff;
    padding: 12px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
}

/* Couleurs spécifiques selon vos images */
.header-blue { background-color: #2c5370; }
.header-maroon { background-color: #5a201a; }
.header-terracotta { background-color: #8b543d; }

.card-body {
    position: relative;
    height: 320px; /* Hauteur fixe pour l'alignement */
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* --- Hover Effect (image_3d1701.png) --- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 83, 112, 0.85); /* Overlay bleu transparent */
    display: flex;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.learn-more-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background: #e0e0e0;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.learn-more-btn:hover { background: #fff; }

/* Triggers au survol */
.card-body:hover .card-overlay { opacity: 1; }
.card-body:hover .overlay-content { transform: translateY(0); }
.card-body:hover .card-img { transform: scale(1.08); }

/* --- Responsive (Stacking) --- */
@media (max-width: 992px) {
    .products-grid-layout {
        grid-template-columns: 1fr; /* Tout passe sur une seule colonne */
    }
    .intro-block {
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }
}







/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       Blog     XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

/* ==========================================
   RECENT ARTICLES SECTION
   ========================================== */

:root {
  /* Couleur principale définie ici pour faciliter les changements */
  --primary-color: #2C5370;
}

.recent-articles {
  padding: 80px 0;
  background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
}

.articles-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Block */
.category-block {
  margin-bottom: 70px;
}

.category-block:last-of-type {
  margin-bottom: 50px;
}

.category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 28px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color); /* ✅ Changé pour #2C5370 */
  display: inline-block;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Article Card */
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link:focus-visible {
  outline: 3px solid var(--primary-color); /* ✅ Focus couleur #2C5370 */
  outline-offset: 4px;
  border-radius: 12px;
}

/* Card Image */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-image {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date {
  font-size: 0.85rem;
  color: var(--primary-color); /* ✅ Date en #2C5370 */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.article-card:hover .card-title {
  color: var(--primary-color); /* ✅ Titre hover en #2C5370 */
}

.card-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* CTA Button (Style "Bloc" Carré) */
.cta-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px; /* ✅ Plus large */
  
  background-color: var(--primary-color); /* ✅ Fond #2C5370 */
  color: #fff;
  
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  border-radius: 0; /* ✅ Carré (pas d'angle arrondi) */
  border: 2px solid var(--primary-color); /* Bordure solide */
  
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: transparent; /* ✅ Fond transparent au survol */
  color: var(--primary-color); /* ✅ Texte devient #2C5370 */
  transform: translateY(-2px);
}

.cta-button:hover .cta-icon path {
  stroke: var(--primary-color); /* ✅ Icône devient #2C5370 */
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

.cta-icon {
  transition: transform 0.2s ease;
}

.cta-icon path {
  transition: stroke 0.2s ease; /* Transition pour la couleur de l'icône */
}

.cta-button:hover .cta-icon {
  transform: translateX(4px);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .category-block {
    margin-bottom: 60px;
  }

  .section-header {
    margin-bottom: 50px;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .recent-articles {
    padding: 60px 0;
  }

  .articles-container {
    padding: 0 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-block {
    margin-bottom: 50px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .cta-wrapper {
    justify-content: center;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .card-image,
  .cta-button,
  .cta-icon {
    transition: none;
  }
}



/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       TESTIMONDIAL     XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */


:root{
  --xp-bg: #eeeeee;
  --xp-card: #ffffff;
  --xp-text: #111;
  --xp-muted: #3b3b3b;
  --xp-shadow: 0 18px 40px rgba(0,0,0,.08);
  --xp-focus: #2C5370;
}

.xp-testimonials{
  background: var(--xp-bg);
  padding: 70px 0;
}

.xp-wrap{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
}

.xp-carousel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Big white card */
.xp-card{
  width: min(1120px, 100%);
  background: var(--xp-card);
  box-shadow: var(--xp-shadow);
  border-radius: 0;               /* design “rectangular” comme image */
  padding: 44px 64px;
  overflow: hidden;               /* évite que le track déborde visuellement */
}

/* Track (swipe + snap) */
.xp-track{
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
  touch-action: pan-x;
}
.xp-track::-webkit-scrollbar{ display:none; }

.xp-slide{
  flex: 0 0 100%;
  scroll-snap-align: center;

  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;

  min-height: 320px;
}

/* Header (logo left, text right) */
.xp-head{
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.xp-logo{
  width: 92px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.xp-person{ line-height: 1.25; }
.xp-name{
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--xp-text);
}
.xp-title{
  margin-top: 6px;
  font-size: 1rem;
  color: var(--xp-text);
}
.xp-company{
  margin-top: 4px;
  font-size: 1rem;
  color: var(--xp-text);
}

/* Big quote centered vertically like reference */
.xp-quoteWrap{
  display: flex;
  align-items: center;
}

.xp-quote{
  margin: 0;
  color: #0f0f0f;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.5;
  letter-spacing: -0.2px;
  max-width: 48ch;
}

/* Arrows (outside / slightly overlapping) */
.xp-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 54px;
  height: 54px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.9);
  color: #2C5370;

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;
  z-index: 3;

  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.xp-arrow span{
  font-size: 34px;
  line-height: 1;
  transform: translateY(-1px);
}

.xp-arrow:hover{
  background: #2C5370;
  color: #fff;
  border-color: #2C5370;
}

.xp-arrow--left{ left: -22px; }
.xp-arrow--right{ right: -22px; }

.xp-arrow:focus-visible,
.xp-track:focus-visible{
  outline: 3px solid var(--xp-focus);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 900px){
  .xp-card{
    padding: 34px 28px;
  }
  .xp-slide{
    min-height: 300px;
  }
  .xp-arrow--left{ left: -14px; }
  .xp-arrow--right{ right: -14px; }
}

@media (max-width: 600px){
  .xp-card{
    padding: 26px 18px;
  }

  /* Mobile: stack logo/text vertically */
  .xp-head{
    flex-direction: column;
    gap: 10px;
  }
  .xp-logo{
    width: 120px;
    height: 56px;
  }

  .xp-quote{
    max-width: 40ch;
  }

  .xp-arrow{
    width: 46px;
    height: 46px;
  }
  .xp-arrow--left{ left: 6px; }
  .xp-arrow--right{ right: 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xp-track{ scroll-behavior: auto; }
  .xp-arrow{ transition: none; }
}

/* Screen-reader only */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}





/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       freelance     XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

:root {
  --primary-color: #2C5370; /* Votre bleu industriel */
  --service-bg: #f4f7f9;    /* Fond distinct (bleu-gris pâle) */
  --text-dark: #111;
  --text-body: #444;
}

/* --- Section Layout --- */
.service-highlight {
  padding: 100px 0;
  background-color: var(--service-bg);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 60px;
  align-items: center; /* Centre verticalement texte et vidéo */
}

/* --- Colonne Texte --- */
.service-heading {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.service-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 30px;
  max-width: 90%;
}

/* Liste des services */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.check-icon {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* --- Colonne Vidéo --- */
.service-media {
  width: 100%;
}

/* Wrapper responsive pour iframe (ratio 16:9) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 4px; /* Très léger arrondi, presque carré */
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Bouton CTA (Rappel du style précédent) --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0; /* Carré */
  border: 2px solid var(--primary-color);
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.cta-button:hover .cta-icon path {
  stroke: var(--primary-color);
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

.cta-icon {
  transition: transform 0.2s ease;
}

.cta-icon path {
  transition: stroke 0.2s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .service-container {
    grid-template-columns: 1fr; /* Empilement vertical */
    gap: 40px;
  }
  
  .service-content {
    order: 1; /* Texte en premier */
  }
  
  .service-media {
    order: 2; /* Vidéo en dessous */
  }
  
  .service-intro {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .service-highlight {
    padding: 60px 0;
  }
  
  .service-container {
    padding: 0 24px;
  }
  
  .service-heading {
    font-size: 1.8rem;
  }

  .cta-button {
    width: 100%; /* Bouton pleine largeur sur mobile */
    justify-content: center;
  }
}

/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       BOOOK     XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */



:root {
  --primary-color: #2C5370;
  --accent-color: #e74c3c; /* Rouge pour les promos/prix */
  --text-dark: #111;
  --text-muted: #666;
  --bg-ebooks: #ffffff;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ebooks-section {
  padding: 80px 0;
  background-color: var(--bg-ebooks);
}

.ebooks-container {
  max-width: 1300px; /* Largeur adaptée pour 4 cartes */
  margin: 0 auto;
  padding: 0 40px;
}

.ebooks-header {
  text-align: center;
  margin-bottom: 50px;
}

/* Wrapper du carousel */
.ebooks-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Piste de défilement */
.ebooks-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px; /* Espace entre les livres */
  padding: 20px 5px; /* Padding pour l'ombre et le hover */
  
  /* Cacher la scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.ebooks-track::-webkit-scrollbar {
  display: none;
}

/* Carte eBook */
.ebook-card {
  flex: 0 0 calc(25% - 22.5px); /* 4 cartes visibles (100% / 4) moins le gap */
  scroll-snap-align: start;
  
  background: #fff;
  border-radius: 8px;
  /* Optionnel : bordure légère ou ombre */
  /* border: 1px solid #eee; */
  
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Container Image (Ratio Livre) */
.ebook-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* Format standard livre */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  background: #f0f0f0;
}

/* Images (Front & Back) */
.ebook-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ebook-cover.back {
  opacity: 0;
  transform: scale(1.1); /* Léger zoom initial */
}

/* Effet au survol */
.ebook-image-container:hover .ebook-cover.front {
  opacity: 0;
}

.ebook-image-container:hover .ebook-cover.back {
  opacity: 1;
  transform: scale(1); /* Zoom normal */
}

/* Badge Promo */
.badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Détails */
.ebook-details {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ebook-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
  
  /* Limiter à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ebook-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 15px 0;
  line-height: 1.5;
  
  /* Limiter à 3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Prix */
.ebook-price {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.95rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
}

/* Bouton Voir (Style simple texte ou petit bouton) */
.ebook-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  align-self: center;
}

.ebook-btn:hover {
  border-bottom-color: var(--primary-color);
}

/* Flèches de navigation (Style identique aux témoignages) */
.nav-arrow {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.nav-arrow:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.prev-arrow { margin-right: 15px; }
.next-arrow { margin-left: 15px; }

/* Responsive */

/* Tablette (3 livres) */
@media (max-width: 1100px) {
  .ebook-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

/* Petite Tablette (2 livres) */
@media (max-width: 768px) {
  .ebook-card {
    flex: 0 0 calc(50% - 15px);
  }
  .ebooks-container {
    padding: 0 20px;
  }
}

/* Mobile (1 livre) */
@media (max-width: 500px) {
  .ebook-card {
    flex: 0 0 85%; /* On montre un bout du suivant pour inciter au scroll */
  }
  .nav-arrow {
    display: none; /* Cache les flèches sur mobile, le swipe suffit */
  }
  .ebooks-track {
    padding-right: 20px; /* Espace à droite pour le dernier item */
  }
}





/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       Consulting     XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */

:root {
  --primary-color: #2C5370;
  --bg-consulting: #f8f9fa; /* Gris très clair pour détacher la section */
  --text-dark: #111;
  --text-body: #555;
}

.consulting-expert-section {
  padding: 100px 0;
  background-color: var(--bg-consulting);
  overflow: hidden; /* Pour gérer les images qui dépassent si besoin */
}

.consulting-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Texte un peu plus large que l'image */
  gap: 80px;
  align-items: center;
}

/* --- Colonne Gauche (Texte) --- */
.consulting-header {
  margin-bottom: 40px;
}

.service-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.service-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.consulting-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.consulting-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 90%;
}

/* Liste des services */
.consulting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.consulting-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Carré */
  border-radius: 0; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.item-content {
  flex: 1;
}

.item-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.item-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

/* --- Colonne Droite (Image + CTA) --- */
.consulting-image-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligne le contenu à droite */
  gap: 30px;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5; /* Format portrait élégant */
  max-width: 450px; /* Limite la largeur */
}

.expert-photo {
    width: 100%;
    height: auto; /* Maintains the 600x900 ratio on desktop */
    display: block;
    border-radius: 12px; /* Optional: smooth corners */
}

/* Badge expérience flottant */
.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  border-left: 4px solid var(--primary-color);
}

.experience-badge .years {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.experience-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-body);
}

/* CTA aligné à droite sous l'image */
.cta-container-right {
  width: 100%;
  max-width: 450px; /* S'aligne avec la largeur de l'image */
  display: flex;
  justify-content: flex-end; /* Pousse le bouton à droite */
  padding-top: 10px;
}

/* Style Bouton (Réutilisation) */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  border: 2px solid var(--primary-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.cta-button:hover .cta-icon path {
  stroke: var(--primary-color);
}

/* Responsive */
@media (max-width: 762px) {
  .consulting-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .consulting-image-col {
    align-items: center;
  }

  /* ✅ FIX : Le wrapper contrôle la hauteur, plus de conflit */
  .image-wrapper {
    max-width: 100%;
    height: 350px;        /* Le wrapper lui-même a la hauteur fixe */
    aspect-ratio: unset;  /* Annule le 16/9 du desktop */
    overflow: hidden;     /* CRITIQUE : empêche la photo de déborder */
    border-radius: 12px;
  }

  /* ✅ L'image remplit 100% du wrapper et se croppe proprement */
  .expert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0; /* Le wrapper gère le border-radius */
    box-shadow: none;
  }

  /* ✅ Badge déplacé en bas-gauche INSIDE l'image (valeurs positives) */
  .experience-badge {
    bottom: 15px;   /* Positif = à l'intérieur, collé en bas */
    left: 15px;     /* Positif = à l'intérieur, collé à gauche */
  }

  .cta-container-right {
    justify-content: center;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .consulting-expert-section {
    padding: 60px 0;
  }

  .consulting-container {
    padding: 0 24px;
  }

  .consulting-title {
    font-size: 1.8rem;
  }

  /* Plus besoin de repositionner le badge ici, le breakpoint 762px s'en charge */
  .experience-badge {
    bottom: 12px;
    left: 12px;
    padding: 12px 14px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}



/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXX       footer    XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --- */
/* --- Footer Tension1 (Amélioré & Fully Responsive) --- */
:root {
  --footer-bg: #eeeeee;
  --footer-text: #333;
  --footer-muted: #555;
  --footer-title: #000;
  --footer-bar-bg: #000;
  --footer-bar-text: #fff;

  --radius: 14px;
  --container: 1300px;
  --pad-x: 40px;
  --pad-y: 80px;

  --focus: #0b5fff;
}

.footer-valcourt {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--pad-y) 0 0 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  border-top: 1px solid #e5e7eb;
}

/* === MAIN GRID LAYOUT === */
.footer-v-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x) 60px var(--pad-x);
  
  display: grid;
  /* Desktop: 5 columns. The first column (logo) gets 1.5 fractions of space, the rest get 1 fraction */
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  column-gap: 30px;
  row-gap: 40px;
  align-items: start;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Large Laptops / Small Desktops (max 1100px) 
   We keep 5 columns but allow them to squeeze slightly. */
@media (max-width: 1100px) {
  .footer-v-container {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    column-gap: 20px;
  }
}

/* Tablets (max 992px)
   Switch to 3 columns. The logo column spans all 3 columns at the top. */
@media (max-width: 992px) {
  .footer-v-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .f-v-col.logo-col {
    grid-column: 1 / -1; /* Forces the first column to take the full width */
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Large Mobile / Small Tablets (max 768px)
   Switch to 2 columns. */
@media (max-width: 768px) {
  .footer-v-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px 50px 30px;
  }
}

/* Mobile Phones (max 576px)
   Switch to 1 single column, centered text. */
@media (max-width: 576px) {
  .footer-v-container {
    grid-template-columns: 1fr;
    padding: 0 20px 40px 20px;
    text-align: center;
    row-gap: 35px;
  }
  
  .f-v-col.logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .f-v-social {
    justify-content: center;
  }

  .f-v-logo {
    margin: 0 auto;
  }
}

/* === FOOTER ELEMENTS STYLING === */

.f-v-col.logo-col { 
  max-width: 320px; 
}

.f-v-brand { 
  display: inline-block; 
}

.f-v-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.footer-slogan {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--footer-muted);
}

.f-v-address {
  font-style: normal;
  margin: 0;
  color: var(--footer-text);
  line-height: 1.6;
}

.f-v-address strong {
  display: block;
  margin-bottom: 5px;
  color: #111;
}

.f-v-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--footer-title);
  letter-spacing: 0.2px;
}

.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 25px; }

.f-v-link,
.f-v-text {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-v-link:hover {
  color: var(--focus);
}

.f-v-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-v-list li { 
  margin-bottom: 10px; 
}

.f-v-list li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.f-v-list li a:hover { 
  color: var(--focus);
}

/* === SOCIAL MEDIA ICONS === */
.f-v-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.f-v-social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.f-v-social-link:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* === ACCESSIBILITY === */
.footer-valcourt a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .f-v-social-link { transition: none; }
}

/* === BOTTOM BLACK BAR === */
.footer-black-bar {
  background-color: var(--footer-bar-bg);
  color: var(--footer-bar-text);
  padding: 22px 0;
  text-align: center;
}

.footer-v-container-small {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #9ca3af;
}

@media (max-width: 576px) {
  .footer-v-container-small { 
    padding-left: 20px; 
    padding-right: 20px; 
  }
}
