/* Laydem Partners Inc. — feuille de style unique. Charte provisoire : ne modifier que le bloc :root. */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #121844;
  --navy-2: #1b2360;
  --blue: #2b6cb0;
  --blue-2: #245f9e;
  --sky: #f0f7ff;
  --ink: #1f2433;
  --muted: #5a6275;
  --line: #dfe5ee;
  --white: #ffffff;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section, main { scroll-margin-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .28em; color: var(--blue); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.nav .lang { font-size: .85rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 999px; padding: 12px 24px; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: var(--white) !important; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white) !important; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.nav .btn { padding: 9px 20px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--font-body); color: var(--navy); cursor: pointer; }

/* Bandeau d'accroche */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 140%); color: var(--white); padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.hero .eyebrow { font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; color: #9ec5f0; margin-bottom: 18px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { font-size: 1.2rem; max-width: 60ch; color: #dbe6f5; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--blue); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--sky); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.pillar .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; }

.practices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.practice { border-radius: var(--radius); padding: 36px 32px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); display: flex; flex-direction: column; }
.practice.creative { border-top-color: var(--navy); }
.practice .who { color: var(--muted); font-style: italic; }
.practice ul { padding-left: 1.1em; margin: 0 0 20px; }
.practice li { margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--sky); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0; }

.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.signals li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line); }
.signals li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--font-head); font-size: 1.4rem; color: var(--blue); }
.signals strong { display: block; color: var(--navy); }
.signals span { color: var(--muted); font-size: .96rem; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.figure { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.figure b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.figure span { font-size: .9rem; color: var(--muted); }

.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.engage div { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; }
.engage p { color: var(--muted); margin: 0; }

.cta { background: var(--navy); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #cdd8ea; max-width: 60ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .mail { display: inline-block; margin-top: 18px; color: #9ec5f0; font-weight: 600; }

/* Pied de page */
.site-footer { background: #0c1033; color: #aab4c8; font-size: .9rem; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #cdd8ea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }

/* Pages de texte (confidentialité, 404) */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 800px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page .updated { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .pillars, .engage { grid-template-columns: 1fr; }
  .practices, .signals { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .js .menu-toggle { display: inline-block; }
  .nav { flex-wrap: wrap; gap: 6px 18px; }
  .js .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 18px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 10px 0; width: 100%; }
  .js .nav .btn { width: auto; margin-top: 8px; }
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-header .wrap { flex-wrap: nowrap; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { letter-spacing: .2em; }
  .practice { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* En-tête simplifié des pages secondaires (pas de menu mobile) */
.nav.nav-simple { display: flex; position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; border: 0; background: none; }
.nav.nav-simple a { width: auto; padding: 0; }
.nav.nav-simple .btn { padding: 9px 20px; margin: 0; }
.nav.nav-simple .lang { padding: 4px 12px; }
.page h1.second { margin-top: 1.5em; }

/* Logo horizontal (plume + LAYDEM / PARTNERS) : un seul bloc, proportions figées */
.brand-logo { height: 60px; width: auto; display: block; }
.site-header .wrap { min-height: 88px; }
@media (max-width: 900px) {
  .brand-logo { height: 46px; }
  .site-header .wrap { min-height: 76px; }
  .js .nav { top: 76px; }
}

/* Mobile : bascule de langue visible dans l'en-tête, à côté du bouton Menu (et non plus cachée dans le menu) */
.lang-top { display: none; }
@media (max-width: 900px) {
  .js .lang-top { display: inline-block; margin-left: auto; font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; line-height: 1.2; }
  .js .nav:not(.nav-simple) .lang { display: none; }
  .js .site-header .wrap { gap: 10px; }
  .js .nav a.btn { padding: 10px 22px; }
}

/* Bouton « haut de page » (retour de Gautier, 02/10) : flottant en bas à droite, visible après défilement */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: var(--white) !important; font: 700 1.3rem/1 var(--font-body); text-decoration: none; box-shadow: 0 4px 14px rgba(18,24,68,.28); }
.to-top:hover { background: var(--blue-2); }
.js .to-top { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.js .to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 520px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media print { .to-top { display: none; } }
