/* Céline du Miroir : feuille de style commune */

@view-transition { navigation: auto; }

:root {
  --nuit: #14122a;
  --nuit-2: #221f3f;
  --or: #c9a45c;
  --or-clair: #ead6a4;
  --texte: #2a2836;
  --texte-doux: #5f5c6e;
  --fond: #fbf8f3;
  --fond-clair: #f3ede2;
  --filet: #e5dccb;
  --rayon: 18px;
  --ombre: 0 18px 40px -18px rgba(20, 18, 42, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--nuit); }

a { color: inherit; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); }
.centre { text-align: center; }
.petit { font-size: .93rem; color: var(--texte-doux); }

/* Transitions entre les pages */
::view-transition-old(root) { animation: 280ms ease both sortie; }
::view-transition-new(root) { animation: 420ms cubic-bezier(.2, .7, .2, 1) both entree; }
.entete { view-transition-name: entete; }
@keyframes sortie { to { opacity: 0; transform: translateY(-8px); } }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }

/* Apparition au défilement */
.apparition { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.apparition.visible { opacity: 1; transform: none; }
.sans-js .apparition { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .apparition { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* En-tête et onglets */
.entete {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 18, 42, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(201, 164, 92, .22);
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.marque {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
  color: var(--or-clair); text-decoration: none; white-space: nowrap;
}
.marque-miroir {
  width: 22px; height: 30px; border-radius: 50%;
  border: 2px solid var(--or);
  box-shadow: inset 0 0 10px rgba(234, 214, 164, .45), 0 0 14px rgba(201, 164, 92, .35);
}
.onglets { display: flex; gap: 4px; }
.onglets a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  color: #e7e3f2; text-decoration: none; font-size: .93rem; letter-spacing: .02em;
  transition: color .25s, background .25s;
}
.onglets a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.onglets a[aria-current="page"] { color: var(--nuit); background: var(--or); }
.menu-bouton {
  display: none;
  font: inherit; font-size: .95rem; color: var(--or-clair);
  background: none; border: 1px solid rgba(201, 164, 92, .5); border-radius: 999px; padding: 7px 16px; cursor: pointer;
}

/* Accueil */
.accueil {
  position: relative; overflow: hidden; color: #f2eff8;
  background: var(--nuit);
  padding: clamp(56px, 10vw, 110px) 0 clamp(56px, 9vw, 100px);
}
.accueil::before, .bandeau::before, .citation-bloc::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--fond); background-size: cover; background-position: center;
  opacity: .38; transform: scale(1.08);
  animation: respiration 24s ease-in-out infinite alternate;
}
.accueil::after, .bandeau::after, .citation-bloc::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 164, 92, .25), transparent 55%), linear-gradient(180deg, rgba(20, 18, 42, .55), rgba(20, 18, 42, .92));
}
.accueil > *, .bandeau > *, .citation-bloc > * { position: relative; z-index: 1; }
@keyframes respiration { to { transform: scale(1.16) translateY(-10px); } }

