:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --primary: #7cc0e5;
  --primary-dark: #0f244a;
  --text: #1f2a44;
  --muted: #4b5a77;
  --border: #d6e3f2;
  /* Défilement ancres / scrollIntoView : hauteur visible du header fixe */
  --sticky-header-offset: 104px;
}

* {
  box-sizing: border-box;
}

html {
  /* Flèche sur le texte (évite le curseur « I » sur le contenu statique) */
  cursor: default;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #d8eefb 0%, #c7e7f8 20%, #eff8ff 60%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-attachment: fixed;
  line-height: 1.5;
}

/* Header fixe : se cache au scroll vers le bas, réapparaît vers le haut (menu.js + .header-hidden) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: transform 0.72s cubic-bezier(0.2, 0.85, 0.25, 1);
  background: transparent;
}

header.header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

main section[id] {
  scroll-margin-top: var(--sticky-header-offset);
}

a {
  color: inherit;
}

a:any-link {
  cursor: pointer;
}

button:not(:disabled) {
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea {
  cursor: text;
}

select {
  cursor: pointer;
}

.hero {
  background: transparent;
  /* Espace sous le header fixe (plus de marge négative : le hero commence sous la fenêtre) */
  --header-offset: 120px;
  margin-top: 0;
  padding: calc(1.5rem + var(--header-offset)) 1.25rem 3.5rem;
}

.top-nav {
  width: 100%;
  margin: 0 auto 0;
  position: relative;
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  box-sizing: border-box;
}

.nav-side {
  display: none;
  gap: 0.8rem;
  align-items: center;
}

.nav-left {
  justify-content: space-around;
}

.nav-right {
  justify-content: space-around;
}

.nav-side a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 800;
}

.brand-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
}

.logo-header {
  width: 98px;
  height: 98px;
  object-fit: contain;
  margin-top: 10px;
  margin-bottom: 10px;
}

.nav-cta {
  display: none;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-dark);
}

.brand img {
  object-fit: cover;
}

.cta-small {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  border: 1px solid var(--primary-dark);
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  background: #ffffffcc;
  transition:
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    filter 0.18s ease,
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.cta-small:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(15, 36, 74, 0.14);
}

.cta-small:active {
  filter: brightness(0.96);
  box-shadow: 0 2px 8px rgba(15, 36, 74, 0.1);
}

.menu-collapsed.menu-expanded .burger-cta:hover {
  transform: translateY(-2px);
}

.menu-collapsed.menu-expanded .burger-cta:active {
  transform: translateY(1px) scale(0.99);
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin: 0;
  max-width: 900px;
}

.hero-content p {
  max-width: 760px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.hero-actions .btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}

.btn {
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    filter 0.18s ease;
}

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

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
}

.btn-primary:hover:not(:disabled),
a.btn-primary:hover {
  background: #1e5594;
  box-shadow: 0 8px 24px rgba(20, 60, 120, 0.38);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled),
a.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 12px rgba(15, 36, 74, 0.22);
  filter: brightness(0.95);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled),
a.btn-secondary:hover {
  border-color: rgba(124, 192, 229, 0.95);
  background: #f7fbff;
  box-shadow: 0 8px 20px rgba(15, 36, 74, 0.1);
  transform: translateY(-2px);
}

.btn-secondary:active:not(:disabled),
a.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(15, 36, 74, 0.07);
  filter: brightness(0.98);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}

.section-header h2,
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.section-header p,
.section p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
  align-items: stretch;
}

.cards.cards--accomp .card-text {
  text-align: center;
}

.card-text .card-subtitle {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.35;
}

