/**
 * TNC - Pages Services
 * Fichier : /wp-content/themes/tnc-custom/assets/css/tnc-pages-services.css
 * Utilisation : Pages services (création sites web, GMB, réseaux sociaux, à propos)
 */

/* ========== SECTIONS GÉNÉRALES ========== */

.tnc-section {
    padding: clamp(60px, 10vw, 80px) clamp(20px, 4vw, 40px);
}

.tnc-section-light {
    background: #ffffff;
}

.tnc-section-light-bg {
    background: #F0EEE9;
}

.tnc-section-gradient {
    background: linear-gradient(135deg, #F0EEE9 0%, #ffffff 100%);
}

.tnc-section-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.tnc-section-wrapper-lg {
    max-width: 1000px;
    margin: 0 auto;
}

/* ========== TITRES & INTROS ========== */

.tnc-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #1C1C1C;
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 40px);
    line-height: 1.2;
}

.tnc-section-title-colored {
    color: #BB2649;
}

.tnc-section-intro {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    color: #595959; /* corrigé : était #666 → 5.7:1 ✓ */
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tnc-section-intro-sub {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    color: #595959;
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    line-height: 1.7;
}

.tnc-section-intro-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    color: #595959;
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    line-height: 1.7;
}

.tnc-section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: #BB2649;
    margin-bottom: 20px;
}

/* ========== EYEBROW / SURTITRE ========== */

.tnc-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4956A;
    margin-bottom: clamp(12px, 2vw, 16px);
    text-align: center;
}

/* ========== GRILLES & CARDS ========== */

.tnc-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(24px, 4vw, 30px);
}

.tnc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 30px);
}

.tnc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 4vw, 30px);
}

@media (max-width: 1024px) {
    .tnc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tnc-grid-3,
    .tnc-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* CARDS */

.tnc-card {
    background: #ffffff;
    border-radius: 4px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid #D4C5BE;
    transition: all 0.3s ease;
    position: relative;
    padding-top: clamp(40px, 5vw, 50px);
}

.tnc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tnc-card-accent {
    width: 40px;
    height: 3px;
    background: #C4956A;
    border-radius: 2px;
    position: absolute;
    top: clamp(20px, 3vw, 30px);
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.tnc-card-accent-magenta {
    background: #BB2649;
}

.tnc-card-accent-caramel {
    background: #C4956A;
}

.tnc-card-featured {
    border: 2px solid #BB2649;
    position: relative;
}

.tnc-card-featured::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #BB2649;
    color: #F0EEE9;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnc-card-border-left {
    border-left: 3px solid #C4956A;
    padding-left: 20px;
}

.tnc-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #BB2649;
    margin: 0 0 12px 0;
}

.tnc-card-title-dark {
    color: #1C1C1C;
}

.tnc-card-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #595959; /* corrigé : était #666 */
    margin: 0;
    line-height: 1.6;
}

/* ========== LISTES ========== */

.tnc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(24px, 4vw, 40px) 0;
}

.tnc-list-item {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #595959;
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.tnc-list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #C4956A;
    font-weight: 500;
}

/* ========== BOÎTES D'ACCENT ========== */

.tnc-accent-box {
    background: #F5E6EA;
    border-radius: 4px;
    padding: clamp(24px, 4vw, 40px);
    border-left: 3px solid #BB2649;
}

.tnc-accent-box-light {
    background: #F0EEE9;
    border-left-color: #C4956A;
}

.tnc-accent-box-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #BB2649;
    margin: 0 0 clamp(12px, 2vw, 16px) 0;
}

.tnc-accent-box-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    color: #595959;
    margin: 0;
    line-height: 1.8;
}

/* ========== BOUTONS & CTA ========== */

.tnc-btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 3vw, 32px);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1vw, 1rem);
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tnc-btn-primary {
    background: #BB2649;
    color: #F0EEE9;
}

.tnc-btn-primary:hover {
    background: #9B1F39;
    color: #F0EEE9;
}

.tnc-btn-secondary {
    background: #C4956A;
    color: #ffffff;
}

.tnc-btn-secondary:hover {
    background: #A67A4F;
    color: #ffffff;
}

.tnc-btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

/* CTA SECTION */

.tnc-cta-section {
    text-align: center;
    padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 40px);
}

.tnc-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #BB2649;
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}

.tnc-cta-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1vw, 1.0625rem);
    color: #595959;
    margin-bottom: clamp(24px, 4vw, 32px);
    line-height: 1.8;
}

.tnc-cta-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #767676; /* corrigé : était #999 → 2.4:1 ❌ — #767676 → 4.6:1 ✓ */
    margin: 0;
    margin-top: clamp(16px, 2vw, 24px);
}