.accueil-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.surtitre { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--or-clair); margin: 0 0 12px; }
.surtitre-sombre { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: #a07c35; margin: 0 0 8px; }
.accueil h1 { font-size: clamp(3.2rem, 9vw, 6rem); color: #fff; margin-bottom: .15em; }
.accroche { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--or-clair); margin: 0 0 28px; }
.lieu { margin: 22px 0 0; font-size: .95rem; color: #c3bed6; }
.accueil-portrait { margin: 0; justify-self: center; }
.accueil-portrait img {
  width: min(360px, 100%); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid rgba(234, 214, 164, .6);
  box-shadow: 0 0 0 10px rgba(201, 164, 92, .12), 0 30px 60px -20px rgba(0, 0, 0, .6);
}

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.centre .boutons { justify-content: center; }
.bouton {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-plein { background: var(--or); color: var(--nuit); box-shadow: 0 10px 24px -10px rgba(201, 164, 92, .8); }
.bouton-plein:hover { background: var(--or-clair); }
.bouton-trait { border: 1px solid var(--or); color: var(--or-clair); }
.bouton-trait:hover { background: rgba(201, 164, 92, .14); }
.bloc:not(.citation-bloc) .bouton-trait { color: #8a6a2c; }
.bouton-sombre { background: var(--nuit); color: #fff; }

/* Bandeau des pages */
.bandeau { position: relative; overflow: hidden; background: var(--nuit); color: #f2eff8; padding: clamp(64px, 11vw, 120px) 0 clamp(48px, 8vw, 84px); text-align: center; }
.bandeau h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: #fff; }
.bandeau-texte { max-width: 620px; margin: 0 auto; color: #d6d1e4; font-size: 1.08rem; }

/* Blocs */
.bloc { padding: clamp(56px, 8vw, 96px) 0; }
.bloc-clair { background: var(--fond-clair); border-block: 1px solid var(--filet); }
.bloc p { margin: 0 0 1em; }
.deux-colonnes { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.signature { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.3rem; color: #8a6a2c; }
.cadre { margin: 0; }
.cadre img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); object-fit: cover; }
.cadre-haut img { aspect-ratio: 3 / 4; }
.cadre figcaption { margin-top: 10px; font-size: .9rem; color: var(--texte-doux); text-align: center; }
.texte-long p { font-size: 1.06rem; }
.lettrine::first-letter { font-family: "Cormorant Garamond", Georgia, serif; float: left; font-size: 3.6em; line-height: .8; padding: 6px 10px 0 0; color: #a07c35; }
.citation-courte { margin: 0 0 1.2em; padding-left: 18px; border-left: 3px solid var(--or); font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.4rem; color: var(--nuit); }

/* Cartes de l'accueil */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.carte {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
  text-decoration: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.carte:hover img { transform: scale(1.05); }
.carte-corps { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.carte-titre { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--nuit); }
.carte-texte { color: var(--texte-doux); }
.carte-prix { margin-top: 6px; font-weight: 700; color: #8a6a2c; }

/* Citation */
.citation-bloc { position: relative; overflow: hidden; background: var(--nuit); color: #f2eff8; }
.citation-bloc blockquote { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; }
.citation-auteur { color: var(--or-clair); margin-bottom: 26px !important; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tarif {
  display: grid; grid-template-columns: 180px 1fr; overflow: hidden;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
  transition: transform .35s, box-shadow .35s;
}
.tarif:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.tarif img { width: 100%; height: 100%; object-fit: cover; }
.tarif-corps { padding: 24px; display: flex; flex-direction: column; }
.tarif-corps h2 { font-size: 1.7rem; }
.tarif-corps p { color: var(--texte-doux); }
.prix { margin-top: auto !important; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 600; color: #8a6a2c !important; }

/* Avertissement */
.avertissement { background: #fff; border-left: 3px solid var(--or); padding: 18px 22px; border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--texte-doux); }

/* Témoignages */
.temoignages { columns: 3 300px; column-gap: 22px; }
.temoignage {
  break-inside: avoid; margin: 0 0 22px; padding: 26px 24px 22px;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
}
.temoignage blockquote { margin: 0 0 16px; font-size: 1rem; color: var(--texte); }
.temoignage blockquote::before { content: "“"; display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.2rem; line-height: .6; color: var(--or); margin-bottom: 8px; }
.temoignage figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.temoignage figcaption strong { color: var(--nuit); }
.temoignage figcaption span { color: var(--texte-doux); }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.galerie img { border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; }

/* Engagements */
.engagements { list-style: none; margin: 0; padding: 0; }
.engagements li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.engagements p { margin: 0; }
.numero { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--or); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; color: #8a6a2c; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-case {
  display: flex; flex-direction: column; gap: 6px; padding: 26px;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon);
  text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.contact-case:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--or); }
.contact-titre { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: #a07c35; }
.contact-valeur { font-size: 1.15rem; color: var(--nuit); font-weight: 700; overflow-wrap: anywhere; }

/* Pages de texte */
.page-texte h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--nuit); }
.page-texte h2 { font-size: 1.6rem; margin-top: 1.4em; }

/* Pied de page */
.pied { background: var(--nuit); color: #b9b4cc; font-size: .93rem; padding: 48px 0 40px; }
.pied-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pied p { margin: 0 0 .8em; }
.pied a { color: #e7e3f2; text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied-marque { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; color: var(--or-clair); }

/* Barre d'appel sur téléphone */
.barre-appel { display: none; }

@media (max-width: 960px) {
  .menu-bouton { display: inline-block; }
  .onglets {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px 16px 18px;
    background: rgba(20, 18, 42, .98); border-bottom: 1px solid rgba(201, 164, 92, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .onglets.ouvert { opacity: 1; visibility: visible; transform: none; }
  .onglets a { padding: 12px 14px; font-size: 1.05rem; }
  .accueil-grille, .deux-colonnes { grid-template-columns: 1fr; }
  .accueil-portrait { grid-row: 1; }
  .accueil-portrait img { width: 220px; }
  .accueil { text-align: center; }
  .accueil .boutons { justify-content: center; }
  .cartes, .tarifs, .contact-grille, .pied-grille { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .tarif { grid-template-columns: 1fr; }
  .tarif img { aspect-ratio: 16 / 9; height: auto; }
  .galerie { grid-template-columns: 1fr; }
  .barre-appel {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--nuit); border-top: 1px solid rgba(201, 164, 92, .35);
  }
  .barre-appel a { padding: 16px; text-align: center; font-weight: 700; text-decoration: none; color: var(--nuit); background: var(--or); }
  .barre-appel a + a { background: transparent; color: var(--or-clair); }
}

/* Pages légales */
.sommaire-legal { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.sommaire-legal a {
  padding: 7px 14px; border: 1px solid var(--filet); border-radius: 999px;
  font-size: .9rem; text-decoration: none; color: var(--texte-doux); background: #fff;
}
.sommaire-legal a:hover { border-color: var(--or); color: var(--nuit); }
.page-texte h2 { font-size: 1.55rem; margin-top: 1.6em; }
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
.tableau { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--filet); border-radius: 12px; overflow: hidden; font-size: .97rem; }
.tableau th, .tableau td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); }
.tableau th { background: var(--fond-clair); font-weight: 700; color: var(--nuit); }
.tableau td:last-child, .tableau th:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: #8a6a2c; }
.formulaire-type { background: #fff; border: 1px dashed var(--or); border-radius: 12px; padding: 18px 22px; font-size: .95rem; }
.formulaire-type p:last-child { margin-bottom: 0; }
.a-completer { background: #fff1b8; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.pied-legal a { white-space: nowrap; }

@media (max-width: 620px) {
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau tr { padding: 14px 16px; border-bottom: 1px solid var(--filet); }
  .tableau td { padding: 2px 0; border: 0; text-align: left !important; }
  .tableau td:first-child { font-weight: 700; color: var(--nuit); }
  .tableau td:last-child { margin-top: 4px; }
  .sommaire-legal a { font-size: .85rem; padding: 6px 12px; }
}

/* Adhésion à l'Institut National des Arts Divinatoires */
.inad { border: 1px solid rgba(201, 164, 92, .55); border-radius: 18px; padding: 26px 28px 12px; margin-bottom: 44px; background: #fffdf8; }
.inad-titre { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; color: var(--nuit); margin: 0 0 .5em; }
.inad .bouton { margin: 4px 8px 12px 0; }
.pied-inad a { color: var(--or-clair); }
@media (max-width: 620px) { .inad { padding: 22px 20px 8px; } .inad .bouton { display: block; text-align: center; margin-right: 0; } }

/* Portraits des pages Engagements et Contact */
.engagements-tete { width: min(1000px, 100% - 32px); margin-bottom: 44px; }
.engagements-tete .inad { margin-bottom: 0; }
.portrait-petit { width: 100%; max-width: 360px; justify-self: center; }
.contact-tete { grid-template-columns: 1fr 1.15fr; }
.contact-grille-colonne { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .contact-tete { grid-template-columns: 1fr; }
  .contact-tete .portrait-petit { order: 2; max-width: 300px; }
  .engagements-tete .portrait-petit { max-width: 300px; }
}

/* Bandeau de confiance de l'accueil */
.confiance { background: var(--nuit); padding: 0 0 46px; }
.confiance-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.confiance-case { display: block; border: 1px solid rgba(201, 164, 92, .4); border-radius: 16px; padding: 20px 22px; color: #cfcbe0; text-decoration: none; font-size: .95rem; line-height: 1.5; transition: border-color .3s, background .3s; }
.confiance-case:hover { border-color: var(--or); background: rgba(201, 164, 92, .08); }
.confiance-titre { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; color: var(--or-clair); margin-bottom: 4px; }
@media (max-width: 960px) { .confiance-grille { grid-template-columns: 1fr; } }

/* Informations avant la consultation et charte */
.avant-consultation { text-align: left; max-width: 640px; margin: 26px auto 28px; padding: 0; list-style: none; }
.avant-consultation li { position: relative; padding: 0 0 12px 28px; }
.avant-consultation li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.charte-titre { margin-top: 56px; }
.charte-liste { padding-left: 1.2em; }
.charte-liste li { margin-bottom: .8em; }
