/* ==========================================================================
   WABG Avocats — feuille de style partagée
   Reconstituée à partir des tokens de design de l'export WordPress
   (Kit Elementor : couleurs, typographies, boutons, container).
   ========================================================================== */

/* ---- Polices ---- */
/* Aucune police externe : uniquement des polices systeme deja presentes
   sur l'appareil du visiteur (aucune requete vers un CDN de polices,
   aucun cookie ni traceur associe). */

:root {
  /* Palette officielle fournie par le cabinet. Les 2 neutres remplacent le noir/creme
     precedents ; #EB4203 reprend le role d'accent (boutons, liens, reperes, traits
     verticaux du logo) tenu avant par le terracotta. #008FD1 est repris comme second
     accent (chiffres cles de la page d'accueil). #18A2FF sert d'accent clair dans le
     pied de page (titres de colonnes, liseret) pour eviter un aplat gris uniforme.
     Le reste de la palette (#182EFF, #00CEC8, #FF7518) n'est pas encore affecte a un
     usage precis - a preciser si besoin. */
  --color-primary: #4a4a4a;      /* texte / fond sombre */
  --color-secondary: #f2f0ef;    /* fond clair */
  --color-accent: #EB4203;       /* couleur d'accent du cabinet (boutons, liens, logo) */
  --color-accent-2: #008FD1;     /* second accent (chiffres cles, mise en valeur ponctuelle) */
  --color-footer-accent: #18A2FF;   /* accent clair du pied de page (titres, liseret) */
  --color-white: #FFFFFF;
  --color-text: #4a4a4a;
  --color-text-muted: #6b6b6b;
  --color-border: #e0dedd;

  --font-heading: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1130px;
  --radius: 0px;
  --shadow-btn: 0 3px 6px rgba(0, 0, 0, 0.16);

  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.37;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }  /* safety net: an unstyled inline svg never overflows its column */
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.6em;
  color: var(--color-primary);
}
h1 { font-size: 44px; line-height: 0.95; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

@media (min-width: 601px) {
  h1 { font-size: 64px; line-height: 0.9; }
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
}
@media (min-width: 1025px) {
  h1 { font-size: 94px; line-height: 0.85; }
  h2 { font-size: 50px; line-height: 1.32; }
  h3 { font-size: 26px; line-height: 1.3; }
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 1.18;
  padding: 12px 18px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-accent:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
}
.btn-outline:hover {
  background: var(--color-accent-2);
  color: var(--color-white);
}
.btn-small { padding: 10px 16px; font-size: 13px; }

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ---- En-tête ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 40px; width: auto; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav li.active a {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cta { white-space: nowrap; }
@media (max-width: 900px) { .header-cta { display: none; } }
.mobile-nav > .btn { display: block; text-align: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 25px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-accent);
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 65px 0 0 0;
  background: var(--color-white);
  padding: 24px 20px;
  overflow-y: auto;
  z-index: 99;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav a {
  display: block;
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .mobile-nav { display: block; }
}

/* ---- Fil d'Ariane ---- */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; }

/* ---- Hero de page ---- */
.page-hero {
  background: var(--color-secondary);
  padding: 40px 0 48px;
}
.page-hero h1 { margin-bottom: 0; font-size: 34px; }
@media (max-width: 700px) { .page-hero h1 { font-size: 28px; } }
@media (max-width: 480px) { .page-hero h1 { font-size: 24px; } }
.page-hero .kicker {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---- Accueil : hero specifique ---- */
/* Typographie sobre : les grands cabinets d'affaires (Gide, Bredin Prat, Fidal...)
   evitent les titres XXL qui debordent - on reste sur une echelle modeste, proche
   d'un sous-titre editorial, avec un repere (kicker) et beaucoup de blanc autour. */
.home-hero {
  background: var(--color-secondary);
  padding: 72px 0;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .home-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.home-hero-text .kicker {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-accent-2);
  font-weight: 700;
}
.home-hero-text h1 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  max-width: 480px;
  margin: 14px 0 28px;
}
@media (min-width: 700px) { .home-hero-text h1 { font-size: 30px; } }
@media (min-width: 1025px) { .home-hero-text h1 { font-size: 34px; } }
.home-hero-media img { aspect-ratio: 5/4; object-fit: cover; }

/* ---- Accueil : section texte + photo ---- */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 3em 0;
}
@media (max-width: 800px) { .home-split { grid-template-columns: 1fr; } }
.home-split-media img { aspect-ratio: 16/9; object-fit: cover; }

