/* ============================================
   BORIS GUIGNARD — Design Φ (phi)
   Proportions : nombre d'or 1.618
   Palette : noir profond · or chaud · blanc pur
   ============================================ */

:root {
  /* Palette */
  --noir:      #0E0E12;
  --noir-mid:  #1C1C24;
  --noir-soft: #2A2A36;
  --or:        #C4973A;
  --or-clair:  #D9B870;
  --or-pale:   #F0E4C4;
  --blanc:     #FFFFFF;
  --creme:     #F7F4EE;
  --gris:      #E8E5DE;
  --gris-mid:  #A09A8E;
  --texte:     #1A1A22;

  /* Phi : 1.618 */
  --phi: 1.618;

  /* Espacement basé sur Fibonacci : 5 8 13 21 34 55 89 144 */
  --s1:  .325rem;   /* ~5px  */
  --s2:  .5rem;     /* ~8px  */
  --s3:  .8125rem;  /* ~13px */
  --s4:  1.3125rem; /* ~21px */
  --s5:  2.125rem;  /* ~34px */
  --s6:  3.4375rem; /* ~55px */
  --s7:  5.5625rem; /* ~89px */
  --s8:  9rem;      /* ~144px */

  /* Typographie */
  --serif: 'Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max: 1080px;
  --radius: 2px;
  --ombre: 0 2px 40px rgba(14,14,18,.12);
}

/* ---- Bunny Fonts (RGPD — serveurs EU, sans transfert IP) ---- */
@import url('https://fonts.bunny.net/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', var(--sans); color: var(--texte); background: var(--blanc); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or); text-decoration: none; transition: color .2s; }
a:hover { color: var(--or-clair); }

/* ---- Typographie ---- */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: var(--s4); color: var(--blanc); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--s4); color: var(--noir); }
h3 { font-size: 1.35rem; margin-bottom: var(--s3); color: var(--noir); }
h4 { font-size: 1.05rem; font-family: 'Inter', var(--sans); font-weight: 500; color: var(--noir); margin-bottom: var(--s2); }
p  { margin-bottom: var(--s4); color: #3A3A46; font-size: .97rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: var(--s5); margin-bottom: var(--s4); }
li { margin-bottom: var(--s2); color: #3A3A46; font-size: .95rem; line-height: 1.75; }

/* ---- Φ — symbole décoratif ---- */
.phi-mark {
  font-family: 'EB Garamond', serif;
  font-size: inherit;
  color: var(--or);
  font-style: italic;
}
.phi-bg {
  position: absolute;
  font-family: 'EB Garamond', serif;
  font-size: clamp(200px, 30vw, 380px);
  color: rgba(196,151,58,.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-style: italic;
  font-weight: 400;
}

/* ---- Layout ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }

/* Proportions phi : conteneur principal / sidebar = 1.618 */
.phi-grid {
  display: grid;
  grid-template-columns: 1fr calc(1fr * 1.618);
  gap: var(--s6);
  align-items: start;
}
.phi-grid--reverse {
  grid-template-columns: calc(1fr * 1.618) 1fr;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }

/* Sections */
.section { padding: var(--s7) 0; }
.section--noir { background: var(--noir); }
.section--sombre { background: var(--noir-mid); }
.section--creme { background: var(--creme); }
.section--gris { background: var(--gris); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,14,18,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,151,58,.15);
  padding: var(--s3) 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s5);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none !important;
}
.nav__phi {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}
.footer__phi {
  width: 54px;
  height: 54px;
  display: block;
  margin-bottom: var(--s3);
}
.nav__name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav__name strong {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: .82rem;
  color: var(--blanc);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__name span {
  font-family: 'EB Garamond', serif;
  font-size: .85rem;
  color: var(--gris-mid);
  font-style: italic;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
  list-style: none;
  padding: 0;
}
.nav__links a {
  color: rgba(247,244,238,.7);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--or-clair); }
.nav__cta {
  border: 1px solid rgba(196,151,58,.5) !important;
  color: var(--or-clair) !important;
  padding: var(--s2) var(--s4) !important;
  border-radius: var(--radius) !important;
  transition: all .2s !important;
}
.nav__cta:hover {
  background: var(--or) !important;
  color: var(--noir) !important;
  border-color: var(--or) !important;
}

/* ---- Hero ---- */
.hero {
  background: var(--noir);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--s7) + 60px) 0 var(--s7);
}
.hero__ornament {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'EB Garamond', serif;
  font-size: min(50vw, 520px);
  color: rgba(196,151,58,.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-style: italic;
}
.hero__line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or) 38.2%, transparent 61.8%, transparent);
}
.hero__tag {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.hero__tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--or);
}
.hero h1 {
  color: var(--blanc);
  max-width: 680px;
  font-weight: 400;
}
.hero h1 em { color: var(--or-clair); font-style: italic; }
.hero__sub {
  font-size: 1.05rem;
  color: rgba(247,244,238,.55);
  max-width: 500px;
  margin-bottom: var(--s6);
  font-weight: 300;
  line-height: 1.85;
}
.hero__photo-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38.2%; /* 1/phi */
  overflow: hidden;
}
.hero__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--noir) 0%, rgba(14,14,18,.3) 60%, transparent 100%);
  z-index: 1;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: .6;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  border: 1px solid transparent;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif;
}
.btn--or {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
}
.btn--or:hover { background: var(--or-clair); border-color: var(--or-clair); color: var(--noir); }
.btn--outline-or {
  background: transparent;
  color: var(--or-clair);
  border-color: rgba(196,151,58,.4);
}
.btn--outline-or:hover { border-color: var(--or); color: var(--or); }
.btn--outline-noir {
  background: transparent;
  color: var(--noir);
  border-color: rgba(14,14,18,.3);
}
.btn--outline-noir:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btns { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---- Tag section ---- */
.tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--or);
  flex-shrink: 0;
}
.tag--clair { color: rgba(196,151,58,.7); }
.tag--clair::before { background: rgba(196,151,58,.5); }

