/* =====================================================================
   William PEREZ - Dépannage & Assistance Informatique Escalquens
   Feuille de style commune à toutes les pages du site
   ===================================================================== */
:root {
    --primary: #00306e;
    --secondary: #008fcc;
    --sap-pink: #ed008c;
    --dark: #1a1a1a;
    --light: #ffffff;
    --bg-light: #f4f7f6;
    --shadow: 0 4px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; margin: 0; line-height: 1.6; color: var(--dark); background-color: var(--light); padding-bottom: 66px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ===================== HERO (page d'accueil) ===================== */
.top-header {
    background: linear-gradient(135deg, #00306e 0%, #004fa3 55%, #008fcc 100%);
    padding: 50px 20px 40px;
    position: relative;
    overflow: hidden;
}
.top-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.top-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    position: relative;
    z-index: 1;
}
.header-map { flex: 1; text-align: center; }
.header-map img {
    width: 100%; max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.15);
}
.header-content { flex: 1.2; text-align: left; color: white; }

.sap-badge-top {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--sap-pink);
    color: white; font-size: 0.8rem; font-weight: 700;
    padding: 5px 16px; border-radius: 50px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(237,0,140,0.4);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.logo-title {
    font-size: 3rem; font-weight: 800; color: white;
    margin: 0; line-height: 1.05;
    text-transform: uppercase; letter-spacing: 1px;
}
.subtitle {
    font-size: 1.2rem; color: rgba(255,255,255,0.8);
    margin: 8px 0 20px; font-weight: 400;
}
.header-bullet-points {
    list-style: none; padding: 0; margin: 0 0 28px 0;
    display: inline-block; text-align: left;
}
.header-bullet-points li {
    margin-bottom: 8px; font-size: 1rem; color: rgba(255,255,255,0.9);
}
.header-bullet-points li::before {
    content: '✓'; color: #5ddcff; font-weight: bold; margin-right: 10px;
}
.big-phone {
    font-size: 3.5rem; font-weight: 800; color: white;
    text-decoration: none; display: inline-block;
    transition: var(--transition); line-height: 1;
}
.big-phone:hover { color: #5ddcff; }
.hours {
    font-size: 1rem; color: rgba(255,255,255,0.7);
    font-weight: 500; margin-top: 6px; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-cta {
    display: inline-block;
    margin-top: 18px;
    background: white; color: var(--primary);
    font-size: 1rem; font-weight: 700;
    padding: 12px 28px; border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-cta:hover { background: #f0f8ff; transform: translateY(-1px); }
.sap-badge-footer {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(237,0,140,0.15);
    border: 1px solid rgba(237,0,140,0.4);
    color: #ffb3dd; font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px; border-radius: 50px; margin-top: 16px;
}

/* ===================== PAGE HERO (pages piliers / communes) ===================== */
.page-hero {
    background: linear-gradient(135deg, #00306e 0%, #004fa3 55%, #008fcc 100%);
    padding: 34px 20px 38px;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.page-hero-inner { max-width: 950px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.page-hero .page-lead { font-size: 1.08rem; color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 0 22px; }
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.page-hero-ctas .big-phone { font-size: 2.1rem; }
.page-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: white; font-size: 0.8rem; font-weight: 600;
    padding: 6px 14px; border-radius: 50px;
}

/* ===================== NAV ===================== */
nav.mainnav { background: var(--secondary); padding: 15px 0; text-align: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.nav-links { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; gap: 34px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: white; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.nav-links a:hover { color: #d0f0ff; }

/* ===================== STICKY CALL BAR (mobile) ===================== */
.sticky-call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
    display: none;
    background: var(--primary);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-call-bar-inner { display: flex; }
.sticky-call-bar a {
    flex: 1; text-align: center; padding: 14px 8px;
    color: white; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sticky-call-bar a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.sticky-call-bar .sc-call { background: #28a745; }
.sticky-call-bar .sc-whatsapp { background: #25D366; }
@media (max-width: 780px) {
    .sticky-call-bar { display: block; }
    body { padding-bottom: 58px; }
}

/* ===================== CONTAINER ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }
.container.narrow { max-width: 850px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--primary); }
.section-title span { color: var(--secondary); }

/* ===================== CONTENU EDITORIAL (pages piliers) ===================== */
.content-block { max-width: 850px; margin: 0 auto 50px; }
.content-block h2 { color: var(--primary); font-size: 1.5rem; margin: 0 0 14px; }
.content-block h2 span { color: var(--secondary); }
.content-block p { color: #444; font-size: 1rem; margin: 0 0 16px; }
.content-block ul.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.content-block ul.check-list li { padding: 4px 0 4px 26px; position: relative; color: #444; }
.content-block ul.check-list li::before { content: '✓'; position: absolute; left: 0; color: #28a745; font-weight: 700; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 50px; }
.step-card { background: white; border: 1px solid #e8eef5; border-radius: 14px; padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.step-number { width: 34px; height: 34px; border-radius: 50%; background: var(--secondary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.step-card h3 { color: var(--primary); font-size: 1.05rem; margin: 0 0 8px; }
.step-card p { color: #555; font-size: 0.9rem; margin: 0; }

.mini-cta {
    background: var(--primary); color: white; border-radius: 16px;
    padding: 30px; text-align: center; margin: 0 auto 50px; max-width: 850px;
    box-shadow: var(--shadow);
}
.mini-cta h2 { color: white; margin: 0 0 8px; font-size: 1.5rem; }
.mini-cta p { color: rgba(255,255,255,0.85); margin: 0 0 18px; }
.mini-cta .hero-cta { background: var(--sap-pink); color: white; }
.mini-cta .hero-cta:hover { background: #d1007c; }

.related-pages { max-width: 950px; margin: 0 auto 20px; }
.related-pages h2 { text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.related-card {
    display: block; background: white; border: 1px solid #e8eef5; border-radius: 12px;
    padding: 18px 20px; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.09); }
.related-card strong { display: block; color: var(--primary); font-size: 0.98rem; margin-bottom: 4px; }
.related-card span { color: #666; font-size: 0.85rem; }

.commune-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.commune-pill { background: #e8f4fd; color: var(--primary); font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; }

.testi-box {
    background: var(--bg-light); border-left: 4px solid var(--secondary);
    border-radius: 10px; padding: 18px 22px; margin-bottom: 16px;
}
.testi-box p { margin: 0 0 8px; color: #444; font-style: italic; font-size: 0.95rem; }
.testi-box .testi-stars { color: #FBBC05; letter-spacing: 2px; margin-bottom: 6px; }
.testi-box .testi-name { font-weight: 700; color: var(--primary); font-size: 0.85rem; font-style: normal; }

/* ===================== SERVICES (accueil) ===================== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 60px; }
.service-item {
    display: flex; align-items: flex-start; gap: 18px;
    background: white; padding: 24px; border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8eef5;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}
.service-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.service-item.pink { border-left-color: var(--sap-pink); }
.service-icon-wrap {
    width: 46px; height: 46px; border-radius: 12px;
    background: #e8f4fd; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.service-icon-wrap.pink { background: #fce8f3; }
.service-icon-wrap svg { width: 26px; height: 26px; fill: var(--secondary); }
.service-item.pink .service-icon-wrap svg { fill: var(--sap-pink); }
.service-content h3 { margin: 0 0 10px 0; font-size: 1.15rem; color: var(--primary); }
.service-content ul { padding-left: 16px; margin: 0; color: #555; font-size: 0.88rem; }
.service-content li { margin-bottom: 4px; }

/* ===================== SAP BANNER ===================== */
.sap-banner { background: var(--primary); color: white; padding: 40px; border-radius: 16px; text-align: center; margin-bottom: 60px; box-shadow: var(--shadow); }
.sap-banner h2 { color: var(--sap-pink); font-size: 2rem; margin-top: 0; }
.sap-banner p { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,0.85); }

/* ===================== TARIFS ===================== */
.tarifs-intro { text-align: center; margin-bottom: 36px; }
.tarifs-intro p { color: #555; font-size: 1rem; max-width: 650px; margin: 0 auto; }

.tarif-horaire-bloc {
    background: var(--primary);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0,48,110,0.18);
}
.tarif-horaire-bloc .th-label { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500; }
.tarif-horaire-bloc .th-price { font-size: 3.2rem; font-weight: 800; color: white; line-height: 1; }
.tarif-horaire-bloc .th-price span { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.6); }
.tarif-horaire-bloc .th-after { background: #28a745; color: white; border-radius: 30px; padding: 6px 18px; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.tarif-horaire-bloc .th-note { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-top: 6px; }

.forfaits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.forfait-card {
    background: white;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.forfait-card:hover { box-shadow: 0 6px 24px rgba(0,48,110,0.1); transform: translateY(-2px); }
.forfait-card.highlight { border-color: var(--sap-pink); border-width: 2px; }
.forfait-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.forfait-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: #e8f4fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.forfait-icon svg { width: 22px; height: 22px; fill: var(--secondary); }
.forfait-card.highlight .forfait-icon { background: #fce8f3; }
.forfait-card.highlight .forfait-icon svg { fill: var(--sap-pink); }
.forfait-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 0; }
.forfait-subtitle { font-size: 0.78rem; color: #888; margin: 2px 0 0 0; }
.forfait-price-row { margin-bottom: 4px; }
.forfait-price { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; }
.forfait-price-label { font-size: 0.82rem; color: #888; }
.forfait-net-row { margin-bottom: 10px; }
.forfait-net { font-size: 1.9rem; font-weight: 800; color: #28a745; line-height: 1; }
.forfait-net-label { font-size: 0.82rem; color: #28a745; font-weight: 600; }
.forfait-includes { list-style: none; padding: 0; margin: 12px 0 0 0; border-top: 1px solid #f0f0f0; padding-top: 12px; }
.forfait-includes li { font-size: 0.83rem; color: #555; padding: 3px 0; display: flex; align-items: flex-start; gap: 7px; }
.forfait-includes li::before { content: "✓"; color: #28a745; font-weight: 700; flex-shrink: 0; }
.forfait-badge { display: inline-block; background: var(--sap-pink); color: white; font-size: 0.72rem; font-weight: 700; border-radius: 20px; padding: 2px 10px; margin-bottom: 10px; }

.tarif-sap-note {
    background: #f0f9ff; border: 1px solid #bce0f5; border-radius: 12px;
    padding: 16px 24px; display: flex; align-items: center; gap: 14px;
    font-size: 0.88rem; color: #444; margin-bottom: 60px;
}
.tarif-sap-note strong { color: var(--primary); }

.distanciel-bloc { margin: 50px 0 30px; }
.distanciel-title { text-align: center; font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; }
.distanciel-title span { color: var(--secondary); font-weight: 500; font-size: 1.1rem; }
.distanciel-intro { text-align: center; color: #555; font-size: 1rem; max-width: 680px; margin: 0 auto 18px; }
.distanciel-warning {
    background: #fff7ed; border: 1px solid #fcd9a8; border-radius: 12px;
    padding: 14px 22px; color: #92510a; font-size: 0.92rem;
    max-width: 760px; margin: 0 auto 26px; text-align: center;
}
.distanciel-warning strong { color: #92510a; }
.distanciel-badge {
    background: #fff4f4; color: #c0392b; font-size: 0.8rem; font-weight: 700;
    border-radius: 8px; padding: 6px 10px; margin: 10px 0; text-align: center;
}
.distanciel-note {
    font-size: 0.85rem; color: #666; max-width: 760px; margin: 22px auto 0;
    text-align: center; line-height: 1.5;
}
.distanciel-note strong { color: var(--primary); }

@media (max-width: 900px) {
    .tarif-horaire-bloc { flex-direction: column; text-align: center; }
}

/* ===================== FAQ ===================== */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--light); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 4px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; font-size: 1.4rem; color: var(--secondary); transition: var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; color: #444; font-size: 0.95rem; }

/* ===================== CONTACT ===================== */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-bottom: 60px; }
.contact-info, .contact-form-box {
    background: white; padding: 30px; border-radius: 16px;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #e8f4fd; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--secondary); }
.contact-row-text strong { display: block; color: var(--primary); font-size: 0.85rem; margin-bottom: 2px; }
.contact-row-text a, .contact-row-text span { font-size: 1rem; color: var(--dark); text-decoration: none; }
.contact-row-text a:hover { color: var(--secondary); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea,
.review-form input, .review-form select, .review-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #dde3eb;
    border-radius: 10px; font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; box-sizing: border-box;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.contact-form input:focus, .contact-form textarea:focus,
.review-form input:focus, .review-form select:focus, .review-form textarea:focus {
    outline: none; border-color: var(--secondary);
    background: white;
}
.btn {
    background: var(--secondary); color: white; padding: 13px;
    border: none; border-radius: 10px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    font-size: 1rem; width: 100%; font-family: 'Poppins', sans-serif;
}
.btn:hover { background: var(--primary); }

/* ===================== AVIS ===================== */
.reviews-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.review-box {
    background: white; padding: 30px; border-radius: 16px;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.qr-code-img { width: 130px; height: 130px; margin: 0 auto 15px; border: 2px solid #ddd; border-radius: 10px; padding: 5px; background: #fff; display: block; }
.liste-avis { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; max-height: 300px; overflow-y: auto; padding-right: 10px; }
.avis-publie { background: var(--bg-light); padding: 15px; border-radius: 10px; border-left: 4px solid var(--secondary); }

/* ===================== FOOTER ===================== */
footer { background: var(--primary); color: rgba(255,255,255,0.75); text-align: center; padding: 30px 20px; font-size: 0.9rem; }
footer a { color: var(--secondary); text-decoration: none; }
footer strong { color: white; }
footer .footer-links { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
footer .footer-links a { color: rgba(255,255,255,0.75); }
footer .footer-links a:hover { color: white; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .header-container { flex-direction: column; text-align: center; gap: 30px; }
    .header-content { text-align: center; }
    .header-bullet-points { text-align: center; margin: 0 auto 28px auto; }
    .big-phone { font-size: 2.8rem; }
    .services-grid, .reviews-container, .contact-container { grid-template-columns: 1fr; }
    .service-item { flex-direction: column; align-items: center; text-align: center; }
    .page-hero-ctas { justify-content: center; text-align: center; flex-direction: column; }
    .page-hero { text-align: center; }
    .page-hero .page-lead { margin-left: auto; margin-right: auto; }
    .page-hero-badges { justify-content: center; }
}
