/* ==========================================================
   Guillaud-Conseil — feuille de style unique du site
   Couleurs et polices centralisées dans les variables ci-dessous.
   ========================================================== */

:root {
  --gold:        #c5a46d;
  --gold-dark:   #a88850;
  --text:        #444;
  --title:       #111;
  --muted:       #555;
  --bg-soft:     #f9f9f9;
  --font-body:   'Lato', sans-serif;
  --font-title:  'Playfair Display', serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; } /* ancres non masquées par la navbar fixe */

body {
  font-family: var(--font-body);
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--title);
}
.text-gold { color: var(--gold); }

/* ---------- NAVBAR ---------- */
.navbar {
  transition: background-color 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  font-family: var(--font-title);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-text,
.brand-subtext {
  display: block;
  text-align: left;
}
.brand-text {
  font-size: 1.6rem;
  color: var(--title);
}
.brand-subtext {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
  text-decoration: none;
}
.brand-subtext:hover {
  text-decoration: underline;
  color: var(--gold);
}
.navbar .nav-link {
  color: var(--title) !important;
  font-weight: 500;
  margin: 0 10px;
}
.navbar .nav-link:hover {
  color: var(--gold) !important;
}
.logo {
  height: 70px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ---------- HEADER / CARROUSEL ---------- */
header {
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.carousel-item {
  transition: transform 1.2s ease-in-out;
}
.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
}
.carousel-caption { bottom: 20%; }
.carousel-caption h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.carousel-caption p {
  font-size: 1.3rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- BOUTONS ---------- */
.btn-prestige {
  background-color: var(--gold);
  border: none;
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-prestige:hover,
.btn-prestige:focus {
  background-color: var(--gold-dark);
  color: #fff;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 100px 0;
  position: relative;
}
section h2 {
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto;
}
.bg-light {
  background: var(--bg-soft) !important;
}

/* Icône retour en haut */
.back-to-top {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 30px;
  color: var(--gold);
  transition: transform 0.3s, color 0.3s;
}
.back-to-top:hover {
  transform: translateY(-6px);
  color: var(--gold-dark);
}

/* ---------- FORMULAIRES ---------- */
/* Champ anti-spam : invisible pour les humains, présent pour les robots */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-notice {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 1rem;
}
.form-notice a { color: var(--gold-dark); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--title);
  color: #aaa;
  padding: 30px;
  text-align: center;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* ---------- PAGES MESSAGE (confirmation, erreur, 404, connexion) ---------- */
body.page-message {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.box-sm { max-width: 400px; }
.box h1 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.box p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.box .recap li { margin-bottom: 4px; }
.box .btn-prestige { padding: 10px 22px; }
.error-list {
  text-align: left;
  color: #b00020;
  margin-bottom: 20px;
}
.error-list li { margin-bottom: 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .navbar-brand .logo { height: 50px; }
  .brand-text { font-size: 1.3rem; }
  .brand-subtext { font-size: 0.7rem; }
  .navbar-nav .nav-link { margin: 5px 0; font-size: 0.9rem; }
  header h1, .carousel-caption h1 { font-size: 2rem; }
  header p, .carousel-caption p { font-size: 1rem; }
  section { padding: 60px 15px; }
  .btn-prestige { padding: 10px 20px; font-size: 0.9rem; }
}

@media (max-width: 576px) {
  .navbar-brand { align-items: center; text-align: center; }
  .navbar-brand .brand-subtext { display: none; }
  .navbar-toggler { margin-left: auto; }
  .carousel-caption h1 { font-size: 1.5rem; }
  .carousel-caption p { font-size: 0.9rem; }
  section h2 { font-size: 1.5rem; }
  section p { font-size: 0.95rem; }
  .btn-prestige { width: 100%; padding: 12px 0; font-size: 0.9rem; }
  .box { padding: 28px 20px; }
}

/* ---------- PAGES DE CONTENU (mentions légales, honoraires) ---------- */
body.page-content main {
  padding-top: 140px;
  padding-bottom: 60px;
}
.content-narrow { max-width: 860px; }
body.page-content main > h1,
body.page-content section h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
body.page-content section {
  padding: 0 0 1.5rem;
}
.legal section h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}
.legal section h2::after { margin: 10px 0 0; width: 40px; }
.legal a,
.table-honoraires a { color: var(--gold-dark); }
.table-honoraires {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.table-honoraires thead th {
  background: var(--title);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
}
#honoraires h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto;
}
@media (max-width: 576px) {
  body.page-content main { padding-top: 110px; }
  body.page-content main > h1,
  body.page-content section h1 { font-size: 1.6rem; }
}
