/* Custom CSS for carousel full width */

/* Remove padding from row and columns for clients section */
.clients.owl-carousel {
    width: 100% !important;
    max-width: 100%;
}

/* Override Bootstrap grid padding for carousel parent */
.clients.owl-carousel,
.clients.owl-carousel .owl-stage-outer,
.clients.owl-carousel .owl-stage {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.clients.owl-carousel .client-block {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
}

.clients.owl-carousel .client-block img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Adjust carousel navigation positioning */
.clients.owl-carousel .owl-nav {
    width: 100%;
}

/* Ensure the carousel container takes full width */
.clients.owl-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==========================================================
   MULTI-PAGE LAYOUT — minimal overrides for stacked sections
   ========================================================== */

/* Make the content area scroll internally through all stacked sections.
   We keep height:100% and position:absolute to preserve the sidebar layout. */
.content-area {
  overflow-y: auto !important;
}

/* === Fix: remove internal header scrollbar and fix header-content height ===
     We override the original template rules conservatively here so the header
     expands to its content (no internal scroll) and header-content stays auto-sized.
*/
@media only screen and (min-width: 1025px) {
    .header {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .header-content {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
    }

    /* Tighten header spacing so content sits higher */
    .header {
        padding-top: 40px !important; /* slight downward shift from 30px */
        padding-bottom: 30px !important;
    }

    .header-photo {
        margin: 0 auto 12px !important;
    }
}

/* HERO improvements */
[data-id="hero"] .section-content {
    position: relative;
    padding: 40px 60px !important;
}

[data-id="hero"] .hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

[data-id="hero"] .hero-inner h1 {
    font-size: 36px;
    line-height: 1.06;
    margin: 18px 0 14px;
    color: #111;
}

[data-id="hero"] .hero-inner h4 {
    font-size: 18px;
    color: #f9966f;
    font-weight: 600;
}

[data-id="hero"] .hero-inner p {
    font-size: 15px;
    color: #444;
    margin-bottom: 22px;
}

.home-buttons .btn-primary {
    padding: 14px 40px;
    border-radius: 30px;
    box-shadow: 0 12px 30px rgba(249,150,111,0.18);
}

.home-buttons .btn-secondary {
    padding: 12px 28px;
    background: transparent;
    color: #666;
    border: 1px solid rgba(0,0,0,0.06);
}

.home-buttons .btn-primary + .btn-secondary {
    margin-left: 12px;
}

@media only screen and (max-width: 1024px) {
    [data-id="hero"] .hero-inner { padding: 0 20px; }
    [data-id="hero"] .hero-inner h1 { font-size: 28px; }
}

/* Typography - conservative reduction of heading sizes */
h1 {
    font-size: 36px;
    line-height: 1.08;
}

h2 {
    font-size: 26px;
    line-height: 1.15;
}

h3 {
    font-size: 20px;
    line-height: 1.2;
}

@media only screen and (max-width: 1024px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
}

@media only screen and (max-width: 480px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
}

/* (hero background option removed) */

/* Global spacing and block title improvements */
.page-section .section-content {
    padding: 28px 40px !important;
}

.block-title h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #111;
}

.block-title h4 {
    color: #666;
    font-weight: 400;
    margin-top: 6px;
}

.home-buttons .btn-primary {
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.home-buttons .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(249,150,111,0.18);
}

/* --- Cartes de service numérotées (page Services) --- */
.svc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    padding: 28px 32px;
    margin-bottom: 16px;
    transition: box-shadow 0.25s ease;
}

.svc-card:last-child {
    margin-bottom: 0;
}

.svc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.svc-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.svc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f9966f;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.svc-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.svc-message {
    background: #f8f9fb;
    border-left: 3px solid #f9966f;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

/* Service card style for simple cases */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

@media only screen and (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
}
/* First section (Hero) gets a bit more top breathing room */
.page-sections .page-section:first-child .section-content {
    padding-top: 50px !important;
}

/* 
     ALIGNMENT ADJUSTMENT
     The Hero has an extra 10px from .home-text. 
     We add that same offset to all other sections to match.
*/
.page-section:not([data-id="hero"]) .section-content {
    padding-left: 50px !important; /* 40px + 10px to match Hero's internal text offset */
}

/* Align list items - removing the dashes for now as requested */
.page-section ul.list-style {
    padding-left: 1.2em !important;
    margin-left: 0 !important;
    list-style-type: disc !important; /* Back to standard bullets */
}

.page-section ul.list-style li {
    margin-bottom: 8px;
}

.page-section ul.list-style li::before {
    content: none !important; /* Remove the custom dash */
}

/* --- Client Logos Normalization --- */
.clients.owl-carousel .client-block {
    height: 100px; /* Fixed height for the block */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    margin-bottom: 0 !important;
}
.clients.owl-carousel .client-block img {
  max-height: 50px !important;
  width: auto !important;
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smoother "Mac-like" transition */
}

.clients.owl-carousel .client-block img:hover {
  opacity: 1;
  transform: scale(1.3); /* Accentuated zoom */
  z-index: 10;
  position: relative;
}

/* --- Tags Redesign --- */
.tags-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: flex-start !important;
}