.card--pinned .card-text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 600px) and (max-width: 820px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kicker {
  display: inline-block;
  margin: 0 0 0.4rem;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.audience {
  padding-top: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.audience .stack {
  row-gap: 1.65rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffffb3;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.pill:hover {
  transform: translateY(-4px) scale(1.045);
  border-color: rgba(124, 192, 229, 0.9);
  background: #ffffff;
  box-shadow:
    0 10px 22px rgba(15, 36, 74, 0.1),
    0 3px 10px rgba(124, 192, 229, 0.28);
}

/* Particuliers : pastilles sur toute la largeur du bloc contenu */
#particuliers .pill-row--full {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 0.55rem;
  width: 100%;
  margin-top: 1.35rem;
}

#particuliers .pill-row--full .pill {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

#particuliers .particuliers-side .plan-action {
  padding: 0.85rem 1rem;
}

#particuliers .particuliers-side .plan-action-steps {
  gap: 0.35rem;
}

#particuliers .particuliers-side .side-box h3 {
  text-align: center;
}

#particuliers .card-pin--mini {
  max-width: 270px;
  margin-inline: auto;
}

#particuliers .card-pin--mini .card-pin-dot {
  width: 12px;
  height: 12px;
}

#particuliers .card-pin--mini .card-pin-string {
  height: 10px;
}

#particuliers .card-pin--mini .card-pin-frame {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

#professionnels .card-pin--mini {
  max-width: 100%;
  margin-top: 0.85rem;
}

#professionnels .card-pin--mini .card-pin-frame {
  aspect-ratio: 1 / 1;
}

#professionnels .card-pin--mini .card-pin-frame > img {
  object-fit: cover;
  object-position: center;
}

/* Professionnels : caler la colonne gauche/droite comme "Particuliers" */
#professionnels .two-col > .stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

#professionnels .professionnels-side-footer {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

#professionnels .professionnels-side-footer .btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.ortho-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.ortho-illustration {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 36, 74, 0.05);
  background: var(--surface);
}

.ortho-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 36, 74, 0.05);
}

.mini-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

#particuliers .mini-card h3 {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.35;
}

.mini-card-works-heading {
  margin: 0.85rem 0 0.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.list.list--spaced {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.plan-action {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 36, 74, 0.05);
}

.plan-action h3 {
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

.plan-action-steps {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

.plan-action-steps li {
  padding-left: 0.35rem;
}

.side .plan-action {
  margin-top: 0;
}

.list {
  margin: 0.75rem 0 2rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.side {
  display: grid;
  gap: 0.9rem;
}

.side-box {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.side-box h3 {
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer .social-links {
  display: inline-flex;
  width: auto;
  vertical-align: middle;
}

.social-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffffb3;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 192, 229, 0.95);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 36, 74, 0.1);
}

.social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.social-link img {
  display: block;
  width: 28px;
  height: 28px;
}

.side .btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 36, 74, 0.05);
}

.card--pinned {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  min-height: 0;
}

.cards > .card--pinned {
  align-self: stretch;
}

.card h3,
.card-text h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

.card-text p {
  margin: 0;
  color: var(--muted);
}

/* Illustrations « épinglées » (Accompagnements proposés) */
.card-text {
  flex: 0 0 auto;
}

.card-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.card-pin-mast {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: -5px;
}

.card-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #b8d4ea 42%, #6a9ec4 100%);
  box-shadow:
    0 2px 5px rgba(15, 36, 74, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 36, 74, 0.12);
}

.card-pin-swing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  transform-origin: 50% 0;
  will-change: transform;
  backface-visibility: hidden;
}

.card-pin-string {
  display: block;
  align-self: center;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #7a9ab8, #d0e2f2);
  box-shadow: 0 0 0 1px rgba(15, 36, 74, 0.06);
}

.card-pin-frame {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 12px;
  border: 2px solid rgba(124, 192, 229, 0.65);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.65), rgba(215, 232, 248, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* Remplissage garanti du cadre (cover), sans bandes issues du dimensionnement */
.card-pin-frame > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*
 * Marges claires intégrées au fichier (bandes latérales dans le JPEG) :
 * léger zoom pour les recadrer dans le cadre.
 */
.card-pin-frame > img.card-pin-img--crop-margins {
  --pin-crop-scale: 1.12;
  transform: scale(var(--pin-crop-scale));
  transform-origin: center center;
}

/* Sur les "pins" mini, éviter de trop rogner l'image */
#particuliers .card-pin--mini .card-pin-img--crop-margins {
  --pin-crop-scale: 1.06;
}

