/* ===== Variables ===== */
:root {
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-accent: #2b6cb0;
    --color-accent-hover: #3182ce;
    --color-text: #2d3748;
    --color-text-muted: #718096;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #1a202c;
    --color-border: #e2e8f0;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --header-height: 72px;
    --top-bar-height: 40px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}
body { display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); margin-top: 0; }

/* ===== Top bar ===== */
.top-bar {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
}
.top-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-mini { font-weight: 600; }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.top-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.top-link:hover { color: #fff; text-decoration: none; }
.top-link.highlight { font-weight: 600; color: #90cdf4; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0.5rem;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.lang-btn:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.lang-btn:last-child { border-radius: 0 4px 4px 0; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.lang-btn.active { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* ===== Header & Nav ===== */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover { color: var(--color-primary-light); text-decoration: none; }
.logo-img {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.navbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
}
.nav-link:hover { background: var(--color-bg-alt); color: var(--color-primary); text-decoration: none; }
.nav-link.active { color: var(--color-accent); }
.nav-icon { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-accent); text-decoration: none; }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}
.hero-banner-wrap {
    margin: 0;
    line-height: 0;
}
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-content { position: relative; z-index: 1; padding: 2rem 1rem; }
.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
}
.hero-tagline { font-size: 1.25rem; opacity: 0.95; margin: 0; }

/* ===== Hero cards ===== */
.hero-cards {
    padding: 2rem 0;
    background: var(--color-bg-alt);
}
.hero-cards .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hero-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.hero-card h3 { font-size: 1.1rem; margin: 0 0 0.75rem; color: var(--color-primary); }
.hero-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 1rem; line-height: 1.5; }
.hero-card .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; text-decoration: none; }
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

/* ===== Sections ===== */
.section {
    padding: 3.5rem 0;
}
.section-alt { background: var(--color-bg-alt); }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin: 0 0 1.5rem;
    color: var(--color-primary);
}
.section-subtitle { font-size: 1.25rem; text-align: center; margin: 0 0 1rem; color: var(--color-text-muted); }
.section-lead {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--color-text);
}
.section .btn { margin: 0 auto; display: inline-flex; }

/* ===== À propos (split + image) ===== */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.about-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.about-copy {
    text-align: left;
}
.about-copy .about-subtitle {
    text-align: left;
    margin: 0 0 1rem;
}
.about-copy .about-lead {
    margin: 0 0 1.5rem;
    text-align: left;
    max-width: none;
}
.about-copy .btn { margin: 0; display: inline-flex; }

/* ===== Ce qui nous distingue ===== */
.distinct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.distinct-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.distinct-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: block;
}
.distinct-item i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}
.distinct-item h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.distinct-item p { font-size: 0.95rem; margin: 0; color: var(--color-text); }
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.check-list i { color: #38a169; }

/* ===== Services grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.service-card h3 { font-size: 1.15rem; margin: 0 0 0.75rem; color: var(--color-primary); }
.service-card p { font-size: 0.95rem; margin: 0 0 1rem; color: var(--color-text); }
.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.link-arrow::after { content: ' →'; }

/* ===== CTA section ===== */
.cta-section { text-align: center; }
.cta-section .section-title { margin-bottom: 0.75rem; }
.cta-section p { margin-bottom: 1.5rem; }

/* ===== Spotlight photos ===== */
.spotlight-section { padding-top: 2rem; padding-bottom: 2rem; }
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.spotlight-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.spotlight-figure img {
    width: 100%;
    height: min(42vw, 320px);
    object-fit: cover;
    display: block;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.team-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent);
}
.team-card h4 { font-size: 1rem; margin: 0 0 0.5rem; }
.team-card p { font-size: 0.9rem; margin: 0 0 1rem; color: var(--color-text-muted); }
.team-link { font-size: 0.9rem; }
.team-join { text-align: center; margin: 0; font-size: 0.95rem; }

/* ===== Testimonials ===== */
.testimonials-section { background: var(--color-primary); color: #fff; }
.testimonials-section .section-title { color: #fff; }
.testimonials-slider { position: relative; max-width: 700px; margin: 0 auto 1.5rem; min-height: 140px; }
.testimonial {
    display: none;
    padding: 1rem 0;
    text-align: center;
}
.testimonial.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.testimonial p { font-size: 1.05rem; margin: 0 0 1rem; line-height: 1.6; }
.testimonial cite { font-style: normal; font-size: 0.9rem; opacity: 0.9; }
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.dot:hover { border-color: #fff; }
.dot.active { background: #fff; border-color: #fff; }

/* ===== Contact ===== */
.section-contact { padding-bottom: 3rem; }
.contact-hours { text-align: center; margin: 0 0 1.5rem; font-weight: 500; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.contact-block {
    text-align: center;
    padding: 1rem;
}
.contact-block h4 { font-size: 0.9rem; margin: 0 0 0.5rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-block a, .contact-block p { margin: 0; font-size: 1rem; }
.contact-form-wrap {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}
.contact-form-wrap h4 { margin: 0 0 1rem; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.65rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { align-self: flex-start; }
.map-link-wrap { text-align: center; }

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 1.5rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-logo {
    width: 40px;
    height: auto;
    opacity: 0.95;
}
.footer-tagline { font-weight: 600; margin: 0; font-size: 1rem; }
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-nav a { color: inherit; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy { margin: 0; font-size: 0.875rem; opacity: 0.8; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
    .top-bar { height: auto; padding: 0.5rem 0; }
    .top-bar-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .top-bar-right { justify-content: center; }
}
@media (max-width: 768px) {
    .navbar .nav-link:not(.nav-icon) { display: none; }
    .navbar .nav-dropdown { display: none; }
    .nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        font-size: 1.25rem;
        color: var(--color-text);
    }
    .navbar.responsive .nav-link:not(.nav-icon),
    .navbar.responsive .nav-dropdown { display: block; }
    .navbar.responsive .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 1rem;
        margin-bottom: 0.5rem;
    }
    .navbar.responsive { flex-direction: column; align-items: stretch; }
    .navbar.responsive .nav-dropdown .nav-link::after { display: none; }
    .hero { min-height: 35vh; }
    .section { padding: 2.5rem 0; }
    .distinct-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-split { grid-template-columns: 1fr; }
    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-figure img { height: 220px; }
}
@media (max-width: 480px) {
    .logo-text { font-size: 1.25rem; }
    .hero-cards .container { grid-template-columns: 1fr; }
}