/* ---- Accueil : chiffres clés ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 2.5em 0;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--color-secondary);
  padding: 24px 20px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-accent-2);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--color-text-muted); }

/* ---- Accueil : bandeau citation/CTA ---- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px;
  margin: 3em 0;
  text-align: center;
}
.cta-banner p {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 1em;
}
.cta-banner .btn-accent { border-color: var(--color-white); }

/* ---- Accueil : témoignages ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--color-secondary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card .stars { color: var(--color-accent); letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; flex: 1; }
.testimonial-card cite { font-family: var(--font-heading); font-weight: 700; font-style: normal; font-size: 14px; }

/* ---- Accueil : actualités (teaser) ---- */
.news-teaser {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  background: var(--color-secondary);
  padding: 32px;
}
@media (max-width: 700px) { .news-teaser { grid-template-columns: 1fr; } }
.news-teaser img { aspect-ratio: 4/3; object-fit: cover; }

/* ---- Contenu de page ---- */
main { display: block; }
.page-content {
  padding: 48px 0 64px;
}
.page-content .container { max-width: 800px; }
.page-content.wide .container { max-width: var(--container-width); }

.page-content h2 { margin-top: 1.4em; }
.page-content h2:first-child { margin-top: 0; }
.domains-intro h2 { text-align: center; }
.domains-intro p { text-align: justify; }
.justify-text p { text-align: justify; }
.justify-text .cta-banner p { text-align: center; }

.value-name {
  color: var(--color-accent-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.6em 0 0.3em;
}
.value-name::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--color-accent-2);
  margin-right: 8px;
  vertical-align: middle;
}
.pole-photo { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto 32px; border-radius: var(--radius); }
.pole-intro p { margin-bottom: 1.1em; }

.page-content ul.plain-list li { position: relative; padding-left: 18px; margin-bottom: 0.5em; }
.page-content ul.plain-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; background: var(--color-accent);
}
.page-content li { position: relative; padding-left: 18px; margin-bottom: 0.5em; }
.page-content li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; background: var(--color-accent);
}
.page-content a:not(.btn):not(.btn-outline):not(.tile-card) { text-decoration: underline; text-underline-offset: 2px; }
.page-content a:not(.btn):not(.btn-outline):hover { color: var(--color-accent); }
.page-content img { margin: 1.2em 0; }
.page-content .block { margin: 2.2em 0; }
.page-content .card {
  background: var(--color-secondary);
  padding: 24px;
  margin-bottom: 16px;
}

blockquote {
  background: var(--color-secondary);
  border-left: 3px solid var(--color-accent);
  padding: 20px 24px;
  margin: 1.6em 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
}
blockquote p { margin-bottom: 0.3em; }
blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---- Grilles de cartes (domaines, équipe, réseaux, partenaires, experts) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.grid-section { margin-top: 3em; }
.grid-section h2 { margin-bottom: 0.6em; }

.tile-card {
  display: block;
  background: var(--color-secondary);
  padding: 24px;
  transition: background-color .15s ease;
}
.tile-card:hover { background: #e8f2fa; }
.tile-card h3 { margin-bottom: 0.4em; font-size: 19px; }
.tile-card p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 0; }
.tile-card .tile-link { display: inline-block; margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--color-accent-2); font-weight: 700; }

/* ---- Poles d'activite (page d'accueil) ---- */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 700px) { .poles-grid { grid-template-columns: 1fr; } }

