/*
Theme Name: Cabinet Dumanoir
Theme URI: https://dumanoir.novprojet.com
Author: NovProjet
Author URI: https://novprojet.com
Description: Thème WordPress professionnel pour le Cabinet Dumanoir — Avocat au Barreau de Versailles. Inclut un import démo one-click qui reproduit le site complet (pages, menus, images, réglages) sans aucune configuration manuelle.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabinet-dumanoir
Tags: custom-menu, custom-logo, one-column, two-columns, full-width-template, theme-options
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --cd-navy: #1a2332;
  --cd-navy-light: #2d3b4e;
  --cd-burgundy: #7a2028;
  --cd-burgundy-light: #9a3040;
  --cd-gold: #c4943d;
  --cd-gold-light: #d4b06a;
  --cd-cream: #f8f6f2;
  --cd-warm-white: #fdfcfa;
  --cd-font-heading: 'Libre Baskerville', Georgia, serif;
  --cd-font-body: 'Outfit', system-ui, sans-serif;
  --cd-container: 1280px;
  --cd-padding: 1.5rem;
  --cd-radius: 0.5rem;
}

@media (min-width: 1280px) {
  :root {
    --cd-padding: 2.5rem;
  }
}

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

body {
  font-family: var(--cd-font-body);
  color: var(--cd-navy);
  background: var(--cd-warm-white);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cd-font-heading);
  line-height: 1.1;
  color: var(--cd-navy);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin-top: 0;
}

/* ==========================================================================
   Container
   ========================================================================== */
.cd-container {
  width: 100%;
  max-width: var(--cd-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cd-padding);
  padding-right: var(--cd-padding);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.cd-topbar {
  background: var(--cd-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  padding: 0.5rem 0;
}

.cd-topbar .cd-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cd-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.6);
}

.cd-topbar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cd-topbar a:hover {
  color: var(--cd-gold-light);
}

.cd-topbar svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.cd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #f1f1f1;
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cd-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  border-bottom-color: transparent;
}

.cd-header .cd-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd-header__logo img {
  height: 2.5rem;
  width: auto;
  transition: height 0.3s ease;
}

.cd-header.scrolled .cd-header__logo img {
  height: 2rem;
}

/* Navigation */
.cd-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.cd-nav__item {
  position: relative;
}

.cd-nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--cd-navy);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.cd-nav__link:hover,
.cd-nav__link.active {
  color: var(--cd-burgundy);
}

.cd-nav__link:hover {
  background: #f9fafb;
}

.cd-nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

/* Dropdown */
.cd-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.25rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.cd-nav__item:hover .cd-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cd-nav__item:hover .cd-nav__link svg {
  transform: rotate(180deg);
}

.cd-dropdown__inner {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f1f1;
  padding: 0.5rem 0;
  min-width: 250px;
}

.cd-dropdown__header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f9fafb;
  margin-bottom: 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-burgundy);
  font-weight: 600;
}

.cd-dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: rgba(26, 35, 50, 0.8);
  transition: all 0.15s ease;
}

.cd-dropdown a:hover {
  color: var(--cd-burgundy);
  background: var(--cd-cream);
  padding-left: 1.25rem;
}

/* Mobile toggle */
.cd-mobile-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cd-mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--cd-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.cd-hero {
  position: relative;
  background: var(--cd-navy);
  overflow: hidden;
}

.cd-hero__bg {
  position: absolute;
  inset: 0;
}

.cd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.cd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cd-navy), rgba(26, 35, 50, 0.95), rgba(26, 35, 50, 0.8));
}

.cd-hero .cd-container {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.cd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.cd-hero__badge svg {
  width: 14px;
  height: 14px;
}

.cd-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cd-hero__desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.cd-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cd-hero__photo-wrap {
  position: relative;
}

.cd-hero__photo {
  width: 360px;
  height: 440px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cd-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cd-hero__card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  max-width: 200px;
}

.cd-hero__card small {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.cd-hero__card strong {
  font-size: 0.875rem;
  color: var(--cd-navy);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--cd-font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.cd-btn svg {
  width: 16px;
  height: 16px;
}

.cd-btn--primary {
  background: var(--cd-burgundy);
  color: white;
}

.cd-btn--primary:hover {
  opacity: 0.9;
  color: white;
}

.cd-btn--outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.cd-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.cd-expertise {
  padding: 3rem 0 4rem;
  background: var(--cd-warm-white);
}

.cd-section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.cd-section-header h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cd-section-header p {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
}

.cd-expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cd-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
  color: inherit;
}

.cd-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cd-card__image {
  height: 12rem;
  overflow: hidden;
}

.cd-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cd-card:hover .cd-card__image img {
  transform: scale(1.05);
}

.cd-card__body {
  padding: 1.5rem;
}

.cd-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cd-card__title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.cd-card__title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cd-burgundy);
  flex-shrink: 0;
}

