/* ==========================================================================
   Plan du site Twaino — Prefix .plan- (2026-05-28)
   ========================================================================== */

/* Override GP layout — full width UNIQUEMENT pour le wrapper de contenu
   (NE TOUCHE PAS au header/navigation/footer qui doivent garder leur max-width GP)
   Cible le grid-container racine body > .site.grid-container, pas les autres. */
.page-template-page-plan #content,
.page-template-page-plan .site-content { display: block !important; }
.page-template-page-plan > .site.grid-container,
.page-template-page-plan .site.grid-container.container.hfeed {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.page-template-page-plan .site-content,
.page-template-page-plan .content-area,
.page-template-page-plan .inside-article,
.page-template-page-plan .entry-content,
.page-template-page-plan .site-main {
    max-width: 100% !important;
    padding: 0 !important;
}
.page-template-page-plan .separate-containers .inside-article { padding: 0 !important; }
.page-template-page-plan .separate-containers .site-main { margin: 0 !important; }
.page-template-page-plan .entry-header,
.page-template-page-plan .entry-title { display: none !important; }
/* Re-affirmation : le header et le nav gardent leur layout GP normal */
.page-template-page-plan .inside-header.grid-container,
.page-template-page-plan .inside-navigation.grid-container,
.page-template-page-plan .inside-footer-widgets.grid-container,
.page-template-page-plan .copyright-bar.grid-container {
    /* Ne rien forcer : laissez GP faire son boulot */
}

/* Wrapper global */
.plan-wrapper {
    overflow-x: clip;
    background: #f7f8f9;
    color: #1f2937;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}
.plan-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

/* ===== HERO (match pages services scp- : navy -> cyan) ===== */
.plan-hero {
    background: linear-gradient(135deg, #010643 0%, #0a1a5c 50%, #0099bc 100%);
    color: #fff;
    padding: 64px 24px 56px;
}
.plan-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.plan-hero-title {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.2;
    color: #fff;
}
.plan-hero-title span { font-size: 0.9em; margin-right: 6px; }
.plan-hero-lead {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.55;
    margin: 0 0 30px;
    color: rgba(255,255,255,0.92);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.plan-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 30px;
}
.plan-stat {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.plan-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.plan-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== BUTTONS (match scp- pages services) ===== */
.plan-btn-primary,
.plan-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
/* Default primary = teal bg / white text (utilise dans sidebar CTA sur fond clair) */
.plan-btn-primary {
    background: #56aea4;
    color: #fff;
}
.plan-btn-primary:hover {
    background: #2a8e84;
    color: #fff;
    transform: translateY(-1px);
}
.plan-btn-outline {
    border-color: #fff;
    color: #fff;
    background: transparent;
}
.plan-btn-outline:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
/* Hero context : btn primary = white bg / teal text (sur fond navy) */
.plan-hero .plan-btn-primary {
    background: #fff;
    color: #2a8e84;
}
.plan-hero .plan-btn-primary:hover {
    background: #f0faf9;
    color: #2a8e84;
}
/* CTA final context : meme logique (sur fond navy) */
.plan-cta-final .plan-btn-primary {
    background: #fff;
    color: #2a8e84;
}
.plan-cta-final .plan-btn-primary:hover {
    background: #f0faf9;
    color: #2a8e84;
}
.plan-btn-large { padding: 14px 32px; font-size: 16px; }
.plan-btn-block { display: flex; width: 100%; }

/* ===== MAIN LAYOUT ===== */
.plan-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* ===== CONTENT (sections) ===== */
.plan-content {
    min-width: 0; /* prevents grid overflow */
}
.plan-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    scroll-margin-top: 100px;
}
.plan-section-title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 600;
    margin: 0 0 8px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-section-title span { font-size: 0.85em; }
.plan-section-lead {
    font-size: 14px;
    color: #575760;
    margin: 0 0 22px;
}
.plan-section-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}
.plan-link-more {
    color: #2a8e84;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.plan-link-more:hover { color: #1f6e66; }

/* ===== SERVICES GRID (cards) ===== */
.plan-grid {
    display: grid;
    gap: 12px;
}
.plan-grid-2col { grid-template-columns: 1fr 1fr; }
.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0faf9;
    border: 1px solid #c8e8e3;
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: all 0.2s ease;
}
.plan-card:hover {
    background: #d8f0eb;
    border-color: #56aea4;
    color: #1f2937;
    transform: translateX(2px);
}
.plan-card-title { font-size: 15px; line-height: 1.3; }
.plan-card-arrow { color: #56aea4; font-size: 18px; font-weight: 600; }

/* ===== TABS ===== */
.plan-tab-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.plan-tab-pill {
    background: #f0f0f0;
    color: #575760;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.plan-tab-pill:hover {
    background: #e0e0e0;
    color: #1f2937;
}
.plan-tab-pill.is-active {
    background: #56aea4;
    color: #fff;
}
.plan-tab-count {
    opacity: 0.8;
    font-weight: 400;
    margin-left: 4px;
}
.plan-tab-panel { display: none; }
.plan-tab-panel.is-active { display: block; }

/* ===== LINK LIST ===== */
.plan-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px 24px;
}
.plan-cols-2 { grid-template-columns: 1fr 1fr; }
.plan-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.plan-link-list li {
    padding: 0;
    line-height: 1.4;
}
.plan-link-list li::before {
    content: "›";
    color: #56aea4;
    margin-right: 6px;
    font-weight: 600;
}
.plan-link-list a {
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}
.plan-link-list a:hover {
    color: #2a8e84;
    text-decoration: underline;
}

/* ===== DEFINITIONS A-Z ===== */
.plan-az-index {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 22px;
    padding: 12px;
    background: #f0faf9;
    border-radius: 10px;
    position: sticky;
    top: 80px;
    z-index: 5;
    border: 1px solid #c8e8e3;
}
.plan-az-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #c8e8e3;
    border-radius: 6px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s ease;
}
.plan-az-link:hover {
    background: #56aea4;
    color: #fff;
    border-color: #56aea4;
}
.plan-az-section {
    margin-bottom: 26px;
    scroll-margin-top: 130px;
}
.plan-az-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #2a8e84;
    border-bottom: 2px solid #c8e8e3;
    padding-bottom: 6px;
}
.plan-az-count {
    font-size: 13px;
    color: #575760;
    font-weight: 400;
}

