/* ============================================
   Cabinet Gouriou — Avocat
   Palette: Bleu foncé #1a2744 / Or #c9a84c / Blanc #fff
   Typographie: Playfair Display (serif titres) + Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-dark: #0f1a2e;
  --navy-light: #243456;
  --gold: #c9a84c;
  --gold-light: #dfc577;
  --gold-dark: #a8893a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0;
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, rgba(26,39,68,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

/* --- Sections --- */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header .overline {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover { gap: 0.7rem; }
.service-link svg { width: 16px; height: 16px; }

/* --- About / Why Us --- */
.about-section { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.about-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(15,26,46,0.9));
}

.about-stat {
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.about-stat .number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.about-stat .label {
  font-size: 0.95rem;
  opacity: 0.9;
}

.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.25rem; }

.values-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.value-item .icon svg { width: 20px; height: 20px; }
.value-item h4 { margin-bottom: 0.25rem; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* --- Engagement / Promise Section --- */
.engagement-section { background: var(--navy); color: var(--white); }

.engagement-section h2 { color: var(--white); }
.engagement-section .overline { color: var(--gold); }
.engagement-section p { color: rgba(255,255,255,0.7); }

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

.engagement-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all var(--transition);
}

.engagement-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.engagement-item .number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.engagement-item h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.engagement-item p { font-size: 0.9rem; margin: 0; }

/* --- FAQ --- */
.faq-section { background: var(--gray-50); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active { border-color: var(--gold); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 1rem;
}

.faq-question:hover { color: var(--gold-dark); }

.faq-question svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  transition: transform var(--transition);
  color: var(--gold);
}

.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.05;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-primary { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* --- Sidebar CTA (internal pages) --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.sidebar { position: sticky; top: 100px; }

.sidebar-cta {
  background: var(--navy);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.sidebar-cta h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.sidebar-cta .btn-primary { width: 100%; justify-content: center; }

.sidebar-contact {
  margin-top: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
}

.sidebar-contact h4 { font-size: 1.05rem; margin-bottom: 1rem; }

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.sidebar-contact-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* --- Page Hero (internal pages) --- */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
}

/* --- Content Styles (internal pages) --- */
.page-content { padding: 4rem 0; }

.content-block { margin-bottom: 3rem; }
.content-block h2 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.content-block h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--navy-light); }
.content-block ul { margin: 1rem 0; padding-left: 0; }

.content-block ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--gray-700);
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.highlight-box {
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.highlight-box h4 { color: var(--navy); margin-bottom: 0.5rem; }
.highlight-box p { margin: 0; font-size: 0.95rem; }

/* --- Contact Form --- */
.contact-section { padding: 4rem 0; }

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateX(5px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.9rem; margin: 0; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2.5rem;
}

.contact-form h3 { margin-bottom: 1.5rem; }

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

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

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

.contact-form .btn-primary { width: 100%; justify-content: center; font-size: 1rem; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  text-align: center;
  padding: 2rem;
}

.error-content h1 {
  color: var(--gold);
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 450px;
  margin: 0 auto 2rem;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Map --- */
.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .engagement-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  
  .nav-toggle { display: flex; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links.open { display: flex; }
  
  .nav-links a {
    padding: 0.75rem 0;
    display: block;
    width: 100%;
  }
  
  .nav-links a::after { display: none; }
  
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2.4rem; }
  .page-hero h1 { font-size: 2.2rem; }
  
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .cta-banner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .hero-badges { flex-direction: column; gap: 0.75rem; }
  .error-content h1 { font-size: 5rem; }
}