.cd-card__desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cd-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cd-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--cd-cream);
  color: var(--cd-navy);
  border-radius: 9999px;
}

.cd-card__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cd-burgundy);
  transition: gap 0.2s ease;
}

.cd-card:hover .cd-card__link {
  gap: 0.5rem;
}

.cd-card__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.cd-why {
  padding: 3rem 0 4rem;
  background: white;
}

.cd-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cd-why h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.cd-why__intro {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cd-why__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cd-why__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #374151;
}

.cd-why__list-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cd-burgundy);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.cd-quote {
  background: var(--cd-cream);
  border-radius: 0.75rem;
  padding: 2rem 3rem;
}

.cd-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--cd-font-heading);
  color: var(--cd-navy);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.cd-quote__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cd-quote__author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.cd-quote__author strong {
  display: block;
  color: var(--cd-navy);
  font-weight: 600;
}

.cd-quote__author span {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ==========================================================================
   Locations
   ========================================================================== */
.cd-locations {
  padding: 3rem 0 4rem;
  background: var(--cd-cream);
}

.cd-locations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cd-location {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;
}

.cd-location__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cd-location__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(122, 32, 40, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-location__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cd-burgundy);
}

.cd-location h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.cd-location p {
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.cd-location a {
  color: var(--cd-burgundy);
  font-weight: 500;
  font-size: 0.875rem;
}

.cd-location a:hover {
  color: var(--cd-burgundy-light);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cd-cta {
  padding: 2.5rem 0 3.5rem;
  background: var(--cd-navy);
  color: white;
  text-align: center;
}

.cd-cta h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
}

.cd-cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cd-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cd-footer {
  background: var(--cd-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
}

.cd-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.cd-footer__logo img {
  height: 3.5rem;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.cd-footer__desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cd-footer h4 {
  font-size: 0.875rem;
  font-family: var(--cd-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--cd-gold);
}

.cd-footer__links li {
  margin-bottom: 0.5rem;
}

.cd-footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.cd-footer__links a:hover {
  color: white;
}

.cd-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cd-footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--cd-gold);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.cd-footer__contact-item p {
  margin: 0;
}

.cd-footer__contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.cd-footer__contact-item a:hover {
  color: white;
}

.cd-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.cd-footer__bottom a {
  color: rgba(255, 255, 255, 0.3);
}

.cd-footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */
.cd-floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--cd-burgundy);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cd-floating-cta:hover {
  transform: scale(1.05);
  color: white;
}

.cd-floating-cta svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cd-nav {
    display: none;
  }

  .cd-mobile-toggle {
    display: block;
  }

  .cd-topbar {
    display: none;
  }

  .cd-hero .cd-container {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .cd-hero__photo-wrap {
    display: none;
  }

  .cd-expertise__grid {
    grid-template-columns: 1fr;
  }

  .cd-why__grid {
    grid-template-columns: 1fr;
  }

  .cd-locations__grid {
    grid-template-columns: 1fr;
  }

  .cd-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cd-footer__grid {
    grid-template-columns: 1fr;
  }

  .cd-footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cd-hero h1 {
    font-size: 2rem;
  }

  .cd-quote {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.cd-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.cd-mobile-menu.active {
  display: block;
}

.cd-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.cd-mobile-menu__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cd-mobile-menu.active .cd-mobile-menu__panel {
  transform: translateX(0);
}

.cd-mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cd-mobile-menu__close svg {
  width: 24px;
  height: 24px;
  color: var(--cd-navy);
}

.cd-mobile-menu__logo {
  height: 3rem;
  width: auto;
  margin-bottom: 2rem;
}

.cd-mobile-menu__nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cd-navy);
  border-bottom: 1px solid #f1f1f1;
}

.cd-mobile-menu__nav a:hover,
.cd-mobile-menu__nav a.active {
  color: var(--cd-burgundy);
}

.cd-mobile-menu__cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f1f1;
}

.cd-mobile-menu__cta .cd-btn {
  width: 100%;
  margin-bottom: 1rem;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
  border-radius: var(--cd-radius);
}

.entry-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem var(--cd-padding);
}

.entry-content h2 {
  margin-top: 2rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

/* Elementor overrides */
.elementor-page .cd-header + main {
  padding: 0;
}

.elementor-section.elementor-section-full_width {
  max-width: 100%;
}
