/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #94410e;
    --primary-dark: #7a360b;
    --primary-light: #b85a1e;
    --dark: #0d0d0d;
    --bg: #faf8f9;
    --white: #ffffff;
    --gray-light: #f0eded;
    --gray: #777;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

.site-header, .site-header *, .site-main, .site-main *, .site-footer, .site-footer *, .floating-phone, .back-to-top { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

.site-header a, .site-main a, .site-footer a, .floating-phone { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.site-header a:hover, .site-main a:hover, .site-footer a:hover { color: var(--primary-dark); }

.site-header img, .site-main img, .site-footer img { max-width: 100%; height: auto; }

.site-main h1, .site-main h2, .site-main h3, .site-main h4, .site-footer h4 { font-weight: 600; line-height: 1.3; }

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px 0 25px;
}
.separator.center { margin: 15px auto 40px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary, .btn-primary:visited {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}
.btn-white:hover {
    background: transparent;
    color: var(--white) !important;
    border-color: var(--white) !important;
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.site-logo { text-decoration: none; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.header-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.header-cta:hover { background: var(--primary-dark); }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: 0; }
.hamburger::after { bottom: 0; }

.mobile-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-toggle[aria-expanded="true"] .hamburger::before { top: 50%; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .hamburger::after { bottom: 50%; transform: rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--dark) 0%, #2a1a0f 100%);
    margin-top: 75px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tag {
    background: rgba(148, 65, 14, 0.8);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   PRESENTATION
   ============================================ */
.presentation {
    padding: 80px 0;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.two-cols.reverse { direction: rtl; }
.two-cols.reverse > * { direction: ltr; }

.col-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.col-text p {
    color: var(--gray);
    margin-bottom: 25px;
}

.image-placeholder {
    background: var(--gray-light);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
    gap: 10px;
}
.image-placeholder i { font-size: 2.5rem; opacity: 0.4; }

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 80px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
}
.service-image .image-placeholder {
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 20px 20px 10px;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0 20px;
    margin-bottom: 20px;
}

.service-card .btn { margin-bottom: 25px; }

/* ============================================
   URGENCES
   ============================================ */
.urgences {
    padding: 80px 0;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.info-box i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.info-box h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.info-box a, .info-box p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.form-placeholder {
    background: var(--gray-light);
    padding: 60px 30px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.contact-list i { color: var(--primary); font-size: 0.95rem; }
.contact-list a { color: rgba(255,255,255,0.7); }

.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-phone {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(148,65,14,0.4);
    transition: all var(--transition);
    z-index: 999;
}
.floating-phone:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 90px;
    width: 45px;
    height: 45px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover { background: var(--primary); }

/* ============================================
   PAGE HERO (sous-pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2a1a0f 100%);
    padding: 140px 20px 60px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 { font-size: 2.4rem; }

.page-content {
    padding: 60px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .two-cols { grid-template-columns: 1fr; gap: 40px; }
    .two-cols.reverse { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .contact-list li { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-cta { display: none; }

    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-tags { gap: 8px; }

    .section-title { font-size: 1.6rem; }
}

/* ============================================
   WP ADMIN BAR
   ============================================ */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.service-detail {
    padding: 80px 0;
}
.service-detail.alt {
    background: var(--gray-light);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    padding: 80px 0;
}
.contact-page .contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.contact-page .contact-info p {
    color: var(--gray);
    margin-bottom: 30px;
}

/* ============================================
   MENTIONS LEGALES
   ============================================ */
.mentions-legales {
    padding: 60px 0 80px;
}
.mentions-legales h2 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 10px;
    color: var(--primary);
}
.mentions-legales h2:first-child {
    margin-top: 0;
}
.mentions-legales p {
    color: var(--gray);
    margin-bottom: 15px;
}
