/* ================================================================
   STYLE.CSS — Office Notarial Maître Fellah Lilia éps IZEGHOUINE
   Palette : Blanc ivoire · Gris perle · Bordeaux notarial
   Typographie : EB Garamond (titres) + Lato (corps)
   ================================================================ */

/* ----------------------------------------------------------------
   1. VARIABLES CSS & DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Couleurs primaires */
  --color-bordeaux:       #7B1429;   /* Accent principal — sceau notarial */
  --color-bordeaux-dark:  #5C0F1E;   /* Hover, accents foncés */
  --color-bordeaux-light: #A01E38;   /* Variante claire */
  --color-bordeaux-pale:  #F8EEF0;   /* Arrière-plans subtils */

  /* Neutres */
  --color-white:          #FFFFFF;
  --color-ivory:          #FAFAF8;   /* Fond principal */
  --color-grey-50:        #F5F4F2;   /* Fond alterné */
  --color-grey-100:       #EDECEA;   /* Bordures légères */
  --color-grey-200:       #D6D4D0;   /* Séparateurs */
  --color-grey-400:       #9A9790;   /* Texte muted */
  --color-grey-700:       #3D3B38;   /* Corps de texte */
  --color-grey-900:       #1A1816;   /* Titres principaux */

  /* Expertise section (fond sombre) */
  --color-dark-bg:        #1A1816;
  --color-dark-surface:   #231F1C;

  /* Typographie */
  --font-display:   'EB Garamond', Georgia, serif;
  --font-body:      'Lato', system-ui, sans-serif;

  /* Échelle typographique */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   1.875rem;   /* 30px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   3.75rem;    /* 60px */
  --text-6xl:   4.5rem;     /* 72px */

  /* Espacement */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;

  /* Layout */
  --container-max:  1240px;
  --container-pad:  1.5rem;

  /* Bordures & ombres */
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    8px;
  --border-thin:  1px solid var(--color-grey-100);
  --border-med:   1px solid var(--color-grey-200);

  --shadow-sm:    0 1px 3px rgba(26, 24, 22, 0.06),
                  0 1px 2px rgba(26, 24, 22, 0.04);
  --shadow-md:    0 4px 16px rgba(26, 24, 22, 0.08),
                  0 2px 6px rgba(26, 24, 22, 0.05);
  --shadow-lg:    0 12px 40px rgba(26, 24, 22, 0.10),
                  0 4px 12px rgba(26, 24, 22, 0.06);

  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-grey-700);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 
 * Anti-Pub / Hébergeurs Gratuits :
 * Notre layout n'utilise aucun <div> en enfant direct du <body>.
 * S'il y a un <div> direct, c'est la bannière/watermark de l'hébergeur.
 */
body > div {
  display: none !important;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

address { font-style: normal; }

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--space-3) var(--space-6);
  background: var(--color-bordeaux);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-grey-900);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   3. UTILITIES
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ----------------------------------------------------------------
   4. COMPOSANTS TYPOGRAPHIQUES
   ---------------------------------------------------------------- */

/* Label de section */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
  margin-bottom: var(--space-4);
}
.section-label--light {
  color: rgba(248, 238, 240, 0.7);
}

/* Titre de section — signature : trait bordeaux paraphe */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-grey-900);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-5);
}

/* Trait bordeaux en bas du titre — le paraphe signature */
.section-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 1.5px;
  background: var(--color-bordeaux);
}

.section-title--centered {
  text-align: center;
}
.section-title--centered::after {
  left: 50%;
  transform: translateX(-50%);
}

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

.section-title--light {
  color: var(--color-ivory);
}
.section-title--light::after {
  background: var(--color-bordeaux-light);
}

/* ----------------------------------------------------------------
   5. BOUTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-bordeaux);
  outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

/* Bouton principal */
.btn--primary {
  background: var(--color-bordeaux);
  color: var(--color-white);
  border-color: var(--color-bordeaux);
}
.btn--primary:hover {
  background: var(--color-bordeaux-dark);
  border-color: var(--color-bordeaux-dark);
  box-shadow: 0 4px 16px rgba(123, 20, 41, 0.30);
  transform: translateY(-1px);
}