#professionnels .card-pin--mini .card-pin-img--crop-margins {
  --pin-crop-scale: 1.06;
}

.card-pin-media--empty {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 118px;
  background: repeating-linear-gradient(
    -14deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5) 12px,
    rgba(124, 192, 229, 0.09) 12px,
    rgba(124, 192, 229, 0.09) 24px
  );
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.split ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.quote {
  background: linear-gradient(180deg, #e8f5fd, #f7fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.contact-grid {
  
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-details a {
  color: var(--primary-dark);
  font-weight: 800;
}

.contact-details .side-box {
  padding: 0.75rem;
  border-radius: 14px;
}

.contact-details .side-box h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.contact-details .list {
  margin-top: 0.5rem;
  padding-left: 1rem;
  font-size: 0.95rem;
}

.contact-details .list li {
  margin: 0.25rem 0;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
  margin-top: 1.2rem;
}

.contact-profil-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-profil-fieldset legend {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
  padding: 0;
}

.contact-profil-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.contact-profil-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-profil-option input {
  width: auto;
  margin: 0;
  accent-color: var(--primary-dark, #1a4a7a);
}

.contact-profil-hint {
  margin: 0.5rem 0 0;
  max-width: 42rem;
}

.contact-form .btn {
  width: 100%;
}

.contact-form .btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.req {
  color: #c62828;
  font-weight: 800;
}

.contact-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-errors {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e53935;
  background: #ffebee;
  color: #b71c1c;
  font-size: 0.9rem;
}

.contact-form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-form-success {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #43a047;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.9rem;
}

.contact-form input.field-invalid,
.contact-form select.field-invalid,
.contact-form textarea.field-invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.2);
}

.contact-field .form-note {
  display: block;
  margin-top: 0.3rem;
}

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

.contact-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.contact-field {
  min-width: 0;
}

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

.presentation-media {
  width: min(280px, 88vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
  border-radius: 9999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: grid;
  place-items: center;
  /* Permet de recentrer une image dont le contenu n'est pas centré */
  --avatar-x: 56%;
  --avatar-y: 52%;
  position: relative;
}

.presentation-media > img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  border-radius: 9999px;
  object-fit: cover;
  object-position: var(--avatar-x) var(--avatar-y) !important;
  background: #fff;
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 36, 74, 0.08);
}