/* ===== LANGUAGES ===== */
.plan-langs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.plan-langs-list li { margin: 0; }
.plan-langs-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0faf9;
    border: 1px solid #c8e8e3;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.plan-langs-list a:hover {
    background: #d8f0eb;
    border-color: #56aea4;
    color: #1f2937;
}
.plan-flag { font-size: 22px; }

/* ===== SIDEBAR ===== */
.plan-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.plan-sidebar-nav {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
.plan-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    color: #575760;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.plan-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-sidebar-nav li { margin: 0; }
.plan-sidebar-nav a {
    display: block;
    padding: 8px 10px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}
.plan-sidebar-nav a:hover {
    background: #f0faf9;
    color: #2a8e84;
}
.plan-sidebar-nav a.is-active {
    background: #f0faf9;
    color: #2a8e84;
    border-left-color: #56aea4;
    font-weight: 600;
}
.plan-sidebar-cta {
    background: linear-gradient(135deg, #56aea4 0%, #2a8e84 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(86,174,164,0.25);
}
.plan-sidebar-cta-emoji {
    display: inline-block;
    font-size: 28px;
    margin-bottom: 6px;
}
.plan-sidebar-cta p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 14px;
}
.plan-sidebar-cta strong { font-weight: 600; }
.plan-sidebar-cta .plan-btn-primary {
    background: #fff;
    color: #2a8e84;
}

/* ===== CTA FINAL (match scp- pages services : navy -> cyan) ===== */
.plan-cta-final {
    background: linear-gradient(135deg, #010643 0%, #0a1a5c 50%, #0099bc 100%);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}
.plan-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}
.plan-cta-final h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    margin: 0 0 14px;
    color: #fff;
}
.plan-cta-final p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
    color: rgba(255,255,255,0.92);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .plan-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .plan-sidebar {
        position: static;
        order: 2;
    }
    .plan-sidebar-nav { display: none; } /* mobile : sidebar nav cachee, on garde le CTA */
    .plan-content { order: 1; }
}
@media (max-width: 720px) {
    .plan-grid-2col,
    .plan-cols-2,
    .plan-cols-3 { grid-template-columns: 1fr; }
    .plan-langs-list { grid-template-columns: 1fr 1fr; }
    .plan-section { padding: 22px 18px; }
    .plan-hero { padding: 44px 18px 36px; }
    .plan-stats { gap: 8px; }
    .plan-stat { padding: 10px 14px; min-width: 90px; }
    .plan-stat-num { font-size: 22px; }
    .plan-az-index { position: static; }
}
