

:root {
    --primary-red: #B50717;
    --primary-blue: #152440;
    --primary-black: #111111;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.expertise-hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 520px;
}

.bg-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.bg-slide.active { opacity: 1; }

.bg-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(21, 36, 64, 0.65) 0%, 
        rgba(21, 36, 64, 0.55) 100%);
}

.bg-slide-1 { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80'); }
.bg-slide-2 { background-image: url('https://images.unsplash.com/photo-1559526324-4b87b5e36e44?w=1920&q=80'); }
.bg-slide-3 { background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80'); }

.slider-container {
    position: relative;
    width: 100%; height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-content {
    text-align: center;
    padding: 40px;
    max-width: 1100px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.expertise-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: subtleBlink 2.8s ease-in-out infinite;
}

@keyframes subtleBlink {
    0%,100% { opacity: 0.85; }
    50%      { opacity: 1.0;  }
}

.section-title {
    color: white;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.12em solid #fff;
    width: 0ch;
    margin-left: auto;
    margin-right: auto;
    animation: typing 3.2s steps(32, end) forwards,
               blink-caret 0.7s step-end infinite;
}

@keyframes typing     { from { width: 0ch; } to { width: 32ch; } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: white } }

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton principal → page contact */
.contact-btn {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 10px 50px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: pulse 2.2s infinite;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.contact-btn:hover::before { left: 140%; }
.contact-btn:hover { transform: translateY(-3px); color: var(--primary-red); background: white; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(181,7,23,0.6); }
    70%  { box-shadow: 0 0 0 18px rgba(181,7,23,0); }
    100% { box-shadow: 0 0 0 0 rgba(181,7,23,0); }
}

/* Dots et flèches */
.slider-dots {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: var(--primary-red);
    box-shadow: 0 0 15px rgba(181,7,23,0.8);
}

.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(181,7,23,0.5); }
.slider-arrow.prev { left: 40px; }
.slider-arrow.next { right: 40px; }

/* ============================================================
   SECTIONS — commons
   ============================================================ */
.expertise-content   { padding: 40px 0; background: white; }
.section-header      { text-align: center; margin-bottom: 40px; }

.section-header h2 {
    color: var(--primary-blue);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: var(--primary-red);
}

/* ============================================================
   SERVICE ROWS (alternées image / texte — identiques à E2)
   ============================================================ */
.service-row {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.service-row:nth-child(2) { animation-delay: 0.1s; }
.service-row:nth-child(3) { animation-delay: 0.2s; }
.service-row:nth-child(4) { animation-delay: 0.3s; }

.service-content-left,
.service-content-right { padding: 10px; position: relative; }

.service-number {
    position: absolute;
    top: -20px; left: 40px;
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-red);
    opacity: 0.08;
    z-index: 0;
}

.service-icon-inline {
    display: inline-flex;
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary-red), #d4082a);
    border-radius: 15px;
    align-items: center; justify-content: center;
    font-size: 32px; color: white;
    margin-bottom: 25px;
    position: relative; z-index: 1;
}

.service-title {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-description {
    color: #666;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.service-benefits { list-style: none; padding: 0; margin: 0; }

.service-benefits li {
    color: #444;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.service-benefits li i {
    position: absolute; left: 0; top: 3px;
    color: var(--primary-red);
    font-size: 20px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    height: 300px;
}

.image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25,1,0.5,1);
}

.image-wrapper:hover img { transform: scale(1.08); }

/* ============================================================
   SECTION MÉTHODOLOGIE (même style E2)
   ============================================================ */
#methodology-section {
    margin-top: -30px;
    margin-bottom: 20px;
}

.methodology-content {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.04);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(35px);
    transition: all 1.2s ease;
}

.methodology-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.methodology-title {
    color: var(--primary-blue);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
}

.title-underline {
    position: absolute;
    bottom: -8px; left: 0;
    width: 0; height: 5px;
    background: var(--primary-red);
    transition: width 1.1s ease;
}

.methodology-content.visible .title-underline { width: 100%; }

.methodology-text {
    color: #555;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 30px;
    text-align: justify;
}

.methodology-highlight {
    background: var(--primary-red);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
}

/* ============================================================
   DOMAINES D'INTERVENTION — split layout
   ============================================================ */
