/* ==========================================================================
   Audrey Zgoda — Feuille de style principale
   1. Tokens        5. Boutons        9.  Pages internes
   2. Base          6. En-tête        10. Formulaires
   3. Layout        7. Accueil        11. Pied de page
   4. Typographie   8. Cartes         12. Animations & responsive
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Couleurs de marque */
  --brand-900: #0b3a40;
  --brand-800: #0e4950;
  --brand-600: #17787e;
  --brand-500: #1fa2a6;
  --brand-300: #7cc9cb;
  --brand-100: #dcedee;
  --brand-50: #eef7f7;

  /* Neutres chauds */
  --ink: #12292c;
  --ink-70: #40595c;
  --ink-50: #6d8285;
  --cream: #fbf9f6;
  --sand: #f4efe8;
  --sand-deep: #ebe3d8;
  --white: #ffffff;

  --line: rgba(14, 73, 80, 0.1);
  --line-strong: rgba(14, 73, 80, 0.18);

  /* Typographie */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.82rem);
  --step-3: clamp(1.73rem, 1.53rem + 0.98vw, 2.33rem);
  --step-4: clamp(2.07rem, 1.76rem + 1.55vw, 2.99rem);
  --step-5: clamp(2.49rem, 2.01rem + 2.38vw, 3.82rem);

  /* Espacements */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Formes */
  --radius-s: 0.65rem;
  --radius-m: 1.1rem;
  --radius-l: 1.75rem;
  --radius-xl: 2.5rem;
  --radius-full: 999px;

  --shadow-s: 0 1px 2px rgba(14, 73, 80, 0.06), 0 4px 12px rgba(14, 73, 80, 0.05);
  --shadow-m: 0 2px 6px rgba(14, 73, 80, 0.05), 0 16px 40px -12px rgba(14, 73, 80, 0.14);
  --shadow-l: 0 4px 12px rgba(14, 73, 80, 0.06), 0 32px 70px -20px rgba(14, 73, 80, 0.22);

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 76px;
}

/* 2. Base ================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Le conteneur <picture> ne doit pas s'interposer dans la mise en page :
   les règles de dimensionnement s'appliquent directement à l'image. */
picture {
  display: contents;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-900);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--brand-800);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout ================================================================ */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--sand {
  background: var(--sand);
}

.section--tight {
  padding-block: clamp(3rem, 2.4rem + 3vw, 5rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-s);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-head--center .eyebrow::before {
  display: none;
}

/* 4. Typographie =========================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--brand-900);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.25;
}

h4 {
  font-size: var(--step-1);
  line-height: 1.3;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-70);
}

.muted {
  color: var(--ink-70);
}

strong {
  font-weight: 600;
  color: var(--brand-900);
}

/* Listes à puces personnalisées */
.list-check {
  display: grid;
  gap: 0.85rem;
}

.list-check li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-70);
}

.list-check li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: var(--brand-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317787e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}

.list-dot {
  display: grid;
  gap: 0.6rem;
}

.list-dot li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-70);
}

.list-dot li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.1rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

/* 5. Boutons =============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-full);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.btn--primary {
  background: var(--brand-800);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(14, 73, 80, 0.65);
}

.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(14, 73, 80, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-800);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-s);
}

.btn--light {
  background: var(--white);
  color: var(--brand-800);
  box-shadow: var(--shadow-s);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.btn--on-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-600);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow svg {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--brand-800);
  gap: 0.75rem;
}

/* 6. En-tête =============================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 249, 246, 0.92);
  box-shadow: 0 6px 24px -18px rgba(14, 73, 80, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: var(--header-h);
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  flex: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-900);
}

.brand-name span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--brand-800);
  background: rgba(14, 73, 80, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--brand-800);
  font-weight: 600;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  width: 0.3rem;
  height: 0.3rem;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-actions .btn {
  padding: 0.7rem 1.25rem;
}

/* Bouton burger */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: var(--white);
  flex: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--brand-800);
  transform: translateX(-50%);
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease-soft);
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 26px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

/* Panneau mobile */
.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-l) 1.25rem calc(var(--space-l) + env(safe-area-inset-bottom));
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.3s var(--ease-soft), transform 0.35s var(--ease),
    visibility 0.3s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-panel nav {
  display: grid;
  gap: 0.2rem;
}

.mobile-panel nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--brand-900);
  opacity: 0;
  transform: translateY(0.6rem);
}

.mobile-panel.is-open nav a {
  animation: panel-in 0.45s var(--ease) forwards;
}

.mobile-panel nav a::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  opacity: 0.35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-panel nav a:nth-child(1) { animation-delay: 0.04s; }
.mobile-panel nav a:nth-child(2) { animation-delay: 0.08s; }
.mobile-panel nav a:nth-child(3) { animation-delay: 0.12s; }
.mobile-panel nav a:nth-child(4) { animation-delay: 0.16s; }
.mobile-panel nav a:nth-child(5) { animation-delay: 0.2s; }
.mobile-panel nav a:nth-child(6) { animation-delay: 0.24s; }