/* ========== NUMÉROTATION ========== */

.tnc-numbered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(24px, 4vw, 30px);
}

.tnc-numbered-item {
    position: relative;
    padding-left: 40px;
}

.tnc-numbered-item::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #BB2649;
    color: #F0EEE9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.tnc-numbered-item.alt::before {
    background: #C4956A;
    color: #ffffff;
}

.tnc-numbered-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #BB2649;
    margin: 0 0 8px 0;
}

.tnc-numbered-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #595959;
    margin: 0;
    line-height: 1.6;
}

/* ========== ÉTAPES / FLOW ========== */

.tnc-flow-container {
    display: grid;
    gap: 16px;
}

.tnc-flow-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tnc-flow-number {
    width: 40px;
    height: 40px;
    background: #BB2649;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #F0EEE9;
    font-size: 1.2rem;
}

.tnc-flow-number-magenta {
    background: #BB2649;
    color: #F0EEE9;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 auto 20px;
}

.tnc-flow-number-caramel {
    background: #C4956A;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 auto 20px;
}

.tnc-flow-number.alt {
    background: #C4956A;
    color: #ffffff;
}

.tnc-flow-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #595959;
    margin: 0;
    line-height: 1.6;
}

.tnc-flow-separator {
    text-align: center;
    color: #C4956A;
    font-size: 1.5rem;
    margin: 8px 0;
}

/* ========== PRIX ========== */

.tnc-price {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #BB2649;
    margin: 0;
}

.tnc-price-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #767676; /* corrigé : était #999 → 2.4:1 ❌ */
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnc-price-unit {
    font-size: 0.6em;
}

/* ========== BADGES ========== */

.tnc-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tnc-badge {
    display: inline-block;
    padding: 4px clamp(8px, 1vw, 10px);
    border-radius: 12px;
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tnc-badge-secteur {
    background: #BB2649;
    color: #F0EEE9;
}

.tnc-badge-type {
    background: #D4C5BE;
    color: #1C1C1C;
}

/* ===== PILLS (MAGENTA - APPROCHE HYBRIDE) ===== */

.tnc-pill {
    display: inline-block;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px);
    background: #BB2649;
    color: #F0EEE9;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========== COMPARAISON ========== */

.tnc-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.tnc-comparison-box {
    border: 1px solid #D4C5BE;
    border-radius: 4px;
    padding: 24px;
    background: #FFF3F5;
}

.tnc-comparison-box.positive {
    background: #F0F8F5;
}

.tnc-comparison-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #BB2649;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnc-comparison-box.positive .tnc-comparison-label {
    color: #006B4A;
}

.tnc-comparison-quote {
    background: #ffffff;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 3px solid #BB2649;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #595959;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.tnc-comparison-box.positive .tnc-comparison-quote {
    border-left-color: #006B4A;
}

.tnc-comparison-notes {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #767676; /* corrigé : était #999 */
    margin: 0;
    line-height: 1.5;
}

/* ========== RESPONSIVE SUPPLÉMENTAIRE ========== */

@media (max-width: 768px) {
    .tnc-section-title {
        margin-bottom: clamp(20px, 4vw, 30px);
    }

    .tnc-grid-3,
    .tnc-grid-2 {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 20px);
    }
}


/* ========================================================
   PAGE SERVICES WEB — Ajouts spécifiques
   Ces classes complètent le système tnc- ci-dessus.
   Préfixe sw- pour éviter tout conflit.
   ======================================================== */


/* ── Performance : rendu différé sections hors viewport ── */
.sw-hybrid,
.sw-outils,
.sw-features,
.sw-process,
.sw-faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}


/* ── Sous-titre hero ── */
.sw-hero-sub {
    font-size: clamp(0.95rem, 1vw + 0.7rem, 1.0625rem);
    font-weight: 300;
    color: #595959; /* 7.0:1 ✓ */
    max-width: 560px;
    margin: 0 0 28px;
    line-height: 1.8;
}

.sw-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}


/* ── Cards "Types de sites" ──
   Étend .tnc-card avec numérotation et mention "idéal pour". */
.sw-type-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    color: #D4C5BE;
    display: block;
    margin-bottom: 8px;
}
.tnc-card-featured .sw-type-num {
    color: #BB2649;
    opacity: 0.25;
}

.sw-type-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.sw-type-list li {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #595959; /* 7.0:1 ✓ */
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.5;
}
.sw-type-list li::before {
    content: '—';
    color: #C4956A;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.sw-type-ideal {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 300;
    color: #767676; /* 4.6:1 ✓ */
    padding-top: 16px;
    border-top: 1px solid #D4C5BE;
    line-height: 1.5;
    margin-top: auto;
}


