/* ═══════════════════════════════════════════════════════════
   Royal Formation — Feuille de style commune
   Trois sites : gestion-de-patrimoine | pactes-dutreil | holding-patrimoniale
   Fichier : style.css  |  Racine de chaque site
   ═══════════════════════════════════════════════════════════

   Couleurs primaires par site — surcharger via :root dans chaque page :
     gestion-de-patrimoine  :  --primaire: #c80000  (rouge)
     pactes-dutreil         :  --primaire: #6b7c2e  (olive)
     holding-patrimoniale   :  --primaire: #e38c1b  (orange)

   Toutes les règles utilisent --primaire et ses dérivées,
   plus les jetons communs (or, crème, texte…).
   ═══════════════════════════════════════════════════════════ */


/* ── RESET & JETONS COMMUNS ─────────────────────────────── */

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

:root {
  /* Couleur primaire — à surcharger par site */
  --primaire:       #c80000;
  --primaire-dark:  #8a0000;
  --primaire-bg:    #fdf2f2;
  --primaire-mid:   #f0b8b8;

  /* Or — commun aux 3 sites */
  --or:             #b8965a;
  --or-light:       #d4b06a;
  --or-bg:          #fdf6e9;

  /* Neutres */
  --blanc:          #ffffff;
  --creme:          #f8f6f2;
  --texte:          #2d3142;
  --discret:        #4a5168;
  --bordure:        #e2ddd6;

  /* Typographie */
  --font-titre:     'Cormorant Garamond', Georgia, serif;
  --font-corps:     'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-corps); font-weight: 300; color: var(--texte); background: var(--blanc); font-size: 16px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }


/* ── BANDEAU ────────────────────────────────────────────── */

.topbar { background: var(--primaire); padding: 0.45rem 1.5rem; font-family: var(--font-corps); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em; color: #ffffff; display: flex; align-items: center; justify-content: space-between; }
.topbar h3 { font-size: 0.88rem; font-weight: 500; }
.topbar a { color: #ffffff; font-weight: 500; text-decoration: none; }
.topbar a:hover { color: var(--or-light); }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.ic-social { display: inline-flex; align-items: center; }
.ic-social svg rect, .ic-social svg polygon, .ic-social svg text { transition: fill 0.2s, stroke 0.2s; }
.ic-social:hover rect { fill: var(--or); stroke: var(--or); }
.ic-social:hover polygon { fill: #ffffff; }
.ic-social:hover text { fill: #ffffff; }
.ic-mail { display: inline-flex; align-items: center; margin-left: 0.3rem; vertical-align: middle; }


/* ── HEADER STICKY ──────────────────────────────────────── */

header { background: var(--blanc); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1080px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }
nav { display: flex; align-items: center; }
nav a { display: block; padding: 0 0.8rem; height: 60px; line-height: 60px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; color: var(--primaire); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s; }
nav a:hover { color: var(--or); }
nav a.active { color: var(--primaire); border-bottom-color: var(--primaire); }
.nav-cta { margin-left: 0.5rem !important; background: var(--or) !important; color: var(--blanc) !important; padding: 0 1rem !important; border-radius: 2px; font-weight: 500 !important; height: 34px !important; line-height: 34px !important; align-self: center; border-bottom: none !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--or-light) !important; color: var(--blanc) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.4rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--primaire); border-radius: 1px; transition: background 0.2s; }
.nav-burger:hover span { background: var(--or); }


/* ── FIL D'ARIANE ───────────────────────────────────────── */

.breadcrumb { background: var(--creme); border-bottom: 1px solid var(--bordure); padding: 0.55rem 2rem; font-size: 0.8rem; color: var(--discret); }
.breadcrumb-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--or); text-decoration: underline; text-decoration-color: var(--or-light); text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--or-light); }
.breadcrumb span { color: var(--bordure); }


/* ── LAYOUT ─────────────────────────────────────────────── */

.page-wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 2rem 5rem; display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }


/* ── TYPOGRAPHIE ────────────────────────────────────────── */

