﻿/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  /* Couleurs */
  --color-primary:       #E46426;
  --color-primary-hover: #D4561F;
  --color-primary-light: #FDF0E9;
  --color-dark:          #0C1F34;
  --color-text:          #2A3D52;
  --color-muted:         #6B7E90;
  --color-border:        #E5E4DF;
  --color-bg:            #FFFFFF;
  --color-bg-light:      #F6F5F6;
  --color-bg-dark:       #1C1C1A;

  /* Typographie */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Tailles de texte */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.5rem;    /* 40px */
  --text-5xl:  3.25rem;   /* 52px */
  --text-hero: clamp(2.75rem, 5.5vw, 4.5rem);

  /* Espacements */
  --container-max:  1280px;
  --container-pad:  clamp(1.25rem, 4vw, 2.5rem);
  --section-py:     clamp(2rem, 4vw, 3rem);
  --gap-md:         1.5rem;
  --gap-lg:         2.5rem;

  /* Rayons */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-card:16px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --duration:   220ms;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ============================================================
   ACCESSIBILITÃ‰
   ============================================================ */
.oh-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: top var(--duration) var(--ease);
}
.oh-skip-link:focus { top: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.oh-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.oh-main { overflow-x: clip; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
}

/* ============================================================
   COMPOSANT : LABEL
   ============================================================ */
.oh-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.oh-label--small { font-size: 0.7rem; }
.oh-label--hero  { margin-bottom: 1.25rem; }

/* ============================================================
   COMPOSANT : BOUTONS
   ============================================================ */
.oh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  white-space: nowrap;
}
.oh-btn:hover { transform: translateY(-1px); }
.oh-btn:active{ transform: translateY(0); }

.oh-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.oh-btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.oh-btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}
.oh-btn--outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.oh-btn--outline.oh-btn--light {
  color: var(--color-dark);
  border-color: rgba(28,28,26,0.4);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
}
.oh-btn--outline.oh-btn--light:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

.oh-btn--white {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid #fff;
  font-weight: 600;
}
.oh-btn--white:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.oh-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

/* ============================================================
   COMPOSANT : LIEN FLÃˆCHE
   ============================================================ */
.oh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark);
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}
.oh-link-arrow:hover { gap: 0.7rem; color: var(--color-primary); }
.oh-link-arrow--small { font-size: var(--text-xs); }

/* ============================================================
   SECTION : STRUCTURE COMMUNE
   ============================================================ */
.oh-section { padding-block: var(--section-py); }
.oh-section--light { background: var(--color-bg-light); }

.oh-section__inner { display: flex; gap: var(--gap-lg); align-items: flex-start; }

.oh-section__inner--split {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.oh-section__header { display: flex; flex-direction: column; gap: 1rem; }
.oh-section__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.2;
}
.oh-section__text {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   HEADER
   ============================================================ */
.oh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background 350ms var(--ease),
              border-color 350ms var(--ease),
              box-shadow 350ms var(--ease);
}

/* DÃ©cale le header fixe sous la barre d'admin WordPress */
.admin-bar .oh-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .oh-header { top: 46px; }
}
.oh-header.is-scrolled {
  background: var(--color-bg);
  border-bottom-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.oh-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.oh-header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
  transition: opacity var(--duration) var(--ease);
}
.oh-header__logo:hover { opacity: 0.75; }

.oh-logo__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  transition: color 350ms var(--ease);
}
.oh-logo__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  text-transform: lowercase;
  transition: color 350ms var(--ease);
}
.oh-header.is-scrolled .oh-logo__name    { color: var(--color-dark); }
.oh-header.is-scrolled .oh-logo__tagline { color: var(--color-muted); }

/* Logo image (custom logo WordPress) */
.oh-header__logo .custom-logo-link { display: block; line-height: 0; }
.oh-header__logo .custom-logo-link:hover { opacity: 0.8; }
.oh-header__logo img,
.oh-header__logo .custom-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: filter 350ms var(--ease);
}
.oh-header:not(.is-scrolled) .oh-header__logo img,
.oh-header:not(.is-scrolled) .oh-header__logo .custom-logo {
  filter: brightness(0) invert(1);
}

