*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2744;
  --gold: #c8a84b;
  --gold-light: #e8c97a;
  --cream: #f8f5ef;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #666;
  --border: #e0d8cc;
}
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); }

/* NAV */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  height: 44px;
  width: auto;
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); font-weight: 600; line-height: 1.2; }
.logo-sub { font-size: 0.7rem; color: var(--text-light); font-family: 'Lato', sans-serif; font-weight: 400; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem;
  text-decoration: none; color: var(--text);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 0.5rem 1rem !important; border-radius: 4px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); }

/* SOUS-MENUS DU MENU PRINCIPAL (Traduction, Légalisation et apostille) */
.nav-toggle { display: none; }
@media (min-width: 901px) {
  .nav-links { align-self: stretch; }
  .nav-links > li { display: flex; align-items: center; }
  .nav-item { position: relative; }
  .nav-links .nav-item > a { padding-right: 0.15rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 26px; height: 32px; padding: 0; margin-right: 0.4rem;
    background: none; border: 0; border-radius: 4px; color: var(--text); cursor: pointer; }
  .nav-toggle svg { width: 10px; height: 6px; transition: transform 0.2s; }
  .nav-toggle:hover { color: var(--gold); }
  .nav-item.is-open .nav-toggle svg { transform: rotate(180deg); }
  .nav-sub { list-style: none; position: absolute; top: 100%; left: 0; z-index: 210; min-width: 250px;
    background: var(--white); border: 1px solid var(--border); border-top: 2px solid var(--gold); border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 30px -14px rgba(26, 39, 68, 0.35); padding: 0.35rem 0;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
  .nav-item.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-links .nav-sub a { padding: 0.75rem 1.1rem; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
}
@media (min-width: 901px) and (hover: hover) {
  .nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-item:hover .nav-toggle svg { transform: rotate(180deg); }
}
.nav-links .nav-sub a.active { border-bottom: 0; }
.nav-links .nav-sub a:hover, .nav-links .nav-sub a.active { color: var(--gold); background: var(--cream); }
.nav-item:has(.nav-sub a.active) > a { color: var(--gold); }
.nav-links a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 900px) {
  .nav-sub { list-style: none; margin: 0 0 0.35rem 0.9rem; border-left: 2px solid var(--border); }
  .nav-links .nav-sub a { text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; padding: 0.55rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-sub, .nav-toggle svg { transition: none !important; }
}

/* PAGE SWITCHER */
.page { display: none; }
.page.active { display: block; }

/* ===== HOME PAGE ===== */
.hero {
  background: var(--navy);
  padding: 80px 2rem 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,168,75,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(200,168,75,0.08) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); font-weight: 700;
  margin-bottom: 1rem; line-height: 1.25;
}
.hero h2 {
  font-size: 1rem; font-weight: 400;
  color: rgba(255,255,255,0.75);
  font-style: italic; margin-bottom: 0;
  font-family: 'Lato', sans-serif;
}
.hero em { color: var(--gold-light); font-style: normal; }

/* SERVICES GRID */
.section { padding: 70px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy); margin-bottom: 3rem;
}

/* Home services */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-bottom: 3rem;
}
.doc-category { display: flex; gap: 1.5rem; }
.doc-img { width: 130px; height: 130px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.doc-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--navy);
  margin-bottom: 0.5rem;
}
.doc-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.doc-body a { color: var(--gold); text-decoration: none; font-size: 0.82rem; font-weight: 700; }

.about-text {
  background: var(--cream);
  padding: 2.5rem; border-radius: 8px;
  max-width: 800px;
}
.about-text p { line-height: 1.8; color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; }
.about-text p:last-child { margin-bottom: 0; }

.services-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.services-links a {
  display: inline-block;
  background: var(--navy); color: var(--white);
  padding: 0.4rem 0.9rem; border-radius: 4px;
  text-decoration: none; font-size: 0.82rem; font-weight: 700;
  transition: background 0.2s;
}
.services-links a:hover { background: var(--gold); color: var(--navy); }

/* Contact form */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem;
}
.contact-info p { font-size: 0.88rem; line-height: 1.7; color: var(--text); margin-bottom: 0.5rem; }
.checkmark-list { list-style: none; margin: 1rem 0; }
.checkmark-list li { font-size: 0.88rem; padding: 0.3rem 0; color: var(--text); }
.checkmark-list li::before { content: '✔ '; color: var(--gold); }
form { display: flex; flex-direction: column; gap: 1rem; }
form input, form textarea, form select {
  border: 1px solid var(--border);
  border-radius: 4px; padding: 0.75rem 1rem;
  font-family: 'Lato', sans-serif; font-size: 0.9rem;
  background: var(--white); color: var(--text);
  outline: none; transition: border-color 0.2s;
  width: 100%;
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--gold); }
form textarea { min-height: 100px; resize: vertical; }
.btn-submit {
  background: var(--navy); color: var(--white);
  border: none; border-radius: 4px;
  padding: 0.85rem 2rem; font-family: 'Lato', sans-serif;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.05em; transition: background 0.2s;
}
.btn-submit:hover { background: var(--gold); color: var(--navy); }