h1 { font-family: var(--font-titre); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.18; color: var(--texte); margin-bottom: 2rem; }
h1 em { font-style: italic; color: var(--primaire); }
h2 { font-family: var(--font-titre); font-weight: 400; font-size: 1.5rem; color: var(--texte); margin: 2.5rem 0 0.8rem; line-height: 1.25; }
.gold-rule { width: 48px; height: 2px; background: var(--or); margin-bottom: 2rem; }
.section-rule { width: 100%; height: 1px; background: var(--bordure); margin: 2rem 0; }
.content-body p { font-size: 0.97rem; line-height: 1.85; color: var(--texte); margin-bottom: 1.1rem; }
.content-body a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire); text-underline-offset: 3px; transition: color 0.2s; }
.content-body a:hover { color: var(--or); text-decoration-color: var(--or); }
.content-body strong { font-weight: 500; }


/* ── BOUTONS ────────────────────────────────────────────── */

.btn-secondaire { display: inline-block; margin: 0.5rem 0.4rem 0.5rem 0; padding: 0.45rem 1.1rem; background: var(--creme); border: 1px solid var(--bordure); border-radius: 2px; font-size: 0.85rem; font-weight: 500; color: var(--primaire); text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-secondaire:hover { background: var(--or); color: var(--blanc); border-color: var(--or); }
.btn-principal { background: var(--primaire); color: #fff !important; border-color: var(--primaire); }
.btn-principal:hover { background: var(--primaire-dark) !important; border-color: var(--primaire-dark); }


/* ── LIEN COLORÉ ────────────────────────────────────────── */

.link-primaire { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 3px; transition: color 0.2s; }
.link-primaire:hover { color: var(--or); text-decoration-color: var(--or-light); }


/* ── ENCADRÉS ───────────────────────────────────────────── */

.encadre-or { background: var(--creme); border: 1px solid var(--bordure); border-left: 3px solid var(--or); padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; font-size: 0.9rem; color: var(--discret); line-height: 1.75; }
.encadre-or strong { color: var(--texte); font-weight: 500; }
.alerte { background: var(--primaire-bg); border: 1px solid var(--primaire-mid); border-left: 3px solid var(--primaire); padding: 0.75rem 1.1rem; margin: 0.6rem 0 1rem; font-size: 0.88rem; color: var(--texte); line-height: 1.75; }


/* ── BLOCS DE CONTENU STRUCTURÉ ─────────────────────────── */

.bloc { margin-bottom: 2.5rem; }
.bloc-label { display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--blanc); background: var(--primaire); padding: 0.2rem 0.65rem; margin-bottom: 0.75rem; }
.bloc-titre { font-family: var(--font-titre); font-size: 1.35rem; font-weight: 600; color: var(--texte); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--bordure); line-height: 1.3; }
.bloc-corps { font-size: 0.9rem; color: var(--discret); line-height: 1.75; }
.bloc-corps a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 2px; }
.bloc-corps a:hover { color: var(--or); text-decoration-color: var(--or-light); }

/* Variante démarche */
.bloc-etape { display: grid; grid-template-columns: 56px 1fr; gap: 0 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--bordure); align-items: start; }
.bloc-etape:last-child { border-bottom: none; }
.etape-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primaire); color: #fff; font-family: var(--font-titre); font-size: 1.2rem; font-weight: 400; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.15rem; }
.etape-group { border: 1px solid var(--bordure); border-top: 3px solid var(--or); padding: 0 1.5rem; margin-bottom: 1.5rem; }

/* Variante Henry Royal */
.bloc-parcours { border-left: 3px solid var(--or); padding: 0.1rem 0 0.1rem 1.25rem; margin-bottom: 1.75rem; }

/* Tarif */
.tarif-bloc { background: var(--creme); border: 1px solid var(--bordure); border-left: 3px solid var(--or); padding: 1rem 1.25rem; margin: 1rem 0 0.5rem; font-size: 0.88rem; color: var(--discret); line-height: 1.7; }
.tarif-bloc strong { color: var(--texte); font-weight: 500; }


/* ── SOMMAIRE ────────────────────────────────────────────── */

.sommaire-section { margin-bottom: 0; }

.sommaire-section h3 {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanc);
  background: var(--primaire);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  letter-spacing: 0.03em;
}

.sommaire-list { list-style: none; }
.sommaire-list li { border-bottom: 1px solid var(--bordure); }
.sommaire-list li:last-child { border-bottom: none; }
.sommaire-list a { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.5rem; font-size: 0.88rem; color: var(--primaire); text-decoration: none; transition: background 0.15s, color 0.15s; }
.sommaire-list a:hover { background: var(--primaire-bg); }
.sommaire-list a::before { content: '\203A'; color: var(--or); flex-shrink: 0; }
.sommaire-list .sous a { padding-left: 1.5rem; font-size: 0.84rem; color: var(--discret); }
.sommaire-list .sous a::before { content: '\2013'; color: var(--bordure); }