.oh-nav { flex: 1; display: flex; justify-content: center; }

.oh-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.oh-nav__list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 400;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.oh-nav__list li a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.oh-nav__list li.current-menu-item > a { color: #fff; background: rgba(255,255,255,0.2); }

.oh-header.is-scrolled .oh-nav__list li a { color: var(--color-text); }
.oh-header.is-scrolled .oh-nav__list li a:hover,
.oh-header.is-scrolled .oh-nav__list li.current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.oh-header__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Bouton "Prendre rendez-vous" : blanc transparent â†’ outline sombre au scroll */
.oh-header:not(.is-scrolled) .oh-btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.oh-header:not(.is-scrolled) .oh-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.oh-nav__close { display: none; }

.oh-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.oh-header__mobile-contact {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  transition: background 200ms var(--ease);
  flex-shrink: 0;
}
.oh-header__mobile-contact:hover { background: var(--color-primary-hover); }
.oh-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              background 350ms var(--ease);
}
.oh-header.is-scrolled .oh-nav-toggle__bar { background: var(--color-dark); }
.oh-nav-toggle[aria-expanded="true"] .oh-nav-toggle__bar { background: var(--color-dark); }
.oh-nav-toggle[aria-expanded="true"] .oh-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.oh-nav-toggle[aria-expanded="true"] .oh-nav-toggle__bar:nth-child(2) { opacity: 0; }
.oh-nav-toggle[aria-expanded="true"] .oh-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BARRE MOBILE FIXE (bas de page)
   ============================================================ */
.oh-mobile-bar {
  display: none;
}
@media (max-width: 992px) {
  .oh-header__contact { display: none; }
  .oh-header__mobile-contact { display: flex; }

  /* Burger à gauche, logo centré en absolu, icône contact à droite */
  .oh-header__inner { position: relative; }
  .oh-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
  }

  .oh-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    gap: 0.625rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }
  .oh-mobile-bar[hidden] { display: none; }
  .oh-mobile-bar__btn[hidden] { display: none !important; }

  .oh-mobile-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid var(--color-border);
    color: var(--color-dark);
    background: transparent;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  }
  .oh-mobile-bar__btn:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

  .oh-mobile-bar__btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  .oh-mobile-bar__btn--primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
  }

  /* Espace sous la barre fixe pour que le footer reste accessible */
  .oh-footer { padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   HERO
   ============================================================ */
.oh-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg, linear-gradient(130deg, #f0ede6 0%, #e8ddd3 55%, #d9c9ba 100%));
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.oh-hero > .oh-container { width: 100%; }

.oh-hero__overlay {
  position: absolute;
  inset: 0;
  /* Voile blanc centrÃ© pour lisibilitÃ© du texte + assombrissement en haut pour la nav */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 22%),
    radial-gradient(ellipse 72% 110% at 50% 48%,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.75) 42%,
      rgba(255,255,255,0.15) 68%,
      rgba(255,255,255,0) 85%
    );
}

@media (min-width: 769px) {
  .oh-hero__overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 22%),
      radial-gradient(ellipse 32% 52% at 50% 63%,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.75) 42%,
        rgba(255,255,255,0.15) 68%,
        rgba(255,255,255,0) 85%
      );
  }
}

.oh-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 5rem 3rem;
  margin-inline: auto;
  text-align: center;
}

.oh-hero__heading {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}
.oh-hero__heading em { font-style: normal; color: var(--color-primary); }

.oh-hero__text {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.65;
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.oh-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.oh-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  animation: scroll-bounce 2s ease-in-out infinite;
}
.oh-hero__scroll-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION : NOTRE RÃ”LE
   ============================================================ */
.oh-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem 2rem;
}

.oh-feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
}
.oh-feature__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.oh-feature__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   SECTION : PROFILS PROJET
   ============================================================ */

.oh-profils__inner {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.oh-profils__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.oh-profils__heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.2;
}

.oh-profils__divider {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--color-primary);
}

.oh-profils__text {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.65;
}

.oh-profils__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.oh-profil-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.oh-profil-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.oh-profil-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.oh-profil-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.25;
}

