/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --accent: #ff3b18;
    --accent-dark: #c42a10;
    --bg-dark: #0b0b10;
    --text-dark: #111827;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

/* ========================================
   LAYOUT GÉNÉRAL
   ======================================== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========================================
   TOPBAR
   ======================================== */

.topbar {
    background: #111827;
    color: #e5e7eb;
    font-size: 0.8rem;
    overflow: hidden;
}

.topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0;
}

.topbar-left span {
    margin-right: 0.9rem;
}

.topbar-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topbar-cta:hover {
    background: var(--accent-dark);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.topbar-admin-link {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb;
  border: 1px solid rgba(249, 250, 251, 0.35);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topbar-admin-link:hover {
  background: #f9fafb;
  color: #111827;
  border-color: transparent;
}

/* Hide explicit br by default so desktop stays inline */
.topbar-left .topbar-cta br {
    display: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 1rem;
    min-height: auto;
}

.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--accent);
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-55%);
    bottom: -70px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.logo-center img {
    height: 200px;
    transform: translateY(80px);
    filter: drop-shadow(0 0px 6px rgba(0, 0, 0, 0.95));
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-left {
    margin-right: 80px;
}

.nav-right {
    margin-left: 80px;
}

.header-quote {
    margin-left: 1rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    background: #111827;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url(images/hero-background.png) center/cover no-repeat;
    filter: brightness(0.45);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 0, 0, 0.85), transparent 55%);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-slider {
    max-width: 620px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
    color: #f9fafb;
}

.hero-title {
    font-size: clamp(2.4rem, 3.8vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.hero-text {
    font-size: 1.02rem;
    max-width: 640px;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.hero-badges span {
    display: inline-block;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    margin-right: 0.45rem;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.hero-prev,
.hero-next {
    background: rgba(15, 23, 42, 0.9);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 0.3rem;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dot.active {
    width: 18px;
    background: var(--accent);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero .btn {
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #fff;
}

.btn::after {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    pointer-events: none;
}

.btn.ripple::after {
    animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 260px;
        height: 260px;
        opacity: 0;
    }
}

/* ========================================
   SECTIONS GÉNÉRALES
   ======================================== */

.section {
    padding: 4rem 0;
}

.section-grey {
    background: #f3f4f6;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.section-intro {
    max-width: 600px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

#services .container {
    max-width: 60%;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    max-width: none;
    margin: 0 auto;
}

.service-card {
    background: radial-gradient(circle at top, rgba(255, 59, 24, 0.14), var(--bg-elevated));
    border-radius: 1rem;
    padding: 1.4rem 1.2rem 3.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.service-card--wide {
    grid-column: span 2;
}

.service-card h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0.4rem 0 0;
}

.service-card li {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.service-card li::before {
    content: '→ ';
    color: var(--accent);
}

/* Halo rouge discret au survol */
.service-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(255, 59, 24, 0.23), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Amélioration hover - Option recommandée */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.service-card .card-link:focus {
    outline: 3px solid rgba(255, 59, 24, 0.18);
    outline-offset: 6px;
    border-radius: 1rem;
}

/* Texte "En savoir plus" qui apparaît au survol */
.service-card::after {
    content: 'En savoir plus →';
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
  color: var(--accent);
    bottom: 1rem;
}

/* Service Icon */
.service-icon {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.service-icon img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.03);
}

/* ES Services (carte large) */
.service-card--wide .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card--wide .service-icon img {
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.icon-list,
.check-list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.1rem;
}

.icon-list li,
.check-list li {
    margin-bottom: 0.4rem;
}

.about-highlight {
    background: #111827;
    color: #fff;
    border-radius: 0.75rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.about-phone {
    display: block;
    font-weight: 700;
    margin: 0.4rem 0;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}

.about-block {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.contact-box {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.04);
}

.contact-box form {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr 1fr;
}

.contact-box .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-box label {
    font-size: 0.78rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-box input,
.contact-box select,
.contact-box textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid #e6e9ef;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(2, 6, 23, 0.02);
    font-size: 0.95rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.contact-box input:focus,
.contact-box textarea:focus,
.contact-box select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255, 59, 24, 0.08);
    transform: translateY(-1px);
}

.contact-box textarea {
    min-height: 120px;
    resize: vertical;
    grid-column: 1 / -1;
}

.contact-box .full-width {
    grid-column: 1 / -1;
}

.contact-box button[type="submit"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(255, 59, 24, 0.16);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 59, 24, 0.22);
}

.contact-box .small-print {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.6rem;
    grid-column: 1 / -1;
}

/* Unified contact panel */
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: start;
    margin-top: 0.8rem;
}

.contact-info {
    padding: 1.4rem;
}

.contact-info .section-title {
    margin-bottom: 0.6rem;
}

.contact-sub {
    color: #6b7280;
    margin-bottom: 1.1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.contact-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.contact-card .card-icon {
    font-size: 1.4rem;
}

.contact-card .card-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.2rem;
}

.contact-form {
    padding: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 1.3rem 0;
    font-size: 0.8rem;
}

.footer-inner {
    text-align: center;
}

/* ========================================
   PAGE SPECIFIC STYLES
   ======================================== */

.page-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top left, rgba(255, 59, 24, 0.3), #0b0b10);
    color: #f9fafb;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(images/hero-background.png) center/cover no-repeat;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    margin: 1rem 0 0.7rem;
}

.page-hero p {
    max-width: 600px;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.page-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-stat {
    min-width: 120px;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.4);
    text-align: left;
    font-size: 0.8rem;
}

.page-stat strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
}

.page-aside {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1rem;
    padding: 1.5rem 1.3rem;
    border: 1px solid rgba(248, 250, 252, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.page-aside h3 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.page-aside ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1rem;
    font-size: 0.86rem;
    color: #cbd5f5;
}

.page-aside li {
    margin-bottom: 0.35rem;
}

.page-section {
    padding: 3.5rem 0 4rem;
    background: #f3f4f6;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.page-familles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.3rem;
    margin-top: 1.5rem;
}

.page-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.45rem;
}

.page-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.7rem;
}

