:root {
  /* =========================
     PALETTE GLOBALE
  ========================= */
  --color-cream: #f2efe8;
  --color-cream-soft: #f7f4ee;
  --color-cream-strong: #e9e2d4;

  --color-bg: var(--color-cream);
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-soft: rgba(17, 17, 17, 0.88);
  --color-heading: var(--color-primary);
  --color-border: rgba(17, 17, 17, 0.12);

  --color-primary: #c39b58;
  --color-primary-hover: #ad8446;

  --color-surface-dark: rgba(0, 0, 0, 0.35);
  --color-surface-darker: #1c1c1c;
  --color-overlay: rgba(0, 0, 0, 0.6);

  /* =========================
     TYPOGRAPHIE
  ========================= */
  --font-main: "Roboto Slab", Georgia, serif;
  --font-title: "Roboto Slab", Georgia, serif;

  --font-size-body-desktop: 15px;
  --font-size-body-mobile: 15px;

  --line-height-body-desktop: 1.6;
  --line-height-body-mobile: 1.55;

  --paragraph-spacing-desktop: 0.9em;
  --paragraph-spacing-mobile: 0.8em;

  --heading-line-height-tight: 1.08;
  --heading-line-height: 1.18;

  --h1-size-desktop: clamp(24px, 2vw, 30px);
  --h2-size-desktop: clamp(26px, 1.75vw, 27px);
  --h3-size-desktop: clamp(18px, 1.5vw, 24px);
  --h4-size-desktop: clamp(18px, 1.5vw, 24px);
  --h5-size-desktop: 18px;
  --h6-size-desktop: 16px;

  --h1-size-mobile: 24px;
  --h2-size-mobile: 24px;
  --h3-size-mobile: 18px;
  --h4-size-mobile: 18px;
  --h5-size-mobile: 17px;
  --h6-size-mobile: 16px;

  --title-display-size: clamp(38px, 5vw, 72px);
  --title-section-size: var(--h2-size-desktop);
  --title-card-size: clamp(22px, 2.1vw, 30px);

  /* =========================
     COULEURS DE TITRES
  ========================= */
  --title-white: #ffffff;
  --title-gold: var(--color-primary);
  --title-black: #111111;

  /* =========================
     CONTENEURS
  ========================= */
  --container-width: 1200px;
  --container-padding: 20px;
  --content-width-narrow: 1000px;
  --content-width-text: 800px;

  /* =========================
     ESPACEMENTS
  ========================= */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;

  --block-gap-desktop: 24px;
  --block-gap-mobile: 18px;
  --separator-space: 10px;

  /* =========================
     RAYONS / OMBRES / ANIMATIONS
  ========================= */
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --radius-pill: 999px;

  --shadow-strong: 0 10px 50px rgba(0, 0, 0, 0.5);
  --transition: 0.25s ease;

  /* =========================
     MOBILE BG LAYER
     Ajustables par composant si besoin
  ========================= */
  --mobile-bg-top: 130px;
  --mobile-bg-height: 340px;
}

/* =========================
   VARIANTES DE THÈME
========================= */

.theme-light {
  --color-bg: var(--color-cream);
  --color-text: #111111;
  --color-text-soft: rgba(17, 17, 17, 0.88);
  --color-heading: var(--color-primary);
  --color-border: rgba(17, 17, 17, 0.12);
}

.theme-dark {
  --color-bg: #000000;
  --color-surface: #111111;
  --color-text: #ffffff;
  --color-text-soft: rgba(255, 255, 255, 0.84);
  --color-heading: #ffffff;
  --color-border: rgba(255, 255, 255, 0.14);
}

.theme-gold {
  --color-text: #ffffff;
  --color-text-soft: rgba(255, 255, 255, 0.88);
  --color-heading: #ffffff;
  --color-border: rgba(255, 255, 255, 0.18);
}

/* =========================
   RESET GLOBAL
========================= */

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  margin: 0;
  padding: 0;
}

/* scroll-behavior conditionné pour respecter les préférences
   d'accessibilité (évite les problèmes de vertiges / épilepsie) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--font-size-body-desktop);
  line-height: var(--line-height-body-desktop);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Exceptions pour les emojis WordPress */
