/*
Theme Name: Hirigoyen Modern
Theme URI: https://hirigoyen.notaires.fr
Author: Maxime Hirigoyen
Description: Thème élégant sombre pour l'office notarial Hirigoyen — navy, or/cuivre, typographie serif raffinée.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hirigoyen-modern
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ========== Custom Properties ========== */
:root {
  --c-navy: #0f1923;
  --c-navy-light: #1a2535;
  --c-navy-mid: #243347;
  --c-gold: #c4a265;
  --c-gold-light: #d4b87a;
  --c-gold-dark: #a88a50;
  --c-cream: #f8f6f3;
  --c-white: #ffffff;
  --c-text-light: #f8f6f3;
  --c-text-muted: #a0aab4;
  --c-text-dark: #1a2535;
  --c-border: rgba(196, 162, 101, 0.25);

  --ff-heading: "Cormorant Garamond", "Georgia", serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-md: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-lg: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --fs-xl: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  --fs-2xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --max-w: 1200px;
  --max-w-narrow: 800px;
  --header-h: 80px;
  --transition: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text-dark);
  background: var(--c-cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-navy);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p + p { margin-top: 1em; }

/* ========== Utilities ========== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== Gold decorative line ========== */
.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--c-gold);
  margin: var(--space-sm) 0 var(--space-md);
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: var(--c-gold);
  color: var(--c-navy);
}

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

.btn--filled:hover,
.btn--filled:focus {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  color: var(--c-navy);
}

.btn--light {
  border-color: var(--c-cream);
  color: var(--c-cream);
}

.btn--light:hover,
.btn--light:focus {
  background: var(--c-cream);
  color: var(--c-navy);
}

/* ========== Site Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 25, 35, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo__text {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-cream);
  white-space: nowrap;
}

/* ========== Navigation ========== */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-primary li {
  position: relative;
}

.nav-primary > ul > li > a {
  display: block;
  padding: 0.6em 1.1em;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--transition);
}

.nav-primary > ul > li > a:hover,
.nav-primary > ul > li.current-menu-item > a,
.nav-primary > ul > li.current-menu-parent > a,
.nav-primary > ul > li.current-menu-ancestor > a {
  color: var(--c-gold);
}

/* Dropdown */
.nav-primary .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(15, 25, 35, 0.97);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--c-gold);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-primary .sub-menu a {
  display: block;
  padding: 0.65em 1.5em;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color var(--transition), padding-left var(--transition);
}

.nav-primary .sub-menu a:hover {
  color: var(--c-gold);
  padding-left: 1.8em;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}

.lang-switch a {
  color: var(--c-text-muted);
  padding: 0.2em 0.4em;
  transition: color var(--transition);
}

.lang-switch a:hover,
.lang-switch a.is-active {
  color: var(--c-gold);
}

.lang-switch__sep {
  color: var(--c-text-muted);
  opacity: 0.4;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-cream);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--c-navy);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 162, 101, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 162, 101, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding: var(--space-xl) var(--space-md);
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--c-cream);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--c-gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.hero .gold-line {
  margin: 0 auto var(--space-md);
}

.hero__description {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* ========== Section: Contact / Info ========== */
.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--c-navy);
  color: var(--c-text-light);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-cream);
}

