/*
Theme Name: Cabinet Ferrier
Theme URI: https://benjaminferrier-avocat.fr
Author: Cabinet Benjamin Ferrier
Description: Theme sur mesure du cabinet de Maitre Benjamin Ferrier, avocat au Barreau de Nice. Design anthracite et or, typographies Cormorant Garamond et Outfit.
Version: 1.7
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cabinet-ferrier
*/

    :root {
      --bg: #cdd7e2;
      --bg2: #e2e8f0;
      --bg3: #eef2f7;
      --border: #b1c0cf;
      --gold: #7a5d27;
      --gold-light: #9a7a3a;
      --text: #2a3643;
      --text-muted: #5a6675;
      --text-dim: #44515f;
      --white: #1e2935;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Outfit', sans-serif;
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(205,215,226,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: 1.15rem;
      color: var(--gold);
      letter-spacing: 0.04em;
      cursor: pointer;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: color 0.2s;
      cursor: pointer;
    }

    .nav-links a:hover, .nav-links a.active { color: var(--gold); }

    .nav-cta {
      background: transparent;
      border: 1px solid var(--gold);
      color: var(--gold);
      padding: 0.45rem 1.2rem;
      font-family: 'Outfit', sans-serif;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .nav-cta:hover {
      background: var(--gold);
      color: #f6f4ef;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }
    .hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--text-dim);
      transition: all 0.3s;
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 64px; left: 0; right: 0;
      background: var(--bg2);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 2rem;
      z-index: 99;
      flex-direction: column;
      gap: 1.2rem;
    }

    .mobile-menu a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 0.9rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .mobile-menu.open { display: flex; }


    /* ── HERO ── */
    .hero {
      min-height: calc(100vh - 64px);
      display: grid;
      grid-template-columns: 1fr 1fr;
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #d9e1ea 0%, #bccadb 100%);
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6rem 4rem 6rem 6rem;
      position: relative;
      z-index: 2;
      max-width: 700px;
    }

    .hero-eyebrow {
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 2rem;
    }

    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(2.8rem, 5vw, 4.5rem);
      line-height: 1.1;
      color: var(--white);
      margin-bottom: 1.5rem;
    }

    .hero-title em {
      font-style: italic;
      color: var(--gold);
    }

    .hero-subtitle {
      font-size: 0.95rem;
      color: var(--text-dim);
      max-width: 480px;
      line-height: 1.8;
      margin-bottom: 3rem;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--gold);
      color: #f6f4ef;
      border: none;
      padding: 0.9rem 2rem;
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
    }

    .btn-primary:hover { background: var(--gold-light); }

    .btn-secondary {
      background: transparent;
      color: var(--text-dim);
      border: 1px solid var(--border);
      padding: 0.9rem 2rem;
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
    }

    .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

    .hero-right {
      position: relative;
      overflow: hidden;
    }

    .hero-right::before {
      display: none;
    }

    .hero-right img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 35%;
      filter: grayscale(20%) brightness(0.82);
    }

    .hero-bar {
      position: absolute;
      bottom: 3rem;
      left: 6rem;
      display: flex;
      gap: 3rem;
      z-index: 2;
    }

    .hero-stat {
      border-left: 1px solid var(--gold);
      padding-left: 1rem;
    }

    .hero-stat strong {
      display: block;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.8rem;
      color: var(--gold);
      font-weight: 300;
    }

    .hero-stat span {
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #888;
    }

    /* ── SECTIONS ── */
    section {
      padding: 5rem 0;
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .section-label {
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
    }

    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(2rem, 4vw, 3rem);
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 1.5rem;
    }

    .section-title em { font-style: italic; color: var(--gold); }

    .section-intro {
      color: var(--text-dim);
      max-width: 600px;
      font-size: 0.95rem;
      line-height: 1.8;
      margin-bottom: 3.5rem;
    }

    /* ── DOMAINS GRID ── */
    .domains-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

    .domain-card {
      background: var(--bg2);
      padding: 2.5rem;
      cursor: pointer;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
    }

    .domain-card::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0; height: 2px;
      background: var(--gold);
      transition: width 0.3s;
    }

    .domain-card:hover { background: var(--bg3); }
    .domain-card:hover::after { width: 100%; }

    .domain-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 3rem;
      color: var(--border);
      line-height: 1;
      margin-bottom: 1rem;
      font-weight: 300;
    }

    .domain-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.4rem;
      color: var(--white);
      margin-bottom: 0.8rem;
      font-weight: 400;
    }

    .domain-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .domain-link {
      display: inline-block;
      margin-top: 1.5rem;
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      cursor: pointer;
    }

    /* ── DIVIDER ── */
    .divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 0;
    }

    /* ── ABOUT SECTION (homepage) ── */
    .about-strip {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
    }

    .about-img-wrap {
      position: relative;
    }

    .about-img-wrap img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      object-position: center 20%;
      filter: grayscale(20%) brightness(0.75);
    }

    .about-img-wrap::before {
      content: '';
      position: absolute;
      top: -1.5rem; left: -1.5rem;
      right: 1.5rem; bottom: 1.5rem;
      border: 1px solid var(--gold);
      z-index: -1;
    }

    .about-quote {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.6rem;
      font-style: italic;
      color: var(--text-dim);
      line-height: 1.5;
      margin-bottom: 2rem;
      border-left: 2px solid var(--gold);
      padding-left: 1.5rem;
    }

    /* ── CONTACT STRIP ── */
    .contact-strip {
      background: var(--bg2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
    }

    .contact-item {
      background: var(--bg2);
      padding: 2.5rem;
      text-align: center;
    }

    .contact-item-label {
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.5rem;
    }

    .contact-item-value {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: var(--white);
    }

    .contact-item-value a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s;
    }

    .contact-item-value a:hover { color: var(--gold); }

    /* ── PRACTICE PAGES ── */
    .practice-hero {
      padding: 5rem 0 4rem;
      border-bottom: 1px solid var(--border);
    }

    .practice-hero .breadcrumb {
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      cursor: pointer;
    }

    .practice-hero .breadcrumb span { color: var(--gold); }

    .practice-lead {
      font-size: 1.05rem;
      color: var(--text-dim);
      max-width: 700px;
      line-height: 1.9;
      margin-top: 1.5rem;
    }

    .practice-body {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 5rem;
      padding: 5rem 0;
    }

    .practice-content h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.6rem;
      color: var(--white);
      font-weight: 400;
      margin: 2.5rem 0 1rem;
    }

    .practice-content h2:first-child { margin-top: 0; }

    .practice-content p {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.9;
      margin-bottom: 1rem;
    }

    .practice-sidebar {
      position: sticky;
      top: 5rem;
      height: fit-content;
    }

    .sidebar-box {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-top: 2px solid var(--gold);
      padding: 2rem;
      margin-bottom: 1.5rem;
    }

    .sidebar-box h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: var(--white);
      font-weight: 400;
      margin-bottom: 1rem;
    }

    .sidebar-box p {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .sidebar-box .btn-primary {
      width: 100%;
      text-align: center;
      display: block;
    }

    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 0;
    }

    .faq-q {
      font-size: 0.9rem;
      color: var(--white);
      font-weight: 500;
      margin-bottom: 0.7rem;
      cursor: pointer;
    }

    .faq-a {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    /* ── ABOUT PAGE ── */
    .about-page-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 6rem;
      padding: 5rem 0;
      align-items: start;
    }

    .about-photo {
      position: sticky;
      top: 5rem;
    }

    .about-photo img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      object-position: center 20%;
      filter: grayscale(15%) brightness(0.8);
    }

    .about-photo-caption {
      margin-top: 1rem;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .about-photo-caption strong {
      display: block;
      color: var(--gold);
      font-size: 0.85rem;
      margin-bottom: 0.2rem;
      font-weight: 400;
    }

    .about-text h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.8rem;
      color: var(--white);
      font-weight: 300;
      margin: 2.5rem 0 1rem;
    }

    .about-text h2:first-child { margin-top: 0; }

    .about-text p {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.9;
      margin-bottom: 1rem;
    }

    .values-list {
      list-style: none;
      margin-top: 1.5rem;
    }

    .values-list li {
      padding: 1rem 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
    }

    .values-list li::before {
      content: '—';
      color: var(--gold);
      flex-shrink: 0;
      margin-top: 0.05rem;
    }

    .values-list li span {
      font-size: 0.88rem;
      color: var(--text-dim);
      line-height: 1.7;
    }

    /* ── CONTACT PAGE ── */
    .contact-page {
      padding: 5rem 0;
    }

    .contact-page-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 5rem;
      margin-top: 3rem;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    .contact-info-block {
      margin-bottom: 2.5rem;
    }

    .contact-info-block h3 {
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.7rem;
    }

    .contact-info-block p {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.8;
    }

    .contact-info-block a {
      color: var(--text-dim);
      text-decoration: none;
      transition: color 0.2s;
    }

    .contact-info-block a:hover { color: var(--gold); }

    .contact-form-area {
      background: var(--bg2);
      border: 1px solid var(--border);
      padding: 2.5rem;
    }

    .contact-form-area h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.4rem;
      color: var(--white);
      font-weight: 400;
      margin-bottom: 0.5rem;
    }

    .contact-form-area p {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-bottom: 2rem;
      line-height: 1.7;
    }

    .form-group {
      margin-bottom: 1.2rem;
    }

    .form-group label {
      display: block;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      background: var(--bg3);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.8rem 1rem;
      font-family: 'Outfit', sans-serif;
      font-size: 0.85rem;
      font-weight: 300;
      outline: none;
      transition: border-color 0.2s;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--gold);
    }

    .form-group textarea { resize: vertical; min-height: 120px; }

    .form-group select option { background: var(--bg3); }

    .form-note {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      line-height: 1.6;
    }

    /* ── FOOTER ── */
    footer {
      background: var(--bg2);
      border-top: 1px solid var(--border);
      padding: 3rem 0 2rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 4rem;
      margin-bottom: 3rem;
    }

    .footer-brand {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      color: var(--gold);
      margin-bottom: 1rem;
      font-weight: 400;
    }

    .footer-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.8;
      max-width: 280px;
    }

    .footer-col h4 {
      font-size: 0.68rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1rem;
    }

    .footer-col ul { list-style: none; }

    .footer-col ul li {
      margin-bottom: 0.6rem;
    }

    .footer-col ul li a {
      font-size: 0.82rem;
      color: var(--text-muted);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.2s;
    }

    .footer-col ul li a:hover { color: var(--gold); }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-bottom p {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .footer-bottom span {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .fade-up {
      animation: fadeUp 0.7s ease forwards;
    }

    .fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
    .fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
    .fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
    .fade-up-delay-4 { animation-delay: 0.5s; opacity: 0; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .nav-links, .nav-cta { display: none; }
      .hamburger { display: flex; }

      .hero {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .hero-left {
        padding: 3rem 2rem 2rem;
      }

      .hero-right {
        display: none;
      }

      .hero-bar {
        display: none;
      }

      .domains-grid { grid-template-columns: 1fr; }

      .about-strip { grid-template-columns: 1fr; gap: 3rem; }

      .contact-grid { grid-template-columns: 1fr; }

      .practice-body { grid-template-columns: 1fr; gap: 3rem; }
      .practice-sidebar { position: static; }

      .about-page-grid { grid-template-columns: 1fr; gap: 3rem; }
      .about-photo { position: static; }

      .contact-page-grid { grid-template-columns: 1fr; gap: 3rem; }

      .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
      .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    }
  

    /* ════════ ADAPTATIONS WORDPRESS ════════ */
    body { padding-top: 64px; }
    .hero { padding: 0; }

    a.domain-card { display: block; color: inherit; text-decoration: none; }

    /* Contenu riche des pages et articles */
    .practice-content h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem; color: var(--white); font-weight: 400; margin: 2rem 0 0.8rem;
    }
    .practice-content ul, .practice-content ol { margin: 0 0 1rem 1.2rem; color: var(--text-dim); }
    .practice-content li { font-size: 0.9rem; line-height: 1.9; margin-bottom: 0.4rem; }
    .practice-content a { color: var(--gold); text-decoration: underline; }
    .practice-content strong { color: var(--white); }
    .practice-content blockquote {
      border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 1.5rem 0;
      font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; color: var(--text-dim);
    }
    .practice-content img { max-width: 100%; height: auto; margin: 1.5rem 0; }
    .practice-content--narrow { max-width: 780px; }

    /* Liste des actualites / blog */
    .post-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
    .post-card { background: var(--bg2); padding: 2.5rem; transition: background 0.2s; }
    .post-card:hover { background: var(--bg3); }
    .post-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
    .post-card h2 a { color: var(--white); text-decoration: none; transition: color 0.2s; }
    .post-card h2 a:hover { color: var(--gold); }
    .post-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
    .post-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; }
    .post-readmore { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
    .single-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 1rem; }
    .pagination { margin: 3rem 0; text-align: center; }
    .pagination a, .pagination span { color: var(--text-dim); padding: 0.4rem 0.8rem; text-decoration: none; border: 1px solid var(--border); margin: 0 0.2rem; }
    .pagination a:hover, .pagination .current { border-color: var(--gold); color: var(--gold); }