img.emoji,
img.wp-smiley {
  display: inline !important;
  width: 1em;
  height: 1em;
  max-width: 1em;
  vertical-align: -0.12em;
  margin-left: 0.08em;
  margin-right: 0.14em;
}

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

button {
  cursor: pointer;
}

/* =========================
   LIENS
========================= */

a {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-hover);
}

/* =========================
   TYPOGRAPHIE GLOBALE
========================= */

p,
ul,
ol,
li {
  font-size: inherit;
  line-height: inherit;
}

p {
  margin: 0 0 var(--paragraph-spacing-desktop);
  color: var(--color-text-soft);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--paragraph-spacing-desktop);
  padding-left: 1.25em;
  color: var(--color-text-soft);
}

li {
  margin: 0 0 0.3em;
  color: inherit;
}

li:last-child {
  margin-bottom: 0;
}

h1,
h2,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--color-heading);
}

/* h3 utilise --color-text (plus neutre) plutôt que --color-heading (or)
   car il sert souvent de titre de section secondaire sur fond sombre
   ou à l'intérieur de blocs déjà colorés. Intentionnel. */
h3 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--color-text);
}

h1 {
  font-size: var(--h1-size-desktop);
  line-height: var(--heading-line-height-tight);
  margin-bottom: 0.45em;
}

h2 {
  font-size: var(--h2-size-desktop);
  line-height: var(--heading-line-height-tight);
  font-weight: 500;
  margin-top: 1.1em;
  margin-bottom: 0.55em;
}

h3 {
  font-size: var(--h3-size-desktop);
  line-height: var(--heading-line-height);
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.45em;
}

h4 {
  font-size: var(--h4-size-desktop);
  line-height: var(--heading-line-height);
  margin-bottom: 0.4em;
}

h5 {
  font-size: var(--h5-size-desktop);
  line-height: var(--heading-line-height);
  margin-bottom: 0.35em;
}

h6 {
  font-size: var(--h6-size-desktop);
  line-height: var(--heading-line-height);
  margin-bottom: 0.35em;
}

strong,
b {
  color: var(--color-text);
  font-weight: 700;
}

small {
  font-size: 0.9em;
}

blockquote {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  border-left: 3px solid currentColor;
  color: var(--color-text);
  font-style: italic;
  line-height: inherit;
}

