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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #111827;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Topbar / nav */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 16px;
}

.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.95rem;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #1f2937;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: #0f4c81;
    color: #ffffff;
}

/* Hero */
.hero {
    padding: 40px 0 48px;
    background: radial-gradient(circle at top left, #e5f0ff 0, #f5f7fb 55%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f4c81;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
    line-height: 1.15;
    margin-bottom: 12px;
    color: #0b1120;
}

.hero-lead {
    font-size: 1.02rem;
    max-width: 34rem;
    color: #374151;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.95rem;
    color: #4b5563;
}

.hero-list li::before {
    content: "•";
    margin-right: 6px;
    color: #0f4c81;
    font-weight: 700;
}

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.info-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    max-width: 340px;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.info-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.info-card p + p {
    margin-top: 8px;
}

.info-card a {
    color: #0f4c81;
    font-weight: 500;
}

.info-small {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
}

/* Sections */
.section {
    padding: 40px 0;
    background-color: #ffffff;
}

.section-alt {
    background-color: #f3f4f6;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: #0b1120;
}

.section-header p {
    color: #4b5563;
    max-width: 34rem;
    margin: 0 auto;
    font-size: 0.98rem;
}

/* Cards services */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background-color: #f9fafb;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #111827;
}

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

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr);
    gap: 24px;
}

.about-grid p + p {
    margin-top: 10px;
}

/* Tarifs */
.tarifs-text {
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.98rem;
    color: #374151;
}

.tarifs-text ul {
    margin-bottom: 10px;
    padding-left: 18px;
}

.tarifs-text li {
    margin-bottom: 4px;
}

.tarifs-text .btn {
    margin-top: 10px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: flex-start;
}

.contact-infos p + p {
    margin-top: 8px;
}

.contact-infos a {
    color: #0f4c81;
    font-weight: 500;
}

.contact-form {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.form-row {
    margin-bottom: 10px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #111827;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font: inherit;
    color: #111827;
    background-color: #f9fafb;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.25);
    background-color: #ffffff;
}

.form-help {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Infos légales */
.infos-text {
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #4b5563;
}

.infos-text p + p {
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn.primary {
    background-color: #0f4c81;
    color: #ffffff;
    border-color: #0f4c81;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.35);
}

.btn.primary:hover {
    background-color: #0b3a63;
    border-color: #0b3a63;
    box-shadow: 0 14px 30px rgba(15, 76, 129, 0.5);
}

.btn.ghost {
    background-color: transparent;
    color: #0f4c81;
    border-color: rgba(15, 76, 129, 0.2);
}

.btn.ghost:hover {
    background-color: rgba(15, 76, 129, 0.07);
    border-color: #0f4c81;
}

.btn.full-width {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: #0b1120;
    color: #e5e7eb;
    padding: 14px 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-inner p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-side {
        justify-content: flex-start;
    }
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        justify-content: flex-start;
    }
    .cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        padding-top: 28px;
    }
}
/* =========================
   Optimisations mobile
   ========================= */
@media (max-width: 768px) {

  /* Barre du haut + logo */
  .topbar {
    padding: 0.5rem 1rem;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .brand-logo {
    max-width: 160px;
    height: auto;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.95rem;
  }

  .main-nav a {
    padding: 0;
  }

  /* Sections générales */
  .section {
    padding: 2.2rem 1.25rem;
  }

  .section-alt {
    padding: 2.2rem 1.25rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Bloc accueil (hero) */
  .hero {
    padding: 2.4rem 1.25rem 2.6rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-list {
    margin-top: 1.2rem;
  }

  /* Cartes services / tarifs */
  .cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    padding: 1rem 1.1rem;
  }

  .tarifs-text {
    font-size: 1rem;
  }

  /* Bloc contact (formulaire) */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
  }

  .contact-infos {
    font-size: 0.98rem;
  }

  .contact-form .form-row {
    margin-bottom: 0.9rem;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="date"],
  .contact-form textarea,
  .contact-form select {
    font-size: 1rem;
  }

  .btn.full-width {
    width: 100%;
  }

  /* Pied de page */
  .site-footer {
    padding: 1.1rem 1.25rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }
}
/* =========================
   Optimisations mobile
   ========================= */
@media (max-width: 768px) {

  /* Barre du haut + logo */
  .topbar {
    padding: 0.5rem 1rem;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .brand-logo {
    max-width: 160px;
    height: auto;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.95rem;
  }

  .main-nav a {
    padding: 0;
  }

  /* Sections générales */
  .section {
    padding: 2.2rem 1.25rem;
  }

  .section-alt {
    padding: 2.2rem 1.25rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Bloc accueil (hero) */
  .hero {
    padding: 2.4rem 1.25rem 2.6rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-list {
    margin-top: 1.2rem;
  }

  /* Cartes services / tarifs */
  .cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    padding: 1rem 1.1rem;
  }

  .tarifs-text {
    font-size: 1rem;
  }

  /* Bloc contact (formulaire) */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
  }

  .contact-infos {
    font-size: 0.98rem;
  }

  .contact-form .form-row {
    margin-bottom: 0.9rem;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="date"],
  .contact-form textarea,
  .contact-form select {
    font-size: 1rem;
  }

  .btn.full-width {
    width: 100%;
  }

  /* Pied de page */
  .site-footer {
    padding: 1.1rem 1.25rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }
}
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2563EB;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.30);
}  
  /* --- Bouton flottant WhatsApp --- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 80px; /* Pour le placer juste au-dessus du bouton appel */
    right: 20px;
    background-color: #25D366; /* Vert WhatsApp */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.30);
}

/* ==== Custom: Mobile centered logo ==== */
@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .brand-logo {
        margin: 0 auto;
        height: 70px;
        max-width: 100%;
    }
    .main-nav {
        justify-content: center;
        width: 100%;
    }
}

/* ==== Custom: PC wide logo (70% of topbar width) ==== */
@media (min-width: 769px) {
    .brand-logo {
        width: 70%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}
@media (min-width: 769px) {
    .main-nav {
        margin-left: -60px; /* ramène vers la gauche */
    }
}
@media (min-width: 769px) {
    .brand-logo {
        margin-left: -40px; /* décale le logo vers la gauche */
    }
}
:target {
  Scroll-margin-top: 120px;
}
}