.presentation-bio {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.presentation-bio p {
  margin: 0;
  color: var(--muted);
}

.presentation-bio p strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.presentation-bio .presentation-tagline {
  margin-top: 0.15rem;
  color: var(--primary-dark);
}

.contact-form > label:not(.contact-profil-option) {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfd1e8;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: #6c7b99;
}

.menu-collapsed {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-collapsed.menu-expanded nav {
  display: block;
}

.menu-collapsed nav {
  display: none;
}

.menu-collapsed {
  position: absolute;
  top: 1.15rem;
  right: 0.25rem;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.bar-container {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  flex: 0 0 auto;
}

.bar {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: relative;
}

.bar::before,
.bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
}

.bar::before {
  top: -8px;
}

.bar::after {
  top: 8px;
}

.menu-collapsed ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.burger-cta {
  display: none;
  width: auto;
  margin-top: 0.8rem;
  text-align: right;
}

.menu-collapsed.menu-expanded .burger-cta {
  display: inline-flex;
  justify-content: flex-end;
  align-self: flex-end;
}

.menu-collapsed li {
  margin: 0;
}

.menu-collapsed a.element {
  display: block;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 900;
  padding: 0.75rem 0.9rem;
  text-align: center;
}

.menu-collapsed a.element:hover {
  background: #eaf4ff;
}

/* Burger -> croix rouge quand le menu est déployé (mobile) */
.menu-collapsed.menu-expanded .bar {
  background: transparent;
}

.menu-collapsed.menu-expanded .bar::before,
.menu-collapsed.menu-expanded .bar::after {
  top: 0;
  left: 0;
  background: #e53935;
  transform-origin: center;
}

.menu-collapsed.menu-expanded .bar::before {
  transform: rotate(45deg);
}

.menu-collapsed.menu-expanded .bar::after {
  transform: rotate(-45deg);
}

.footer {
  padding: 2rem 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin: 0.35rem 0;
}

.footer-downloads-title {
  display: block;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  text-decoration: underline;
}

.footer-downloads-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-downloads-links a {
  text-decoration: underline;
  color: var(--primary-dark);
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.footer-downloads-links a:hover {
  text-decoration-thickness: 2px;
}

.footer-downloads-sep {
  color: rgba(15, 36, 74, 0.4);
  font-weight: 800;
}

.footer-popups {
  margin-top: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-popups a {
  text-decoration: none;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  background: #ffffffb3;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.footer-credit {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: transparent;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    color 0.22s ease;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-credit-link:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.footer-credit-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.footer-credit-logo {
  display: block;
  height: 28px;
  width: auto;
}

.popup-container {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 74, 0.55);
  z-index: 9999;
  display: none;
  padding: 1.25rem;
}

.popup-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 880px;
  margin: 6vh auto 0;
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 36, 74, 0.18);
}

.popup-content h2 {
  margin-top: 0;
  color: var(--primary-dark);
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.9rem;
  color: var(--muted);
  line-height: 1;
}

.mentions-popup-scrollable {
  max-height: 72vh;
  overflow: auto;
  padding-right: 0.25rem;
}

/* Sécurise le menu contre des hauteurs injectées en JS */
#conteneur li {
  height: auto !important;
  line-height: normal !important;
}

.menu-collapsed.menu-expanded {
  /* Quand ouvert : réserve une largeur max, tout en restant ancré à droite */
  width: calc(100% - 2rem);
  max-width: 380px;
}

.menu-collapsed.menu-expanded nav {
  width: auto;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 36, 74, 0.12);
  padding: 0.75rem;
}

.menu-collapsed.menu-expanded nav ul {
  width: 100%;
}

.menu-collapsed.menu-expanded nav ul a {
  text-align: right;
}

.cta-small {
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
}

.popup-content {
  margin-top: 2vh;
  padding: 1rem;
}