.oh-profil-card__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

.oh-profil-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

/* ============================================================
   SECTION : RÃ‰SIDENCES
   ============================================================ */
.oh-section--residences { }

.oh-residences-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.oh-residences {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.oh-residences::-webkit-scrollbar { display: none; }

.oh-residence-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.33% - 0.85rem);
  min-width: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-dark);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.oh-residence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.oh-residence-card__link { display: block; position: relative; }

.oh-residence-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.oh-residence-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.oh-residence-card:hover .oh-residence-card__img { transform: scale(1.04); }

.oh-residence-card__img--placeholder {
  background: linear-gradient(145deg, #3a3a38 0%, #282826 100%);
  height: 100%;
}

.oh-residence-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.oh-residence-card__quartier {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.oh-residence-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.oh-residence-card__arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.oh-residence-card:hover .oh-residence-card__arrow {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.oh-residences-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.oh-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.oh-carousel-btn:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}
.oh-carousel-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ============================================================
   SECTION : EXPÃ‰RIENCE IMMERSIVE
   ============================================================ */
.oh-immersive__grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px 240px;
  grid-template-rows: auto;
  gap: 2rem 3rem;
  align-items: start;
}
.oh-immersive__grid .oh-section__header { grid-column: 1; grid-row: 1; }
.oh-immersive__plan                     { grid-column: 2; grid-row: 1; }
.oh-immersive__tools                    { grid-column: 3; grid-row: 1; }
.oh-immersive__cta                      { grid-column: 4; grid-row: 1; }

.oh-immersive__plan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.oh-immersive__plan-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.oh-immersive__plan-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-border);
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/3;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.oh-plan-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(207,90,40,0.2);
}
.oh-plan-marker--tl { top: 15%;  left: 10%; }
.oh-plan-marker--tr { top: 15%;  right: 15%; }
.oh-plan-marker--bl { bottom: 20%; left: 15%; }
.oh-plan-marker--br { bottom: 20%; right: 10%; }

.oh-immersive__tools {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.oh-tool {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.oh-tool:last-child { border-bottom: none; padding-bottom: 0; }
.oh-tool__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.oh-tool__badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}
.oh-tool__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.oh-immersive__cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.oh-immersive__cta .oh-btn--white {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.7rem;
  padding-inline: 1rem;
  letter-spacing: 0.03em;
}
.oh-immersive__cta-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.oh-immersive__cta-text {
  font-size: var(--text-sm);
  line-height: 1.65;
  opacity: 0.9;
}

/* ============================================================
   SECTION : JOURNAL
   ============================================================ */
.oh-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.oh-article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.oh-article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.oh-article-card__img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.oh-article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.oh-article-card:hover .oh-article-card__img { transform: scale(1.04); }
.oh-article-card__img--placeholder {
  background: linear-gradient(145deg, var(--color-bg-light) 0%, var(--color-border) 100%);
  height: 100%;
}

.oh-article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}
.oh-article-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-dark);
}
.oh-article-card__title a:hover { color: var(--color-primary); }

/* ============================================================
   SECTION : STATISTIQUES
   ============================================================ */
.oh-section--stats {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.oh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.oh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
  padding: 0.75rem;
}
.oh-stat + .oh-stat {
  border-left: 1px solid var(--color-border);
}
.oh-stat__icon { color: var(--color-primary); }
.oh-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}
.oh-stat__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.4;
  max-width: 120px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.oh-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
}

.oh-footer__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  padding-block: 4rem;
  align-items: start;
}

.oh-footer__brand { display: flex; flex-direction: column; gap: 2rem; }

.oh-footer__logo .oh-logo__name    { color: rgba(255,255,255,0.95); }
.oh-footer__logo .oh-logo__tagline { color: rgba(255,255,255,0.45); }
.oh-footer__logo:hover .oh-logo__name { opacity: 0.8; }

/* Logo image (custom_logo) en blanc dans le footer */
.oh-footer__logo img {
  filter: brightness(0) invert(1);
  max-height: 48px;
  width: auto;
  display: block;
}