/* Bouton fantôme (outline bordeaux) */
.btn--ghost {
  background: transparent;
  color: var(--color-grey-900);
  border-color: var(--color-grey-200);
}
.btn--ghost:hover {
  border-color: var(--color-bordeaux);
  color: var(--color-bordeaux);
}

/* Bouton outline (utilisé dans about) */
.btn--outline {
  background: transparent;
  color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
}
.btn--outline:hover {
  background: var(--color-bordeaux);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(123, 20, 41, 0.25);
}

/* ----------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-thin);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 80px;
}

/* Marque */
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-prefix {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
}

.header-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-grey-900);
  line-height: 1.2;
  transition: color var(--transition-fast);
}
.header-name:hover { color: var(--color-bordeaux); }
.header-name em { font-style: italic; font-weight: 400; }

.header-role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-grey-400);
  letter-spacing: 0.04em;
}

/* Image du logo (test) */
.header-logo-img {
  width: auto;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Sceau d'État */
.state-seal {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.state-seal--sm {
  width: 40px;
  height: 40px;
}

.seal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-bordeaux);
  border-radius: 50%;
  opacity: 0.85;
}

.seal-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-bordeaux);
  border-radius: 50%;
  opacity: 0.5;
}

/* Croissant et étoile algériens (stylisés) */
.seal-star {
  width: 18px;
  height: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-star::before {
  content: '☪';
  font-size: 16px;
  color: var(--color-bordeaux);
  line-height: 1;
}

.state-seal--sm .seal-star::before {
  font-size: 12px;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-grey-700);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-bordeaux);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-bordeaux);
}
.nav-link:hover::after { width: 100%; }

.nav-link:focus-visible {
  outline: 2px solid var(--color-bordeaux);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-link--cta {
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-bordeaux);
  color: var(--color-bordeaux);
  border-radius: var(--radius-sm);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--color-bordeaux);
  color: var(--color-white);
}

/* Burger (mobile & tablette) */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  z-index: 1000;
}

.burger-btn:focus-visible {
  outline: 2px solid var(--color-bordeaux);
  outline-offset: 2px;
}

.burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-grey-900);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}

/* Animation burger ouvert */
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   7. HERO & ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes drawLineVertical {
  0% { transform: scaleY(0); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}
@keyframes drawLineHorizontal {
  0% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
@keyframes slideCorner {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes growRule {
  0% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-ivory);
  padding-top: 80px; /* hauteur du header */
}

/* Lignes décoratives de fond */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-line {
  position: absolute;
  background: var(--color-grey-100);
  overflow: hidden;
}

/* Faisceau de lumière constant et discret sur les lignes */
@keyframes lightTravel {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}
@keyframes lightTravelHoriz {
  0% { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}

.hero-bg-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, transparent, rgba(139, 29, 45, 0.3), transparent);
  animation: lightTravel 8s linear infinite;
}

.hero-bg-line--1 {
  top: 0; bottom: 0;
  left: 38%;
  width: 1px;
  animation: drawLineVertical 1.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.hero-bg-line--2 {
  top: 0; bottom: 0;
  right: 25%;
  width: 1px;
  animation: drawLineVertical 1.6s cubic-bezier(0.7, 0, 0.3, 1) 0.2s both;
}
.hero-bg-line--2::before {
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero-bg-line--3 {
  left: 0; right: 0;
  top: 68%;
  height: 1px;
  animation: drawLineHorizontal 1.6s cubic-bezier(0.7, 0, 0.3, 1) 0.4s both;
}
.hero-bg-line--3::before {
  width: 15vw;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(139, 29, 45, 0.2), transparent);
  animation: lightTravelHoriz 14s linear infinite;
  animation-delay: -2s;
}

/* Coin bordeaux en haut à droite */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 4px;
  background: var(--color-bordeaux);
  animation: slideCorner 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
  max-width: 760px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.eyebrow-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
  white-space: nowrap;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.eyebrow-rule {
  display: block;
  height: 1px;
  width: 40px;
  background: var(--color-bordeaux);
  flex-shrink: 0;
  animation: growRule 1s cubic-bezier(0.7, 0, 0.3, 1) 0.5s both;
}

/* Titre hero */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--color-grey-900);
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;
  animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

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

/* Tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-grey-700);
  margin-bottom: var(--space-10);
  max-width: 560px;
  animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}

.hero-tagline strong {
  font-weight: 700;
  color: var(--color-grey-900);
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}

/* Indicateurs de confiance */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: var(--space-8);
  border-top: var(--border-thin);
  animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-right: var(--space-8);
}