.pole-card { background: var(--color-secondary); padding: 28px; }
.pole-card h3 { margin-bottom: 0.7em; font-size: 20px; }
.pole-list { list-style: none; margin: 0 0 14px; padding: 0; }
.pole-list li { padding: 9px 0; padding-left: 0; border-bottom: 1px solid var(--color-border); font-size: 15px; line-height: 1.4; margin-bottom: 0; }
.pole-list li::before { content: none; }
.pole-list li:last-child { border-bottom: none; }
.pole-list a { color: var(--color-text); }
.pole-list a:hover { color: var(--color-accent-2); }
.pole-card .tile-link { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--color-accent-2); font-weight: 700; }

.person-card {
  display: block;
  text-align: center;
}
.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--color-secondary);
}
.person-card .person-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: var(--color-secondary);
  padding: 24px;
}
.logo-card img { max-height: 70px; width: auto; object-fit: contain; }
.logo-card h3 { font-size: 16px; margin-bottom: 0; }

.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}
@media (max-width: 900px) { .experts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .experts-grid { grid-template-columns: repeat(2, 1fr); } }
.expert-card { display: block; text-align: center; }
.expert-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--color-secondary); margin-bottom: 8px;
}
.expert-name { font-family: var(--font-heading); font-weight: 700; font-size: 14px; }

/* ---- Profil membre de l'équipe ---- */
.member-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .member-layout { grid-template-columns: 1fr; }
}
.member-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--color-secondary); }
.member-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.member-tags a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 6px 10px;
  background: var(--color-secondary);
  color: var(--color-text);
}
.member-tags a:hover { background: var(--color-accent); color: var(--color-secondary); }
.member-bio h2:first-child { margin-top: 0; }

/* ---- Réseaux / partenaires : fiche simple ---- */
.entity-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) { .entity-layout { grid-template-columns: 1fr; } }
.entity-photo img { width: 100%; object-fit: contain; background: var(--color-secondary); padding: 16px; }
.entity-actions { margin-top: 20px; }

/* ---- Formulaire de contact (dans le pied de page, identique sur toutes les pages) ---- */

.contact-form {
  background: var(--color-white);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row { display: flex; flex-direction: column; gap: 3px; }
.form-row label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-muted);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-row textarea { resize: vertical; min-height: 56px; }

/* honeypot: hidden from sighted visitors but present in the DOM for basic bot filtering */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.form-consent input { margin-top: 3px; }
.form-consent a { text-decoration: underline; }
.form-consent a:hover { color: var(--color-accent); }

.contact-form .btn { align-self: flex-start; }

/* ---- Pied de page ---- */
.site-footer {
  background: linear-gradient(180deg, #565656 0%, #3d3d3d 100%);
  color: var(--color-white);
  padding-top: 56px;
  border-top: 3px solid var(--color-footer-accent);
}
.site-footer h2 { color: var(--color-white); }
.site-footer h3 { color: var(--color-footer-accent); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(235,66,3,0.35);
  scroll-margin-top: 90px; /* keeps the form clear of the sticky header when reached via #contact */
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; } }
.footer-intro { max-width: 560px; }
.footer-brand-logo { max-width: 200px; margin-bottom: 24px; }
.footer-intro h2 { font-size: 32px; }
.footer-intro p { color: rgba(255,255,255,0.75); }
.footer-highlights { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-highlights li { display: flex; align-items: center; gap: 10px; }
.footer-highlights svg { flex: none; width: 18px; height: 18px; color: var(--color-footer-accent); }
.footer-highlights a { color: rgba(255,255,255,0.75); }
.footer-highlights a:hover { color: var(--color-accent); }

.footer-top .contact-form { background: var(--color-secondary); padding: 14px; max-width: 380px; }
.footer-top .form-row label { color: var(--color-text-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(235,66,3,0.35);
}
.footer-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.footer-col p, .footer-col a:not(.btn) { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.7; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover, .footer-col a:not(.btn):hover { color: var(--color-accent); }
.footer-col .btn { margin-top: 14px; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
}
.social-links svg { width: 18px; height: 18px; fill: #fff; }
.social-links a:hover { background: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--color-accent); }