/* ── Outils : icône emoji en haut de .tnc-card ── */
.sw-outil-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}


/* ── Processus 4 colonnes (page services uniquement) ── */
.sw-steps-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1024px) {
    .sw-steps-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .sw-steps-4 {
        grid-template-columns: 1fr !important;
    }
}


/* ── FAQ accordéon natif <details>/<summary> ──
   Zéro JS. Eligible aux Featured Snippets Google.   */
.sw-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #D4C5BE;
    border-left: 1px solid #D4C5BE;
}

.sw-faq-item {
    border-right: 1px solid #D4C5BE;
    border-bottom: 1px solid #D4C5BE;
}

.sw-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #BB2649; /* 5.97:1 ✓ */
    line-height: 1.3;
    user-select: none;
    transition: background 0.15s ease;
}
.sw-faq-item summary::-webkit-details-marker { display: none; }

.sw-faq-item summary::after {
    content: '+';
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 1.4rem;
    color: #C4956A;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}
.sw-faq-item[open] summary::after {
    transform: rotate(45deg);
}
.sw-faq-item summary:hover,
.sw-faq-item[open] summary {
    background: #F0EEE9;
}

.sw-faq-item > p,
.sw-faq-item > ul {
    padding: 0 24px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #595959; /* 7.0:1 ✓ */
    line-height: 1.75;
    margin: 0;
}
.sw-faq-item > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 0;
}
.sw-faq-item > ul + p {
    padding-top: 8px;
}
.sw-faq-item > ul li {
    font-size: 0.88rem;
    color: #595959;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.sw-faq-item > ul li::before {
    content: '—';
    color: #C4956A;
    font-size: 0.7rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sw-faq-grid {
        grid-template-columns: 1fr;
        border-left: none;
    }
    .sw-faq-item {
        border-left: 1px solid #D4C5BE;
    }
}


/* ========================================================
   CLASSES STRUCTURELLES — sections et grilles sw-
   (complètent les sous-éléments déjà définis ci-dessus)
   ======================================================== */

/* ── Section header générique (remplace section-header de homepage.css) ── */
.tnc-section-header {
    margin-bottom: clamp(40px, 6vw, 56px);
}
.tnc-section-header.tnc-text-center,
.tnc-text-center { text-align: center; }
.tnc-text-center .tnc-section-intro { margin-left: auto; margin-right: auto; }

/* ── Détail d'étape (remplace hp-step-detail de homepage.css) ── */
.tnc-step-detail {
    margin: 10px 0 0;
    padding-left: 12px;
    border-left: 2px solid #D4C5BE;
    font-size: 0.82rem;
    font-style: italic;
    color: #767676; /* 4.6:1 ✓ */
    line-height: 1.6;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
}


/* ── Section types de sites ── */
.sw-types {
    padding: clamp(80px, 10vw, 110px) clamp(20px, 4vw, 40px);
    background: #ffffff;
}
.sw-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .sw-types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .sw-types-grid { grid-template-columns: 1fr; }
}

/* Cards types : extend .tnc-card — reset padding-top du pseudo-element */
.sw-types-grid .tnc-card {
    padding-top: clamp(24px, 4vw, 32px);
    display: flex;
    flex-direction: column;
}

/* ── Section outils ── */
.sw-outils {
    padding: clamp(80px, 10vw, 110px) clamp(20px, 4vw, 40px);
    background: #ffffff;
}
.sw-outils-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .sw-outils-grid { grid-template-columns: 1fr; }
}

/* Carte outil */
.sw-outil-card {
    padding: clamp(24px, 4vw, 32px);
    background: #F0EEE9;
    border-radius: 4px;
    border: 0.5px solid #D4C5BE;
    transition: box-shadow 0.2s ease;
}
.sw-outil-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.sw-outil-card h3 {
    margin-bottom: 10px;
}
.sw-outil-card p {
    font-size: 0.9rem !important;
    font-weight: 300 !important;
    color: #595959 !important;
    line-height: 1.75 !important;
    margin: 0;
}

/* ── Section features (renforce section-features de style.css) ── */
.sw-features {
    padding: clamp(80px, 10vw, 110px) clamp(20px, 4vw, 40px);
}

/* ── Section process ── */
.sw-process {
    padding: clamp(80px, 10vw, 110px) clamp(20px, 4vw, 40px);
    background: #F0EEE9;
}

/* ── Section FAQ ── */
.sw-faq {
    padding: clamp(80px, 10vw, 110px) clamp(20px, 4vw, 40px);
    background: #ffffff;
}

/* ── Performance ── */
.sw-hybrid, .sw-outils, .sw-features, .sw-process, .sw-faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}