/* ═══════════════════════════════════════════════════════════
   Royal Formation — Feuille de style commune
   Fichier : style.css  |  Racine du site
   ═══════════════════════════════════════════════════════════ */


/* ── RESET & TOKENS ───────────────────────────────────────── */

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

:root {
  --rouge:      #c80000;
  --rouge-dark: #8a0000;
  --rouge-bg:   #fdf2f2;
  --rouge-mid:  #f0b8b8;
  --or:         #b8965a;
  --or-light:   #d4b06a;
  --or-bg:      #fdf6e9;
  --blanc:      #ffffff;
  --creme:      #f8f6f2;
  --texte:      #2d3142;
  --discret:    #4a5168;
  --bordure:    #e2ddd6;
  --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 SUPÉRIEUR ────────────────────────────────────── */

.topbar {
  background: var(--rouge);
  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ônes réseaux sociaux */
.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;
}

/* Navigation */
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(--rouge);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}
nav a:hover  { color: var(--or); }
nav a.active { color: var(--rouge); border-bottom-color: var(--rouge); }

/* Bouton RDV dans la nav */
.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; }

/* Burger mobile */
.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(--rouge);
  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 PRINCIPAL ─────────────────────────────────────── */

.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 CONTENU ──────────────────────────────────── */

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(--rouge); }

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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge);
  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(--rouge);
  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(--rouge);
  color: #fff !important;
  border-color: var(--rouge);
}
.btn-principal:hover { background: var(--rouge-dark) !important; border-color: var(--rouge-dark); }


/* ── BLOCS DE CONTENU STRUCTURÉ ───────────────────────────── */
/* Classes communes : expertises (phases), démarche (étapes), Henry Royal (parcours) */

.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(--rouge);
  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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 2px;
}
.bloc-corps a:hover { color: var(--or); text-decoration-color: var(--or-light); }


/* ── CLASSES SPÉCIFIQUES — 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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 2px;
}
.expertise-item .tools a:hover { color: var(--or); text-decoration-color: var(--or-light); }


/* ── CLASSES SPÉCIFIQUES — PAGE DÉMARCHE ─────────────────── */

.etape-group {
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--or);
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}
/* .bloc-label sert pour l'en-tête du groupe */

/* Numéro circulaire */
.etape-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rouge);
  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;
}

/* Bloc étape : numéro + contenu côte à côte */
.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; }

/* Encadré 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; }


/* ── CLASSES SPÉCIFIQUES — PAGE HENRY ROYAL ──────────────── */

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

/* Références clients */
.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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 2px;
}
.refs-block a:hover { color: var(--or); }

/* Liste publications / diplômes */
.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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 2px;
}
.pub-list a:hover { color: var(--or); }


/* ── CLASSES SPÉCIFIQUES — 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: '›'; color: var(--or); flex-shrink: 0; }


/* ── CLASSES SPÉCIFIQUES — 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;
}
.calendar-embed { width: 100%; border: none; border-radius: 3px; }
.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; }


/* ── CLASSES SPÉCIFIQUES — 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(--rouge);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  vertical-align: middle;
}
.actu-block {
  background: var(--rouge-bg);
  border: 1px solid var(--rouge-mid);
  border-left: 3px solid var(--rouge);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 3px;
  font-size: 0.88rem;
}
.yt-link:hover { color: var(--or); }


/* ── 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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-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: '› '; color: var(--or); text-decoration: none; }

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


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

footer { background: var(--rouge); 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); }


/* ── SOUS-PAGES (dossiers 50_xxx) ─────────────────────────── */
/* Chemin relatif vers style.css : ../style.css               */

/* Navigation précédent/suivant entre chapitres */
.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(--rouge);
  text-decoration: underline;
  text-decoration-color: var(--rouge-mid);
  text-underline-offset: 3px;
}
.chapitre-nav a:hover { color: var(--or); }
.chapitre-nav .retour-dossier { color: var(--discret); font-size: 0.8rem; }


/* ── 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; }
  .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(--rouge);
    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(--rouge); 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; }
}
