
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  margin: 0; padding: 0;
  background-color: #2D2622;
  color: #ffffff;
}

/* ===== Loader QUAND LA CONNEXION EST BOF ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background-color: #2D2622;
  display: flex; align-items: center; justify-content: center;
}
.spinner {
  border: 6px solid #ccc;
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header sticky + blur ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(45, 38, 34, 0.9); /* #2D2622 avec transparence */
  backdrop-filter: saturate(140%) blur(6px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
header h1 {
  margin: 0; font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.2px;
}

/* --- Brand (logo + nom) : align & style du lien --- */
#site-header .brand {
  display: flex; align-items: center; gap: 10px;
}
#site-header .brand a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;   /* évite le lien bleu */
}
#site-header .brand span {
  font-size: 1.1rem; font-weight: 700; line-height: 1.2;
}

/* Limiter la taille du logo dans le header */
#site-header .brand-logo {
  width: auto !important;
  height: auto;
  max-height: 50px;     /* ajuste ici (ex: 48 / 64 / 72) */
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: #fff; border-radius: 2px;
}

nav {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
nav a {
  color: #ffffff; text-decoration: none; font-weight: 400;
  transition: color .25s ease;
}
nav a:hover { color: #AAAAAA; }

/* ===== Boutons  DE PRISES de RdV ===== */
.btn {
  display: inline-block;
  background: #D7CDC5;  /* COULEUR beige */
  color: #2D2622;
  border: 1px solid #D7CDC5;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ===== Sections communes ===== */
.hero, .presentation, .services, .contact, .role-notaire {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 1.25rem;
}

/* ===== Hero ===== */
.hero { text-align: center; }
.hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.1rem; color: #CCCCCC;
  max-width: 720px; margin: 0 auto;
}
.hero-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; justify-content: center; }

/* ===== Présentation ===== */
.presentation { background-color: #D7CDC5; color: #2D2622; }
.presentation-text {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 1000px; margin: 0 auto 2.5rem auto; padding: 0 0.5rem;
}
.presentation-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem; font-weight: 700;
}
.presentation-text p { font-size: 1.05rem; line-height: 1.6; max-width: 720px; }
.presentation-images {
  display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; padding: 0 0.5rem;
}
.presentation-images img {
  width: 100%; max-width: 320px; height: 200px; object-fit: cover;
  border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* ===== Rôle du notaire ===== */
.role-notaire { background-color: #2D2622; color: #fff; }
.role-notaire-content {
  display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto;
  align-items: center; justify-content: space-between;
}
.role-text { flex: 1 1 520px; }
.role-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 .5rem; font-weight: 700; }
.role-text p { font-size: 1.05rem; line-height: 1.7; color: #CCCCCC; max-width: 720px; }
.role-image { flex: 1 1 420px; text-align: center; }
.role-image img {
  width: 100%; max-width: 480px; height: auto; border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

/* ===== Services ===== */
.services { background-color: #FAF8F2; color: #2D2622; text-align: center; }
.services h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 2rem; font-weight: 700; }
.service-cards {
  display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
}
.service-card {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  width: min(320px, 92vw);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.service-card img {
  width: 100px; height: 100px; object-fit: contain; margin-bottom: 1rem;
}
.service-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; }
.service-card p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ===== RDV ===== */
.rdv { background:#FAF8F2; color:#2D2622; padding:4rem 1.25rem; }
.rdv h2 { text-align:center; margin:0 0 .5rem; font-size:clamp(1.8rem,3.2vw,2.6rem); }
.rdv p { text-align:center; color:#4a4745; margin:0 auto 2rem; max-width:720px; }

.rdv-form { max-width:780px; margin:0 auto; display:flex; flex-direction:column; gap:1rem; }
.rdv-form .row { display:flex; flex-direction:column; gap:.5rem; }
.rdv-form .row.two { gap:1rem; }
.rdv-form .row.two > div { flex:1; }
@media (min-width:720px){ .rdv-form .row.two { flex-direction:row; } }

.rdv-form label { font-weight:700; }
.rdv-form input, .rdv-form select, .rdv-form textarea {
  background:#fff; border:1px solid #ddd; border-radius:10px; padding:.85rem 1rem;
  font-size:1rem; outline:none;
}
.rdv-form .radios { display:flex; gap:1rem; flex-wrap:wrap; }
.rdv-status { text-align:center; margin-top:.5rem; min-height:1.25rem; }
.rdv-status.ok { color:#066a2e; font-weight:700; }
.rdv-status.err { color:#8b0000; font-weight:700; }

/* ===== Contact ===== */
.contact { background-color: #D7CDC5; color: #2D2622; }
.contact-content {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.contact-text { flex: 1 1 520px; }
.contact-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 .5rem; font-weight: 700; }
.contact-text p { font-size: 1.05rem; line-height: 1.7; }
.contact-details { margin-top: 1.25rem; font-size: 1rem; }
.contact-details a { color: #2D2622; font-weight: 700; text-decoration: underline; }
.contact-map { flex: 1 1 420px; text-align: center; }
.contact-map img {
  width: 100%; max-width: 540px; height: auto;
  border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

/* ===== Footer ===== */
footer {
  background-color: #2D2622; color: #ffffff;
  text-align: center; padding: 2rem; font-size: .95rem;
}

/* ===== Reveal (apparition progressive) ===== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger .reveal { transition-delay: 0ms; } /* géré via JS */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  nav {
    position: fixed; right: 1rem; top: 64px;
    background: rgba(45,38,34,.98); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    display: none; flex-direction: column; padding: .75rem; gap: .75rem;
    min-width: 220px;
  }
  nav.show { display: flex; }
}
@media (max-width: 480px) {
  header h1 { font-size: 0.98rem; }
  .hero-actions { flex-direction: column; }
  .presentation-images img { height: 180px; border-radius: 10px; }
  #site-header .brand span { font-size: 1rem; }
  #site-header .brand-logo { max-height: 44px; }
}

/* ====== ÉQUIPE (même esprit que services) ====== */
/* Hero plus compact comme demandé */
.team-hero{
  min-height: 25vh;           /* ↓ réduit (était 40vh) */
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1rem;   /* ↓ padding plus léger */
  background: #2D2622; color:#fff;
}
.team-hero h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 .5rem; }
.team-hero p{ color:#ccc; max-width: 780px; margin: 0 auto; }

.team{
  padding: 60px 20px;
  background: #FAF8F2; color:#2D2622;
}
.team > h2{
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.team-grid{
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width:640px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px){ .team-grid{ grid-template-columns: repeat(3, 1fr); } }

.team-card{
  background:#fff;
  border:1px solid #e9e4de;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.team-photo{
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
}
.team-body{ padding: 1rem 1rem 1.1rem; }
.team-name{ margin: .25rem 0 0; font-size: 1.15rem; font-weight: 700; }
.team-role{ margin: .15rem 0 .5rem; color:#6a6663; font-weight: 600; }
.team-meta{ font-size: .95rem; color:#4a4745; }
.team-meta a{ color:#2D2622; text-decoration: underline; }

.team-cta{ text-align: center; margin-top: 1.5rem; }
/* Hero de la page équipe (bannière) */
.team-hero{
  min-height: 15vh;              /* réduit encore (était 25vh) */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem 1rem;            /* padding réduit */
  background: #2D2622; color:#fff;
}

.team-hero h2{
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 .25rem;
}

.team-hero p{
  font-size: 1rem;
  color:#ccc;
  max-width: 680px;
  margin: 0 auto;
}
.faq-hero {
      min-height: 40vh;
      display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 4rem 1.25rem;
      background: #2D2622; color:#fff;
    }
    .faq-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
    .faq-hero p { color:#ccc; max-width: 780px; margin: 0 auto; }

    .faq-wrap {
      background:#FAF8F2; color:#2D2622;
      padding: 3rem 1.25rem;
    }
    .faq-container {
      max-width: 980px; margin: 0 auto;
    }
    .faq-item {
      background:#fff; border:1px solid #e9e4de; border-radius: 14px;
      padding: 1.25rem 1.25rem 1rem; margin-bottom: 1rem;
      box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }
    .faq-item h3 {
      margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 700;
    }
    .faq-item p, .faq-item ul { margin: .5rem 0; line-height: 1.6; }
    .faq-item ul { padding-left: 1.1rem; }
    .faq-note {
      font-size: .95rem; color:#4a4745; background:#f1efe9;
      border:1px dashed #d7cdc5; padding:.75rem 1rem; border-radius: 10px;
    }
    .toc {
      background:#fff; border:1px solid #e9e4de; border-radius: 12px;
      padding: .75rem 1rem; margin: 1.5rem 0 2rem; font-size:.98rem;
    }
    .toc a { color:#2D2622; text-decoration: underline; }
    .faq-back { text-align:center; margin-top: 2rem; }
    .faq-back a.btn { text-decoration:none; }