.domains-section {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.domains-split {
    display: grid;
    grid-template-columns: 380px 1fr;

}

.domains-left {
    background: var(--primary-blue);
    padding: 70px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.domains-left::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(181,7,23,0.75);
}

.domains-eyebrow {
    display: inline-block;
    color: var(--primary-red);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.domains-left h2 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.domains-intro {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.domains-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
    gap: 0;
}

.domain-line {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease calc(var(--i) * 0.12s),
                transform 0.6s ease calc(var(--i) * 0.12s),
                background 0.25s ease;
    border-radius: 10px;
    cursor: default;
    padding-left: 12px;
    padding-right: 12px;
}

.domain-line:first-child { border-top: 1px solid #eee; }

.domain-line.revealed {
    opacity: 1;
    transform: translateX(0);
}

.domain-line:hover {
    background: #f8f7f4;
}

.domain-line:hover .dl-num {
    color: var(--primary-red);
}

.dl-num {
    font-size: 28px;
    font-weight: 900;
    color: #ddd;
    min-width: 46px;
    transition: color 0.25s;
    line-height: 1;
}

.dl-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dl-content strong {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 700;
}

.dl-content span {
    color: #888;
    font-size: 13px;
}

.dl-icon {
    color: #ccc;
    font-size: 20px;
    transition: color 0.25s, transform 0.25s;
}

.domain-line:hover .dl-icon {
    color: var(--primary-red);
    transform: scale(1.2);
}

/* ============================================================
   NOTRE DIFFÉRENCE — fond blanc, 4 piliers verticaux
   ============================================================ */
.ndiff-section {
    padding: 90px 0;
    background: #f8f7f4;
}

.ndiff-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 70px;
}

.ndiff-eyebrow {
    display: inline-block;
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ndiff-headline h2 {
    color: var(--primary-blue);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.ndiff-intro-text p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    padding-top: 8px;
}

.ndiff-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.ndiff-pillar {
    padding: 40px 28px;
    border-right: 1px solid #e2e2e2;
    position: relative;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease calc(var(--pi) * 0.1s),
                transform 0.6s ease calc(var(--pi) * 0.1s),
                background 0.3s ease;
}

.ndiff-pillar:last-child { border-right: none; }

.ndiff-pillar.revealed {
    opacity: 1;
    transform: translateY(0);
}

.ndiff-pillar:hover {
    background: var(--primary-blue);
}

.ndiff-pillar-bar {
    width: 40px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
    margin-bottom: 28px;
    transition: width 0.4s ease;
}

.ndiff-pillar:hover .ndiff-pillar-bar {
    width: 100%;
}

.ndiff-pillar-icon {
    display: block;
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.ndiff-pillar:hover .ndiff-pillar-icon {
    transform: scale(1.15);
}

.ndiff-pillar p {
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    transition: color 0.3s ease;
}

.ndiff-pillar:hover p {
    color: white;
}

/* ============================================================
   NOTRE PROMESSE — plein écran photo + overlay fort
   ============================================================ */
.npromise-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.npromise-bg-image {
    position: absolute;
    inset: 0;
    padding-top: 60px;
    background-image: url('/img/slider_img/staffTof.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.npromise-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(21, 36, 64, 0.65) 0%, 
        rgba(21, 36, 64, 0.55) 100%);
}

.npromise-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 90px 24px;
    max-width: 820px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.npromise-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.npromise-eyebrow {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 22px;
    border-radius: 50px;
    margin-bottom: 36px;
}

.npromise-statement {
    color: white;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 28px;
}

.npromise-detail {
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    line-height: 1.75;
    margin-bottom: 50px;
}

.npromise-detail strong {
    color: white;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 1px;
}

.npromise-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-red);
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 2.2s infinite;
}

.npromise-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.6s ease;
}

.npromise-btn:hover::before { left: 140%; }
.npromise-btn:hover {
    transform: translateY(-3px);
    color: var(--primary-red);
    background: white;
}

/* ============================================================
   RESPONSIVE — nouvelles sections
   ============================================================ */
@media (max-width: 1100px) {
    .ndiff-pillars { grid-template-columns: repeat(2, 1fr); }
    .ndiff-pillar:nth-child(2) { border-right: none; }
    .ndiff-pillar:nth-child(1),
    .ndiff-pillar:nth-child(2) { border-bottom: 1px solid #e2e2e2; }
}

@media (max-width: 992px) {
    .domains-split { grid-template-columns: 1fr; }
    .domains-left { padding: 50px 30px; }
    .domains-left::after { display: none; }
    .domains-right { padding: 40px 30px; }
    .ndiff-header { grid-template-columns: 1fr; gap: 20px; }
    .ndiff-headline h2 { font-size: 36px; }
}

@media (max-width: 768px) {
    .ndiff-pillars { grid-template-columns: 1fr; border-radius: 12px; }
    .ndiff-pillar { border-right: none; border-bottom: 1px solid #e2e2e2; }
    .ndiff-pillar:last-child { border-bottom: none; }
    .ndiff-pillar:hover .ndiff-pillar-bar { width: 40px; }
    .npromise-bg-image { background-attachment: scroll; }
    .npromise-detail { font-size: 17px; }
}




/* ── SLIDER RESPONSIVE ── */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        white-space: normal;
        width: auto !important;
        border-right: none;
        animation: none;
    }
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    .slide-content {
        padding: 20px 16px;
    }
    .contact-btn {
        font-size: 14px;
        padding: 10px 28px;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 22px; }
    .hero-subtitle { font-size: 14px; }
    .expertise-badge { font-size: 11px; padding: 6px 16px; }
}

/* ── STOPPER LE CLIGNOTEMENT DU CURSEUR ── */
.section-title {
    animation: typing 3.2s steps(32, end) forwards;
    border-right: none;
}


@media (max-width: 991px) {
    .expertise-hero {
        height: 65vh;
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .expertise-hero {
        height: 58vh;
        min-height: 380px;
    }
}