/* RAMAYCHA — site public. Les styles de la maquette sont repris en ligne dans les vues ;
   ce fichier ajoute états, interactions et version mobile (maquette « 04 · Accueil mobile »). */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FAF7F8; font-family: Montserrat, system-ui, sans-serif; color: #0E0E10; }
.site { font-family: Montserrat, system-ui, sans-serif; color: #0E0E10; background: #FAF7F8; width: 100%; overflow-x: clip; }
a { color: #B0145C; }
a:hover { color: #8A0F48; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #F0509A; outline-offset: 3px; }
section[id], #devis { scroll-margin-top: 20px; }

/* Boutons : retours au survol */
.btn-magenta { transition: background .2s, transform .2s; }
.btn-magenta:hover { background: #B0145C !important; color: #FFFFFF !important; }
.btn-ghost { transition: background .2s, border-color .2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #FFFFFF !important; color: #FFFFFF !important; }
.nav-links a:not(.btn-magenta):not([aria-current]):hover { color: #F0509A !important; }
.card-hover { transition: transform .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(14,14,16,0.10); }

/* Pastilles de filtre / profils (style de la maquette) */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid #DCD3D8; background: #FFFFFF; color: #0E0E10; font: 600 14px Montserrat, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: border-color .2s; }
.pill:hover { border-color: #0E0E10; color: #0E0E10; }
.pill.is-on, .pill.is-on:hover { border-color: #0E0E10; background: #0E0E10; color: #FFFFFF; }

/* Formulaire de devis */
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.fgroup > label { font-size: 14px; font-weight: 600; }
.field { min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid #DCD3D8; background: #FAF7F8; font: 15px Montserrat, sans-serif; color: #0E0E10; width: 100%; }
.field:focus { outline: none; border: 2px solid #D81B72; background: #FFFFFF; padding-left: 15px; }
textarea.field:focus { padding: 13px 15px; }
.field[aria-invalid="true"] { border-color: #A3123F; }
.field-error { font-size: 13px; font-weight: 600; color: #A3123F; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #DCD3D8; background: #FFFFFF; color: #0E0E10; font: 600 14px Montserrat, sans-serif; cursor: pointer; transition: all .15s; }
.chip input:checked + span { border-color: #D81B72; background: #D81B72; color: #FFFFFF; }
.chip input:focus-visible + span { outline: 2px solid #F0509A; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.prose h2 { margin: 36px 0 10px; font-size: 22px; color: #0E0E10; }

/* Éléments propres à une taille d'écran */
.m-only, .m-only-flex, .services-list, .m-cta, .m-bar, .nav-toggle { display: none !important; }

/* ---------- Tablette / petit ordinateur ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: flex !important; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }
  .nav-links { display: none !important; }
  .nav-links.is-open { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px !important; width: 100%; padding: 12px; border-radius: 18px; background: #18181C; font-size: 16px !important; }
  .nav-links.is-open > a, .nav-links.is-open > span { padding: 12px 14px; }
  .nav-links.is-open > a.btn-magenta, .nav-links.is-open > a[aria-current="page"][href$="contact"] { justify-content: center; margin-top: 6px; }
  .hero-visual { height: 560px !important; }
  .hero-card { left: 0 !important; }
}

/* ---------- Mobile (maquette 390 px) ---------- */
@media (max-width: 760px) {
  .d-only, .d-only-flex, .services-grid, .wa-float { display: none !important; }
  .m-only { display: inline !important; }
  .m-only-flex { display: flex !important; }
  .services-list { display: flex !important; }
  .m-cta { display: flex !important; }
  .m-bar { display: flex !important; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; padding: 8px; border-radius: 22px; background: #0E0E10; gap: 8px; box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
  .m-bar a { flex: 1; min-height: 48px; border-radius: 16px; color: #FFFFFF; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; gap: 2px; }
  .m-bar a.m-bar-wa { flex: 1.4; flex-direction: row; gap: 8px; background: #D81B72; font-size: 13px; font-weight: 700; }
  body { padding-bottom: 84px; }

  .main-nav { padding: 18px 20px !important; }
  .brand > span { font-size: 20px !important; }
  .brand > svg { width: 116px; height: 8px; }
  .sec { padding-left: 20px !important; padding-right: 20px !important; }

  .hero { padding: 20px 20px 0 !important; gap: 28px !important; }
  .hero-text { gap: 18px !important; }
  .hero-title { font-size: 44px !important; }
  .hero-lead { font-size: 15.5px !important; }
  .hero-ctas a { width: 100%; justify-content: center; font-weight: 700 !important; }
  .hero-visual { height: 380px !important; }
  .hero-r { width: 300px !important; height: 375px !important; top: 0 !important; }
  .hero-portrait { width: 230px !important; height: 350px !important; margin-top: 30px !important; border-radius: 120px 120px 0 0 !important; box-shadow: none !important; }

  #services { padding-top: 48px !important; padding-bottom: 20px !important; gap: 16px !important; }
  #services .services-list { margin-top: 6px !important; }
  .kicker { font-size: 12px !important; }
  .h2 { font-size: 30px !important; line-height: 1.1 !important; }
  #pour-qui > .sec { padding-top: 32px !important; padding-bottom: 32px !important; gap: 16px !important; }
  .aud-tabs { gap: 8px !important; }
  .aud-tabs .pill { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .aud-tabs .pill svg { display: none; }
  .aud-intro, .aud-body { padding: 24px !important; }
  .aud-intro h3 { font-size: 22px !important; }
  .works-dark .sec { padding-top: 40px !important; padding-bottom: 40px !important; gap: 20px !important; }
  .home-works { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 150px !important; gap: 10px !important; }
  .home-works figure { grid-row: auto !important; border-radius: 16px !important; }
  .home-works figure:nth-child(3) { grid-column: span 2; }
  .home-works figcaption { display: none; }
  #apropos { padding-top: 56px !important; padding-bottom: 56px !important; gap: 36px !important; }
  .about-photo { height: 400px !important; }
  .cta-sec { display: none !important; }

  .page-head { padding: 24px 20px 56px !important; }
  .contact-head { padding-bottom: 130px !important; }
  .contact-card { padding: 24px !important; border-radius: 22px !important; }
  .case-text { padding: 32px 24px !important; }
  .footer-full > div { padding: 48px 20px 28px !important; }
}