@keyframes panel-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-panel .panel-footer {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: var(--space-l);
}

.mobile-panel .btn {
  width: 100%;
  padding: 1rem 1.5rem;
}

.mobile-panel .panel-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--ink-50);
}

/* 7. Accueil =============================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: -22rem;
  right: -14rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(31, 162, 166, 0.16) 0%, rgba(31, 162, 166, 0) 65%);
}

.hero::after {
  bottom: -26rem;
  left: -18rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(235, 227, 216, 0.85) 0%, rgba(235, 227, 216, 0) 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  margin-bottom: var(--space-m);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-70);
  box-shadow: var(--shadow-s);
}

.hero-tag i {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-full);
  background: var(--brand-100);
  font-style: normal;
}

.hero-tag i svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke: var(--brand-600);
}

.hero h1 {
  margin-bottom: var(--space-m);
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--brand-500);
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: var(--space-l);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-70);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--brand-800);
}

.hero-meta div span {
  font-size: var(--step--1);
  color: var(--ink-50);
}

/* Visuel du hero */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 15rem 15rem var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  background: var(--sand-deep);
  box-shadow: var(--shadow-l);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-badge {
  position: absolute;
  left: -2.25rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-m);
}

.hero-badge img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.hero-badge b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-900);
}

.hero-badge span {
  font-size: 0.76rem;
  color: var(--ink-50);
}

/* Bandeau de valeurs */
.value-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--line);
  box-shadow: var(--shadow-s);
}

.value-bar > div {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.75rem;
  background: var(--white);
}

.value-bar > div > div {
  flex: 1;
  min-width: 0;
}

.value-bar svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: 0.15rem;
  stroke: var(--brand-500);
}

.value-bar b {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-900);
}

.value-bar p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-70);
}

/* 8. Cartes ================================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Carte service */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -4rem -6rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 162, 166, 0.1) 0%, rgba(31, 162, 166, 0) 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-m);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card .icon-tile {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: var(--space-m);
  border-radius: var(--radius-m);
  background: var(--brand-50);
}

.service-card .icon-tile img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.service-card .icon-tile svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--brand-600);
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  margin-bottom: var(--space-m);
  font-size: 0.98rem;
  color: var(--ink-70);
}

.service-card ul {
  margin-bottom: var(--space-m);
  font-size: 0.95rem;
}

.service-card .link-arrow {
  margin-top: auto;
}

.service-card .stretch-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Carte simple */
.tile {
  padding: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-s);
}

.tile h3,
.tile h4 {
  margin-bottom: 0.55rem;
}

.tile p {
  font-size: 0.97rem;
  color: var(--ink-70);
}

.tile .tile-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-s);
  border-radius: var(--radius-s);
  background: var(--brand-50);
}

.tile .tile-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: var(--brand-600);
}

.tile--plain {
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

.tile--plain:hover {
  transform: none;
  box-shadow: none;
}

/* Bloc numéroté */
.steps {
  display: grid;
  gap: 1px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  padding: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  background: var(--white);
}

.steps .step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  background: var(--brand-800);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: var(--step-1);
}

.steps p {
  color: var(--ink-70);
  font-size: 0.98rem;
}

/* Split image + texte */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--sand-deep);
  box-shadow: var(--shadow-m);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split-media--portrait img {
  aspect-ratio: 4 / 5;
}

/* Illustrations sur fond clair : affichées en entier, jamais rognées */
.split-media--illustration {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}

.split-media--illustration img {
  aspect-ratio: auto;
  max-height: 34rem;
  object-fit: contain;
  padding: clamp(1rem, 0.8rem + 1vw, 2rem);
}

.split-body h2 {
  margin-bottom: var(--space-m);
}

/* Galerie photo */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
}

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--sand-deep);
  box-shadow: var(--shadow-s);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1rem 0.95rem;
  background: linear-gradient(
    to top,
    rgba(11, 58, 64, 0.92) 0%,
    rgba(11, 58, 64, 0.55) 45%,
    rgba(11, 58, 64, 0) 100%
  );
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(11, 58, 64, 0.6);
}

.gallery figure.is-tall {
  grid-row: span 2;
}

.gallery figure.is-tall img {
  height: 100%;
  aspect-ratio: auto;
}

/* Encart citation */
.quote {
  position: relative;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border-radius: var(--radius-m);
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
}

.quote p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
  color: var(--brand-900);
}

/* Bandeau d'appel à l'action */
.cta-band {
  position: relative;
  padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 100%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 65%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin-bottom: var(--space-s);
  color: var(--white);
}

.cta-band p {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-l);
  font-size: var(--step-1);
}