.custom-tag {
  display: inline-block !important;
  padding: 8px 18px !important;
  background-color: rgba(249, 150, 111, 0.08) !important; /* Soft Primary tint */
  color: #f9966f !important; /* Primary color */
  border: 1px solid rgba(249, 150, 111, 0.3) !important;
  border-radius: 50px !important; /* Pill shape */
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: default;
}

.custom-tag:hover {
  background-color: #f9966f !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 150, 111, 0.2) !important;
}

/* --- About Page Specific Styles --- */

.text-gradient {
    background: linear-gradient(90deg, #111 0%, #f9966f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-hero-text h3 {
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Timeline Simple */
.timeline-simple {
    position: relative;
    padding-left: 30px;
}

.timeline-simple::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #eee;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #eee;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
    border-color: #f9966f;
    background: #f9966f;
}

.timeline-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #555;
}

.timeline-item.active .timeline-content h4 {
    color: #111;
    font-weight: 600;
}

/* Info Blocks */
.info-block-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid #f2f7f9;
}

.info-block-item:hover {
    transform: translateY(-5px);
}

.info-block-item .ci-icon {
    font-size: 32px;
    color: #f9966f;
    margin-bottom: 20px;
}

.info-block-item h4 {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Differentiation Card */
.card-differentiation {
    background: linear-gradient(135deg, #f9966f 0%, #f74d75 100%);
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(249, 150, 111, 0.2);
}

.card-differentiation h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.card-differentiation p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Styled List */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
}

.styled-list li::before {
    content: "\e810"; /* Lnr checkmark or equivalent icon code */
    font-family: 'linearicons';
    position: absolute;
    left: 0;
    color: #f9966f;
    font-weight: bold;
}

/* Tags */
.tag-outline {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 13px;
    margin: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

.tag-outline:hover {
    border-color: #f9966f;
    color: #f9966f;
}

/* Utility */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.opacity-70 { opacity: 0.7; }

/* Responsive */
@media only screen and (max-width: 768px) {
    .mt-mobile-40 { margin-top: 40px; }
    .about-hero-photo { margin-top: 30px; }
}

/* --- Horizontal Timeline --- */
.timeline-horizontal {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 80px 0;
    margin-top: 40px;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    transform: translateY(-50%);
    z-index: 1;
}

.h-timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* The dot on the line */
.h-timeline-marker {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #eee;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: default;
}

.h-timeline-item.active .h-timeline-marker {
    background: #f9966f;
    border-color: #f9966f;
    box-shadow: 0 0 0 6px rgba(249, 150, 111, 0.15);
}

/* The label container */
.h-timeline-content {
    position: absolute;
    width: 200px;
    text-align: center;
}

.h-timeline-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
}

.h-timeline-item.active .h-timeline-content h4 {
    color: #111;
    font-weight: 600;
}

/* Alternating Labels */
.h-timeline-item:nth-child(odd) .h-timeline-content {
    bottom: 30px;
}

.h-timeline-item:nth-child(even) .h-timeline-content {
    top: 30px;
}

/* Responsive: Stack vertically on mobile */
@media only screen and (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 30px;
        border-left: 2px solid #eee;
    }
    
    .timeline-horizontal::before {
        display: none;
    }
    
    .h-timeline-item {
        flex-direction: row;
        width: 100%;
        padding-bottom: 40px;
        align-items: flex-start;
    }
    
    .h-timeline-item:last-child {
        padding-bottom: 0;
    }
    
    .h-timeline-marker {
        position: absolute;
        left: -38px;
        top: 0;
    }
    
    .h-timeline-content {
        position: static;
        width: auto;
        text-align: left;
    }
    
    .h-timeline-item:nth-child(odd) .h-timeline-content,
    .h-timeline-item:nth-child(even) .h-timeline-content {
        top: 0;
        bottom: auto;
    }
}