.section--cream {
  background: var(--c-cream);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-card {
  background: var(--c-white);
  border-radius: 4px;
  padding: var(--space-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.contact-card .gold-line {
  margin-bottom: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--c-gold);
  margin-top: 0.2em;
}

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hours-list {
  font-size: var(--fs-base);
  line-height: 2;
}

.hours-list strong {
  color: var(--c-gold-dark);
}

.access-info {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.8;
}

/* ========== Page Header ========== */
.page-header {
  background: var(--c-navy);
  padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-lg);
  text-align: center;
}

.page-header h1 {
  color: var(--c-cream);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-header .gold-line {
  margin: var(--space-sm) auto 0;
}

/* ========== Blog ========== */
.blog-article-meta {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-muted);
  margin-top: var(--space-sm);
}

.blog-article-body {
  margin-bottom: var(--space-lg);
}

.blog-back-link {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
}

.blog-back-link a {
  color: var(--c-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-back-link a:hover {
  color: var(--c-gold);
}

.blog-list {
  list-style: none;
  display: grid;
  gap: var(--space-lg);
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.blog-list--empty {
  text-align: center;
  padding: var(--space-lg) 0;
}

.blog-card {
  background: var(--c-white);
  padding: var(--space-md);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--c-gold);
}

.blog-card__date {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--c-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--c-gold-dark);
}

.blog-card__excerpt {
  font-size: var(--fs-base);
  color: var(--c-text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.blog-card__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__link:hover {
  color: var(--c-gold);
}

.blog-card__image-link {
  display: block;
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  line-height: 0;
}

.blog-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition);
}

.blog-card__image-link:hover .blog-card__image {
  transform: scale(1.02);
}

.blog-card__content {
  /* contenu texte de la carte */
}

.blog-article-hero {
  padding: 0 0 var(--space-md);
}

.blog-article-hero__img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.blog-pagination {
  text-align: center;
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  height: 2.4em;
  padding: 0 0.6em;
  border-radius: 4px;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.blog-pagination a {
  color: var(--c-navy);
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-pagination a:hover {
  background: var(--c-gold);
  color: var(--c-white);
}

.blog-pagination .current {
  background: var(--c-navy);
  color: var(--c-cream);
  font-weight: 500;
}

/* ========== Page Content ========== */
.page-content {
  padding: var(--space-xl) 0;
}

.page-content .container {
  max-width: var(--max-w-narrow);
}

/* WordPress content styling */
.entry-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.entry-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content a {
  color: var(--c-gold-dark);
  text-decoration: underline;
  text-decoration-color: var(--c-border);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.entry-content a:hover {
  color: var(--c-gold);
  text-decoration-color: var(--c-gold);
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content img {
  border-radius: 4px;
  margin: var(--space-md) 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--c-gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-style: italic;
  color: #555;
  background: rgba(196, 162, 101, 0.06);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.entry-content th,
.entry-content td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-content th {
  font-weight: 600;
  color: var(--c-navy);
  border-bottom-color: var(--c-gold);
}

/* WordPress form styling (Contact Form 7) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.8em 1em;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--c-white);
  transition: border-color var(--transition);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--c-gold);
}

.wpcf7 input[type="submit"] {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.5em;
  border: 1px solid var(--c-gold);
  color: var(--c-navy);
  background: var(--c-gold);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 0;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
}

/* ========== Site Footer ========== */
.site-footer {
  background: var(--c-navy);
  color: var(--c-text-muted);
  padding: var(--space-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--c-border);
}

.footer-col h4 {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-cream);
  margin-bottom: var(--space-xs);
}

.footer-col .gold-line {
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col li {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.footer-col a {
  color: var(--c-text-muted);
  transition: color var(--transition);
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.footer-bottom {
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.footer-bottom a {
  color: var(--c-gold);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--c-gold-light);
}

/* ========== 404 Page ========== */
.error-404 {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404 h1 {
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 700;
  color: var(--c-border);
  line-height: 1;
}

.error-404 p {
  font-size: var(--fs-md);
  color: #666;
  margin: var(--space-sm) 0 var(--space-md);
}

/* ========== WordPress Specific ========== */
.alignleft {
  float: left;
  margin-right: var(--space-md);
  margin-bottom: var(--space-sm);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  font-size: var(--fs-xs);
  color: #888;
  padding: var(--space-xs) 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Gravity / CF7 specifics */
.wpcf7-response-output {
  border-color: var(--c-gold) !important;
  padding: var(--space-sm) !important;
  margin: var(--space-md) 0 !important;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + var(--space-md)) var(--space-md) var(--space-md);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav-wrapper.is-open {
    right: 0;
  }

  .nav-primary ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-primary > ul > li > a {
    padding: 0.8em 0;
    font-size: var(--fs-sm);
  }

  .nav-primary .sub-menu {
    position: static;
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    border-left: 2px solid var(--c-border);
    margin-left: var(--space-sm);
    padding: var(--space-xs) 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-primary li.is-dropdown-open > .sub-menu {
    display: block;
  }

  .lang-switch {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--c-border);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero__content {
    padding: calc(var(--header-h) + var(--space-md)) var(--space-sm) var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .page-header {
    padding-top: calc(var(--header-h) + var(--space-md));
  }

  .site-logo img {
    height: 38px;
  }
}

/* ========== Overlay for mobile nav ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ========== Dropdown toggle arrow ========== */
.nav-primary .toggle-dropdown {
  display: none;
}

@media (max-width: 900px) {
  .nav-primary .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-primary .toggle-dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 0.5em;
    margin-left: auto;
    transition: transform var(--transition);
  }

  .nav-primary .toggle-dropdown .arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
  }

  .nav-primary li.is-dropdown-open > .toggle-dropdown .arrow {
    transform: rotate(-135deg);
  }
}

/* ========== Page Header Breadcrumb & Subtitle ========== */
.page-header__breadcrumb {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.page-header__breadcrumb a {
  color: var(--c-gold);
  transition: color var(--transition);
}

.page-header__breadcrumb a:hover {
  color: var(--c-gold-light);
}

.page-header__subtitle {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--c-text-muted);
  max-width: 650px;
  margin: var(--space-sm) auto 0;
  line-height: 1.7;
}

/* ========== Lead Paragraph ========== */
.lead {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  margin-bottom: var(--space-md);
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  display: block;
  background: var(--c-white);
  border-radius: 4px;
  padding: var(--space-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
  display: block;
  font-size: 2rem;
  color: var(--c-gold);
  margin-bottom: var(--space-xs);
}

.service-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
}

.service-card .gold-line {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.service-card__link {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-gold);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.service-card:hover .service-card__link {
  color: var(--c-gold-dark);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Two Columns Layout ========== */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.two-cols p {
  line-height: 1.8;
}

@media (max-width: 900px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
}

/* ========== Check List ========== */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--c-gold);
  font-weight: 700;
}

/* ========== Founder / Portrait Layout ========== */
.founder {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.founder__photo {
  position: sticky;
  top: calc(var(--header-h) + var(--space-md));
}

.founder__photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.founder__text h2 {
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.founder__text .gold-line {
  margin-bottom: var(--space-md);
}

.founder__text p {
  line-height: 1.85;
  margin-bottom: 1.2em;
}

.founder__text strong {
  color: var(--c-navy);
  font-weight: 600;
}

.founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: var(--space-md);
}

.founder__tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5em 1.2em;
  border: 1px solid var(--c-gold);
  color: var(--c-gold-dark);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
  }

  .founder__photo {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ========== Credential Card (reusable) ========== */
.credential-card {
  background: var(--c-white);
  border-radius: 4px;
  padding: var(--space-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-md);
}

.credential-card:last-child {
  margin-bottom: 0;
}

.credential-card h4 {
  margin-bottom: var(--space-xs);
}

.credential-card .gold-line {
  margin-bottom: var(--space-sm);
}

.credential-card ul {
  list-style: none;
  padding: 0;
}

.credential-card li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.4em;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.credential-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--c-gold);
}

/* ========== Values Grid ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.value-item {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}

.value-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.value-item .gold-line {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-sm);
}

.value-item p {
  font-size: var(--fs-base);
  color: #666;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Tarifs Breakdown ========== */
.tarif-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.tarif-item {
  background: var(--c-white);
  border-radius: 4px;
  padding: var(--space-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--c-gold);
}

.tarif-item h4 {
  margin-bottom: var(--space-xs);
}

.tarif-item p {
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .tarif-breakdown {
    grid-template-columns: 1fr;
  }
}

/* ========== Contact Page Grid ========== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper h2 {
  margin-bottom: var(--space-xs);
}

.contact-form-wrapper .gold-line {
  margin-bottom: var(--space-sm);
}

.contact-form-wrapper > p {
  color: #666;
  margin-bottom: var(--space-md);
}

/* ========== Contact Form ========== */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: var(--space-sm);
}

.contact-form label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-dark);
  margin-bottom: 0.3em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8em 1em;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--c-white);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--c-gold);
}

.contact-form .form-notice {
  font-size: var(--fs-xs);
  color: #999;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.contact-form .btn {
  border-radius: 0;
}

.contact-feedback {
  padding: 1em 1.2em;
  border-radius: 4px;
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.contact-feedback--success {
  background: #f0f9f0;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.contact-feedback--error {
  background: #fef2f2;
  border: 1px solid #e57373;
  color: #c62828;
}

/* ========== Contact Side ========== */
.contact-side .contact-card {
  margin-bottom: 0;
}

/* ========== Hero Logo ========== */
.hero__logo {
  max-width: 400px;
  margin: 0 auto;
}
