/* ============================================================
   RR Ice — Ghandouri, Tanger
   « L'or seul » : ivoire de marbre, encre chocolat, un seul or.
   La couleur n'appartient qu'à l'assiette.
   ============================================================ */

@font-face {
  font-family: 'Prata';
  src: url('../fonts/prata-v22-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ivoire: #faf6f0;
  --ivoire-2: #f4ede3;
  --choco: #2c1f12;
  --choco-mi: rgba(44, 31, 18, .72);
  --brun: #76502c;
  --or: #a98a4f;
  --or-clair: #d9c489;
  --hair: rgba(118, 80, 44, .28);
  --hair-faint: rgba(118, 80, 44, .15);
  --serif: 'Prata', Georgia, serif;
  --sans: 'Outfit', 'Segoe UI', Arial, sans-serif;
  --gut: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivoire);
  color: var(--choco);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

::selection { background: var(--or); color: var(--ivoire); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Bascule de langue ---------- */
html:not([data-lang="en"]) .en { display: none; }
html[data-lang="en"] .fr { display: none; }

/* ---------- Le double filet — motif signature (écho des deux R) ---------- */
.filet {
  height: 7px;
  border-top: 1px solid var(--or);
  border-bottom: 1px solid var(--or);
  max-width: 320px;
  margin-inline: auto;
}
html.js .filet {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.22, .61, .36, 1) .35s;
}
html.js .filet.in, html.js.ready .hero .filet { transform: scaleX(1); }

/* ---------- Manchette ---------- */
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--hair-faint);
  background: var(--ivoire);
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--choco);
  text-decoration: none;
  letter-spacing: .02em;
}

.mast-nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.mast-nav a {
  color: var(--choco-mi);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .04em;
  position: relative;
  padding-block: 4px;
}
.mast-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  border-top: 1px solid var(--or);
  transition: right .3s cubic-bezier(.22, .61, .36, 1);
}
.mast-nav a:hover { color: var(--choco); }
.mast-nav a:hover::after { right: 0; }

.mast-right { display: flex; align-items: center; gap: 14px; }

.lang {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  background: none;
  border: 0;
  color: var(--choco);
  cursor: pointer;
  padding: 10px 6px;
  margin: -6px -2px;
  display: inline-flex;
  gap: 5px;
}
.lang .l-sep { color: var(--hair); }
.lang .l-fr, .lang .l-en { opacity: .4; transition: opacity .2s ease; }
html:not([data-lang="en"]) .lang .l-fr,
html[data-lang="en"] .lang .l-en {
  opacity: 1;
  color: var(--or);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Boutons WhatsApp ---------- */
.wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--choco);
  color: var(--ivoire);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 14px 24px;
  border-radius: 2px;
  transition: background-color .25s ease, transform .25s ease;
}
.wa:hover { background: var(--brun); }
.wa:active { transform: translateY(1px); }
.wa--sm { padding: 9px 16px; font-size: .875rem; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--or);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; border-top: 1px solid var(--or); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: .005em;
  max-width: 24ch;
  margin-bottom: 18px;
}

.lead { max-width: 56ch; color: var(--choco-mi); margin-bottom: clamp(28px, 5vh, 48px); }

/* ---------- Héros — manchette de palace ---------- */
.hero-head {
  text-align: center;
  padding-top: clamp(44px, 8vh, 96px);
  padding-bottom: clamp(36px, 6vh, 64px);
}

.kicker {
  font-size: .8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--or);
  margin-bottom: clamp(18px, 3vh, 30px);
}

.hero-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 7.6rem);
  line-height: 1;
  letter-spacing: .01em;
}

.hero-role {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--choco-mi);
  margin-top: 16px;
  margin-bottom: clamp(20px, 3.5vh, 32px);
}

.hero .lede {
  max-width: 46ch;
  margin: clamp(20px, 3.5vh, 32px) auto 0;
  font-size: 1.125rem;
  color: var(--choco-mi);
}