.trust-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-bordeaux);
  line-height: 1;
}

.trust-label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-grey-400);
  letter-spacing: 0.04em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--color-grey-200);
  margin-right: var(--space-8);
  flex-shrink: 0;
}

/* Cascade d'apparition des indicateurs de confiance */
.trust-item:nth-child(1) { animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both; }
.trust-divider:nth-child(2) { animation: drawLineVertical 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s both; }
.trust-item:nth-child(3) { animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s both; }
.trust-divider:nth-child(4) { animation: drawLineVertical 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s both; }
.trust-item:nth-child(5) { animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s both; }



/* ----------------------------------------------------------------
   8. ABOUT
   ---------------------------------------------------------------- */
.about {
  padding-block: var(--space-24);
  background: var(--color-white);
  border-top: var(--border-thin);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: center;
}

/* Visuel */
.about-visual { position: relative; }

.about-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

/* Photo réelle de la réception */
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

.about-portrait-frame:hover .about-photo {
  transform: scale(1.03);
}

/* Placeholder d'initiales (conservé au cas où) */
.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-grey-50) 0%, var(--color-grey-100) 100%);
  border: var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(26, 24, 22, 0.015) 2px,
    rgba(26, 24, 22, 0.015) 4px
  );
}

.portrait-initials {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-bordeaux);
  opacity: 0.25;
  position: relative;
  z-index: 1;
}

/* Cadre décoratif décalé */
.about-portrait-frame::before {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--color-bordeaux);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* Badge sceau */
.about-seal-badge {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-8));
  background: var(--color-bordeaux);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.seal-badge-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seal-badge-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.seal-badge-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* Contenu */
.about-lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-grey-900);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.about-body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-grey-700);
  margin-bottom: var(--space-8);
}

/* Liste des rôles */
.about-roles {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  padding-left: 0;
}

.role-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-thin);
}

.role-item:last-child { border-bottom: none; }

.role-icon {
  color: var(--color-bordeaux);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  flex-shrink: 0;
  line-height: 1;
}

/* ----------------------------------------------------------------
   9. GALERIE PHOTOS
   ---------------------------------------------------------------- */
.gallery {
  padding-block: var(--space-24);
  background: var(--color-grey-50);
  border-top: var(--border-thin);
  overflow: hidden; /* prevents horizontal scroll issue if any */
}

.gallery-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* Boutons Précédent / Suivant */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  color: var(--color-grey-700);
}

.gallery-btn:hover {
  background: var(--color-bordeaux);
  color: var(--color-white);
  border-color: var(--color-bordeaux);
}

.gallery-btn svg {
  width: 24px;
  height: 24px;
}

.gallery-btn--prev {
  left: -24px;
}
.gallery-btn--next {
  right: -24px;
}

@media (max-width: 768px) {
  .gallery-btn {
    display: none; /* On mobile, we use touch swipe */
  }
}

/* Le carrousel lui-même */
.gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--space-4);
  padding-bottom: var(--space-4); /* Shadow breathing room */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  width: 100%;
}

.gallery-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Élément de galerie (une image) */
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--color-grey-100);
  flex: 0 0 100%; /* prend toute la largeur sur mobile */
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* On desktop, keep it centered but slightly narrower if we want to peek next/prev, 
   but since wrapper is max-width 960, 100% is fine and looks like a single large image */

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0);
  transition: background var(--transition-base);
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(26, 24, 22, 0.15);
}

