/* ==========================================================================
   REMIND — base.css
   Fondations PARTAGÉES entre toutes les sections :
   design tokens, polices, reset, conteneur, header, utilitaires, et le
   composant « téléphone WhatsApp » réutilisé dans plusieurs sections.
   ⚠️ Modifier ce fichier impacte TOUTES les sections (c'est voulu : ce sont
   les éléments communs). Le contenu propre à une section vit dans sectionN.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400;1,700&display=swap');

:root{
  --cream:      #F7EEE4;   /* fond */
  --cream-2:    #F1E6D8;   /* fond téléphone / nuances */
  --ink:        #181A14;   /* titres + corps */
  --ink-72:     rgba(24,26,20,.72);
  --ink-50:     rgba(24,26,20,.50);
  --terra:      #BC421C;   /* accent terracotta */
  --gold:       #B58A10;   /* couleur du logo (monogramme) */
  --green:      #0E5233;   /* marque / badges */
  --green-btn:  #0A4023;   /* bouton WhatsApp */
  --green-wa:   #1FA45B;   /* glyphe WhatsApp */
  --tg:         #2561AF;   /* bouton Telegram */
  --line:       rgba(24,26,20,.16);

  /* Lato partout (titres, corps, UI). */
  --serif: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(40px, 6.2vw, 128px);   /* marges externes de la page */
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html{
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;           /* filet anti-débordement horizontal (avec body) */
  scroll-behavior: smooth;      /* défilement doux vers les ancres de section */
  scroll-padding-top: 24px;     /* petite marge en haut à l'arrivée */
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  overflow-x: hidden;               /* filet anti-débordement horizontal */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; height: auto; }   /* images fluides (logo, bracelet…) */