/* --- Contact Action Section --- */
.lm-info-block-simple {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.lm-info-block-simple i {
    font-size: 24px;
    background: rgba(249, 150, 111, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: #f9966f;
}

.lm-info-block-simple h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.lm-info-block-simple span, 
.lm-info-block-simple a {
    font-size: 14px;
    opacity: 0.8;
}

.card-contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    color: #111;
}

.card-contact-form .block-title h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

.card-contact-form .form-control {
    background: #fcfcfc;
    border: 1px solid #eee !important;
    color: #111 !important;
}

.card-contact-form .form-group-with-icon label {
    color: #888;
}
.lm-info-block {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lm-info-block h4 {
    margin-bottom: 0px;
}

.lm-info-block-simple.vertical-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lm-info-block-simple.vertical-info i {
    margin-bottom: 15px;
}

/* --- Premium Colorful Vertical Timeline --- */
.timeline-vertical-premium {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
}

.v-premium-item {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    margin-bottom: 15px; /* Espacement réduit */
    align-items: flex-start;
    width: 100%;
}

.v-premium-item:last-child {
    margin-bottom: 0;
}

/* Année à gauche */
.v-premium-year {
    width: 80px;
    text-align: right;
    padding-right: 30px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Le fil conducteur (ligne verticale épaisse) */
.v-premium-line {
    position: absolute;
    left: 80px;
    top: 5px;
    bottom: -20px; /* Aligné avec la marge de 15px */
    width: 6px;
    background: #f0f0f0;
    z-index: 1;
    border-radius: 3px;
}

.v-premium-item:last-child .v-premium-line {
    bottom: auto;
    height: 35px;
}

/* --- Optimisation Grid Layout (Sidebar étroite & Contenu large) --- */
@media only screen and (min-width: 1025px) {
    .header {
        max-width: 310px !important; /* Réduit d'environ 1/6ème (380px -> 310px) */
        background-color: #000 !important; /* Fond noir opaque */
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .content-area {
        max-width: calc(100% - 310px) !important; /* Plus de place pour le contenu */
    }

    .half-bg {
        left: calc(310px + 55px) !important; /* Calé sur la nouvelle largeur du sidebar + padding page */
    }
}

.header-photo img {
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.header-titles h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff !important;
}

.header-titles h4.subtitle {
    color: #f9966f !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: none;
}

.header-titles h4.subtitle-light {
    color: #bbb !important;
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
}

.sidebar-divider {
    height: 1.5px;
    background: linear-gradient(to right, transparent, #f9966f, transparent);
    margin: 20px auto;
    width: 90%;
    opacity: 0.5;
}

/* --- Sidebar Contact Section --- */
.sidebar-contact {
    padding: 20px 25px 20px 10px;
    margin-top: 10px;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: #ddd;
    font-size: 14px;
}

.icon-box {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.icon-box i {
    font-size: 14px;
    color: #f9966f;
}

.icon-box i.fa-envelope {
    color: #f9966f;
}

.icon-box i.fab.fa-linkedin-in {
    color: #0077b5; /* Official LinkedIn Blue fallback if needed, or stick to orange */
}

/* Me Contacter Button */
.sidebar-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-contact {
    display: inline-block;
    background-color: #f9966f !important;
    color: #fff !important;
    padding: 12px 35px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: none !important;
    box-shadow: 0 10px 20px rgba(249, 150, 111, 0.2) !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(249, 150, 111, 0.3) !important;
    filter: brightness(1.1);
}

.copyrights {
    width: 310px !important;
    max-width: 310px !important;
    left: 0 !important;
    bottom: 5px !important;
    text-align: center !important;
    color: #aaa !important; /* Slightly dimmer to keep focus on CTA */
    opacity: 0.8 !important;
    font-size: 10px !important;
    z-index: 10 !important;
}

/* Suppression définitive de tout débordement horizontal lié au sidebar */
.header {
    overflow-x: hidden !important;
}

/* half-bg et lm-animated-bg restaurés — le blob était uniquement .block-title::after (géré séparément) */

/* Le point sur la ligne */
.v-premium-marker {
    position: absolute;
    left: 75px; 
    top: 5px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid #f0f0f0;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.v-premium-content {
    flex: 1;
    padding-left: 45px;
}

/* Style spécifique pour le dernier jalon en mode "Carte" */
.v-premium-item.as-card .v-premium-content {
    background: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid #f2f7f9;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    margin-left: 20px;
    margin-top: -5px;
}

.v-premium-content h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v-premium-content h4 i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.v-premium-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Couleurs par étapes — items passés en sombre, item actif en orange */
.v-item-1 .v-premium-year, .v-item-1 .v-premium-content h4 { color: #242730; }
.v-item-1 .v-premium-marker { border-color: #242730; }
.v-item-1 .v-premium-line { background: rgba(36, 39, 48, 0.15); }

.v-item-2 .v-premium-year, .v-item-2 .v-premium-content h4 { color: #242730; }
.v-item-2 .v-premium-marker { border-color: #242730; }
.v-item-2 .v-premium-line { background: rgba(36, 39, 48, 0.15); }

.v-item-3 .v-premium-year, .v-item-3 .v-premium-content h4 { color: #242730; }
.v-item-3 .v-premium-marker { border-color: #242730; }
.v-item-3 .v-premium-line { background: rgba(36, 39, 48, 0.15); }

.v-item-4 .v-premium-year, .v-item-4 .v-premium-content h4 { color: #242730; }
.v-item-4 .v-premium-marker { border-color: #242730; }
.v-item-4 .v-premium-line { background: rgba(36, 39, 48, 0.15); }

.v-item-5 .v-premium-year, .v-item-5 .v-premium-content h4 { color: #f9966f; }
.v-item-5 .v-premium-marker { border-color: #f9966f; background: #f9966f; animation: pulse-marker 2s ease-in-out infinite; }
.v-item-5 .v-premium-line { background: rgba(249, 150, 111, 0.2); }

@keyframes pulse-marker {
    0%   { box-shadow: 0 0 0 0 rgba(249, 150, 111, 0.5); }
    60%  { box-shadow: 0 0 0 10px rgba(249, 150, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 150, 111, 0); }
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
    .v-premium-line {
        left: 15px;
    }
    .v-premium-year {
        display: none !important;
    }
    .v-premium-marker {
        left: 10px;
    }
    .v-premium-content {
        padding-left: 35px;
    }
}

/* ==========================================================
   SECTION RHYTHM — Alternance de fonds (home page)
   ========================================================== */

/* Fond gris premium très léger pour faire ressortir les cartes blanches */
.section-bg-light {
    background-color: #f8f9fb !important;
}

/* Dark section — cohérente avec le Hero */
.dark-section {
    background-color: #242730 !important;
    background-image: radial-gradient(circle at 75% 30%, rgba(249, 150, 111, 0.07) 0%, transparent 55%);
    position: relative;
    z-index: 1; /* passe au-dessus du half-bg positionné en absolu */
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 17, 22, 0.45) 0%, transparent 100%);
    pointer-events: none;
}

.dark-section .section-content {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Typographie dans les dark sections */
.dark-section h1,
.dark-section h2,
.dark-section h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dark-section h4 {
    color: #f9966f !important;
}

.dark-section p,
.dark-section li {
    color: #d1d5db !important;
}

.dark-section strong {
    color: #ffffff !important;
}

.dark-section .block-title h4 {
    color: #f9966f !important;
}

/* Masquer le ::after décoratif (pêche) du block-title dans les dark sections */
.dark-section .block-title::after {
    display: none;
}

/* Bouton secondaire adapté aux dark sections */
.dark-section .home-buttons .btn-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
}

.dark-section .home-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Centrage des boutons (section CTA) */
.home-buttons.align-center {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Page Hero System Global --- */
.page-hero {
    background-color: #242730 !important; /* Premium dark slate background to detach from pure black sidebar */
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 30px), /* Inner shadow effect from sidebar */
        radial-gradient(circle at 80% 20%, rgba(249, 150, 111, 0.1) 0%, transparent 60%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 0 !important;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(20,22,28,0.5) 0%, transparent 100%);
    pointer-events: none;
}

/* Let the content breathe, and sit above the background overlays */
.page-hero .section-content {
    position: relative;
    z-index: 2;
    background: transparent !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Adjust typograhy inside the hero for dark mode */
.page-hero .hero-inner,
.page-hero .home-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero h4 {
    color: #f9966f !important; /* Orange primary */
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

.page-hero p {
    color: #d1d5db !important; /* Light grayish text */
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.page-hero .home-buttons .btn-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.page-hero .home-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff !important;
}

/* Alignement des paragraphes quand les titres ont des longueurs variables */
@media (min-width: 768px) {
    [data-id="secondary_contexts"] .info-block-1 h3 {
        min-height: 3em;
    }
}