.hero-cta {
  margin-top: clamp(24px, 4vh, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-cta .note { font-size: .9rem; color: var(--choco-mi); letter-spacing: .02em; }

.hero-fig {
  overflow: clip;
  max-height: min(78vh, 720px);
}
.hero-fig img {
  width: 100%;
  object-fit: cover;
  /* légère marge de parallaxe */
  scale: 1.06;
  transform: translateY(var(--par, 0px));
  will-change: transform;
}

/* ---------- Sections ---------- */
.maison, .table, .glacier, .avis, .infos { padding-block: clamp(56px, 10vh, 110px); }
.maison { padding-bottom: clamp(40px, 7vh, 80px); }

.two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.fig img { border-radius: 2px; }
.fig figcaption, .card figcaption {
  font-size: .875rem;
  color: var(--choco-mi);
  padding-top: 10px;
  border-bottom: 1px solid var(--hair-faint);
  padding-bottom: 10px;
}

.maison p, .infos p { max-width: 54ch; }
.maison .wrap > div > p { margin-bottom: 14px; }

/* ---------- Citations — registre monographie ---------- */
.cit {
  margin-top: clamp(28px, 5vh, 44px);
  padding-left: 22px;
  border-left: 1px solid var(--or);
  max-width: 52ch;
}
.cit > p[lang="en"] {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.5;
  color: var(--choco);
}
.cit .gloss { font-size: .95rem; color: var(--choco-mi); margin-top: 10px; }
.cit cite {
  display: block;
  font-style: normal;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 12px;
}
.cit--marge { margin-inline: auto; text-align: left; }

/* ---------- Grilles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px) clamp(16px, 2.5vw, 28px);
}

.card { min-width: 0; }
.card > img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  aspect-ratio: 9 / 7;
  transition: filter .4s ease;
}
.card:hover > img { filter: brightness(1.04); }

.grid--glacier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--tall { grid-row: span 2; }
.card--tall > img { aspect-ratio: auto; height: calc(100% - 42px); }

/* ---------- La table sur fond légèrement chaud ---------- */
.table { background: var(--ivoire-2); }

/* ---------- Avis ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.quotes .cit { margin-top: 0; }
.avis-note {
  margin-top: clamp(28px, 5vh, 40px);
  font-size: .875rem;
  color: var(--choco-mi);
}

/* ---------- Infos ---------- */
.infos { background: var(--ivoire-2); }

.dl { margin-bottom: 28px; }
.dl dt {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--or);
  margin-top: 20px;
  margin-bottom: 4px;
}
.dl dd a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.dl dd a:hover { text-decoration-color: var(--or); }
.maplink { font-size: .9rem; }

.hrow {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 340px;
  padding-block: 6px;
  border-bottom: 1px solid var(--hair-faint);
}
.hrow b { font-weight: 500; }

/* ---------- Pied ---------- */
.foot {
  background: var(--brun);
  color: var(--ivoire);
  text-align: center;
  padding-block: clamp(44px, 7vh, 72px);
}
.filet--foot {
  border-color: var(--or-clair);
  opacity: .8;
  margin-bottom: clamp(28px, 4vh, 40px);
}
.foot-logo { width: 132px; height: auto; margin-inline: auto; }
.foot-role {
  font-size: .8125rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin: 8px 0 18px;
}
.foot p { font-size: .95rem; }
.foot a { color: inherit; text-decoration-color: rgba(250, 246, 240, .4); text-underline-offset: 3px; }
.foot-hours { margin-top: 6px; opacity: .8; }

/* ---------- Bouton flottant ---------- */
.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--choco);
  color: var(--ivoire);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(44, 31, 18, .25);
  transition: background-color .25s ease, opacity .25s ease;
}
.wa-float:hover { background: var(--brun); }

/* ---------- Révélations ---------- */
html.js .rise { opacity: 0; transform: translateY(14px); }
html.js.ready .rise {
  animation: rise .75s cubic-bezier(.22, .61, .36, 1) var(--d, 0s) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .grid .reveal { transition-delay: var(--gd, 0s); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rise, html.js.ready .rise,
  html.js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html.js .filet { transform: none; transition: none; }
  .hero-fig img { scale: 1; transform: none; will-change: auto; }
  .wa, .wa-float, .mast-nav a::after, .card > img { transition: none; }
}

/* ---------- Écrans étroits ---------- */
@media (max-width: 900px) {
  .mast-nav { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .grid, .grid--glacier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .card--tall > img { aspect-ratio: 9 / 7; height: auto; }
  .card--tall { grid-row: auto; }
}

@media (max-width: 430px) {
  .kicker { font-size: .72rem; letter-spacing: .15em; }
  .hero-role { letter-spacing: .2em; }
}

@media (max-width: 560px) {
  .grid, .grid--glacier { grid-template-columns: minmax(0, 1fr); }
  .hero-fig { max-height: 60vh; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .wa--sm span { display: none; }
  .wa--sm { padding: 9px 11px; }
  .wa--sm svg { width: 18px; height: 18px; }
}