/* ── PAGE EXPERTISES ────────────────────────────────────── */

.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 2rem; margin-top: 0.75rem; }
.expertise-item { padding: 0.6rem 0; border-bottom: 1px solid var(--bordure); }
.expertise-item .obj { font-size: 0.88rem; font-weight: 500; color: var(--texte); margin-bottom: 0.3rem; line-height: 1.4; }
.expertise-item .tools { font-size: 0.83rem; color: var(--discret); line-height: 1.65; }
.expertise-item .tools a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 2px; }
.expertise-item .tools a:hover { color: var(--or); }


/* ── PAGE INDEX ─────────────────────────────────────────── */

.situation-list { list-style: none; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 2rem; }
.situation-list li { font-size: 0.92rem; color: var(--texte); padding: 0.3rem 0; border-bottom: 1px solid var(--bordure); display: flex; gap: 0.5rem; align-items: baseline; }
.situation-list li::before { content: '\203A'; color: var(--or); flex-shrink: 0; }


/* ── PAGE CONTACT ───────────────────────────────────────── */

.page-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); font-weight: 500; margin-bottom: 0.5rem; }
.virement-box { background: var(--creme); border: 1px solid var(--bordure); border-left: 3px solid var(--or); padding: 1rem 1.25rem; font-size: 0.88rem; color: var(--discret); line-height: 1.8; }
.virement-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or); }
.iban { font-family: monospace; font-size: 0.95rem; color: var(--texte); letter-spacing: 0.05em; }
.signature { font-family: var(--font-titre); font-size: 1.1rem; font-style: italic; color: var(--discret); margin-top: 0.5rem; }


/* ── PAGE 500 DOSSIERS ──────────────────────────────────── */

.dossier-list { list-style: none; }
.dossier-list li { border-bottom: 1px solid var(--bordure); }
.dossier-list li:last-child { border-bottom: none; }
.pdf-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.pdf-icon { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--blanc); background: var(--primaire); padding: 0.05rem 0.3rem; border-radius: 2px; letter-spacing: 0.05em; flex-shrink: 0; vertical-align: middle; }
.actu-block { background: var(--primaire-bg); border: 1px solid var(--primaire-mid); border-left: 3px solid var(--primaire); padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; }
.yt-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 3px; font-size: 0.88rem; }
.yt-link:hover { color: var(--or); }


/* ── PAGE HENRY ROYAL ───────────────────────────────────── */

.refs-block { background: var(--creme); border: 1px solid var(--bordure); padding: 1.25rem 1.5rem; font-size: 0.87rem; color: var(--discret); line-height: 1.8; }
.refs-block strong { color: var(--texte); font-weight: 500; }
.refs-block a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 2px; }
.refs-block a:hover { color: var(--or); }
.pub-list { list-style: none; margin-top: 0.5rem; }
.pub-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--bordure); font-size: 0.88rem; color: var(--discret); }
.pub-list li:last-child { border-bottom: none; }
.pub-list a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 2px; }
.pub-list a:hover { color: var(--or); }


/* ── PAGES DOSSIERS (50xx) ──────────────────────────────── */

.ref-bloc { background: var(--creme); border: 1px solid var(--bordure); border-left: 3px solid var(--or); padding: 0.75rem 1.1rem; margin: 0.6rem 0 1rem; font-size: 0.83rem; color: var(--discret); line-height: 1.75; }
.ref-bloc a { color: var(--primaire); text-decoration: underline; text-underline-offset: 2px; }
.ref-bloc a:hover { color: var(--or); }
.ref-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); font-weight: 500; margin-bottom: 0.3rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 1rem 0; }
.col-bloc { background: var(--creme); border: 1px solid var(--bordure); padding: 1rem 1.1rem; font-size: 0.88rem; line-height: 1.75; }
.col-bloc h4 { font-family: var(--font-titre); font-size: 1rem; font-weight: 600; color: var(--texte); margin-bottom: 0.5rem; }
.col-bloc ul { padding-left: 1rem; color: var(--discret); }
.col-bloc ul li { margin-bottom: 0.3rem; }
.schema { background: var(--creme); border: 1px solid var(--bordure); border-top: 3px solid var(--or); padding: 1.25rem 1.5rem; margin: 1rem 0; font-size: 0.9rem; }
.schema h4 { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 600; color: var(--texte); margin-bottom: 0.75rem; }
.schema-ligne { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--bordure); font-size: 0.87rem; }
.schema-ligne:last-child { border-bottom: none; }
.schema-icone { color: var(--or); flex-shrink: 0; font-size: 0.9rem; margin-top: 0.1rem; }
.schema-texte { color: var(--discret); line-height: 1.65; }
.schema-texte strong { color: var(--texte); font-weight: 500; }
.chapitre-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bordure); font-size: 0.85rem; }
.chapitre-nav a { color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 3px; }
.chapitre-nav a:hover { color: var(--or); }
.chapitre-nav .retour-dossier { color: var(--discret); font-size: 0.8rem; }


