/* ============================================================
   REYDEV — CSS des pages de service (SEO / playbook Locations)
   Design system : Swiss Modern minimal (cohérent avec style.css)
   Typo : Space Grotesk (display) + Inter (corps) + JetBrains Mono
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #123451;
    --second-color: #1e3a5f;
    --noir: #000;
    --bg-primary: #123451;
    --bg-secondary: #0a0a0a;
    --bg-page: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #55575c;
    --accent-primary: #007aff;
    --accent-secondary: #34c759;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
    --bg-primary: #123451;
    --bg-secondary: #0a0a0a;
    --bg-page: #0d1724;
    --text-primary: #f5f5f7;
    --text-secondary: #a9b2bd;
    --accent-primary: #2997ff;
    --accent-secondary: #0a84ff;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(18, 52, 81, 0.9);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-primary);
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: #fff;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-header .logo img {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.site-header .logo span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-mode {
    position: relative;
    width: 104px;
    height: 40px;
}

.header-actions .btn-mode button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.header-actions .btn-mode button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

[data-theme="light"] .header-actions #btn-sombre,
[data-theme="dark"] .header-actions #btn-claire {
    opacity: 1;
    pointer-events: auto;
}

.header-actions a.btn-header {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-actions a.btn-header.btn-ghost {
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.header-actions a.btn-header.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.header-actions a.btn-header.btn-whatsapp {
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-actions a.btn-header.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 5% 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.4rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ---------- Hero de page ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--second-color) 100%);
    color: #fff;
    text-align: center;
    padding: 4.5rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 22, 36, 0.55);
    z-index: 1;
    pointer-events: none;
}

.page-hero .hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.page-hero .eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #9fd0ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero h1 span {
    background: linear-gradient(135deg, #7fd8ff, #a8f0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto 1.8rem;
}

.page-hero .hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.page-hero .cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    min-height: 48px;
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.4);
    transition: all 0.3s ease;
}

.page-hero .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(41, 151, 255, 0.55);
}

.page-hero .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    min-height: 48px;
    transition: all 0.3s ease;
}

.page-hero .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.page-hero .trust-line {
    margin-top: 1.4rem;
    font-size: 0.88rem;
    opacity: 0.8;
}

.page-hero .trust-line i {
    color: #17ce82;
    margin-right: 0.3rem;
}

/* ---------- Contenu ---------- */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.section-block {
    margin-bottom: 3.5rem;
}

.section-block h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.section-block h2 .accent {
    color: var(--accent-primary);
}

.section-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.section-block ul {
    margin: 1rem 0 1.5rem;
    padding-left: 1.4rem;
    color: var(--text-secondary);
    display: grid;
    gap: 0.5rem;
}

.section-block ul li::marker {
    color: var(--accent-primary);
}

.section-block strong {
    color: var(--text-primary);
}

/* Grille de cartes (services inclus / cas d'usage) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.info-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.94rem;
    margin: 0;
}

/* Tableau des prix */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: var(--bg-primary);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-table td strong {
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .price-table {
        font-size: 0.85rem;
    }
    .price-table th,
    .price-table td {
        padding: 0.75rem 0.9rem;
    }
}

/* Bloc prix / CTA */
.cta-box {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--second-color) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 2.6rem 2rem;
    text-align: center;
    margin: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.6rem;
}

.cta-box .cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-box .cta-primary,
.cta-box .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    min-height: 48px;
    transition: all 0.3s ease;
}

.cta-box .cta-primary {
    background: #25d366;
    color: #fff;
}

.cta-box .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.cta-box .cta-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.cta-box .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ---------- FAQ ---------- */
.faq-section {
    max-width: 860px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

/* ---------- Liens internes (maillage hub-and-spoke) ---------- */
.related-pages {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 0 5% 1rem;
}

.related-pages h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.related-grid a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.related-grid a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.related-grid a i {
    color: var(--accent-primary);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--noir);
    color: var(--text-secondary);
    padding: 2.2rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-primary);
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .header-actions .btn-ghost {
        display: none;
    }
    .page-hero {
        padding: 3.2rem 5% 2.8rem;
    }
    .page-content {
        padding: 2.5rem 5%;
    }
    .cta-box {
        padding: 2rem 1.4rem;
    }
}

/* ---------- Réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   DROPDOWN "Prestations" (header pages services) — maillage interne
   ============================================================ */
.nav-services {
    position: relative;
}

.nav-services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-services-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-services-toggle:hover,
.nav-services.open .nav-services-toggle {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.nav-services.open .nav-services-toggle i,
.nav-services:hover .nav-services-toggle i {
    transform: rotate(180deg);
}

/* Pont invisible : le survol traverse l'espace entre le bouton et le menu */
.nav-services::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.6rem;
}

.nav-services-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem;
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.nav-services:hover .nav-services-menu,
.nav-services:focus-within .nav-services-menu,
.nav-services.open .nav-services-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-services-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-services-menu a i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.nav-services-menu a:hover {
    background: var(--accent-primary);
    color: #fff;
}

.nav-services-menu a:hover i {
    color: #fff;
}

.nav-services-menu .menu-all {
    justify-content: center;
    font-weight: 600;
    color: var(--accent-primary);
    border-top: 1px solid var(--border);
    margin-top: 0.3rem;
    padding-top: 0.8rem;
}

/* ============================================================
   FOOTER — colonnes de liens (navigation + services)
   ============================================================ */
.site-footer .footer-links {
    gap: 2.5rem 3rem;
    text-align: left;
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.site-footer .footer-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.2rem;
}

.site-footer .footer-col a {
    /* Fond de footer toujours sombre : lien clair dans les deux thèmes */
    color: #a9b2bd;
    font-size: 0.92rem;
}

.site-footer .footer-col a:hover {
    color: var(--accent-primary);
}

@media (max-width: 640px) {
    .nav-services {
        display: none;
    }

    .site-footer .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.8rem;
    }

    .site-footer .footer-col {
        align-items: center;
    }
}