.page-card h3 {
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.page-card p {
    font-size: 0.86rem;
    color: #4b5563;
}

.page-card-context {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.3rem;
    font-style: italic;
}

.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.2rem;
}

.page-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
}

.page-lateral {
    background: #111827;
    color: #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.65);
}

.page-lateral h2 {
    color: #f9fafb;
    margin-bottom: 0.6rem;
}

.page-lateral h3 {
    color: #f9fafb;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.page-lateral ul {
    margin: 0.4rem 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.86rem;
}

.page-lateral li {
    margin-bottom: 0.3rem;
}

.page-panel-banner {
    background: rgba(255, 59, 24, 0.1);
    border-left: 3px solid var(--accent);
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-size: 0.88rem;
}

/* ========================================
   STATUS MODAL
   ======================================== */

.status-modal {
    position: fixed;
    inset: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.status-modal.show {
    display: flex !important;
}

.status-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.status-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 90%;
}

.status-modal-content {
    background: #111827;
    border-radius: 0.75rem;
    padding: 1.5rem 1.3rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #f9fafb;
}

.status-modal-content h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.status-modal-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999999;
}

/* ========================================
   MEDIA QUERIES - TABLETTE
   ======================================== */

@media (max-width: 900px) {
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card,
    .service-card--wide {
        grid-column: auto;
    }

    .service-card--wide {
        grid-column: 1 / -1;
    }

    .service-card--wide .service-icon img {
        max-height: 110px;
    }

    /* Contact */
    .contact-box form {
        grid-template-columns: 1fr;
    }

    .contact-box textarea {
        min-height: 160px;
    }

    .contact-box .full-width {
        grid-column: auto;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-card {
        justify-content: center;
    }

    .contact-card .card-title {
        margin-bottom: 0;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Page Specific */
    .page-hero-inner,
    .page-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

      .topbar-inner {
    padding: 0.4rem 0.6rem;
  }
}

/* ========================================
   MEDIA QUERIES - TABLETTE UNIQUEMENT (600px à 900px)
   ======================================== */

@media (min-width: 601px) and (max-width: 900px) {
  .topbar-left {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    justify-content: center;
  }

  .topbar-left span {
    margin-right: 0;
    width: auto;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Boutons côte à côte sur tablette */
  .topbar-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .topbar-cta,
  .topbar-admin-link {
    width: auto;
    justify-content: center;
    text-align: center;
  }
}

/* ========================================
   MEDIA QUERIES - MOBILE
   ======================================== */

@media (max-width: 600px) {
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card--wide {
        grid-column: auto;
    }

    .service-card--wide .service-icon img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Container largeur élargie sur mobile */
    #services .container {
        max-width: 100%;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .services-grid {
        gap: 1rem;
    }

    /* Header & Navigation */
    .header-inner {
        position: relative;
        padding: 1rem 0;
        min-height: 120px;
    }

    .burger {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 80;
        width: 52px;
        height: 52px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
    }

    .burger span {
        width: 26px;
        height: 2px;
        background: #111827;
        border-radius: 2px;
        transition: transform 0.28s ease, opacity 0.2s ease;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Full-screen nav overlay */
    .main-nav {
        position: fixed;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.85);
        padding: 220px 1rem 2.5rem;
        transform: translateY(-4%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
        flex-direction: column;
        z-index: 70;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding: 0;
        margin: 0;
        margin-top: 18px;
    }

    .main-nav a {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 600;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0.02em;
        padding: 0.6rem 1rem;
        border-radius: 0.5rem;
        display: block;
    }

    /* Logo centered at top and larger */
    .logo-center {
        position: absolute;
        top: -560px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        pointer-events: none;
        z-index: 80;
    }

    .logo-center img {
        height: 160px;
    }

    /* Reset nav columns */
    .nav-left,
    .nav-right {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-left li,
    .nav-right li {
        list-style: none;
    }

    .header-quote {
        display: none;
    }

    /* Topbar mobile adjustments */
    .topbar-inner {
        padding: 0.4rem 0.6rem;
    }

    .topbar-left {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .topbar-left span {
        margin-right: 0;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.78rem;
    }

    .topbar-left .topbar-phone {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* CTA button on two lines */
    .topbar-left .topbar-cta {
        flex: 0 0 auto;
        margin-left: 0;
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .topbar-left .topbar-cta br {
        display: block;
        line-height: 0.8;
    }

    .topbar {
        overflow: hidden;
    }
}

/* ========================================
   MEDIA QUERIES - TRÈS PETIT MOBILE
   ======================================== */

@media (max-width: 480px) {
    #services .container {
        max-width: 100%;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card--wide .service-icon img {
        max-height: 100px;
    }

    .service-card,
    .service-card--wide {
        grid-column: auto;
    }
}

  .topbar-left .topbar-admin-link {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    width: auto;
    order: 3;
  }
