@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

/* --------------------------------------------------
   VARIABLES — Minimal Ivoire
   Crème, anthracite, un seul accent émeraude. --accent / --accent-dark /
   --accent-soft restent les trois noms que la personnalisation de marque
   (E36) réécrit à la volée.
-------------------------------------------------- */
:root {
  --bg: #f7f4ec;
  --bg-alt: #f0ebdd;
  --surface: #fbfaf5;
  --text: #2b2b28;
  --muted: #746f63;

  --accent: #1f8a5c;
  --accent-dark: #145c3d;
  --accent-soft: rgba(31, 138, 92, 0.1);

  --border: #e3ddcb;

  --radius: 0;
  --shadow: 0 20px 45px rgba(43, 43, 40, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.7rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

[id] { scroll-margin-top: 78px; }

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */
.rd-container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

.rd-container--narrow {
  max-width: 720px;
}

.rd-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* --------------------------------------------------
   EN-TÊTE — nav centrée (grille à 3 colonnes symétriques)
-------------------------------------------------- */
.rd-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.rd-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.15rem 0;
  gap: 1rem;
}

.rd-header__spacer {
  display: block;
}

.rd-logo {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.rd-logo__image {
  height: 34px;
  max-width: 160px;
  object-fit: contain;
}

.rd-nav {
  justify-self: center;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
}

.rd-nav-toggle {
  display: none;
}

.rd-nav-toggle__label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  justify-self: end;
}

.rd-nav-toggle__label span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
}

.rd-nav__link {
  position: relative;
  padding: 0.5rem 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: color 0.2s;
}

.rd-nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.rd-nav__link:hover {
  color: var(--accent-dark);
}

.rd-nav__link:hover::after {
  transform: scaleX(1);
}

.btn-nav {
  border: 1px solid var(--text);
}

.rd-nav__dropdown {
  position: relative;
}

.rd-nav__dropdown > summary {
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  list-style: none;
  color: var(--text);
}

.rd-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

.rd-nav__dropdown > summary::after {
  content: " \25BE";
  font-size: 0.75em;
}

.rd-nav__dropdown-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 190px;
  max-width: 80vw;
  z-index: 20;
}

.rd-nav__dropdown-list li a {
  display: block;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.rd-nav__dropdown-list li a:hover {
  background: var(--bg-alt);
  color: var(--accent-dark);
}

/* --------------------------------------------------
   HERO — texte centré très aéré, puis un bandeau photo plein largeur
-------------------------------------------------- */
.rd-hero__text {
  text-align: center;
  padding: 5.5rem 5% 3.5rem;
}

.rd-hero__text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.rd-hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}

.rd-hero__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 2rem;
}

.rd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  vertical-align: middle;
}

.rd-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rd-hero__photo {
  width: 100%;
  height: 42vh;
  min-height: 260px;
  overflow: hidden;
}

.rd-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.rd-section {
  padding: 5rem 0;
}

.rd-section--alt {
  background: var(--bg-alt);
}

.rd-section h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.rd-lede {
  font-size: 1.05rem;
  color: var(--text);
}

.rd-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.rd-prose {
  color: var(--text);
}

.rd-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.rd-back-link:hover {
  color: var(--accent-dark);
}

/* --------------------------------------------------
   À PROPOS
-------------------------------------------------- */
.rd-facts {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}

.rd-facts dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rd-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
}

/* --------------------------------------------------
   CARTES — extrêmement sobres, un simple filet, pas d'ombre au repos
-------------------------------------------------- */
.rd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.rd-card {
  padding: 0 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  transition: opacity 0.2s ease;
}

.rd-card:hover {
  opacity: 0.75;
}

.rd-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

.rd-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.rd-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.rd-card__price {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
  margin: 0.4rem 0;
}

.rd-card__date {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* --------------------------------------------------
   GRILLE (galerie / réalisations)
-------------------------------------------------- */
.rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.rd-grid__item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.rd-grid__item:hover {
  opacity: 0.8;
}

.rd-grid__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

.rd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.rd-lightbox:target {
  opacity: 1;
  visibility: visible;
}

.rd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 40, 0.92);
}

.rd-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
}

.rd-lightbox__content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.rd-lightbox__content figcaption {
  color: #ffffff;
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-display);
}

.rd-lightbox__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------
   PAGES DE DÉTAIL
-------------------------------------------------- */
.rd-detail__cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.rd-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rd-detail__gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* --------------------------------------------------
   PUCES
