/*
Theme Name: Elio Koubbi - Avocat
Theme URI: https://www.eliokoubbi.com
Author: Elio Koubbi
Author URI: https://www.eliokoubbi.com
Description: Theme sur mesure pour le cabinet de Maitre Elio Koubbi, avocat au Barreau de Paris. One-pager avec sections domaines, parcours, articles et contact.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: eliokoubbi
*/

/* ========== RESET & BASE ========== */
:root {
  --noir: #0a0a0a;
  --noir-2: #141414;
  --noir-3: #1a1a1a;
  --noir-4: #222222;
  --or: #c9a84c;
  --or-clair: #e0c97f;
  --or-pale: rgba(201, 168, 76, 0.08);
  --blanc: #f5f0e8;
  --blanc-2: #e8e0d0;
  --gris: #8a8477;
  --gris-clair: #b5ad9e;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--noir);
  color: var(--blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ========== GRAIN OVERLAY ========== */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========== NAV ========== */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

nav.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--blanc);
}

.nav-logo span { color: var(--or); }

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

.nav-links a {
  color: var(--gris-clair);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--or); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--or) !important;
  color: var(--or) !important;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--or) !important;
  color: var(--noir) !important;
}

.nav-cta::after { display: none !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 1.5px;
  background: var(--blanc);
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero h1 em {
  font-style: italic;
  color: var(--or);
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gris-clair);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-decoration {
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--or);
  color: var(--noir);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--or-clair);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
  color: var(--noir);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--blanc);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--noir-4);
  transition: all 0.3s ease;
}

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

/* ========== SECTIONS COMMON ========== */
section { padding: 8rem 4rem; position: relative; }

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gris-clair);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 300;
}

.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
}

/* ========== DOMAINES ========== */
.domaines { background: var(--noir); }

.domaines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: rgba(201, 168, 76, 0.08);
}

.domaine-card {
  background: var(--noir);
  padding: 3rem;
  transition: all 0.4s ease;
  position: relative;
  cursor: default;
}

.domaine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--or);
  transition: width 0.4s ease;
}

.domaine-card:hover::before { width: 100%; }
.domaine-card:hover { background: var(--noir-2); }

.domaine-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.15);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.domaine-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--blanc);
}

.domaine-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gris);
  font-weight: 300;
}

/* ========== PARCOURS ========== */
.parcours { background: var(--noir-2); }

.parcours-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}

.parcours-story {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--gris-clair);
  font-weight: 300;
}

.parcours-story strong {
  color: var(--blanc);
  font-weight: 500;
}

.parcours-story .highlight {
  color: var(--or);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
}

.parcours-timeline {
  position: relative;
  padding-left: 2rem;
}

.parcours-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--or), rgba(201, 168, 76, 0.1));
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: 0.5rem;
  width: 7px; height: 7px;
  background: var(--or);
  border-radius: 50%;
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--or);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.timeline-detail {
  font-size: 0.85rem;
  color: var(--gris);
  font-weight: 300;
}

/* ========== RDV BANNER ========== */
.rdv-banner {
  background: var(--or-pale);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rdv-banner-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.rdv-banner-text span { color: var(--or); }

.rdv-banner-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gris);
  font-weight: 300;
  margin-top: 0.3rem;
}

/* ========== ARTICLES ========== */
.articles { background: var(--noir); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.article-card {
  background: var(--noir-2);
  border: 1px solid var(--noir-4);
  padding: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.article-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.article-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.article-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--blanc);
}

.article-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gris);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.article-date {
  font-size: 0.75rem;
  color: var(--gris);
  letter-spacing: 0.05em;
}

/* ========== CONTACT ========== */
.contact { background: var(--noir-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
}

.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.contact-detail { margin-bottom: 2rem; }

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-value {
  font-size: 1rem;
  color: var(--blanc);
  font-weight: 300;
  line-height: 1.6;
}

.contact-value a { transition: color 0.3s; }
.contact-value a:hover { color: var(--or); }

/* ========== FORMS ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select,
.contact-form .wpcf7-form-control {
  width: 100%;
  padding: 1rem;
  background: var(--noir);
  border: 1px solid var(--noir-4);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Contact Form 7 overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 1rem;
  background: var(--noir);
  border: 1px solid var(--noir-4);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--or);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: var(--or);
  color: var(--noir);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--or-clair);
}

/* ========== SINGLE POST ========== */
.single-post-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}

.single-post-container .post-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.single-post-container h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.single-post-container .post-meta {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--noir-4);
}

.single-post-container .post-content {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--gris-clair);
  font-weight: 300;
}

.single-post-container .post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--blanc);
  margin: 3rem 0 1.5rem;
}

.single-post-container .post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--blanc);
  margin: 2rem 0 1rem;
}

.single-post-container .post-content p {
  margin-bottom: 1.5rem;
}

.single-post-container .post-content strong {
  color: var(--blanc);
  font-weight: 500;
}

.single-post-container .post-content a {
  color: var(--or);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-container .post-content blockquote {
  border-left: 2px solid var(--or);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--blanc-2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

/* ========== ARCHIVE ========== */
.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}

.archive-container h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ========== FOOTER ========== */
footer.site-footer {
  padding: 3rem 4rem;
  background: var(--noir);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.8rem;
  color: var(--gris);
  font-weight: 300;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  color: var(--gris);
  font-size: 0.8rem;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.footer-right a:hover { color: var(--or); }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  nav.site-nav { padding: 1.2rem 2rem; }
  nav.site-nav.scrolled { padding: 0.8rem 2rem; }
  section { padding: 5rem 2rem; }
  .hero { padding: 0 2rem; }
  .parcours-content { grid-template-columns: 1fr; gap: 3rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  footer.site-footer { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1.5rem;
  }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 2.5rem; }
  .domaines-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-decoration { display: none; }
  .hero-actions { flex-direction: column; }
  footer.site-footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-right { justify-content: center; }
  .rdv-banner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 3rem 2rem;
  }
}
