/*
Theme Name: @LEX AVOCATS
Theme URI: https://lexavocats.fr/
Author: @LEX AVOCATS
Description: Thème éditable du cabinet @LEX AVOCATS — droit du numérique, IA, cybersécurité, données, SaaS et actifs immatériels.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: lex-avocats
*/

:root {
  --lex-navy: #0c2448;
  --lex-paper: #fdfdfd;
  --lex-raspberry: #c52d64;
  --lex-mauve: #7d6b8e;
  --lex-greige: #d9cbc9;
  --lex-slate: #5c6f83;
  --lex-cream: #faeedd;
  --lex-blush: #fff8fe;
  --lex-sky: #e8f3f5;
  --lex-ink: #14243c;
  --lex-line: rgba(12, 36, 72, 0.16);
  --lex-shadow: 0 24px 70px rgba(12, 36, 72, 0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { text-rendering: optimizeLegibility; }
::selection { background: var(--lex-raspberry); color: #fff; }
:focus-visible { outline: 3px solid var(--lex-raspberry); outline-offset: 4px; }

.wp-site-blocks { overflow: clip; }
.lex-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(12, 36, 72, 0.1);
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(18px);
}
.admin-bar .lex-site-header { top: 32px; }
.lex-header-inner { min-height: 5.2rem; }
.lex-brand { font-weight: 800; letter-spacing: -0.05em; text-decoration: none; white-space: nowrap; }
.lex-brand::first-letter { color: var(--lex-raspberry); }
.lex-site-header .wp-block-navigation-item__content { text-decoration: none; }
.lex-site-header .wp-block-navigation-item__content:hover { color: var(--lex-raspberry); }
.lex-nav-cta > a {
  border-radius: 999px;
  background: var(--lex-navy);
  color: #fff !important;
  padding: .72rem 1rem !important;
}
.lex-nav-cta > a:hover { background: var(--lex-raspberry); }

.lex-main { margin-block-start: 0; }
.lex-section { padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); }
.lex-section-tight { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.lex-eyebrow {
  margin-bottom: 1rem !important;
  color: var(--lex-raspberry);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.lex-display { max-width: 1060px; font-size: clamp(3.15rem, 8vw, 7.4rem) !important; line-height: .94 !important; letter-spacing: -.045em; }
.lex-page-title { max-width: 1050px; font-size: clamp(3rem, 7vw, 6.4rem) !important; line-height: .96 !important; letter-spacing: -.04em; }
.lex-section-title { max-width: 900px; font-size: clamp(2.25rem, 5vw, 4.8rem) !important; line-height: 1 !important; letter-spacing: -.035em; }
.lex-lead { max-width: 820px; color: #33445b; font-size: clamp(1.05rem, 2vw, 1.34rem); }
.lex-hero {
  min-height: auto;
  padding-top: clamp(6rem, 12vh, 10rem);
  padding-bottom: clamp(4rem, 6vw, 6.5rem);
  background: linear-gradient(180deg, #fdfdfd 0%, #fdfdfd 54%, #eef1f5 78%, #d3dbe5 100%);
}
.lex-page-hero {
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 11vw, 10rem);
  background: linear-gradient(180deg, #fdfdfd 0%, #f7f8fa 58%, #dbe1e9 100%);
}
.lex-gradient-primary {
  min-height: 880px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--lex-paper) 0%, #dce2e9 11%, #91a0b4 22%, var(--lex-navy) 39%, var(--lex-navy) 72%, var(--lex-mauve) 100%);
}
.lex-gradient-sky { background: linear-gradient(180deg, var(--lex-sky) 0%, #c8dbe1 48%, #aab8c5 100%); }
.lex-gradient-blush { background: linear-gradient(180deg, var(--lex-greige) 0%, #eee3ec 42%, var(--lex-blush) 76%, var(--lex-paper) 100%); }
.lex-gradient-slate { background: linear-gradient(180deg, var(--lex-paper) 0%, #dce1ec 20%, #8090a7 56%, var(--lex-navy) 100%); }
.lex-dark-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 2rem;
  background: rgba(12,36,72,.82);
  box-shadow: 0 30px 100px rgba(5,17,36,.24);
  color: #fff;
  backdrop-filter: blur(10px);
}
.lex-dark-panel h1, .lex-dark-panel h2, .lex-dark-panel h3, .lex-dark-panel p, .lex-dark-panel li { color: #fff; }

.lex-grid-2, .lex-grid-3, .lex-grid-4 { display: grid; gap: 1rem; }
.lex-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lex-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lex-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lex-card {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--lex-line);
  border-radius: 1.2rem;
  background: rgba(253,253,253,.76);
}
.lex-card h3 { color: var(--lex-navy); }
.lex-card-number { color: var(--lex-raspberry); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.lex-card-dark { border-color: rgba(255,255,255,.22); background: rgba(12,36,72,.72); color: #fff; }
.lex-card-dark h3, .lex-card-dark p { color: #fff; }
.lex-statement-grid > * {
  min-height: 145px;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
  border-left: 3px solid var(--lex-raspberry);
  background: #fff;
  color: var(--lex-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}
.lex-manifest { background: var(--lex-navy); color: #fff; }
.lex-manifest h2, .lex-manifest p { color: #fff; }
.lex-cta { background: var(--lex-raspberry); color: #fff; }
.lex-cta h2, .lex-cta p { color: #fff; }
.lex-cta .wp-block-button__link { background: #fff; color: var(--lex-navy); }
.lex-soft-cream { background: var(--lex-cream); }
.lex-soft-blush { background: var(--lex-blush); }
.lex-soft-sky { background: var(--lex-sky); }
.lex-rule { border-top: 1px solid var(--lex-line); }
.lex-chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.lex-chip-row > * { margin: 0 !important; padding: .52rem .8rem; border: 1px solid var(--lex-line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--lex-navy); font-size: .85rem; font-weight: 700; }

.wp-block-button__link { transition: transform 160ms ease, background-color 160ms ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-outline > .wp-block-button__link:hover { background: var(--lex-navy); color: #fff; }

.lex-contact-grid { align-items: start; }
.lex-contact-form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--lex-line); border-radius: 1.4rem; background: #fff; box-shadow: var(--lex-shadow); }
.lex-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lex-contact-form label { display: grid; gap: .35rem; color: var(--lex-navy); font-size: .9rem; font-weight: 750; }
.lex-contact-form input, .lex-contact-form textarea, .lex-contact-form select { width: 100%; border: 1px solid rgba(12,36,72,.24); border-radius: .7rem; background: #fff; color: var(--lex-ink); padding: .85rem .95rem; font: inherit; }
.lex-contact-form textarea { min-height: 145px; resize: vertical; }
.lex-contact-form button { justify-self: start; border: 0; border-radius: 999px; background: var(--lex-raspberry); color: #fff; padding: .9rem 1.3rem; font: inherit; font-weight: 800; cursor: pointer; }
.lex-form-message { padding: 1rem; border-radius: .7rem; background: var(--lex-sky); color: var(--lex-navy); }
.lex-form-message.is-error { background: #fff0f4; color: #781a3c; }

.lex-site-footer { background: #081b37; color: rgba(255,255,255,.82); }
.lex-site-footer h2, .lex-site-footer a { color: #fff; }
.lex-site-footer a:hover { color: #ffd6e6; }
.lex-footer-bottom { border-top: 1px solid rgba(255,255,255,.18); font-size: .84rem; }

@media (max-width: 980px) {
  .lex-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lex-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-bar .lex-site-header { top: 46px; }
  .lex-display { font-size: clamp(3rem, 16vw, 5rem) !important; }
  .lex-page-title { font-size: clamp(2.8rem, 14vw, 4.7rem) !important; }
  .lex-grid-2, .lex-grid-4, .lex-form-row { grid-template-columns: 1fr; }
  .lex-hero { min-height: auto; }
  .lex-gradient-primary { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