.cta-band .eyebrow {
  color: var(--brand-300);
}

/* 9. Pages internes ======================================================== */

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 2.4rem + 3vw, 5.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
  background: var(--sand);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -18rem;
  right: -12rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 162, 166, 0.14) 0%, rgba(31, 162, 166, 0) 65%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .lead {
  max-width: 38rem;
  margin-top: var(--space-m);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-m);
  font-size: 0.8rem;
  color: var(--ink-50);
}

.breadcrumb a:hover {
  color: var(--brand-600);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* Contenu légal / texte long */
.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
  font-size: var(--step-2);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-l);
  margin-bottom: 0.5rem;
  font-size: var(--step-1);
}

.prose p,
.prose li {
  color: var(--ink-70);
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.15em;
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.1rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: var(--radius-full);
  background: var(--brand-300);
}

.prose a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  display: inline-block;
  margin-bottom: var(--space-l);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  font-size: var(--step--1);
  color: var(--brand-600);
}

/* 10. Formulaires & contact ================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.contact-aside h2 {
  color: var(--white);
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.contact-aside > p {
  font-size: 0.97rem;
  margin-bottom: var(--space-l);
}

.contact-list {
  display: grid;
  gap: 1.35rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
}

.contact-list .ci {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.1);
}

.contact-list .ci svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: var(--brand-300);
}

.contact-list b {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.contact-list a,
.contact-list p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--white);
  transition: color 0.2s var(--ease);
}

.contact-list a:hover {
  color: var(--brand-300);
}

.contact-list small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.form-card {
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-s);
}

.form-card h2 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.form-card > p {
  margin-bottom: var(--space-l);
  color: var(--ink-70);
  font-size: 0.97rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-900);
}

.field label .req {
  color: var(--brand-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  appearance: none;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340595c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.05rem;
  padding-right: 2.6rem;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(31, 162, 166, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-50);
  opacity: 0.75;
}

.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: #c2453b;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d4675e;
  box-shadow: 0 0 0 3px rgba(212, 103, 94, 0.12);
}

.field.has-error .error-msg {
  display: block;
}

.form-consent {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-50);
}

.form-consent a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card .btn {
  justify-self: start;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.form-status--ok {
  background: var(--brand-50);
  color: var(--brand-800);
}

.form-status--ok svg {
  stroke: var(--brand-600);
}

.form-status--ko {
  background: #fdeeec;
  color: #a63c33;
}

.form-status--ko svg {
  stroke: #c2453b;
}

/* Carte de réservation */
.booking-card {
  display: grid;
  justify-items: center;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-m);
  text-align: center;
}

.booking-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-m);
  border-radius: var(--radius-m);
  background: var(--brand-50);
}

.booking-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  stroke: var(--brand-600);
}

.booking-card h3 {
  margin-bottom: 0.6rem;
}

.booking-card > p {
  margin-bottom: var(--space-l);
  color: var(--ink-70);
}

.booking-card .btn {
  padding: 1.05rem 2rem;
  font-size: var(--step-0);
}

.booking-alt {
  margin-top: var(--space-m);
  margin-bottom: 0;
  font-size: var(--step--1);
  color: var(--ink-50);
}

.booking-alt a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-alt a:hover {
  color: var(--brand-800);
}

/* Accordéon FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq details[open] {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-s);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--brand-900);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  background: var(--brand-600);
  transition: transform 0.3s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq .faq-body {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-70);
  font-size: 0.98rem;
}

/* 11. Pied de page ========================================================= */

.site-footer {
  padding-block: var(--space-xl) var(--space-m);
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding-bottom: var(--space-xl);
}

.footer-brand img {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-s);
  object-fit: contain;
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin-bottom: var(--space-s);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col p {
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* 12. Animations & responsive ============================================== */

/* L'état masqué n'est appliqué que si le JS a pris la main : sans lui,
   tout le contenu reste visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Bouton d'appel flottant (mobile) */
.call-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-full);
  background: var(--brand-800);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(11, 58, 64, 0.7);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.call-fab svg {
  width: 1.05rem;
  height: 1.05rem;
}

.call-fab.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 68px;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero .btn-row,
  .hero .eyebrow,
  .hero-tag {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    width: min(100%, 20rem);
  }

  .hero-portrait {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
  }

  .hero-badge {
    left: auto;
    right: -0.5rem;
    bottom: -1rem;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .contact-aside {
    position: static;
  }

  .value-bar {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .call-fab {
    display: flex;
  }
}

@media (max-width: 620px) {
  .wrap,
  .wrap--narrow,
  .header-inner {
    width: min(100% - 2rem, var(--wrap));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .brand-name span {
    display: none;
  }

  .cta-band {
    border-radius: var(--radius-l);
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  /* Une colonne plutôt qu'une grille 2+1 déséquilibrée */
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .call-fab,
  .cta-band {
    display: none;
  }
}