/* ===== LEGALIZATION PAGE ===== */
.legaliz-hero {
  background: var(--navy);
  padding: 80px 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.legaliz-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,168,75,0.12) 0%, transparent 60%);
}
.legaliz-hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.legaliz-tag {
  display: inline-block;
  background: rgba(200,168,75,0.15); color: var(--gold-light);
  border: 1px solid rgba(200,168,75,0.3);
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.legaliz-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white); line-height: 1.2;
  margin-bottom: 1.2rem;
}
.legaliz-hero h1 em { color: var(--gold-light); font-style: italic; }
.legaliz-hero p {
  color: rgba(255,255,255,0.78); font-size: 1rem;
  margin-bottom: 2rem; line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
/* Rangée de boutons dont le bouton d'appel est isolé pour Ringostat (voir /js/site.js) */
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-btns.tel-slot { display: contents; }
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 0.9rem 2rem; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: var(--white);
  padding: 0.9rem 2rem; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-badges { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.badge { color: rgba(255,255,255,0.7); font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.badge::before { content: '✓'; color: var(--gold); }

/* Service cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 2rem; transition: box-shadow 0.2s, border-color 0.2s;
  background: var(--white);
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-color: var(--gold); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 0.75rem;
}
.card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
/* Carte mise en avant sur toute la largeur (ex. apostille casier judiciaire) */
.card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: center;
  text-decoration: none; color: inherit; border-color: var(--gold); background: linear-gradient(90deg, var(--cream), var(--white) 60%); }
.card-featured .card-icon { margin-bottom: 0; }
.card-featured .tag { background: var(--white); box-shadow: inset 0 0 0 1px var(--border); }
.card-featured p { max-width: 62ch; }
.card-featured-cta { background: var(--navy); color: var(--white); padding: 0.8rem 1.4rem; border-radius: 6px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.card-featured:hover .card-featured-cta { background: var(--gold); color: var(--navy); }
.card-featured:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 700px) {
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-icon { margin-bottom: 1rem; }
  .card-featured-cta { justify-self: start; margin-top: 0.5rem; }
}
.tag {
  background: var(--cream); color: var(--navy);
  padding: 0.25rem 0.6rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
}

/* Countries */
.countries-section { background: var(--cream); }
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.country {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s;
}
.country:hover { border-color: var(--gold); }
button.country { font: inherit; font-size: 0.85rem; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
a.country { text-decoration: none; }
.country img { width: 24px; height: 18px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.country-globe { width: 20px; height: 20px; flex: 0 0 auto; color: var(--navy); }
.country:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Fenêtre « devis pour ce pays » (page légalisation) */
.pays-dialog { border: 0; border-radius: 12px; padding: 0; width: calc(100% - 2rem); max-width: 440px; margin: auto;
  box-shadow: 0 30px 80px -20px rgba(26,39,68,0.5); color: var(--text); }
.pays-dialog::backdrop { background: rgba(26,39,68,0.55); }
.pays-dialog-inner { position: relative; padding: 2rem 2rem 1.75rem; }
.pays-dialog img { display: block; width: 56px; height: 42px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); margin-bottom: 1.1rem; }
.pays-dialog h3 { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--navy); line-height: 1.25; margin-bottom: 0.85rem; padding-right: 2rem; }
.pays-dialog p { font-size: 0.92rem; line-height: 1.6; color: var(--text-light); margin-bottom: 0.8rem; }
.pays-dialog .pays-dialog-formalite { color: var(--text); background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 0.75rem 0.95rem; }
.pays-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.pays-dialog-actions .btn-primary { flex: 1 1 auto; text-align: center; }
.pays-dialog-annuler { flex: 0 0 auto; padding: 0.9rem 1.4rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white);
  font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.pays-dialog-annuler:hover { border-color: var(--navy); }
.pays-dialog-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; font-size: 1.6rem; line-height: 1; color: var(--text-light); cursor: pointer; }
.pays-dialog-close:hover { background: var(--cream); color: var(--navy); }
.pays-dialog a:focus-visible, .pays-dialog button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; padding: 1.5rem; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy); margin-bottom: 0.6rem; font-size: 1rem;
}
.step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* Devis */
.devis-section { background: var(--cream); }
.devis-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.devis-info { }
.devis-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--navy); margin-bottom: 1.5rem;
}
.devis-bullet { margin-bottom: 1.2rem; }
.devis-bullet strong { display: block; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.2rem; }
.devis-bullet span { font-size: 0.85rem; color: var(--text-light); }
.devis-privacy {
  font-size: 0.78rem; color: var(--text-light); margin-top: 0.5rem;
  text-align: center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 1.2rem 0;
  font-weight: 700; font-size: 0.92rem; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gold); transition: transform 0.2s; }
.faq-q.open::after { content: '−'; }
.faq-a {
  font-size: 0.87rem; color: var(--text-light);
  line-height: 1.7; padding-bottom: 1.2rem;
  display: none;
}
.faq-a.open { display: block; }

/* FOOTER */
footer {
  background: var(--navy); color: rgba(255,255,255,0.65);
  text-align: center; padding: 2.5rem 2rem;
  font-size: 0.83rem; line-height: 1.8;
}
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid, .devis-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--border); padding: 1rem; z-index: 200; }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .hero-badges { flex-direction: column; gap: 0.5rem; align-items: center; }
  .doc-img { width: 90px; height: 90px; }
}