.oh-footer__social {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.oh-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.oh-footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.oh-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.oh-footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.oh-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.oh-footer__menu li { display: flex; align-items: flex-start; gap: 0.5rem; }
.oh-footer__menu li a,
.oh-footer__menu li address {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  transition: color var(--duration) var(--ease);
}
.oh-footer__menu li a:hover { color: #fff; }
.oh-footer__menu svg { margin-top: 3px; flex-shrink: 0; color: rgba(255,255,255,0.35); }

.oh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.25rem;
}
.oh-footer__bottom .oh-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.oh-footer__bottom p,
.oh-footer__bottom a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.oh-footer__bottom a:hover { color: rgba(255,255,255,0.7); }
.oh-footer__cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-family: inherit;
}
.oh-footer__cookie-btn:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RETOUR EN HAUT DE PAGE
   ============================================================ */
.oh-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(228, 100, 38, 0.35);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 250ms var(--ease),
              translate 250ms var(--ease),
              background 200ms var(--ease);
}
.oh-back-to-top:not([hidden]) { opacity: 1; translate: 0 0; }
.oh-back-to-top:hover  { background: var(--color-primary-hover); }
.oh-back-to-top:active { translate: 0 2px; }

@media (max-width: 640px) {
  .oh-back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
@media (max-width: 992px) {
  .oh-back-to-top { bottom: calc(70px + 1rem); }
}

/* ============================================================
   PAGE STANDARD
   ============================================================ */
.oh-page-hero {
  background: var(--color-bg-light);
  padding: calc(64px + 2rem) 0 3rem;
  border-bottom: 1px solid var(--color-border);
}
.admin-bar .oh-page-hero {
  padding-top: calc(96px + 2rem);
}
.oh-page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-dark);
}
.oh-page-content {
  padding-block: 3rem;
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text);
}
.oh-page-content h2        { margin-block: 2.5rem 0.75rem; font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--color-dark); }
.oh-page-content h3        { margin-block: 1.75rem 0.5rem; font-size: 1.05rem; font-weight: 600; color: var(--color-dark); }
.oh-page-content p         { margin-bottom: 1.25rem; }
.oh-page-content a         { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.oh-page-content ul,
.oh-page-content ol        { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.oh-page-content ul        { list-style: disc; }
.oh-page-content ol        { list-style: decimal; }
.oh-page-content li        { margin-bottom: 0.4rem; }
.oh-page-content strong    { color: var(--color-dark); }

/* ── Boutons Gutenberg dans le contenu éditeur ──────────────────────────── */
.oh-page-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.oh-page-content .wp-block-button__link:hover  { background: var(--color-primary-hover); border-color: var(--color-primary-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.oh-page-content .wp-block-button__link:active { transform: translateY(0); }

/* Variante "Contour" (option dans l'éditeur Gutenberg) */
.oh-page-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}
.oh-page-content .is-style-outline .wp-block-button__link:hover { background: var(--color-dark); color: #fff; }

/* ── Breadcrumb générique (pages internes) ──────────────────────────────── */
.oh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}
.oh-breadcrumb a       { color: var(--color-muted); text-decoration: none; }
.oh-breadcrumb a:hover { color: var(--color-primary); }

/* ── Hero meta (date de mise à jour) ────────────────────────────────────── */
.oh-page-hero__meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Badge reCAPTCHA masqué — mention légale affichée dans le formulaire (cf. politique Google) */
.grecaptcha-badge { visibility: hidden !important; }

/* ============================================================
   MODALE DE CONTACT
   ============================================================ */
.cm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.cm-modal[hidden] { display: none; }

.cm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 52, 0.72);
  backdrop-filter: blur(5px);
}

.cm-modal__container {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

/* â”€â”€ Panneau gauche â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-modal__left {
  width: 340px;
  flex-shrink: 0;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cm-modal__photo {
  flex-shrink: 0;
  height: 250px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-dark) 60%, #1a3a5c);
}
.cm-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cm-modal__photo--placeholder {
  background: linear-gradient(160deg, #1a3a5c 0%, #0c2a40 100%);
}

.cm-modal__left-body {
  padding: 1.5rem 1.625rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.cm-modal__left-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.cm-modal__left-heading em {
  font-style: normal;
  color: var(--color-primary);
}

.cm-modal__left-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.cm-modal__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.25rem;
}
.cm-modal__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.80);
}
.cm-modal__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}
.cm-modal__contact-item a {
  color: inherit;
  transition: color 0.15s;
}
.cm-modal__contact-item a:hover { color: var(--color-primary); }
.cm-modal__contact-hours-label {
  display: block;
  font-weight: 600;
  color: #fff;
}

/* â”€â”€ Panneau droit â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-modal__right {
  flex: 1;
  min-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.cm-modal__right-inner {
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cm-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cm-modal__close:hover { background: var(--color-border); color: var(--color-dark); }

.cm-modal__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
}
.cm-modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 0.3rem;
}

/* â”€â”€ Onglets â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-tabs {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cm-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.5rem 0.7rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.3;
}
.cm-tab + .cm-tab { border-left: 1px solid var(--color-border); }
.cm-tab svg { color: var(--color-muted); transition: color 0.15s; }
.cm-tab:hover { color: var(--color-dark); background: var(--color-bg-light); }
.cm-tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.cm-tab[aria-selected="true"] svg { color: var(--color-primary); }

/* â”€â”€ Panneaux de contenu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-tab-panel { display: none; }
.cm-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cm-panel__heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
}
.cm-panel__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: -0.375rem;
}

/* â”€â”€ Formulaires â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.cm-form__field { display: flex; flex-direction: column; }
.cm-form__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.cm-form__input,
.cm-form__select,
.cm-form__textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-dark);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.cm-form__input::placeholder,
.cm-form__textarea::placeholder { color: var(--color-muted); font-weight: 400; }
.cm-form__input:focus,
.cm-form__select:focus,
.cm-form__textarea:focus { border-color: var(--color-primary); }

.cm-form__input[type="date"] { cursor: pointer; }
.cm-form__input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

.cm-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7E90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.cm-form__textarea {
  min-height: 88px;
  resize: vertical;
}

.cm-form__time-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cm-form__time-wrap .cm-form__select { flex: 1; min-width: 0; }
.cm-form__time-sep {
  font-size: var(--text-sm);
  color: var(--color-muted);
  flex-shrink: 0;
}

.cm-form__input.is-invalid,
.cm-form__select.is-invalid { border-color: #d32f2f; }
.cm-form__consent-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}
.cm-form__consent-link:hover { color: #991b1b; }

.cm-form__send-error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: var(--text-sm);
  border: 1px solid #fecaca;
}

.cm-recaptcha-notice {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--color-muted);
  line-height: 1.4;
}
.cm-recaptcha-notice a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.cm-recaptcha-notice a:hover { color: var(--color-primary); }

.cm-form__error-msg {
  font-size: var(--text-xs);
  color: #d32f2f;
  margin-top: 0.25rem;
  display: none;
}
.cm-form__error-msg.is-visible { display: block; }

.cm-form__submit {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem;
  margin-top: 0.125rem;
  transform: none !important;
}
.cm-form__submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Honeypot : invisible pour les humains, rempli par les bots */
.cm-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.cm-form__rgpd { margin-bottom: 0.25rem; }
.cm-rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}
.cm-rgpd-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.cm-rgpd-text {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.55;
}
.cm-rgpd-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cm-rgpd-text a:hover { color: var(--color-primary-hover); }

/* â”€â”€ Ã‰tat succÃ¨s â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
  padding: 1.5rem 1rem;
}
.cm-form__success[hidden] { display: none; }
.cm-form__success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-form__success-title {
  font-weight: 700;
  color: var(--color-dark);
  font-size: var(--text-lg);
}
.cm-form__success-text {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* â”€â”€ Responsive modale â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .cm-modal__left { display: none; }
  .cm-modal__container { max-width: 100%; border-radius: var(--radius-lg); max-height: 96vh; }
  .cm-modal__right-inner { padding: 1.5rem 1.25rem 1.25rem; }
  .cm-tab { font-size: var(--text-xs); padding: 0.65rem 0.25rem 0.6rem; }
  .cm-form__row { grid-template-columns: 1fr; }
  /* Date : on limite la largeur au lieu de la laisser occuper toute la ligne */
  .cm-form__input[type="date"] { max-width: 170px; }
  /* iOS zoome automatiquement sur les champs < 16px — on neutralise */
  .cm-form__input,
  .cm-form__select,
  .cm-form__textarea { font-size: 16px; }
}

