
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-header) + var(--s-3));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-base);
  font-weight: 350;
  line-height: var(--lh-texte);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 380;
  line-height: var(--lh-titre);
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--c-foret);
}

h1 { font-size: var(--t-3xl); line-height: var(--lh-serre); letter-spacing: -0.03em; }
h2 { font-size: var(--t-2xl); letter-spacing: -0.025em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

h1 em, h2 em, h3 em, .italique {
  font-style: italic;
  color: var(--c-cuivre-profond);
}

p { text-wrap: pretty; max-width: var(--largeur-texte); }

strong { font-weight: 500; }

small { font-size: var(--t-sm); }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--duree-court) var(--ease-doux),
              text-decoration-color var(--duree-court) var(--ease-doux);
}
a:hover { color: var(--c-foret); text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--rayon);
}
.sur-fonce :focus-visible,
.sur-fonce:focus-visible { outline-color: var(--focus-inverse); }

::selection { background: var(--c-foret); color: var(--c-papier); }

.lien-evitement {
  position: absolute;
  left: var(--s-3);
  top: -100%;
  z-index: 1000;
  padding: var(--s-2) var(--s-3);
  background: var(--c-foret);
  color: var(--c-papier);
  text-decoration: none;
}
.lien-evitement:focus { top: var(--s-2); }

.btn {
  --btn-fond: var(--c-foret);
  --btn-texte: var(--c-papier);
  --btn-bord: var(--c-foret);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.85em 1.6em;
  border: 1px solid var(--btn-bord);
  border-radius: var(--rayon);
  background: var(--btn-fond);
  color: var(--btn-texte);
  font-family: var(--f-texte);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color var(--duree-court) var(--ease-doux),
              color var(--duree-court) var(--ease-doux),
              border-color var(--duree-court) var(--ease-doux),
              transform var(--duree-court) var(--ease-doux);
}
.btn:hover {
  --btn-fond: var(--c-foret-nuit);
  color: var(--btn-texte);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn .fleche { transition: transform var(--duree-moyen) var(--ease-doux); }
.btn:hover .fleche { transform: translateX(4px); }

.btn--contour {
  --btn-fond: transparent;
  --btn-texte: var(--c-foret);
}
.btn--contour:hover { --btn-fond: var(--c-foret); --btn-texte: var(--c-papier); }

.btn--or {
  --btn-fond: var(--c-or-pale);
  --btn-texte: var(--c-foret-nuit);
  --btn-bord: var(--c-or-pale);
}
.btn--or:hover { --btn-fond: var(--c-papier); --btn-bord: var(--c-papier); }

.btn--clair {
  --btn-fond: transparent;
  --btn-texte: var(--c-papier);
  --btn-bord: rgb(245 240 230 / 0.6);
}
.btn--clair:hover { --btn-fond: var(--c-papier); --btn-texte: var(--c-foret); }

.btn--grand { font-size: var(--t-base); padding: 1.1em 2.2em; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2em;
}
.lien-fleche:hover { text-decoration: none; }
.lien-fleche:hover .fleche { transform: translateX(4px); }
.lien-fleche .fleche { transition: transform var(--duree-moyen) var(--ease-doux); }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.surtitre {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}
.surtitre .num {
  font-family: var(--f-titre);
  font-size: 1.6em;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}
.surtitre::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  align-self: center;
  background: var(--filet);
}

.chapeau {
  font-size: var(--t-lg);
  line-height: 1.55;
  font-weight: 300;
  color: inherit;
}

.legende {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.filet {
  width: 4rem;
  height: 1px;
  border: 0;
  background: var(--filet);
  margin-block: var(--s-5);
}

.texte-centre { text-align: center; }
.texte-centre p { margin-inline: auto; }

.flux > * + * { margin-top: var(--flux-espace, 1em); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duree-long) var(--ease-doux),
              transform var(--duree-long) var(--ease-doux);
  transition-delay: var(--delai, 0ms);
}
.js [data-reveal].est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html:not(.js) [data-filtres],
html:not(.js) [data-filtres-galerie],
html:not(.js) [data-resa-form],
html:not(.js) [data-statut] { display: none; }

[data-statut]:empty::after { content: "\00a0"; }
[data-statut]:empty::before { visibility: hidden; }