/* Légende toujours visible au bas du carrousel ou visible au hover */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-5) var(--space-4);
  background: linear-gradient(to top, rgba(26,24,22,0.8) 0%, transparent 100%);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}

/* Trait bordeaux décoratif en bas */
.gallery-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-bordeaux);
  z-index: 3;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 400px;
  max-height: 70vh;
}

/* ----------------------------------------------------------------
   10. SERVICES
   ---------------------------------------------------------------- */
.services {
  padding-block: var(--space-24);
  background: var(--color-grey-50);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-intro {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-grey-700);
  line-height: 1.7;
}

/* Grille de cartes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Carte service */
.service-card {
  background: var(--color-white);
  border: var(--border-thin);
  padding: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-grey-200);
}

/* Accent bordeaux en haut */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

/* Numéro de carte */
.card-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--color-grey-100);
  line-height: 1;
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  transition: color var(--transition-base);
}

.service-card:hover .card-number {
  color: var(--color-bordeaux-pale);
}

/* Icône */
.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-bordeaux);
  margin-bottom: var(--space-6);
  transition: transform var(--transition-base);
}

.service-card:hover .card-icon {
  transform: scale(1.05);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* Titre de carte */
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-grey-900);
  margin-bottom: var(--space-5);
  line-height: 1.3;
}

/* Liste */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex: 1;
}

.card-list li {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.55;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--color-bordeaux);
}

/* Lien de carte */
.card-link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast), opacity var(--transition-fast);
  margin-top: auto;
}

.card-link:hover { gap: var(--space-3); opacity: 0.8; }

.card-link:focus-visible {
  outline: 2px solid var(--color-bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------
   10. EXPERTISE
   ---------------------------------------------------------------- */
.expertise {
  padding-block: var(--space-24);
  background: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
}

/* Motif de fond discret */
.expertise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
}

.expertise-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-20);
  align-items: center;
  position: relative;
  z-index: 1;
}

.expertise-body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: rgba(250, 250, 248, 0.7);
  margin-bottom: var(--space-8);
}

/* Citation */
.expertise-quote {
  border-left: 3px solid var(--color-bordeaux);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.04);
}

.expertise-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-ivory);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.expertise-quote footer {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bordeaux-light);
}

/* Stats */
.expertise-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: background var(--transition-base);
}

.stat-item:hover {
  background: rgba(123, 20, 41, 0.15);
  border-color: rgba(123, 20, 41, 0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-bordeaux-light);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(250, 250, 248, 0.5);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   11. CONTACT
   ---------------------------------------------------------------- */
.contact {
  padding-block: var(--space-24);
  background: var(--color-white);
  border-top: var(--border-thin);
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.contact-block {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding-bottom: var(--space-6);
  border-bottom: var(--border-thin);
}

.contact-block:last-child { border-bottom: none; }

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-bordeaux);
  margin-top: 2px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-block-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-block-content strong {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey-900);
}

.contact-block-content span {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  line-height: 1.6;
}

.contact-note {
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--color-grey-400);
}

.contact-hours-time {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-bordeaux);
}

.contact-tel {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  transition: color var(--transition-fast);
  display: block;
}
.contact-tel:hover { color: var(--color-bordeaux); }

.contact-email-link {
  font-size: var(--text-sm);
  color: var(--color-bordeaux);
  word-break: break-all;
  transition: opacity var(--transition-fast);
}
.contact-email-link:hover { opacity: 0.7; }

/* Carte / Plan stylisée */
.contact-map {
  position: sticky;
  top: 100px;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-grey-50);
  border: var(--border-med);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
}

/* Grille de la carte */
.map-grid-line {
  position: absolute;
  background: var(--color-grey-100);
}

.map-grid-h { left: 0; right: 0; height: 1px; }
.map-grid-h--1 { top: 33%; }
.map-grid-h--2 { top: 55%; }
.map-grid-h--3 { top: 75%; }