-------------------------------------------------- */
.rd-chip {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.rd-chip--muted {
  background: var(--bg-alt);
  color: var(--muted);
}

.rd-chip--tag {
  margin: 0.15rem 0.3rem 0.15rem 0;
}

.rd-chip--type {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------
   CONTACT
-------------------------------------------------- */
.rd-contact-info {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rd-contact-info a {
  color: var(--accent-dark);
}

.rd-contact-info a:hover {
  text-decoration: underline;
}

.rd-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rd-alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  border-left: 2px solid;
}

.rd-alert--ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.rd-alert--error {
  background: rgba(168, 50, 50, 0.08);
  color: #a83232;
  border-color: #a83232;
}

.rd-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}

.rd-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-social-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.rd-map-embed {
  margin: 0 0 1.75rem;
}

.rd-map-embed iframe {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border);
  display: block;
}

.rd-map-embed-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.rd-map-embed-link:hover {
  text-decoration: underline;
}

.rd-form {
  max-width: 480px;
}

.rd-form h3 {
  font-size: 1.25rem;
}

.rd-form > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.rd-form__row {
  margin-bottom: 1.25rem;
}

.rd-form__row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.rd-form__row input,
.rd-form__row textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.rd-form__row input:focus,
.rd-form__row textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------
   BOUTONS — rectangulaires, capitales espacées
-------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

/* --------------------------------------------------
   PIED DE PAGE
-------------------------------------------------- */
.rd-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--muted);
}

.rd-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rd-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.rd-footer__links a {
  color: var(--muted);
}

.rd-footer__links a:hover {
  color: var(--accent-dark);
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
  .rd-header__inner {
    grid-template-columns: 1fr auto;
  }

  .rd-header__spacer {
    display: none;
  }

  .rd-nav-toggle__label {
    display: flex;
  }

  .rd-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 5% 1rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .rd-nav-toggle:checked ~ .rd-nav {
    display: flex;
  }

  .rd-nav__link,
  .rd-nav__dropdown > summary {
    padding: 0.85rem 0.5rem;
    text-align: left;
  }

  .rd-nav__link::after {
    display: none;
  }

  .rd-nav__dropdown-list {
    position: static;
    max-width: none;
    transform: none;
    margin: 0 0 0 1rem;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
  }

  .rd-footer__inner {
    justify-content: center;
    text-align: center;
  }

  .rd-footer__links {
    justify-content: center;
  }
}


/* ==================================================================
   CORRECTIONS HERITEES DE LA FEUILLE DE BASE
   Voir `correctionsHeritees()` dans bin/make-webbuilder-templates.php.
   ================================================================== */
/* L'en-tete de la feuille de base peint `rgba(247, 244, 236, 0.94)` — le
   creme de « Minimal Ivoire », ecrit en dur et non en jeton. Tout modele
   derive heritait donc d'une barre creme quelle que soit sa palette : sur
   « Onde », dont le fond est blanc, elle se voyait franchement.

   La translucidite est voulue (l'en-tete est `sticky` et le flou rend
   lisible ce qui passe dessous), d'ou `color-mix` plutot qu'un aplat. La
   premiere declaration est le repli : un navigateur qui ignore `color-mix`
   ne comprend pas la seconde et garde un fond opaque, ce qui est laid
   nulle part. */