/* ============================================================
   RESPONSIVE â€“ TABLET (â‰¤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .oh-immersive__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .oh-immersive__grid .oh-section__header { grid-column: 1; grid-row: 1; }
  .oh-immersive__cta                      { grid-column: 2; grid-row: 1; }
  .oh-immersive__plan                     { grid-column: 1; grid-row: 2; }
  .oh-immersive__tools                    { grid-column: 2; grid-row: 2; }

  .oh-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }

}

/* ============================================================
   RESPONSIVE â€“ TABLETTE (â‰¤992px) : bascule sur menu hamburger
   ============================================================ */
@media (max-width: 992px) {
  .oh-nav-toggle { display: flex; }
  .oh-header__actions { margin-left: auto; }

  /* Fond solide sur le header quand le menu est ouvert → rend le X visible */
  .oh-header.nav-is-open {
    background: var(--color-bg) !important;
    border-bottom-color: var(--color-border) !important;
  }

  .oh-nav {
    position: fixed;
    inset: 64px 0 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem var(--container-pad);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .oh-nav.is-open { transform: translateX(0); }

  .oh-nav__close {
    display: flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .oh-nav__close:hover { color: var(--color-primary); }

  .oh-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .oh-nav__list li a { padding: 1rem 0; font-size: var(--text-lg); color: var(--color-text); border-bottom: 1px solid var(--color-border); border-radius: 0; white-space: normal; }
  .oh-nav__list li a:hover { color: var(--color-primary); background: transparent; }
  .oh-nav__list li:last-child a { border-bottom: none; }
}

/* ============================================================
   RESPONSIVE â€“ MOBILE (â‰¤768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Hero */
  .oh-hero { min-height: 55vh; }
  .oh-hero__ctas { flex-direction: column; }
  .oh-hero__ctas .oh-btn { justify-content: center; }

  /* Sections split */
  .oh-section__inner--split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Profils projet */
  .oh-profils__inner       { grid-template-columns: 1fr; gap: 2rem; }
  .oh-profils__cards       { grid-template-columns: 1fr; }

  /* RÃ©sidences */
  .oh-residence-card { flex: 0 0 80vw; }

  /* Immersive */
  .oh-immersive__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .oh-immersive__grid .oh-section__header,
  .oh-immersive__plan,
  .oh-immersive__tools,
  .oh-immersive__cta { grid-column: 1; grid-row: auto; }

  /* Journal */
  .oh-articles { grid-template-columns: 1fr; }

  /* Stats */
  .oh-stats { justify-content: center; }
  .oh-stat + .oh-stat { border-left: none; border-top: 1px solid var(--color-border); }

  /* Footer */
  .oh-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .oh-footer__nav { grid-template-columns: 1fr; gap: 1.5rem; }
  .oh-footer__bottom .oh-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
  }
}

@media (max-width: 480px) {
  .oh-footer__nav { grid-template-columns: 1fr; }
  .oh-stat { min-width: 100%; }
}

/* ============================================================
   PLACEHOLDER CARTE OSM (consentement non accordé)
   ============================================================ */
.oh-map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-surface, #f8f7f4);
  color: var(--color-muted);
  text-align: center;
  padding: 1.5rem;
  z-index: 10;
  border-radius: inherit;
}
.oh-map-consent p {
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.55;
}
.oh-map-consent__btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.oh-map-consent__btn:hover { filter: brightness(0.9); }

/* ============================================================
   PAGE 404
   ============================================================ */
.oh-404 {
  padding-top: calc(64px + 5rem);
  padding-bottom: 8rem;
}

.oh-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.oh-404__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
  margin: 0;
}

.oh-404__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-dark);
  margin: 0;
}

.oh-404__text {
  font-size: var(--text-base);
  color: var(--color-muted);
  max-width: 40ch;
}

.oh-404__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