/* ── SIDEBAR ────────────────────────────────────────────── */

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.card { background: var(--creme); border: 1px solid var(--bordure); border-radius: 3px; padding: 1.6rem 1.5rem; }
.card h3 { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 600; color: var(--texte); margin-bottom: 1rem; line-height: 1.3; }
.card p { font-size: 0.86rem; color: var(--texte); line-height: 1.7; margin-bottom: 0.6rem; }
.portrait-card { text-align: center; }
.portrait-card iframe { border-radius: 3px; margin-bottom: 0.8rem; aspect-ratio: 16/9; width: 100%; }
.portrait-card .portrait-name { font-family: var(--font-titre); font-size: 1rem; font-weight: 600; color: var(--texte); display: block; margin-bottom: 0.2rem; }
.portrait-card .portrait-role { font-size: 0.75rem; color: var(--discret); letter-spacing: 0.05em; }
.info-list { list-style: none; }
.info-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--bordure); font-size: 0.85rem; display: flex; gap: 0.6rem; align-items: baseline; }
.info-list li:last-child { border-bottom: none; }
.info-icon { color: var(--or); font-size: 0.85rem; flex-shrink: 0; }
.nav-links { list-style: none; }
.nav-links li { border-bottom: 1px solid var(--bordure); }
.nav-links li:last-child { border-bottom: none; }
.nav-links a { display: block; padding: 0.5rem 0; font-size: 0.84rem; color: var(--primaire); text-decoration: underline; text-decoration-color: var(--primaire-mid); text-underline-offset: 3px; transition: color 0.2s; }
.nav-links a:hover { color: var(--or); text-decoration-color: var(--or-light); }
.nav-links a::before { content: '\203A '; color: var(--or); text-decoration: none; }


/* ── FOOTER ─────────────────────────────────────────────── */

footer { background: var(--primaire); color: #ffffff; padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .f-logo { font-family: var(--font-titre); font-size: 1.15rem; font-weight: 400; color: #ffffff; display: block; margin-bottom: 0.3rem; }
.footer-brand p { font-size: 0.85rem; font-weight: 400; line-height: 1.7; color: #ffffff; margin-bottom: 0.5rem; }
.footer-brand .f-contact { font-size: 0.85rem; font-weight: 400; color: #ffffff; line-height: 1.8; }
.footer-brand .f-contact a { color: var(--or-light); text-decoration: underline; text-underline-offset: 2px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.08em; color: #ffffff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul a { font-size: 0.85rem; font-weight: 400; color: #ffffff; text-decoration: none; transition: color 0.18s; }
.footer-col ul a:hover { color: var(--or-light); }
.footer-bottom { max-width: 1080px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 400; color: #ffffff; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: #ffffff; }
.footer-bottom a:hover { color: var(--or-light); }


/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: 0 1rem; }
  .topbar { font-size: 0.78rem; padding: 0.35rem 1rem; }
  .nav-burger { display: flex; }
  .expertise-grid { grid-template-columns: 1fr; }
  .situation-list { grid-template-columns: 1fr; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .bloc-etape { grid-template-columns: 44px 1fr; gap: 0 1rem; }
  nav { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: var(--blanc); border-bottom: 2px solid var(--primaire); flex-direction: column; z-index: 99; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  nav.open { display: flex; }
  nav a { height: auto; line-height: 1.4; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--bordure); border-left: none; font-size: 0.95rem; }
  nav a:last-child { border-bottom: none; }
  nav a.active { border-left: 3px solid var(--primaire); padding-left: 1.2rem; }
  nav a.nav-cta { margin: 0.8rem 1.5rem !important; height: 40px !important; line-height: 40px !important; text-align: center; border-radius: 2px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .page-wrap { padding: 2rem 1.2rem 3rem; }
}