/* Desktop overrides */
@media (min-width: 821px) {
  :root {
    --sticky-header-offset: 132px;
  }

  .hero {
    --header-offset: 140px;
  }

  .top-nav {
    margin: 0 auto 1rem;
  }

  .nav-side {
    display: flex;
  }

  .logo-header {
    width: 120px;
    height: 120px;
  }

  .nav-cta {
    display: inline-flex;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-cta:hover {
    transform: translateY(calc(-50% - 3px));
  }

  .nav-cta:active {
    transform: translateY(calc(-50% + 1px));
    filter: brightness(0.96);
  }

  .menu-collapsed {
    display: none;
  }

  .split {
    grid-template-columns: 2fr 1fr;
  }

  .two-col {
    grid-template-columns: 2fr 1fr;
  }

  .audience .two-col {
    align-items: stretch;
  }

  #particuliers .particuliers-side-footer {
    margin-top: auto;
    display: grid;
    gap: 0.75rem;
    width: 100%;
    flex-shrink: 0;
  }

  #particuliers .particuliers-side-footer .btn {
    width: 100%;
  }

  .audience .two-col > .stack,
  .audience .two-col > .side {
    min-height: 0;
  }

  .audience .stack {
    grid-template-rows: auto 1fr;
    row-gap: 2rem;
  }

  /* Particuliers : garder un espacement uniforme entre les cartes */
  #particuliers .two-col > .stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }

  /* Accompagnements proposés : 3 cartes puis 2 centrées */
  .cards.cards--accomp {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.1rem;
    justify-items: stretch;
  }

  .cards.cards--accomp > .card:nth-child(1) {
    grid-column: 1 / span 4;
  }

  .cards.cards--accomp > .card:nth-child(2) {
    grid-column: 5 / span 4;
  }

  .cards.cards--accomp > .card:nth-child(3) {
    grid-column: 9 / span 4;
  }

  .cards.cards--accomp > .card:nth-child(4) {
    grid-column: 3 / span 4;
  }

  .cards.cards--accomp > .card:nth-child(5) {
    grid-column: 7 / span 4;
  }

  .audience {
    padding-top: 2.5rem;
  }

  .hero-actions .btn {
    width: auto;
  }

  .ortho-cards {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .ortho-card-1 {
    grid-column: 1 / span 8;
    grid-row: 1;
  }

  .ortho-card-2 {
    grid-column: 9 / span 4;
    grid-row: 1;
  }

  .ortho-card-3 {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .ortho-illustration {
    grid-column: 5 / span 8;
    grid-row: 2;
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }

  .ortho-illustration img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .contact-grid {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  .contact-form {
    margin-top: 0;
  }

  .contact-row-dual {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    align-items: start;
  }

  .contact-row-org {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    align-items: start;
  }

  .contact-row-org.contact-row-org--pro .contact-field-societe {
    grid-column: 1;
  }

  .contact-row-org.contact-row-org--pro .contact-field-cp {
    grid-column: 2;
  }

  .contact-row-dual .contact-field input,
  .contact-row-org .contact-field input {
    padding: 0.62rem 0.72rem;
    font-size: 0.92rem;
  }

  .presentation-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1.55fr);
    gap: 1.75rem 2.25rem;
    align-items: center;
  }

  .presentation-media {
    width: 100%;
    max-width: 300px;
    margin-inline: 0;
  }

  .cta-small {
    padding: 0.6rem 1.05rem;
    font-size: 1rem;
  }

  .popup-content {
    margin: 6vh auto 0;
    padding: 1.25rem;
  }
}

/* Apparition au scroll (hors hero : sections avec classe .section uniquement) */
.reveal-section {
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  will-change: opacity, transform;
}

.reveal-section.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger > .mini-card,
.reveal-stagger > .card,
.reveal-stagger > .ortho-card-1,
.reveal-stagger > .ortho-card-2,
.reveal-stagger > .ortho-card-3,
.reveal-stagger > .ortho-illustration,
.reveal-stagger > .presentation-media,
.reveal-stagger > .presentation-content,
.reveal-stagger > .contact-form,
.reveal-stagger > .contact-details,
.reveal-stagger > .stack,
.reveal-stagger > .side {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
}

/* Avatar : décalage vers le bas (les règles reveal utilisent transform et écrasaient la marge) */
.reveal-stagger > .presentation-media {
  transform: translate3d(0, calc(1rem + 10%), 0);
}

