/* 
   DESIGN SYSTEM : SENIOR-CONFORT.COM 
   Directory Style Inspired by annuaire-pisciniste.fr
*/

:root {
    --primary: #008eb3;
    /* Teal style from inspiration */
    --primary-dark: #006c8a;
    --primary-light: #e0f2f7;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --success: #10b981;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, bigger shadow */
    --font-main: 'Outfit', sans-serif;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* HEADER */
header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text-dark {
    color: #1e293b;
}

.logo-text-accent {
    color: var(--primary);
}

.logo-text-muted {
    color: #94a3b8;
    font-size: 1.2rem;
}

/* HEADER MENU & NAV */
.nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.btn-header {
    background: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 142, 179, 0.3);
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HAMBURGER MENU SCSS/CSS */
#menu-toggle {
    display: none;
}

.hamburger-label {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--secondary);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 5000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-menu-overlay a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#menu-toggle:checked~.mobile-menu-overlay {
    display: flex;
}

/* BREADCRUMBS */
.breadcrumbs {
    padding: 12px 0;
    background: #f8fafc;
    font-size: 0.85rem;
    color: #64748b;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    text-decoration: none;
    color: #64748b;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

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

.breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 300;
}

.breadcrumbs .current {
    color: var(--secondary);
    font-weight: 600;
}

/* HERO SECTION - NEW MODEL */
.hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('Images%20du%20site/Installateur%20Douche%20senior.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.hero-left {
    flex: 0.8;
    /* Approx 40% */
}

.hero-right {
    flex: 1.2;
    /* Approx 60% */
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 142, 179, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 142, 179, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    color: #fbbf24;
    /* Gold stars */
    font-size: 0.95rem;
}

.rating-stars span {
    color: white;
    font-weight: 500;
}

.hero-left h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-left h1 span {
    color: #71B3FF;
}

.hero-left p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-left p span {
    color: #71B3FF;
    font-weight: 700;
}

.hero-features {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.hero-feat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.hero-feat-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.hero-feat-text strong {
    display: block;
    font-size: 0.95rem;
}

.hero-feat-text span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* CARTE WIDGET HERO */
.hero-card {
    background: white;
    color: var(--text-main);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card h2 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-align: center;
}

.hero-card p {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
}

/* LAYOUT WITH SIDEBAR */
.main-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-main {
    flex: 1;
}

.sidebar {
    width: 420px;
    position: sticky;
    top: 120px;
    /* Adjusted to be below the sticky header (approx 80-90px) + some breathing room */
}

/* STICKY BOX STYLE */
.sticky-box {
    background: #f0fcfe;
    /* Inspired by the light blue background in screenshot */
    border: 1px solid #d1f1f7;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 142, 179, 0.05);
}

.sticky-box h3 {
    font-size: 1.45rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.sticky-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.5;
}

.sticky-box p strong {
    color: var(--secondary);
}

.sticky-box ul {
    list-style: none;
    margin-bottom: 30px;
}

.sticky-box li {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    font-weight: 500;
}

.sticky-box li i {
    color: var(--primary);
    font-size: 1.1rem;
    font-style: normal;
}

.sticky-box .btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 8px 25px rgba(0, 142, 179, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.sticky-box .btn-sidebar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.sticky-box .footer-text {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ARTISAN CARDS */
.section-artisans {
    padding: 80px 0;
    background: #f8fafc;
}

.artisan-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.artisan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.artisan-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.artisan-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.artisan-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.artisan-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-card svg {
    width: 20px;
    height: 20px;
}

.btn-card-primary svg {
    color: white;
}

.btn-card-primary {
    background: var(--primary);
    color: white;
}

.btn-card-secondary {
    background: var(--bg-light);
    color: var(--secondary);
    border: 1px solid var(--border);
}

/* SERVICES & FEATURES */
.bg-alt {
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 50px 0;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* STEPS & FAQ */
.steps-container {
    max-width: 800px;
    margin: 40px auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* STICKY CTA - MOBILE ONLY */
.sticky-cta {
    display: none;
    /* Hidden on Desktop */
    position: fixed;
    bottom: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    /* Rectangular with rounded corners */
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 142, 179, 0.4);
    z-index: 2000;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
}

.sticky-cta:hover {
    background: var(--primary-dark);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    margin-right: 2px;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    animation: pulse 1.5s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* FOOTER */
footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 40px 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        overflow: hidden;
    }

    .content-main {
        width: 100%;
        min-width: 0;
    }

    .sidebar {
        width: 100%;
        position: static;
        min-width: 0;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        flex: 1;
        width: 100%;
        margin-bottom: 40px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-right {
        flex: 1;
        width: 100%;
    }

    .hero-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-flex {
        padding: 12px 5px;
        display: grid;
        grid-template-columns: 45px 1fr 45px;
        align-items: center;
        width: 100%;
        gap: 5px;
    }

    .nav-right {
        display: none !important;
    }

    .logo {
        display: contents;
        /* Allows children to be direct grid items */
    }

    .logo-icon {
        grid-column: 1;
        justify-self: start;
        margin-left: 10px;
    }

    .logo-text {
        grid-column: 2;
        justify-self: center;
        font-size: 0.9rem;
        letter-spacing: -0.2px;
        text-align: center;
        line-height: 1;
    }

    .hamburger-label {
        display: block;
        grid-column: 3;
        justify-self: end;
        font-size: 1.6rem;
        margin-right: 10px;
    }

    .logo-text-muted {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-left h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .rating-stars {
        margin: 0 auto 20px auto;
        font-size: 0.8rem;
        padding: 5px 15px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-feat-box {
        width: 100%;
        max-width: 300px;
    }

    .artisan-actions {
        flex-direction: column;
    }

    .sticky-cta {
        display: flex;
        /* Show only on mobile */
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: 360px;
        justify-content: center;
        bottom: 15px;
        white-space: normal;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .breadcrumbs {
        display: none;
    }
}