.wrap{
  max-width: 1280px;          /* contenu plus resserré au centre (+ de blanc tournant) */
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Utilitaires de couleur (partagés) */
.is-ink{ color: var(--ink); }
.is-terra{ color: var(--terra); }
.is-green{ color: var(--ink); }   /* texte "vert" éditorial → noir (demande) */

/* Filet terracotta court (partagé) */
.rule{
  display: block;
  width: 54px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------- */
/* Header (partagé)                                                        */
/* ---------------------------------------------------------------------- */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 34px) 0 clamp(8px, 1vw, 14px);
}
.brand{ display: inline-flex; align-items: center; gap: 14px; }
.brand__mark{ width: 40px; height: 40px; display: block; object-fit: contain; }
.brand__word{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .18em;
  color: var(--ink);
}
.site-nav{
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.site-nav a{ opacity: .9; transition: opacity .25s ease; }
.site-nav a:hover{ opacity: 1; color: var(--terra); }

.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.6px solid var(--green);
  border-radius: 100px;
  background: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  white-space: nowrap;
  transition: background-color .25s ease, transform .25s ease;
}
.pill .ico{ width: 20px; height: 20px; color: var(--green-wa); }
.pill:hover{ background: #F1FBF4; transform: translateY(-1px); }

@media (max-width: 1080px){
  .site-nav{ display: none; }
  .pill{ font-size: 14px; padding: 10px 16px; }
}

/* ---------------------------------------------------------------------- */
/* Menu mobile (burger)                                                    */
/* ---------------------------------------------------------------------- */
.nav-toggle{
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  border: none; background: none; cursor: pointer; color: var(--ink);
}
.nav-toggle span{
  display: block; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px;
}

.mobile-menu{
  display: none;                 /* activé ≤1080px ; masqué en desktop */
  position: fixed; inset: 0; z-index: 100;
  background: rgba(247,238,228,.98);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  flex-direction: column;
  padding: clamp(18px, 5vw, 34px) var(--gutter);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.mobile-menu.is-open{ opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__bar{ display: flex; align-items: center; justify-content: space-between; }
.menu-close{
  width: 44px; height: 44px; padding: 0;
  border: none; background: none; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-close svg{ width: 26px; height: 26px; }
.mobile-menu__nav{
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(16px, 3.4vh, 30px);
}
.mobile-menu__nav a{
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(28px, 8vw, 44px); letter-spacing: -.01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.mobile-menu__nav a:hover{ color: var(--terra); }
.mobile-menu .pill{ display: inline-flex; align-self: flex-start; font-size: 15px; padding: 12px 22px; }

@media (max-width: 1080px){
  .nav-toggle{ display: inline-flex; }
  .site-header > .pill{ display: none; }   /* CTA déplacé dans le menu */
  .mobile-menu{ display: flex; }
}
body.menu-open{ overflow: hidden; }

/* ---------------------------------------------------------------------- */
/* Footer (partagé)                                                        */
/* ---------------------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 84px);
  padding: clamp(42px, 5vw, 72px) 0 clamp(28px, 3vw, 40px);
  font-family: var(--sans);
}
.site-footer__main{
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: clamp(32px, 5vw, 80px);
}
.site-footer__brand .brand{ margin-bottom: 16px; }
.site-footer__tag{
  margin: 0 0 22px; max-width: 34ch;
  font-size: 15px; line-height: 1.55; color: var(--ink-72);
}
.site-footer__cta{ display: flex; flex-wrap: wrap; gap: 10px; }
.footer-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.footer-pill svg{ width: 18px; height: 18px; }
.footer-pill:hover{ transform: translateY(-1px); }
.footer-pill--wa{ color: var(--green); border-color: rgba(14,82,51,.4); }
.footer-pill--wa svg{ color: var(--green-wa); }
.footer-pill--tg{ color: var(--tg); border-color: rgba(37,97,175,.4); }

.site-footer__cols{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.fcol h4{
  margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.fcol ul{ display: flex; flex-direction: column; gap: 11px; }
.fcol a{ font-size: 15px; color: var(--ink-72); transition: color .2s var(--ease); }
.fcol a:hover{ color: var(--terra); }

.site-footer__bar{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(20px, 2.5vw, 30px);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-50);
}
.site-footer__sign{ font-style: italic; color: var(--terra); }

@media (max-width: 760px){
  .site-footer__main{ grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px){
  .site-footer__cols{ grid-template-columns: 1fr 1fr; }
  .site-footer__bar{ flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px){
  .site-header{ flex-wrap: wrap; }
}

/* ====================================================================== */
/* Composant « téléphone WhatsApp » (PARTAGÉ entre sections)              */
/* Markup : .phone > .phone__screen > .statusbar / .chat-head / .chat /   */
/*          .composer. Variante écran éteint : .phone--off.               */
/* ====================================================================== */
.phone{
  position: relative;
  width: min(300px, 30vw);
  aspect-ratio: 300 / 620;
  background: #0E0E0E;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 2px 3px rgba(0,0,0,.6) inset,
    0 30px 60px -20px rgba(24,26,20,.35),
    0 8px 20px -10px rgba(24,26,20,.25);
}
.phone__island{
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.phone__screen{
  position: relative;
  height: 100%;
  background: var(--cream);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
}

.statusbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 4px;
  color: var(--ink);
}
.statusbar__time{ font-weight: 600; font-size: 14px; }
.statusbar__sys{ display: inline-flex; align-items: center; gap: 6px; }
.statusbar__sys svg{ height: 12px; width: auto; }

.chat-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(24,26,20,.08);
}
.chat-head__back{ width: 18px; height: 18px; color: var(--ink-72); flex: none; }
.chat-head__avatar{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex: none;
}
.chat-head__avatar img{ width: 30px; height: 30px; object-fit: contain; }
.chat-head__id{ display: flex; flex-direction: column; }
.chat-head__name{
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.chat-head__verified{ width: 15px; height: 15px; color: var(--green-wa); }
.chat-head__status{ font-size: 12px; color: var(--ink-50); }
.chat-head__menu{ margin-left: auto; width: 18px; height: 18px; color: var(--ink-72); flex: none; }

.chat{
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg{ max-width: 82%; padding: 9px 12px; border-radius: 14px; position: relative; }
.msg p{ margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink); }
.msg__meta{
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 3px; float: right; clear: both;
  font-size: 11px; color: var(--ink-50);
}
.msg__meta svg{ width: 15px; height: 10px; color: #3FA9DF; }
.msg--out{
  align-self: flex-end;
  background: #DDEBD0;
  border-bottom-right-radius: 4px;
}
.msg--in{
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 1px rgba(24,26,20,.06);
}
.msg--emoji{
  background: transparent;
  box-shadow: none;
  padding: 0 4px;
  font-size: 30px;
  line-height: 1;
}

/* Bulle « pièce jointe » (document envoyé par l'utilisateur) */
.msg__file{ display: flex; align-items: center; gap: 10px; }
.msg__file-ico{ width: 26px; height: 26px; color: var(--ink-72); flex: none; }
.msg__file-meta{ display: flex; flex-direction: column; min-width: 0; }
.msg__file-name{
  font-size: 13px; font-weight: 600; color: var(--ink);
  max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg__file-sub{ font-size: 11px; color: var(--ink-50); }

/* Bulle « photo » (image envoyée par l'utilisateur) */
.msg--photo{ padding: 5px; }
.msg__photo{
  display: block;
  width: 200px; max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: #E8EEF0;
}
.msg__photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.msg--photo .msg__meta{ margin: 4px 6px 0 0; }

/* Entrée animée des bulles (statiques comme dynamiques) */
@keyframes bubbleIn{
  from{ opacity: 0; transform: translateY(9px) scale(.98); }
  to{   opacity: 1; transform: none; }
}
.msg{ animation: bubbleIn .34s var(--ease) both; }

/* Indicateur « en train d'écrire… » */
.typing{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 1px rgba(24,26,20,.06);
  animation: bubbleIn .34s var(--ease) both;
}
.typing span{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-50);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2){ animation-delay: .18s; }
.typing span:nth-child(3){ animation-delay: .36s; }
@keyframes typingDot{
  0%, 60%, 100%{ opacity: .3; transform: translateY(0); }
  30%{ opacity: 1; transform: translateY(-3px); }
}

/* Fondu de sortie entre deux conversations */
.chat.is-clearing{ opacity: 0; transition: opacity .35s var(--ease); }

.composer{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 16px;
}
.composer__plus{ font-size: 22px; color: var(--ink-72); line-height: 1; }
.composer__field{
  flex: 1;
  height: 34px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 1px 1px rgba(24,26,20,.06);
}
.composer__ico{ width: 22px; height: 22px; color: var(--ink-72); flex: none; }

/* Variante « téléphone éteint » (utilisée en Section 2) */
.phone--off .phone__screen{
  background: #0C0D0B;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Ajustements responsive globaux                                          */
/* ---------------------------------------------------------------------- */
/* Quand les mises en page passent en colonne, le téléphone ne doit plus
   rétrécir avec la largeur (sinon il devient minuscule) : on l'agrandit. */
@media (max-width: 1080px){
  .phone{ width: min(300px, 74vw); }
}
/* Sur mobile, on réduit les marges latérales pour gagner de la place. */
@media (max-width: 560px){
  :root{ --gutter: 20px; }
}

/* ---------------------------------------------------------------------- */
/* Accessibilité : coupe les animations si l'utilisateur les refuse.       */
/* Le contenu reste toujours visible (jamais piégé à opacity:0).           */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