.reveal-stagger.is-inview > .mini-card,
.section.reveal-section.is-inview .reveal-stagger > .mini-card,
.reveal-stagger.is-inview > .card,
.section.reveal-section.is-inview .reveal-stagger > .card,
.reveal-stagger.is-inview > .ortho-card-1,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-1,
.reveal-stagger.is-inview > .ortho-card-2,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-2,
.reveal-stagger.is-inview > .ortho-card-3,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-3,
.reveal-stagger.is-inview > .ortho-illustration,
.section.reveal-section.is-inview .reveal-stagger > .ortho-illustration,
.reveal-stagger.is-inview > .presentation-media,
.section.reveal-section.is-inview .reveal-stagger > .presentation-media,
.reveal-stagger.is-inview > .presentation-content,
.section.reveal-section.is-inview .reveal-stagger > .presentation-content,
.reveal-stagger.is-inview > .contact-form,
.section.reveal-section.is-inview .reveal-stagger > .contact-form,
.reveal-stagger.is-inview > .contact-details,
.section.reveal-section.is-inview .reveal-stagger > .contact-details,
.reveal-stagger.is-inview > .stack,
.section.reveal-section.is-inview .reveal-stagger > .stack,
.reveal-stagger.is-inview > .side,
.section.reveal-section.is-inview .reveal-stagger > .side {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-inview > .mini-card:nth-child(1),
.section.reveal-section.is-inview .reveal-stagger > .mini-card:nth-child(1),
.reveal-stagger.is-inview > .card:nth-child(1),
.section.reveal-section.is-inview .reveal-stagger > .card:nth-child(1),
.reveal-stagger.is-inview > .ortho-card-1,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-1 {
  transition-delay: 0.05s;
}

.reveal-stagger.is-inview > .mini-card:nth-child(2),
.section.reveal-section.is-inview .reveal-stagger > .mini-card:nth-child(2),
.reveal-stagger.is-inview > .card:nth-child(2),
.section.reveal-section.is-inview .reveal-stagger > .card:nth-child(2),
.reveal-stagger.is-inview > .ortho-card-2,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-2 {
  transition-delay: 0.12s;
}

.reveal-stagger.is-inview > .mini-card:nth-child(3),
.section.reveal-section.is-inview .reveal-stagger > .mini-card:nth-child(3),
.reveal-stagger.is-inview > .card:nth-child(3),
.section.reveal-section.is-inview .reveal-stagger > .card:nth-child(3),
.reveal-stagger.is-inview > .ortho-card-3,
.section.reveal-section.is-inview .reveal-stagger > .ortho-card-3 {
  transition-delay: 0.19s;
}

.reveal-stagger.is-inview > .mini-card:nth-child(4),
.section.reveal-section.is-inview .reveal-stagger > .mini-card:nth-child(4),
.reveal-stagger.is-inview > .card:nth-child(4),
.section.reveal-section.is-inview .reveal-stagger > .card:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.is-inview > .ortho-illustration,
.section.reveal-section.is-inview .reveal-stagger > .ortho-illustration {
  transition-delay: 0.22s;
}

.reveal-stagger.is-inview > .presentation-media,
.section.reveal-section.is-inview .reveal-stagger > .presentation-media {
  transform: translate3d(0, 10%, 0);
  transition-delay: 0.08s;
}

.reveal-stagger.is-inview > .presentation-content,
.section.reveal-section.is-inview .reveal-stagger > .presentation-content {
  transition-delay: 0.16s;
}

.reveal-stagger.is-inview > .contact-form,
.section.reveal-section.is-inview .reveal-stagger > .contact-form {
  transition-delay: 0.06s;
}

.reveal-stagger.is-inview > .contact-details,
.section.reveal-section.is-inview .reveal-stagger > .contact-details {
  transition-delay: 0.14s;
}

.reveal-stagger.is-inview > .stack,
.section.reveal-section.is-inview .reveal-stagger > .stack {
  transition-delay: 0.06s;
}

.reveal-stagger.is-inview > .side,
.section.reveal-section.is-inview .reveal-stagger > .side {
  transition-delay: 0.14s;
}

@media (prefers-reduced-motion: reduce) {
  header {
    transition: none;
  }

  .reveal-section,
  .reveal-section.is-inview,
  .reveal-stagger > *,
  .reveal-stagger.is-inview > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .pill {
    transition: none;
  }

  .pill:hover {
    transform: none;
    box-shadow: none;
  }

  .btn,
  .cta-small {
    transition: none;
  }

  .btn-primary:hover:not(:disabled),
  a.btn-primary:hover,
  .btn-secondary:hover:not(:disabled),
  a.btn-secondary:hover {
    transform: none;
  }

  .btn-primary:active:not(:disabled),
  a.btn-primary:active,
  .btn-secondary:active:not(:disabled),
  a.btn-secondary:active {
    transform: none;
  }

  .menu-collapsed.menu-expanded .burger-cta:hover,
  .menu-collapsed.menu-expanded .burger-cta:active {
    transform: none;
  }

  @media (min-width: 821px) {
    .nav-cta:hover,
    .nav-cta:active {
      transform: translateY(-50%);
    }
  }

  .card-pin-swing {
    will-change: auto;
  }
}

