/* ============================================
   INSTITUT SYLVAIN MERCURE — Feuille de style
   Charte : Bleu marine #0d2b5e · Or #c4a84f
   ============================================ */

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

:root {
  --bleu-profond: #0d2b5e;
  --bleu-royal:   #1a4a8a;
  --bleu-clair:   #4a7ab5;
  --bleu-pale:    #e8f0fb;
  --or:           #c4a84f;
  --or-clair:     #e8d89a;
  --or-pale:      #faf6e8;
  --blanc:        #ffffff;
  --gris-clair:   #f5f5f5;
  --gris-texte:   #555555;
  --texte:        #2c2c2c;
  --serif:        Georgia, 'Times New Roman', serif;
  --sans:         'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.7;
}

/* ─── BARRE DE TOP ─── */
.topbar {
  background: var(--bleu-profond);
  color: var(--or-clair);
  text-align: center;
  font-size: 12px;
  padding: 6px 20px;
  letter-spacing: 1px;
}

/* ─── EN-TÊTE ─── */
header {
  background: var(--blanc);
  border-bottom: 1px solid #dde4f0;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,43,94,0.08);
}

.logo-zone { display: flex; align-items: center; gap: 0; }
.logo-zone a { display: flex; align-items: center; line-height: 0; text-decoration: none; }
.logo-zone img, .logo-zone svg { width: auto; }

.logo-vertical {
  display: block;
  height: 160px;
  opacity: 1;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.3s ease;
}
.logo-horizontal {
  display: block;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.3s ease;
}

/* ─── SCROLL SHRINK ─── */
header { transition: padding 0.4s ease, box-shadow 0.4s ease; }
header.header-scrolled { padding: 6px 40px; box-shadow: 0 4px 20px rgba(13,43,94,0.18); }
header.header-scrolled .logo-vertical   { height: 0;    opacity: 0; }
header.header-scrolled .logo-horizontal { height: 58px; opacity: 1; }

/* ─── NAVIGATION ─── */
nav { display: flex; align-items: center; gap: 4px; }

nav a {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--bleu-profond);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transition: transform 0.2s;
}

nav a:hover { color: var(--bleu-royal); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--bleu-royal); font-weight: bold; }
nav a.active::after { transform: scaleX(1); }

nav .btn-rdv {
  background: var(--bleu-profond);
  color: var(--or-clair) !important;
  padding: 9px 20px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 1px;
  font-size: 13px;
}
nav .btn-rdv:hover { background: var(--bleu-royal); }
nav .btn-rdv::after { display: none; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--bleu-profond) 0%, #1a3d7a 60%, #0a1f45 100%);
  color: var(--blanc);
  text-align: center;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='1' fill='%23c4a84f' opacity='0.15'/%3E%3C/svg%3E") repeat;
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--or);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--blanc);
}

.hero h1 span { color: var(--or); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--or);
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--or);
  color: var(--bleu-profond);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: bold;
  padding: 14px 36px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--or-clair); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--or);
  color: var(--or);
  font-family: var(--serif);
  font-size: 14px;
  padding: 13px 30px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 2px;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: rgba(196,168,79,0.1); }

/* ─── SECTIONS GÉNÉRIQUES ─── */
section { padding: 80px 40px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--or);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  color: var(--bleu-profond);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gris-texte);
  max-width: 620px;
  margin-bottom: 48px;
}

.divider-or {
  width: 48px;
  height: 2px;
  background: var(--or);
  margin: 0 0 48px;
}

.divider-or.centered { margin: 0 auto 48px; }

/* ─── GRILLE 3 COLONNES ─── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* ─── CARTES SERVICES ─── */
.service-card {
  border: 1px solid #dde4f0;
  border-radius: 4px;
  padding: 32px;
  background: var(--blanc);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(13,43,94,0.12);
  transform: translateY(-3px);
}

.service-card .card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--bleu-profond);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gris-texte);
  margin-bottom: 20px;
  line-height: 1.7;
}

.prix-badge {
  display: inline-block;
  background: var(--bleu-pale);
  color: var(--bleu-royal);
  font-size: 13px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 4px;
}

.prix-badge.or {
  background: var(--or-pale);
  color: #7a6020;
}

.card-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--or);
  background: var(--or-pale);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ─── VISUAL D'EN-TÊTE DE CARTE ─── */
.card-visual {
  margin: -32px -32px 24px;
  height: 140px;
  background: linear-gradient(135deg, var(--bleu-profond) 0%, #1a3d7a 100%);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='0.7' fill='%23c4a84f' opacity='0.12'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.card-visual svg { position: relative; z-index: 1; }

/* ─── CONSTELLATION DU HERO ─── */
.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
}

/* ─── FILIGRANE DE SECTION ─── */
section { position: relative; }
.section-wm {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-inner { position: relative; z-index: 1; }

/* ─── SECTION ALTERNÉE (texte + visuel) ─── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-visual {
  background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-royal));
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.split-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23c4a84f' opacity='0.2'/%3E%3C/svg%3E") repeat;
}

/* ─── SECTION FOND SOMBRE ─── */
.section-dark {
  background: var(--bleu-profond);
  color: var(--blanc);
}

.section-dark .section-title { color: var(--blanc); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }
.section-dark .divider-or { background: var(--or); }

.section-dark .service-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(196,168,79,0.25);
  color: var(--blanc);
}

.section-dark .service-card h3 { color: var(--or-clair); }
.section-dark .service-card p { color: rgba(255,255,255,0.7); }
.section-dark .service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

/* ─── SECTION FOND OR PÂLE ─── */
.section-pale { background: var(--or-pale); }
.section-pale .section-title { color: var(--bleu-profond); }

/* ─── SECTION FOND BLEU PÂLE ─── */
.section-blue-pale { background: var(--bleu-pale); }

/* ─── TÉMOIGNAGES ─── */
.temoignage {
  background: var(--blanc);
  border-left: 3px solid var(--or);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--gris-texte);
}

