@import url('variables.css');

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

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

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* === TOP BAR === */
.topbar {
    background: var(--color-secondary);
    color: var(--color-text-inverse);
    font-size: 0.85rem;
    padding: 0.4rem 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar a { color: var(--color-text-inverse); }
.topbar .social { display: flex; gap: 0.75rem; }

/* === HEADER === */
header {
    background: var(--color-bg);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 60px; width: auto; }
.logo { display: flex; align-items: center; }

/* === NAV === */
nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2a1a3e 100%);
    color: var(--color-text-inverse);
    padding: 5rem 0;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.hero h1 span { color: var(--color-primary-light); }
.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Hero photo (accueil) */
.hero-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 0;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.hero-overlay {
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.hero-photo .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.hero-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-phone {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-phone:hover { color: var(--color-primary-light); }
.hero-phone-icon { font-size: 1.5rem; }

/* Tagline */
.tagline {
    text-align: center;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem 1rem;
    margin: 0;
}

/* Welcome box */
.welcome-box {
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
}
.welcome-box p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.welcome-box p:last-of-type { margin-bottom: 2rem; }

/* Premium title */
.premium-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Cards 3 columns */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-3 .card-body { text-align: center; }
.cards-3 .card-body h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.cards-3 .card-body .btn { font-size: 0.85rem; padding: 0.5rem 1.25rem; }

/* Services description */
.services-desc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.services-desc-text p { margin-bottom: 1rem; }
.services-desc-text ul { margin: 0.5rem 0 1.5rem 1.5rem; }
.services-desc-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.services-desc-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Title dashes */
.title-dash { color: var(--color-primary); font-weight: 700; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-text-inverse); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-text-inverse); }
.btn-white {
    background: var(--color-bg);
    color: var(--color-primary);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* === SECTIONS === */
section { padding: var(--section-padding); }
section.alt { background: var(--color-bg-alt); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-wrap: balance;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* === CARDS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.card {
    background: var(--color-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.card-body p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 1rem; }

/* === SERVICE PAGE === */
.service-header {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2a1a3e 100%);
    color: var(--color-text-inverse);
    padding: 3rem 0;
    text-align: center;
}
.service-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-wrap: balance;
}

.service-content { max-width: 900px; margin: 0 auto; }
.service-content h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}
.service-content p { margin-bottom: 1rem; }
.service-content ul { margin: 0.5rem 0 1.5rem 1.5rem; }
.service-content li { margin-bottom: 0.5rem; }

/* === CTA BAND === */
.cta-band {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    text-align: center;
    padding: 3rem 0;
}
.cta-band h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.cta-band .btn-white { margin-top: 0.5rem; }

/* === FEATURES === */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature {
    text-align: center;
    padding: 2rem 1.5rem;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}
.feature p { color: var(--color-text-light); font-size: 0.95rem; }

/* === ZONES === */
.zones { columns: 2; column-gap: 2rem; }
.zones li { margin-bottom: 0.25rem; }

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h3 { margin-bottom: 1rem; color: var(--color-primary); }
.contact-info p { margin-bottom: 0.75rem; }

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200,20,91,0.15);
}

/* === FOOTER === */
footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}
footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: var(--color-text-inverse); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-grid h4 {
    color: var(--color-text-inverse);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    nav.open { display: flex; }
    nav a { padding: 0.75rem; width: 100%; }

    .contact-grid { grid-template-columns: 1fr; }
    .zones { columns: 1; }
    .hero { padding: 3rem 0; }
    .hero-photo, .hero-overlay { min-height: 350px; }
    .cards-3 { grid-template-columns: 1fr; }
    .services-desc { grid-template-columns: 1fr; }
    .welcome-box { padding: 2rem 1.5rem; }
}
