/* =========================================================
   alanbilli.com — feuille de style partagée FR / EN
   Reprise de l'identité visuelle de l'export Webflow 2020,
   réécrite sans dépendance Webflow ni jQuery.
   ========================================================= */

:root {
  --bg:        #181818;
  --ink:       #f9f8f3;
  --accent:    #ebd9be;
  --accent-soft: #ebd9be;
  --paper:     #ffffff;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      Karla, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter:    50px;
}

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

html { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 28px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; display: inline-block; }

a { color: inherit; }

/* --- Fond fixe --------------------------------------------------------- */

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image: url("assets/background_image_03.jpg");
  background-position: 0 0;
  background-size: cover;
  background-repeat: repeat-y;
  opacity: .8;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

/* --- Navigation -------------------------------------------------------- */

.navi { position: fixed; left: 0; top: 50px; z-index: 1000; }

.nav-toggle {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg);
  border: 0; padding: 0; cursor: pointer;
  transition: background-color 300ms ease;
}
.nav-toggle:hover { background-color: var(--accent); }

.burger { position: relative; display: block; width: 30px; height: 20px; }
.burger span {
  position: absolute; left: 0;
  width: 100%; height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease, background-color 300ms ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; margin-top: -1.5px; }
.burger span:nth-child(3) { bottom: 0; }
.nav-toggle:hover .burger span { background-color: var(--bg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 480px; max-width: 85vw;
  padding: 150px 0 0 50px;
  background-color: var(--bg);
  transform: translateX(-100%);
  transition: transform 500ms ease-in-out;
  z-index: 999;
  overflow-y: auto;
}
.sidebar[data-open="true"] { transform: translateX(0); }

.sidebar a.navlink {
  display: block;
  margin-bottom: 4px;
  padding: 14px 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}
.sidebar a.navlink:hover { color: var(--accent); }

.lang-switch { margin-top: 40px; padding-top: 24px; border-top: 3px solid var(--accent); }
.lang-switch a, .lang-switch span {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.lang-switch a { color: var(--accent); text-decoration: none; transition: color 200ms ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch span.current { color: var(--ink); }
.lang-switch .sep { margin: 0 10px; color: var(--accent); font-weight: 400; }

/* --- Hero -------------------------------------------------------------- */

.hero { margin: 50px var(--gutter) 0; }

.hero-bar {
  background-color: var(--paper);
  padding: 26px 30px;
  text-align: center;
}
.hero-bar h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 31px;
  line-height: 44px;
  font-weight: 400;
  color: var(--bg);
}
.hero-bar h1 strong { font-weight: 700; }

.hero-title {
  margin: 60px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 132px);
  line-height: .98;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
}

.hero-spacer { height: 260px; }

/* --- Grille de sections ------------------------------------------------ */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 var(--gutter) 110px;
  align-items: flex-start;
}

.col-label { width: 33.333%; padding-right: 40px; }
.col-body  { width: 66.666%; }

.subheadline {
  display: block;
  float: right;
  margin: 0 0 0 auto;
  padding-top: 20px;
  border-top: 3px solid var(--accent-soft);
  color: var(--accent-soft);
  font-size: 16px;
  line-height: 24px;
  text-align: right;
}

h2.section-headline {
  margin: 12px 0 28px;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  color: var(--ink);
}

.fliesstext {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 34px;
}

.lede {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 36px;
}

/* --- Réalisations ------------------------------------------------------ */

.proof { max-width: 640px; }

.proof-item { margin: 0 0 32px; padding-left: 20px; border-left: 3px solid var(--accent); }
.proof-item strong { display: block; color: #fff; font-size: 19px; line-height: 28px; }
.proof-item span {
  display: block; margin: 4px 0 8px;
  color: var(--accent); font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.proof-item p { margin: 0; line-height: 30px; }

/* --- Clients ----------------------------------------------------------- */

.clients { display: flex; flex-wrap: wrap; margin-bottom: 34px; }
.clients-col { width: 33.333%; padding-right: 24px; }
.clients-col h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; line-height: 18px;
  text-transform: uppercase;
}
.clients-col p { margin: 0; color: var(--ink); font-size: 15px; line-height: 28px; }

/* --- Contact ----------------------------------------------------------- */

.contact-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}

.portrait { display: block; width: 300px; margin: 34px 0 40px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0 var(--gutter) 60px; }

.btn {
  display: block;
  width: 100%; max-width: 300px; height: 88px;
  padding: 30px 20px 0;
  border: 3px solid var(--bg);
  background-color: var(--ink);
  background-image: url("assets/arrow-right-dark.svg");
  background-position: right 24px center;
  background-size: 29px 20px;
  background-repeat: no-repeat;
  color: var(--bg);
  font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  transition: background-position 300ms ease, background-color 300ms ease;
}
.btn:hover { background-position: right 14px center; background-color: #fff; }

.colophon { margin: 0 var(--gutter); padding: 30px 0 50px; text-align: right; }
.colophon span {
  color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

/* --- Responsive -------------------------------------------------------- */

@media screen and (max-width: 991px) {
  :root { --gutter: 34px; }
  .col-label, .col-body { width: 100%; padding-right: 0; }
  .subheadline { float: none; margin-bottom: 26px; display: inline-block; text-align: left; }
  .row { margin-bottom: 80px; }
  h2.section-headline { font-size: 36px; line-height: 44px; }
  .hero-spacer { height: 140px; }
}

@media screen and (max-width: 767px) {
  :root { --gutter: 22px; }
  .clients-col { width: 100%; padding-right: 0; margin-bottom: 26px; }
  .hero-bar h1 { font-size: 24px; line-height: 34px; }
  .lede { font-size: 19px; line-height: 32px; }
  .navi { top: 20px; }
  .nav-toggle { width: 66px; height: 66px; }
  .burger { width: 24px; height: 17px; }
  .nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .sidebar { padding: 110px 0 0 30px; }
  .portrait { width: 220px; }
  .btn { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar, .btn, .nav-toggle, .burger span { transition: none; }
}