.temoignage cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--bleu-royal);
  font-weight: bold;
}

/* ─── PRESTATION COMPLÈTE ─── */
.prestation-complete {
  background: linear-gradient(135deg, var(--bleu-profond) 0%, #1a3d7a 100%);
  border-radius: 6px;
  padding: 48px;
  color: var(--blanc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prestation-complete::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='0.8' fill='%23c4a84f' opacity='0.15'/%3E%3C/svg%3E") repeat;
}

.prestation-complete > * { position: relative; }

.prestation-complete h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--or);
  margin-bottom: 12px;
}

.prestation-complete p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }

.prestation-complete .includes {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.prestation-complete .includes span {
  background: rgba(196,168,79,0.15);
  border: 1px solid rgba(196,168,79,0.4);
  color: var(--or-clair);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
}

/* ─── HERO DE PAGE INTÉRIEURE ─── */
.page-hero {
  background: linear-gradient(135deg, var(--bleu-profond) 0%, #1a3d7a 100%);
  color: var(--blanc);
  padding: 80px 40px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='1' fill='%23c4a84f' opacity='0.12'/%3E%3C/svg%3E") repeat;
}

.page-hero > * { position: relative; z-index: 1; }
.page-hero > .hero-sky { position: absolute !important; z-index: 0; }

.page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--or);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 14px 40px;
  background: var(--gris-clair);
  font-size: 13px;
  color: var(--gris-texte);
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a { color: var(--bleu-royal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--or); }

/* ─── TABLEAU DES PRESTATIONS ─── */
.prestations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prestations-table th {
  background: var(--bleu-profond);
  color: var(--or-clair);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--serif);
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 13px;
}

.prestations-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.prestations-table tr:last-child td { border-bottom: none; }
.prestations-table tr:nth-child(even) td { background: var(--gris-clair); }
.prestations-table tr:hover td { background: var(--bleu-pale); }

.prestations-table .prix { font-weight: bold; color: var(--bleu-royal); white-space: nowrap; }
.prestations-table .detail { font-size: 13px; color: var(--gris-texte); }

/* ─── ENCART PROCESSUS ─── */
.etape {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.etape:last-child { border-bottom: none; }

.etape-num {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--bleu-profond);
  color: var(--or);
  font-family: var(--serif);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.etape h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bleu-profond);
  margin-bottom: 4px;
}

.etape p { font-size: 14px; color: var(--gris-texte); }

/* ─── FORMULAIRE CONTACT ─── */
.contact-form { max-width: 640px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--bleu-profond);
  font-weight: bold;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #ccd5e8;
  border-radius: 3px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--texte);
  background: var(--blanc);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bleu-royal);
  box-shadow: 0 0 0 3px rgba(26,74,138,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-envoyer {
  background: var(--bleu-profond);
  color: var(--or-clair);
  border: none;
  padding: 14px 36px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-envoyer:hover { background: var(--bleu-royal); }

/* ─── INFOS CONTACT ─── */
.info-contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.info-contact:last-child { border-bottom: none; }

.info-contact .ic-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--bleu-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bleu-profond);
}

.info-contact h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--bleu-profond);
  margin-bottom: 4px;
}

.info-contact p { font-size: 14px; color: var(--gris-texte); }
.info-contact a { color: var(--bleu-royal); text-decoration: none; }
.info-contact a:hover { text-decoration: underline; }

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--bleu-profond);
  margin-bottom: 8px;
  padding-right: 30px;
}

.faq-item p { font-size: 14px; color: var(--gris-texte); line-height: 1.7; }

/* ─── CHIFFRES CLÉS ─── */
.stat-box {
  text-align: center;
  padding: 32px 20px;
}

.stat-box .stat-num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--or);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* ─── PIED DE PAGE ─── */
footer {
  background: var(--bleu-profond);
  color: rgba(255,255,255,0.8);
  padding: 60px 40px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(196,168,79,0.2);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--or);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--or-clair); }

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--or); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  header { padding: 14px 20px; }
  section { padding: 60px 20px; }
  .split-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero, .hero { padding: 60px 20px; }
  .breadcrumb { padding: 12px 20px; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero .btn-secondary { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
  .prestation-complete { padding: 32px 24px; }
  .hero-content { flex-direction: column !important; gap: 24px !important; }
  .hero-content > img { width: 130px !important; }
}