/* ---- Trait doré ---- */
.gold-line {
  width: calc(100% / 1.618);
  height: 1px;
  background: linear-gradient(90deg, var(--or), transparent);
  margin: var(--s5) 0;
}
.gold-line--centre { margin: var(--s5) auto; }

/* ---- Cards ---- */
.card {
  padding: var(--s5);
  border: 1px solid var(--gris);
  position: relative;
  transition: border-color .3s, transform .3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.card:hover { border-color: rgba(196,151,58,.3); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }
.card--sombre {
  background: var(--noir-mid);
  border-color: rgba(196,151,58,.1);
  color: var(--creme);
}
.card--sombre h3, .card--sombre h4 { color: var(--creme); }
.card--sombre p { color: rgba(247,244,238,.65); }
.card__num {
  font-family: 'EB Garamond', serif;
  font-size: 3rem;
  color: rgba(196,151,58,.2);
  line-height: 1;
  margin-bottom: var(--s3);
  font-style: italic;
}

/* ---- Citation / blockquote ---- */
blockquote {
  position: relative;
  padding: var(--s5) var(--s5) var(--s5) var(--s6);
  border-left: 1px solid var(--or);
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--noir);
  line-height: 1.65;
}
blockquote::before {
  content: '"';
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  font-size: 4rem;
  line-height: 1;
  color: var(--or);
  font-family: 'EB Garamond', serif;
}
blockquote cite {
  display: block;
  margin-top: var(--s4);
  font-size: .82rem;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  color: var(--gris-mid);
  letter-spacing: .05em;
}
.quote--clair { color: rgba(247,244,238,.85); border-left-color: rgba(196,151,58,.5); }
.quote--clair cite { color: rgba(196,151,58,.6); }

/* ---- Steps / processus ---- */
.steps { display: flex; flex-direction: column; gap: var(--s5); }
.step { display: flex; gap: var(--s4); align-items: flex-start; }
.step__num {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--or);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--or);
  flex-shrink: 0;
}
.step__num--sombre {
  border-color: rgba(196,151,58,.3);
}

/* ---- FAQ Accordion ---- */
details {
  border-bottom: 1px solid var(--gris);
  padding: var(--s4) 0;
}
details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: .95rem;
  color: var(--noir);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--or);
  flex-shrink: 0;
  font-family: 'EB Garamond', serif;
  font-style: italic;
}
details[open] summary::after { content: '−'; }
details p { margin-top: var(--s4); font-size: .93rem; color: #4A4A56; }

/* ---- Badges / certifications ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border: 1px solid rgba(196,151,58,.3);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 500;
}
.badges { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---- Stats ---- */
.stat { text-align: center; }
.stat__num {
  font-family: 'EB Garamond', serif;
  font-size: 3rem;
  color: var(--or);
  line-height: 1;
  margin-bottom: var(--s2);
  font-style: italic;
}
.stat__label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,244,238,.5); }
.stats { display: flex; gap: var(--s6); justify-content: center; flex-wrap: wrap; }

