/* ============================================
   PAGE SERVICES - REDESIGN
   ============================================ */

/* ============================================
   HEADER UNIFORME POUR TOUTES LES PAGES
   ============================================ */

.page-header-uniform {
    padding: 100px 0 40px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--blue-primary);
}

.page-header-uniform .header-content {
    max-width: 100%;
}

.page-header-uniform .header-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--blue-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header-uniform .header-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    color: var(--blue-primary);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.page-header-uniform .header-line {
    width: 60px;
    height: 2px;
    background: var(--blue-primary);
    margin-bottom: 15px;
}

.page-header-uniform .header-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.page-header-uniform .header-subtitle .header-highlight {
    color: var(--blue-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header-uniform {
        padding: 80px 0 30px 0;
        margin-bottom: 30px;
    }
    
    .page-header-uniform .header-title {
        font-size: 28px;
    }
}

/* ============================================
   CONTENEUR UNIFORME POUR TOUTES LES PAGES
   ============================================ */

.page-main-uniform {
    min-height: 100vh;
    margin-right: calc(var(--cartouche-width) + 40px);
    padding: 40px;
    width: calc(100% - var(--cartouche-width) - 80px);
    max-width: calc(100vw - var(--cartouche-width) - 80px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-main-uniform .page-inner {
    max-width: 900px;
    width: 100%;
}

/* Header centré */
.page-main-uniform .page-header-uniform {
    text-align: center;
}

.page-main-uniform .page-header-uniform .header-content {
    text-align: center;
}

.page-main-uniform .page-header-uniform .header-line {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive conteneur */
@media (max-width: 1024px) {
    .page-main-uniform {
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
}

/* ============================================
   PAGE SIMULATEUR HONORAIRES
   ============================================ */

.simulateur-wrapper {
    width: 100%;
    max-width: 100%;
}

.simulateur-wrapper .simulateur-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Masquer le header du simulateur (on utilise celui du thème) */
.simulateur-wrapper .sim-header {
    display: none;
}

/* Ajuster la grille blueprint du simulateur */
.simulateur-wrapper .blueprint-grid {
    display: none;
}

/* ============================================
   FIN HEADER UNIFORME
   ============================================ */

.page-services-redesign,
.page-process-redesign {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* HERO SECTION */
.service-hero,
.process-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 0 80px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--blue-primary);
    position: relative;
}

.service-hero-content,
.process-hero-content {
    max-width: 60%;
}

.technical-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-earth);
    border: 1px solid var(--blue-earth);
    padding: 4px 10px;
    margin-bottom: 20px;
    background: rgba(30, 74, 143, 0.05);
}

.service-hero h1,
.process-hero h1 {
    font-size: var(--text-4xl);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--blue-primary);
    font-weight: 300;
}

.service-hero h1 strong,
.process-hero h1 strong {
    font-weight: 700;
}

.hero-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 600px;
    font-family: var(--font-sans);
}

.service-hero-graphic {
    width: 30%;
    opacity: 0.6;
}

/* SERVICES LIST */
.services-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.service-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    position: relative;
}

.service-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-code {
    font-family: var(--font-mono);
    color: var(--blue-primary);
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--paper-bg);
    z-index: 2;
    padding: 5px;
}

.marker-line {
    width: 1px;
    height: 100%;
    background: var(--blue-light);
    flex-grow: 1;
}

.service-content h2 {
    font-size: 32px;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.service-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blue-earth);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    columns: 2;
    column-gap: 40px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(91, 159, 255, 0.05);
    padding: 30px;
    border: 1px dashed var(--blue-light);
    max-width: 600px;
    list-style: none;
}

.service-features li {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--blue-primary);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--blue-earth);
}

/* PAGE PROCESS REDESIGN */
.process-timeline-vertical {
    border-left: 1px solid var(--blue-light);
    margin-left: 50px;
    padding-left: 50px;
}

.process-phase {
    position: relative;
    margin-bottom: 80px;
}

.process-phase:last-child {
    margin-bottom: 0;
}