.rd-header {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

/* La pastille « compte verifie » : la base peint son glyphe en `#ffffff`
   ecrit en dur, ce qui ne tient que sous un accent fonce. Selon la palette
   le contraste tombait entre 3,07 et 3,64.

   Cette paire-ci tient dans les DEUX sens, ce qui est ce qu'il faut quand
   un theme peut retourner la page : sur une page sombre `--accent-dark`
   est la variante CLAIRE de l'accent et `--bg` est sombre, donc glyphe
   sombre sur pastille claire ; sur une page claire c'est l'inverse, terme
   pour terme. Une seule regle, valable sous tous les themes, la ou il en
   fallait une par modele. */
.rd-badge {
  background: var(--accent-dark);
  color: var(--bg);
}

/* Le sur-titre est du petit texte en capitales peint avec `--accent`, une
   couleur choisie pour remplir des aplats, pas pour etre lue a 12px : sous
   les palettes claires le contraste tombait a 2,67. `--accent-dark` est
   precisement l'accent decale vers la lisibilite sur le fond courant, et il
   se decale dans le bon sens sur une page sombre comme sur une page claire. */
.rd-eyebrow {
  color: var(--accent-dark);
}

@media (max-width: 768px) {
  /* Le panneau deroulant prend toute la largeur : sans cela l'alignement
     de boite l'emporte sur l'etirement et le reduit a son contenu. */
  .rd-nav {
    justify-self: stretch;
  }
}

/* ==================================================================
   RONDEUR — identité
   Inspiration de mise en page : le rayon de bord comme signature. Rien
   n'a d'angle vif, jusqu'aux sections qui se referment sur leurs coins.
   ------------------------------------------------------------------
   La feuille de base ne contient QUE deux `border-radius`, tous deux
   `50%`, et son jeton `--radius: 0` n'est lu nulle part. Il n'y a donc
   rien à « adoucir » : ce bloc pose les arrondis lui-même, surface par
   surface. Le jeton est redéclaré et c'est lui que ces règles lisent —
   changer 26px change le modèle entier, ce qui est le but.

   La pile de polices est écrite pour son REPLI, aucune police web n'étant
   chargée : `Segoe UI Rounded` et `ui-rounded` existent réellement sur
   Windows et sur Apple, et portent le même caractère que la police
   nommée en tête.
   ================================================================== */
:root {
  --bg: #fff8f3;
  --bg-alt: #ffeee3;
  --surface: #ffffff;
  --text: #34241f;
  --muted: #80675c;

  /* `--accent` n'est pas touché : il sert d'aplat (boutons, pastilles),
     jamais de texte. Ce sont les deux couleurs QU'ON LIT qui remontent —
     mesuré, `--muted` donnait 4,10 sur `--bg-alt` et `--accent-dark` 4,06
     sur `--accent-soft`, sous le seuil AA de 4,5. L'écart est de l'ordre
     de #8a6f63 vers #80675c : invisible côte à côte, décisif pour la
     norme. La pastille « compte vérifié », qui s'appuie sur
     `--accent-dark`, y gagne aussi (5,25 vers 5,99). */
  --accent: #e8543f;
  --accent-dark: #b33726;
  --accent-soft: rgba(232, 84, 63, 0.12);

  --border: #f4ded1;

  --radius: 26px;
  --shadow: 0 18px 40px rgba(52, 36, 31, 0.1);

  --font-display: "Baloo 2", "Segoe UI Rounded", ui-rounded, "SF Pro Rounded", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI Rounded", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* La gélule, partout où l'on clique. Les boutons sont ceux de la base,
   sans préfixe. */
.btn-primary,
.btn-secondary,
.rd-chip,
.rd-badge,
.rd-nav__link,
.rd-back-link {
  border-radius: 999px;
}

/* Les surfaces. `overflow: hidden` sur ce qui porte une image, sans quoi
   l'image passe par-dessus le coin qu'on vient d'arrondir. */
.rd-card,
.rd-form input,
.rd-form textarea,
.rd-form select,
.rd-alert,
.rd-note,
.rd-facts,
.rd-map-embed,
.rd-detail__cover,
.rd-detail__gallery-img,
.rd-hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
}

/* L'image d'une carte coiffe la carte : seuls ses coins hauts s'arrondissent. */
.rd-card__image {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Les sections se referment sur leurs coins : c'est ce qui distingue ce
   modèle d'un simple thème clair aux cartes arrondies. */
.rd-section--alt {
  border-radius: calc(var(--radius) * 1.6);
  margin-left: 14px;
  margin-right: 14px;
}

/* L'en-tête : une barre flottante arrondie plutôt qu'un bandeau collé au
   bord. Elle reste `sticky` — la base le pose, et une marge ne l'en
   empêche pas. */
.rd-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 14px;
  box-shadow: var(--shadow);
}

/* Le panneau mobile se colle sous l'en-tête sur toute la largeur : il
   doit s'arrondir aussi, sinon il pend en rectangle sous une gélule. */
.rd-nav {
  border-radius: var(--radius);
}

.rd-footer {
  border-radius: calc(var(--radius) * 1.6) calc(var(--radius) * 1.6) 0 0;
}

/* Sous 768px — le seuil de la base — la barre flottante reprend toute la
   largeur : un arrondi de 999px sur une barre qui occupe l'écran entier
   ne se voit plus, et les marges latérales volaient 28px à une largeur
   qui en manque. */
@media (max-width: 768px) {
  .rd-header {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .rd-section--alt {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }
}