/* ============================================
   SPECIALITE DETAIL PAGE - CSS
   ============================================ */

 /* Variables CSS */
:root {
    --color-bg: #FAF5F1;
    --color-bg-alt: #FAF8F5;
    --color-bg-warm: #FAF6F1;
    --color-cream: #F5EDE4;
    --color-cream-light: #F5F0EA;
    --color-sand: #E8DED2;
    --color-sand-dark: #E8E2D9;
    --color-caramel: #B8A99A;
    --color-terracotta: #B89B7A;
    --color-pink: #F4D8D4;
    --color-pink-border: #ECDAD2;
    --color-olive: #7D8B6F;
    --color-olive-light: #8A9A7B;
    --color-olive-text: #5F6B52;
    --color-forest: #4A5640;
    --color-earth: #6B5F54;
    --color-earth-dark: #6B5B4F;
    --color-charcoal: #3A3632;
    --color-white: #FFFFFF;
    
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 100px;
    
    --shadow-sm: 0px 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0px 15px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0px 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-card: 0px 20px 50px rgba(125, 139, 111, 0.12);
    --shadow-btn: 0px 4px 15px rgba(125, 139, 111, 0.20);
    
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-charcoal);
    background-color: var(--color-bg);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-charcoal);
}

p { color: var(--color-earth); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.btn-primary {
    background: var(--color-olive);
    color: var(--color-white);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--color-forest);
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(125, 139, 111, 0.35);
}

/* Section label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-label-dot {
    width: 8px;
    height: 8px;
    background: var(--color-olive);
    border-radius: 50%;
}

.section-label-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-olive);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-separator { color: rgba(255, 255, 255, 0.4); }
.breadcrumb-current { color: var(--color-white); }

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero */
.specialite-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: calc(78px + 4rem) 5% 4rem;
    overflow: hidden;
}

.specialite-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.specialite-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 70, 52, 0.92) 0%, rgba(74, 86, 64, 0.88) 100%);
    z-index: 1;
}

.specialite-hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--color-white);
}

.specialite-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.specialite-hero h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.specialite-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.specialite-hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 2rem;
}

.specialite-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation sticky */
.specialite-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-sand);
    position: sticky;
    top: 78px;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.specialite-nav.sticky {
    box-shadow: var(--shadow-md);
}

.specialite-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.specialite-nav-link {
    padding: 1rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-earth);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s;
}

.specialite-nav-link:hover,
.specialite-nav-link.active {
    color: var(--color-olive);
    border-bottom-color: var(--color-olive);
}

/* Sections */
.specialite-section {
    padding: 5rem 5%;
}

.specialite-section-alt {
    background: var(--color-bg-alt);
}

.specialite-section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.specialite-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.specialite-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* Content Grid */
.specialite-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.specialite-content-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.specialite-content-text h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--color-charcoal);
}

.specialite-content-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.specialite-content-text li {
    margin-bottom: 0.5rem;
    color: var(--color-earth);
}

.content-highlight {
    background: var(--color-cream-light);
    border-left: 4px solid var(--color-olive);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-highlight h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

/* Sidebar Cards */
.specialite-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 160px;
}

.sidebar-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.sidebar-card-info {
    background: linear-gradient(135deg, var(--color-cream-light) 0%, var(--color-cream) 100%);
    border: 1px solid var(--color-sand);
}

.sidebar-card-warning {
    background: linear-gradient(135deg, #FAF0EC 0%, #F5E8E4 100%);
    border: 1px solid var(--color-pink-border);
}

.sidebar-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.sidebar-card-info .sidebar-card-icon {
    background: var(--color-olive);
}

.sidebar-card-warning .sidebar-card-icon {
    background: var(--color-terracotta);
}

.sidebar-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.sidebar-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Traitements Grid */
.traitements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.traitement-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
}

.traitement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.traitement-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-olive);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.traitement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.traitement-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.traitement-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-olive);
    background: var(--color-cream-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}

.traitement-duration svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-sand);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -3rem;
    width: 32px;
    height: 32px;
    background: var(--color-olive);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

/*.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-sand);
}*/

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer strong { color: var(--color-charcoal); }

/* Related Specialites */
.related-specialites {
    padding: 5rem 5%;
    background: var(--color-white);
}

.related-specialites-container {
    max-width: 1000px;
    margin: 0 auto;
}

.related-specialites-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-specialites-header h2 { font-size: 1.8rem; }

.related-specialites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-specialite-card {
    display: flex;
    gap: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.related-specialite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.related-specialite-image {
    width: 120px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.related-specialite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-specialite-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.related-specialite-content p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--color-olive) 0%, var(--color-forest) 100%);
    position: relative;
    overflow: hidden;
}

.cta-shape-1, .cta-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-shape-1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -150px; left: -50px; }

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    color: var(--color-white);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.cta-container p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-white);
    color: var(--color-forest);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s var(--ease-out);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.cta-contact {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.cta-contact a {
    color: var(--color-white);
    font-weight: 500;
}

/* 404 State */
.not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5%;
}

.not-found h1 { font-size: 3rem; margin-bottom: 1rem; }
.not-found p { font-size: 1.1rem; margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 900px) {
    .specialite-content-grid { grid-template-columns: 1fr; }
    .specialite-content-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card { flex: 1 1 280px; }
    .faq-grid { grid-template-columns: 1fr; }
    .related-specialites-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .specialite-hero { min-height: 60vh; }
    .specialite-nav-container { gap: 1.5rem; }
    .traitements-grid { grid-template-columns: 1fr; }
}