.phase-sidebar {
    position: absolute;
    left: -130px;
    top: 0;
    text-align: right;
    width: 60px;
}

.phase-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: rgba(30, 74, 143, 0.1);
    line-height: 1;
}

.phase-acronym {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-primary);
    margin-top: 5px;
}

.phase-content h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--blue-primary);
}

.phase-content h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--blue-earth);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.phase-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.phase-details {
    background: #fff;
    border: 1px solid var(--blue-light);
    padding: 25px;
    max-width: 600px;
    box-shadow: 4px 4px 0 rgba(30, 74, 143, 0.1);
}

.phase-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.phase-details li {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--blue-success, #2ecc71);
    font-weight: bold;
}

/* CTA Styles */
.services-nav-footer, .process-footer-cta {
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid var(--blue-light);
    padding-top: 60px;
}

.nav-next {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-next:hover {
    transform: translateX(10px);
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.nav-title {
    font-size: 24px;
    color: var(--blue-primary);
    font-weight: 700;
}

.btn-architect {
    display: inline-block;
    background: var(--blue-primary);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--blue-primary);
}

.btn-architect:hover {
    background: transparent;
    color: var(--blue-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 74, 143, 0.2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .service-hero, .process-hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 100px;
    }

    .service-hero-content, .process-hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .service-hero-graphic {
        display: none;
    }

    .service-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-marker {
        flex-direction: row;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .marker-line {
        height: 1px;
        width: 100%;
        margin-left: 10px;
    }

    .service-description {
        columns: 1;
    }

    .service-features, 
    .phase-details ul {
        grid-template-columns: 1fr;
    }

    .process-timeline-vertical {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .phase-sidebar {
        position: relative;
        left: 0;
        text-align: left;
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        align-items: baseline;
        gap: 15px;
    }

    .phase-number {
        font-size: 24px;
    }
}

/* ============================================
   NOUVEAUX STYLES PROCESS - PHASES HONORAIRES
   ============================================ */

/* Phase préliminaire (optionnelle) */
.process-phase.phase-preliminary {
    opacity: 0.85;
    padding-left: 20px;
    border-left: 3px dashed var(--blue-light);
    margin-left: -23px;
}

.process-phase.phase-preliminary .phase-number {
    color: rgba(30, 74, 143, 0.05);
}

.process-phase.phase-preliminary .phase-acronym {
    font-size: 10px;
}

/* Résultat de phase */
.phase-result {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(91, 159, 255, 0.08) 0%, rgba(30, 74, 143, 0.05) 100%);
    border-left: 3px solid var(--blue-primary);
    font-size: 14px;
    color: var(--blue-primary);
}

.phase-result strong {
    font-weight: 600;
}

/* Warning de phase */
.phase-warning {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

.phase-warning strong {
    font-weight: 600;
}

/* Teaser honoraires */
.process-honoraires-link {
    margin-top: 80px;
    padding: 0 20px;
}

.honoraires-teaser {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 40px;
    background: #fff;
    border: 2px solid var(--blue-primary);
    box-shadow: 6px 6px 0 rgba(30, 74, 143, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.teaser-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.teaser-content {
    flex: 1;
}

.teaser-content h3 {
    font-size: 20px;
    color: var(--blue-primary);
    margin-bottom: 8px;
}

.teaser-content p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.btn-architect.btn-outline {
    background: transparent;
    color: var(--blue-primary);
    flex-shrink: 0;
}

.btn-architect.btn-outline:hover {
    background: var(--blue-primary);
    color: #fff;
}

/* Responsive pour nouveaux éléments */
@media (max-width: 768px) {
    .process-phase.phase-preliminary {
        margin-left: 0;
        padding-left: 15px;
    }
    
    .honoraires-teaser {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    
    .teaser-icon {
        font-size: 32px;
    }
    
    .btn-architect.btn-outline {
        width: 100%;
    }
}


/* ============================================
   PAGE SERVICES V4 - REDESIGN MODERNE
   ============================================ */

/* Reset et isolation pour Services V4 */
.page-services-v4,
.page-services-v4 * {
    box-sizing: border-box;
}

.page-services-v4 {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* Masquer les éléments parasites qui ne devraient pas être là */
.page-services-v4 .services-next-link {
    clear: both;
}

/* Hero Section */
.page-services-v4 .services-hero-v4 {
    padding: 120px 0 60px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--blue-primary);
    width: 100%;
    display: block;
}

.page-services-v4 .services-hero-v4 .hero-content {
    max-width: 700px;
}

.page-services-v4 .services-hero-v4 h1 {
    font-size: clamp(36px, 6vw, 48px);
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--blue-primary);
    font-weight: 300;
}

.page-services-v4 .services-hero-v4 .hero-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
}

/* Grid de services - FORCE 2 colonnes */
.page-services-v4 .services-grid-v4 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Cards de service */
.page-services-v4 .service-card-v4 {
    background: #fff;
    border: 1px solid var(--blue-light, #e0e8f0);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    min-height: auto;
    float: none;
}

.page-services-v4 .service-card-v4:hover {
    border-color: var(--blue-primary);
    box-shadow: 6px 6px 0 rgba(30, 74, 143, 0.1);
    transform: translateY(-2px);
}

.page-services-v4 .service-card-v4.featured {
    border: 2px solid var(--blue-primary);
    background: linear-gradient(135deg, rgba(91, 159, 255, 0.03) 0%, rgba(30, 74, 143, 0.02) 100%);
}

.page-services-v4 .service-card-v4.featured::before {
    content: "Notre spécialité";
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--blue-primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icône de la card */
.page-services-v4 .service-card-v4 .card-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 74, 143, 0.05);
    border-radius: 8px;
}

/* Contenu de la card */
.page-services-v4 .service-card-v4 .card-content {
    flex: 1;
    min-width: 0;
}

.page-services-v4 .service-card-v4 .card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.page-services-v4 .service-card-v4 .service-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(30, 74, 143, 0.3);
    font-weight: 700;
}

.page-services-v4 .service-card-v4 h2 {
    font-size: 20px;
    color: var(--blue-primary);
    margin: 0;
    font-weight: 600;
}

.page-services-v4 .service-card-v4 .service-intro {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-services-v4 .service-card-v4 .service-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-services-v4 .service-card-v4 .service-list li {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-primary);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.page-services-v4 .service-card-v4 .service-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--blue-earth, #5b9fff);
    font-weight: bold;
}

/* Lien vers Étapes clés */
.page-services-v4 .services-next-link {
    margin-top: 60px;
    padding: 0;
    width: 100%;
}

.page-services-v4 .next-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px 40px;
    background: linear-gradient(135deg, rgba(30, 74, 143, 0.03) 0%, rgba(91, 159, 255, 0.05) 100%);
    border: 1px dashed var(--blue-primary);
    max-width: 100%;
    margin: 0;
}

.page-services-v4 .next-teaser .teaser-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-earth);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.page-services-v4 .next-teaser .teaser-content h3 {
    font-size: 22px;
    color: var(--blue-primary);
    margin-bottom: 8px;
}

.page-services-v4 .next-teaser .teaser-content p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.page-services-v4 .services-cta-v4 {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--blue-light);
    padding-top: 50px;
}

.page-services-v4 .services-cta-v4 p {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 25px;
}

/* Responsive Services V4 */
@media (max-width: 1024px) {
    .page-services-v4 .services-grid-v4 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .page-services-v4 .services-hero-v4 {
        padding-top: 100px;
    }
    
    .page-services-v4 .services-hero-v4 h1 {
        font-size: 32px;
    }
    
    .page-services-v4 .service-card-v4 {
        flex-direction: column;
        padding: 25px;
        gap: 15px;
    }
    
    .page-services-v4 .service-card-v4 .card-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .service-card-v4 h2 {
        font-size: 18px;
    }
    
    .next-teaser {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 25px;
    }
    
    .next-teaser h3 {
        font-size: 20px;
    }
}