.map-grid-v { top: 0; bottom: 0; width: 1px; }
.map-grid-v--1 { left: 25%; }
.map-grid-v--2 { left: 50%; }
.map-grid-v--3 { left: 72%; }

/* Pin de localisation */
.map-pin {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-dot {
  width: 14px;
  height: 14px;
  background: var(--color-bordeaux);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(123, 20, 41, 0.4);
  position: relative;
  z-index: 1;
}

.map-pin-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-bordeaux);
  border-radius: 50%;
  opacity: 0.3;
  animation: pingMap 2s ease-out infinite;
}

@keyframes pingMap {
  0%   { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-label {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.map-label strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-grey-900);
}

.map-label span {
  font-size: var(--text-xs);
  color: var(--color-grey-400);
}

.map-link {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
  border-bottom: 1px solid var(--color-bordeaux);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.map-link:hover { opacity: 0.7; }

.map-link:focus-visible {
  outline: 2px solid var(--color-bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-grey-900);
  color: rgba(250, 250, 248, 0.7);
  padding-block: var(--space-12);
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand .state-seal .seal-ring {
  border-color: rgba(248, 238, 240, 0.4);
}
.footer-brand .state-seal .seal-star::before {
  color: rgba(248, 238, 240, 0.5);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-ivory);
  line-height: 1.3;
}

.footer-tagline {
  font-size: var(--text-xs);
  color: rgba(250, 250, 248, 0.5);
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-link {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 248, 0.55);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--color-bordeaux-light); }

.footer-link:focus-visible {
  outline: 2px solid var(--color-bordeaux-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: var(--text-xs);
  color: rgba(250, 250, 248, 0.4);
  line-height: 1.7;
}

.footer-domain {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 250, 248, 0.25);
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* Barre bordeaux de pied */
.footer-rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-bordeaux-dark) 0%,
    var(--color-bordeaux) 50%,
    var(--color-bordeaux-dark) 100%
  );
}

/* ----------------------------------------------------------------
   13. ANIMATIONS D'ENTRÉE (scroll reveal)
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ----------------------------------------------------------------
   14. RESPONSIVE — MOBILE FIRST
   ---------------------------------------------------------------- */

/* Tablette (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-pad: 2rem;
  }

  /* Navigation bascule en burger dès la tablette pour éviter tout chevauchement */
  .nav-list { display: none; }
  .burger-btn { display: flex; }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(253, 253, 251, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-med);
    box-shadow: var(--shadow-md);
    padding: var(--space-8) var(--container-pad);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.4s ease, 
                visibility 0.4s ease;
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav .nav-list li {
    width: 100%;
    border-bottom: var(--border-thin);
  }
  .main-nav .nav-list li:last-child { border-bottom: none; }

  .nav-link {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-base);
    font-weight: 500;
  }

  .nav-link--cta {
    display: inline-block;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
  }

  /* Layout ajustements */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-visual {
    display: flex;
    justify-content: center;
  }

  .about-portrait-frame {
    max-width: 320px;
    aspect-ratio: 1 / 1.2;
  }

  .about-seal-badge {
    right: 0;
  }

  .expertise-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .expertise-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .contact-map {
    position: static;
  }

  .map-placeholder {
    aspect-ratio: 2 / 1;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
  }

  .main-nav {
    padding: var(--space-6) var(--container-pad);
  }
  .hero-content {
    padding-block: var(--space-12);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .trust-divider {
    width: 40px;
    height: 1px;
    margin: 0;
  }

  .trust-item {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    padding-right: 0;
  }

  .trust-number {
    font-size: var(--text-xl);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Expertise */
  .expertise-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .footer-legal { text-align: left; }

  /* About */
  .about-seal-badge { display: none; }
}

/* Petit mobile */
@media (max-width: 480px) {
  .header-role { display: none; }

  .expertise-stats {
    grid-template-columns: 1fr;
  }

  .hero-eyebrow { display: none; }
}

/* ----------------------------------------------------------------
   15. FOCUS VISIBLE GLOBAL
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-bordeaux);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