/* ---- Bandeau CTA ---- */
.cta-band {
  background: var(--noir);
  padding: var(--s7) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: 'φ';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'EB Garamond', serif;
  font-size: 500px;
  color: rgba(196,151,58,.03);
  line-height: 1;
  font-style: italic;
  pointer-events: none;
}
.cta-band h2 { color: var(--blanc); }
.cta-band p { color: rgba(247,244,238,.55); max-width: 480px; margin: 0 auto var(--s5); }

/* ---- Page header ---- */
.page-header {
  background: var(--noir);
  padding: calc(var(--s7) + 60px) 0 var(--s6);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or) 38.2%, transparent 61.8%, transparent);
}
.page-header h1 { color: var(--blanc); font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: rgba(247,244,238,.55); font-size: 1.05rem; max-width: 560px; margin-bottom: 0; }
.breadcrumb {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(196,151,58,.5);
  margin-bottom: var(--s5);
}
.breadcrumb a { color: rgba(196,151,58,.6); }

/* ---- Formulaire ---- */
.form-group { margin-bottom: var(--s5); }
label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--noir);
  margin-bottom: var(--s2);
}
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--gris);
  border-bottom: 1px solid rgba(196,151,58,.3);
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  color: var(--texte);
  background: transparent;
  transition: border-color .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--or);
  border-bottom-color: var(--or);
}
textarea { min-height: 140px; resize: vertical; }

/* ---- Séparateur phi ---- */
.sep {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s6) 0;
  color: rgba(196,151,58,.4);
}
.sep::before, .sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gris);
}
.sep__phi {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--or);
}

/* ---- Highlight box ---- */
.highlight-box {
  border: 1px solid rgba(196,151,58,.2);
  background: rgba(196,151,58,.04);
  padding: var(--s5);
  position: relative;
}
.highlight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: calc(100% / 1.618);
  height: 1px;
  background: linear-gradient(90deg, var(--or), transparent);
}

/* ---- Photo profil ---- */
.photo-profil {
  width: 100%;
  aspect-ratio: calc(1 / 1.618);
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%);
}
.photo-wrap {
  position: relative;
  overflow: hidden;
}
.photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196,151,58,.2);
  pointer-events: none;
}

/* ---- Footer ---- */
.footer {
  background: var(--noir);
  border-top: 1px solid rgba(196,151,58,.12);
  padding: var(--s6) 0 var(--s5);
}
.footer__inner {
  display: grid;
  grid-template-columns: calc(1fr * 1.618) 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
}
.footer__phi {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--or);
  line-height: 1;
  margin-bottom: var(--s3);
}
.footer__brand {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,244,238,.4);
  margin-bottom: var(--s2);
  display: block;
}
.footer__desc { font-size: .85rem; color: rgba(247,244,238,.35); line-height: 1.75; }
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(196,151,58,.6);
  margin-bottom: var(--s4);
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.footer ul a { color: rgba(247,244,238,.4); font-size: .85rem; transition: color .2s; }
.footer ul a:hover { color: var(--or-clair); }
.footer__bottom {
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(247,244,238,.25);
  letter-spacing: .04em;
}

/* ---- Utilitaires ---- */
.text-or { color: var(--or); }
.text-blanc { color: var(--blanc); }
.text-gris { color: var(--gris-mid); }
.italic { font-style: italic; font-family: 'EB Garamond', serif; }
.centre { text-align: center; }
.mt1 { margin-top: var(--s4); }
.mt2 { margin-top: var(--s5); }
.mt3 { margin-top: var(--s6); }
.mb0 { margin-bottom: 0 !important; }

/* ---- Intro section ---- */
.intro {
  max-width: 620px;
  margin-bottom: var(--s6);
}
.intro--centre { margin: 0 auto var(--s6); text-align: center; }
.intro h2 { margin-bottom: var(--s3); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .phi-grid, .phi-grid--reverse, .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: var(--s4); }
  .nav__links { display: none; }
  .hero__photo-wrap { display: none; }
  .stats { gap: var(--s5); }
}
@media (max-width: 640px) {
  :root { --s7: 4rem; --s6: 2.5rem; }
  h1 { font-size: 2rem; }
  .btns { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: var(--s2); text-align: center; }
}

/* ---- Animation entrée ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up--d1 { animation-delay: .15s; }
.fade-up--d2 { animation-delay: .3s; }
.fade-up--d3 { animation-delay: .45s; }