hr {
  margin: 1.2em 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* =========================
   SÉPARATEUR WORDPRESS
========================= */

.wp-block-separator {
  border: none;
  background: transparent;
  opacity: 0;
  height: var(--separator-space);
  margin: 0;
}

/* =========================
   CLASSES TEXTE UTILITAIRES
========================= */

.text-soft {
  color: var(--color-text-soft);
}

.text-strong {
  color: var(--color-text);
}

/* Utilisation de la cascade CSS plutôt que !important :
   ces classes sont appliquées directement sur les éléments
   ou sur un conteneur proche, ce qui garantit la priorité. */
.text-gold {
  color: var(--title-gold);
}

.text-gold * {
  color: inherit;
}

.text-center {
  text-align: center;
}

.title-uppercase {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-display {
  font-size: var(--title-display-size);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.title-section {
  font-size: var(--title-section-size);
  line-height: var(--heading-line-height-tight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-card {
  font-size: var(--title-card-size);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =========================
   COULEURS DE TITRES DIRECTES
   Appliquées sur l'élément heading lui-même.
   On utilise une spécificité élevée (h1.title-white etc.)
   pour éviter les !important tout en restant prioritaires
   sur les styles de base.
========================= */

h1.title-white,
h2.title-white,
h3.title-white,
h4.title-white,
h5.title-white,
h6.title-white {
  color: var(--title-white);
}

h1.title-white *,
h2.title-white *,
h3.title-white *,
h4.title-white *,
h5.title-white *,
h6.title-white * {
  color: inherit;
}

h1.title-gold,
h2.title-gold,
h3.title-gold,
h4.title-gold,
h5.title-gold,
h6.title-gold {
  color: var(--title-gold);
}

h1.title-gold *,
h2.title-gold *,
h3.title-gold *,
h4.title-gold *,
h5.title-gold *,
h6.title-gold * {
  color: inherit;
}

h1.title-black,
h2.title-black,
h3.title-black,
h4.title-black,
h5.title-black,
h6.title-black {
  color: var(--title-black);
}

h1.title-black *,
h2.title-black *,
h3.title-black *,
h4.title-black *,
h5.title-black *,
h6.title-black * {
  color: inherit;
}

/* =========================
   COULEURS DE TITRES PAR ZONE
   Appliquées sur un conteneur parent (.zone-titles-*).
   La spécificité (.zone-titles-white h1) suffit à l'emporter
   sur les styles de base sans recourir à !important.
========================= */

.zone-titles-white h1,
.zone-titles-white h2,
.zone-titles-white h3,
.zone-titles-white h4,
.zone-titles-white h5,
.zone-titles-white h6 {
  color: var(--title-white);
}

.zone-titles-white h1 *,
.zone-titles-white h2 *,
.zone-titles-white h3 *,
.zone-titles-white h4 *,
.zone-titles-white h5 *,
.zone-titles-white h6 * {
  color: inherit;
}

.zone-titles-gold h1,
.zone-titles-gold h2,
.zone-titles-gold h3,
.zone-titles-gold h4,
.zone-titles-gold h5,
.zone-titles-gold h6 {
  color: var(--title-gold);
}

.zone-titles-gold h1 *,
.zone-titles-gold h2 *,
.zone-titles-gold h3 *,
.zone-titles-gold h4 *,
.zone-titles-gold h5 *,
.zone-titles-gold h6 * {
  color: inherit;
}

.zone-titles-black h1,
.zone-titles-black h2,
.zone-titles-black h3,
.zone-titles-black h4,
.zone-titles-black h5,
.zone-titles-black h6 {
  color: var(--title-black);
}

.zone-titles-black h1 *,
.zone-titles-black h2 *,
.zone-titles-black h3 *,
.zone-titles-black h4 *,
.zone-titles-black h5 *,
.zone-titles-black h6 * {
  color: inherit;
}

/* =========================
   CONTENEURS GLOBAUX
========================= */

.site-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-container--narrow {
  max-width: var(--content-width-narrow);
}

.site-container--text {
  max-width: var(--content-width-text);
}

.lge-container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.wp-block[data-align="full"] {
  width: 100%;
  max-width: none;
}

/* =========================
   UTILITAIRES VISUELS
========================= */

.has-responsive-bg {
  background-image: var(--bg-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.has-mobile-bg-layer {
  position: relative;
}

.title-gradient-gold {
  background: linear-gradient(
    6deg,
    rgba(120, 100, 62, 1) 0%,
    rgba(237, 187, 100, 1) 50%,
    rgba(159, 123, 63, 1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================
   BOUTONS GLOBAUX
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--rounded {
  border-radius: var(--radius-small);
}

.btn--outline-light {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-light:hover,
.btn--outline-light:focus {
  background: rgba(255, 255, 255, 0.92);
  color: #000000;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-primary-hover);
  color: #ffffff;
  border-color: var(--color-primary-hover);
}

.btn--dark {
  background: #111111;
  color: var(--color-cream);
  border-color: #111111;
}

.btn--dark:hover,
.btn--dark:focus {
  background: #2a2a2a;
  color: var(--color-cream);
  border-color: #2a2a2a;
}

.btn-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 24px;
  width: 100%;
}

/* =========================
   FLÈCHES SLIDER GLOBALES
========================= */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-small);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover,
.slider-arrow:focus {
  background: rgba(0, 0, 0, 0.8);
}

/* =========================
   MODALE GLOBALE
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.modal__dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 720px;
  padding: 20px;
  background: var(--color-surface-darker);
  color: #ffffff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
}

.modal__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 14px;
  border-radius: var(--radius-small);
}

.modal__text {
  margin: 0 0 20px;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.55;
  white-space: pre-wrap;
  text-align: center;
  color: #ffffff;
}

/* =========================
   BASE WORDPRESS / PAGES
========================= */

body.page {
  background: #000000;
}

body.page:has(.page-bg-light) {
  background: var(--color-bg);
}

body.page .site,
body.page .site-content,
body.page .content-area,
body.page .site-main,
body.page article,
body.page .entry-content {
  background: transparent;
}

body.page .entry-header {
  display: none;
}

body.page .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.page .entry-content {
  margin: 0;
}

body.page .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

body.page .entry-content > * + * {
  margin-top: var(--block-gap-desktop);
}

body.page .entry-content > *:first-child {
  margin-top: 0;
}

body.page .entry-content > *:last-child {
  margin-bottom: 0;
}

body.page .entry-content > .wp-block-spacer {
  height: var(--separator-space);
}

body.page .entry-content > [class*="wp-block-lge-"] {
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================
   RESPONSIVE GLOBAL
========================= */

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  body {
    font-size: var(--font-size-body-mobile);
    line-height: var(--line-height-body-mobile);
  }

  p {
    margin-bottom: var(--paragraph-spacing-mobile);
  }

  ul,
  ol {
    margin-bottom: var(--paragraph-spacing-mobile);
  }

  h1 {
    font-size: var(--h1-size-mobile);
  }

  h2 {
    font-size: var(--h2-size-mobile);
    margin-top: 1em;
    margin-bottom: 0.5em;
  }

  h3 {
    font-size: var(--h3-size-mobile);
    margin-top: 0.9em;
    margin-bottom: 0.45em;
  }

  h4 {
    font-size: var(--h4-size-mobile);
  }

  h5 {
    font-size: var(--h5-size-mobile);
  }

  h6 {
    font-size: var(--h6-size-mobile);
  }

  .title-section {
    font-size: var(--h2-size-mobile);
  }

  .title-card {
    font-size: var(--h3-size-mobile);
  }

  .has-responsive-bg {
    background-image: var(--bg-mobile, var(--bg-desktop));
  }

  /* Le positionnement du calque mobile est piloté par les
     variables --mobile-bg-top et --mobile-bg-height, définissables
     au niveau du composant pour s'adapter aux différents contextes. */
  .has-mobile-bg-layer::before {
    content: "";
    position: absolute;
    top: var(--mobile-bg-top);
    left: 0;
    width: 100%;
    height: var(--mobile-bg-height);
    background-image: var(--bg-mobile, var(--bg-desktop));
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 0;
  }

  .btn-grid-2 {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .slider-arrow {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal__dialog {
    width: calc(100% - 24px);
    padding: 16px;
  }

  .modal__text {
    font-size: 1rem;
    line-height: 1.5;
  }

  body.page .entry-content > * + * {
    margin-top: var(--block-gap-mobile);
  }
}

/* =======================
   Ajout par Ludo  
======================= */
/* Permet d'aligner un h2 à gauche plutôt qu'il soit centré */
.lge-h2-left {	
	text-align: left;
}

/* Ajout par Ludo le 09/05/26 pour pouvoir ajouter des boutons !
 * en utilisant la balise <a href="#ancre-contact-chambery" class="lge-bouton">
   Attention c'est long ! */

/* Cette classe est à mettre dans une div qui englobe le bouton pour pouvoir le centrer */
.lge-centreur-bouton{	
	text-align: center;
}

.lge-bouton {
	display: inline-block;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	max-width: 500px;
	padding: 12px 12px;
	background: #c39b58;
	color: #FFF;
	font-size: 1.1em;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: 2px solid #fff;
	border-radius: 25px;
	transition: background 0.3s ease, color 0.3s ease;
}

.lge-bouton:hover {
	background: rgba(255, 255, 255, 0.9);
	color: #000;
}

@media (max-width: 768px) {
	.lge-bouton {
		min-width: 0;
		max-width: 320px;
		padding: 12px 12px;
		font-size: 0.95rem;
		border-radius: 22px;
		background: #c39b58;
	}
}

@media (max-width: 480px) {
	.lge-bouton {
		font-size: 0.9rem;
		padding: 9px 6px;
	}
}
/* Fin ajout Ludo du 09/05/26 */