/* PackMyHome — feuille de style custom (Bootstrap 5.3 en dessous) */
:root {
  --pmh-yellow: #FFC53D;
  --pmh-yellow-dark: #E8A800;
  --pmh-orange: #F26B1D;
  --pmh-orange-dark: #C9520C;
  --pmh-orange-btn: #D9520F;
  --pmh-orange-btn-dark: #9A3708;
  --pmh-teal: #0FA3B1;
  --pmh-teal-deep: #096A73;
  --pmh-teal-light: #E3F5F7;
  --pmh-navy: #1E2A3B;
  --pmh-kraft: #C48A4E;
  --pmh-kraft-dark: #9A6534;
  --pmh-ink: #22303F;
  --pmh-muted: #5B6675;

  --bs-body-font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--pmh-ink);
  --bs-body-font-size: 1.05rem;
  --bs-link-color: var(--pmh-teal-deep);
  --bs-link-color-rgb: 9, 106, 115;
  --bs-link-hover-color: #0B4F56;
  --bs-link-hover-color-rgb: 11, 79, 86;
  --bs-primary: var(--pmh-orange);
  --bs-primary-rgb: 242, 107, 29;
  --bs-border-radius: .6rem;
}

html { scroll-behavior: smooth; }
body { background: #fff; overflow-x: hidden; }

h1, h2, h3, h4, .navbar-brand, .step-num, .rule-num, .bigarg-num {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--pmh-navy);
}
h1 { font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lead { font-size: 1.2rem; }
.text-muted { color: var(--pmh-muted) !important; }

/* Notes manuscrites (idée reprise de la maquette : petites annotations à la main) */
.hand { font-family: "Caveat", "Segoe Script", cursive; font-weight: 700; font-size: 1.55rem; color: var(--pmh-orange-dark); line-height: 1.1; display: inline-block; margin-bottom: .4rem; transform: rotate(-1.5deg); }
.hand-sticker { position: absolute; background: #FFF3CF; border: 2px solid var(--pmh-yellow); color: var(--pmh-navy); font-family: "Caveat", cursive; font-weight: 700; font-size: 1.45rem; line-height: 1.1; padding: .35rem .9rem; border-radius: .6rem; transform: rotate(4deg); box-shadow: 0 3px 0 var(--pmh-yellow-dark); white-space: nowrap; }

/* Boutons */
.btn { font-weight: 800; border-radius: 999px; padding: .75rem 1.5rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-primary {
  --bs-btn-bg: var(--pmh-orange-btn); --bs-btn-border-color: var(--pmh-orange-btn);
  --bs-btn-hover-bg: #B8430A; --bs-btn-hover-border-color: #B8430A;
  --bs-btn-active-bg: #B8430A; --bs-btn-active-border-color: #B8430A;
  box-shadow: 0 4px 0 var(--pmh-orange-btn-dark);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pmh-orange-btn-dark); }
.btn-yellow {
  --bs-btn-bg: var(--pmh-yellow); --bs-btn-border-color: var(--pmh-yellow); --bs-btn-color: var(--pmh-navy);
  --bs-btn-hover-bg: #FFD466; --bs-btn-hover-border-color: #FFD466; --bs-btn-hover-color: var(--pmh-navy);
  --bs-btn-active-bg: var(--pmh-yellow-dark); --bs-btn-active-border-color: var(--pmh-yellow-dark);
  box-shadow: 0 4px 0 var(--pmh-yellow-dark);
}
.btn-outline-navy {
  --bs-btn-color: var(--pmh-navy); --bs-btn-border-color: var(--pmh-navy);
  --bs-btn-hover-bg: var(--pmh-navy); --bs-btn-hover-border-color: var(--pmh-navy); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--pmh-navy); --bs-btn-active-border-color: var(--pmh-navy);
  border-width: 2px;
}

/* Navbar */
.navbar { background: #fff; transition: box-shadow .2s; }
.navbar.is-stuck { box-shadow: 0 2px 14px rgba(30,42,59,.08); }
.navbar-brand { font-size: 1.45rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.navbar-brand .brand-box { width: 36px; height: 36px; flex: 0 0 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text em { font-style: normal; color: var(--pmh-orange); }
.brand-text small { font-family: "Nunito", sans-serif; font-weight: 700; font-size: .68rem; color: var(--pmh-muted); letter-spacing: 0; margin-top: .2rem; }
.navbar .nav-link { font-weight: 700; color: var(--pmh-navy); }
.navbar .nav-link:hover { color: var(--pmh-orange-dark); }

/* Surlignage "adhésif" */
.tape {
  display: inline; padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(104deg, transparent 0%, transparent 3%, var(--pmh-yellow) 3%, var(--pmh-yellow) 97%, transparent 97%);
  background-size: 100% 62%; background-repeat: no-repeat; background-position: 0 78%;
}

/* Étiquette de section (remplace les capitales orange espacées) */
.eyebrow { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .95rem; color: var(--pmh-navy); background: var(--pmh-yellow); padding: .2rem .75rem; border-radius: .25rem; transform: rotate(-1.5deg); margin-bottom: .9rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 3rem; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -35% -10%; height: 70%;
  background: var(--pmh-teal-light); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: -1;
}
@media (min-width: 992px) { .hero::before { left: 45%; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero .trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 700; color: var(--pmh-navy); }
.hero .trust i { color: var(--pmh-teal-deep); margin-right: .35rem; }
.hero-art-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-art-wrap .hand-sticker { right: -4px; top: 6px; }
@media (min-width: 992px) { .hero { padding: 4.5rem 0 4rem; } }

/* Illustration cartons (SVG inline du hero) */
.box-face { fill: var(--pmh-kraft); }
.box-side { fill: var(--pmh-kraft-dark); }
.box-tape { fill: var(--pmh-yellow); }
.box-label { fill: #fff; }
.box-stroke { stroke: #6B4423; stroke-width: 3; stroke-linejoin: round; }

/* Ruban d'adhésif animé */
.ribbon-wrap { overflow: hidden; padding: 1rem 0 1.4rem; }
.ribbon { background: var(--pmh-yellow); color: var(--pmh-navy); overflow: hidden; transform: rotate(-1.2deg); width: 104%; margin-left: -2%; padding: .55rem 0; border-top: 3px dashed rgba(30,42,59,.25); border-bottom: 3px dashed rgba(30,42,59,.25); }
.ribbon-track { display: flex; width: max-content; gap: 2.5rem; animation: ribbon 32s linear infinite; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.ribbon-track span::after { content: "✦"; margin-left: 2.5rem; color: var(--pmh-orange); }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* Sections */
.section { padding: 4rem 0; }
.section-teal { background: var(--pmh-teal-light); }
.section-kraft { background: #FFF6DA; }
.section-title { margin-bottom: .6rem; }
.section-sub { color: var(--pmh-muted); max-width: 640px; margin: 0 auto 2.5rem; }
.lead-block p { font-size: 1.12rem; }

/* Offres (cartes) */
.pack { position: relative; border: 2px solid #E6EAF0; border-radius: 1.1rem; background: #fff; height: 100%; display: flex; flex-direction: column; overflow: visible; }
.pack-head { padding: 1.6rem 1.6rem 1.1rem; border-bottom: 2px dashed #E6EAF0; }
.pack-body { padding: 1.25rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.pack-level { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .08em; color: var(--pmh-navy); background: #fff; display: inline-block; padding: .1rem .55rem; border-radius: .3rem; border: 2px solid var(--pmh-navy); }
.pack h3 { font-size: 1.55rem; margin: .7rem 0 .35rem; }
.pack-tag { color: var(--pmh-muted); margin: 0; }
.pack ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.pack li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.pack li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .4rem; color: var(--pmh-teal-deep); font-size: 1rem; }
.pack-peri { font-size: .95rem; font-weight: 700; color: var(--pmh-navy); background: var(--pmh-teal-light); border-radius: .6rem; padding: .55rem .8rem; margin: 0 0 1.1rem; }
.pack-peri i { color: var(--pmh-teal-deep); margin-right: .25rem; }
.pack .btn { margin-top: auto; }
.pack-1 { border-color: #D8E9EC; }
.pack-2 { border-color: var(--pmh-yellow); box-shadow: 0 12px 30px rgba(255,197,61,.28); }
.pack-3 { border-color: var(--pmh-orange); }
.pack-1 .pack-head { background: var(--pmh-teal-light); border-radius: 1rem 1rem 0 0; }
.pack-2 .pack-head { background: #FFF3CF; border-radius: 1rem 1rem 0 0; }
.pack-3 .pack-head { background: #FDE5D6; border-radius: 1rem 1rem 0 0; }
.pack .sticker { position: absolute; top: -16px; right: 18px; background: var(--pmh-navy); color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600; padding: .35rem .9rem; border-radius: 999px; transform: rotate(3deg); box-shadow: 0 3px 0 #0f1622; font-size: .95rem; }

/* Étapes */
.step { text-align: center; padding: 0 .5rem; }
.step-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.35rem; color: var(--pmh-navy); background: var(--pmh-yellow); box-shadow: 0 4px 0 var(--pmh-yellow-dark); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--pmh-muted); }
.steps-line { position: relative; }
@media (min-width: 992px) {
  .steps-line::before { content: ""; position: absolute; left: 12%; right: 12%; top: 32px; border-top: 3px dashed #D9C48A; z-index: 0; }
  .step { position: relative; z-index: 1; }
}

/* Méthode : 1 sur le carton, 1 sur la porte */
.methode-ill { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2.5rem 1rem 1rem; }
.ill { text-align: center; flex: 0 1 220px; }
.ill-svg { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto .6rem; }
.ill-label { background: #fff; border: 2px solid #E6EAF0; border-radius: .6rem; padding: .45rem .8rem; font-weight: 800; color: var(--pmh-navy); }
.ill-arrow { font-size: 2rem; color: var(--pmh-navy); }
.hand-sticker-ill { top: 0; right: 0; }
@media (max-width: 575.98px) { .ill-arrow { font-size: 1.4rem; } .methode-ill { gap: .5rem; } }

/* 10 règles */
.rule { background: #fff; border: 2px solid #F5DE9A; border-radius: 1rem; padding: 1.1rem 1rem; height: 100%; }
.rule-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; color: var(--pmh-navy); background: var(--pmh-yellow); margin-bottom: .6rem; }
.rule h3 { font-size: 1.02rem; margin-bottom: .35rem; line-height: 1.25; }
.rule p { margin: 0; color: var(--pmh-muted); font-size: .92rem; }

/* Arguments chiffrés */
.bigarg { background: var(--pmh-teal-light); border-radius: 1.2rem; padding: 2rem; height: 100%; }
.bigarg-alt { background: #FFF3CF; }
.bigarg-num { font-size: 3.4rem; font-weight: 700; color: var(--pmh-orange-dark); line-height: 1; }
.bigarg-num small { font-size: 1.3rem; color: var(--pmh-navy); font-family: "Nunito", sans-serif; font-weight: 800; }
.bigarg h3 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.bigarg p { margin: 0 0 .5rem; }
.src { font-size: .82rem; color: var(--pmh-muted); }
.arg { display: flex; gap: 1rem; align-items: flex-start; }
.arg .icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: #fff; color: var(--pmh-orange-dark); border: 2px solid #F4D9C8; }
.arg h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.arg p { margin: 0 0 .25rem; color: var(--pmh-muted); }

/* Partenaires */
.partner { background: #fff; border: 2px solid #D8E9EC; border-radius: 1rem; padding: 1.4rem; height: 100%; display: flex; flex-direction: column; }
.partner .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--pmh-yellow); color: var(--pmh-navy); margin-bottom: .8rem; }
.partner h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.partner p { color: var(--pmh-muted); font-size: .96rem; margin-bottom: 1rem; }
.partner .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.accordion-button { font-weight: 800; color: var(--pmh-navy); font-family: "Nunito", sans-serif; }
.accordion-button:not(.collapsed) { background: #FFF3CF; color: var(--pmh-navy); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(255,197,61,.45); }
.accordion-item { border-color: #E6EAF0; }

/* Formulaire */
.devis-card { background: #fff; border-radius: 1.2rem; padding: 2rem; box-shadow: 0 20px 50px rgba(30,42,59,.12); border: 2px solid #F5DE9A; }
.form-label { font-weight: 800; color: var(--pmh-navy); }
.form-control, .form-select { border: 2px solid #DDE3EA; padding: .7rem .9rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--pmh-teal); box-shadow: 0 0 0 .2rem rgba(15,163,177,.2); }
fieldset { min-width: 0; } legend.form-label { font-size: inherit; float: none; width: auto; margin-bottom: .5rem; }
.pack-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 992px) { .pack-choice { grid-template-columns: repeat(4, 1fr); } }
.pack-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pack-choice label { display: block; text-align: center; border: 2px solid #DDE3EA; border-radius: .8rem; padding: .7rem .4rem; font-weight: 800; cursor: pointer; color: var(--pmh-navy); font-size: .95rem; transition: all .12s; height: 100%; }
.pack-choice label small { display: block; font-weight: 600; color: var(--pmh-muted); font-size: .78rem; }
.pack-choice input:checked + label { border-color: var(--pmh-orange); background: #FDE5D6; }
.pack-choice input:focus-visible + label { box-shadow: 0 0 0 .2rem rgba(242,107,29,.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--pmh-muted); }
.alert-pmh { background: #E3F5F7; border: 2px solid var(--pmh-teal); color: var(--pmh-navy); border-radius: 1rem; font-weight: 700; }

/* Pied de page */
footer { background: #131C29; color: #A9B4C2; padding: 2.5rem 0; font-size: .95rem; }
footer a { color: #DCE4EE; }
footer .brand { color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.3rem; }
.foot-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; font-weight: 700; color: #fff; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-trust i { color: var(--pmh-yellow); margin-right: .4rem; }

/* Mentions légales */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--pmh-ink); }

/* Durées par logement (sous les offres) */
.duree { background: var(--pmh-teal-light); border-radius: 1.2rem; padding: 1.6rem 1.6rem 1.2rem; }
.duree h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.duree .table { --bs-table-bg: transparent; }
.duree th, .duree td { padding: .55rem .75rem; }
.duree thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pmh-muted); font-weight: 800; border-bottom: 2px dashed #B9DEE3; }
.duree tbody th { font-weight: 800; color: var(--pmh-navy); }
.duree tbody tr + tr { border-top: 1px solid #C9E6EA; }

/* Comparatif vous / nous */
.compare { background: #fff; border: 2px solid #F5DE9A; border-radius: 1.2rem; padding: 1.6rem; }
.compare h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.compare .table { --bs-table-bg: transparent; --bs-table-border-color: #EEE3C4; }
.compare thead th { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--pmh-navy); border-bottom: 2px solid #EEE3C4; }
.compare thead th:nth-child(3) { color: var(--pmh-teal-deep); }
.compare tbody th { font-weight: 800; color: var(--pmh-navy); white-space: nowrap; }
.compare td.no { color: var(--pmh-muted); }
.compare td.no i { color: #B85C38; margin-right: .3rem; }
.compare td.yes { font-weight: 700; color: var(--pmh-navy); background: #F2FAFB; }
.compare td.yes i { color: var(--pmh-teal-deep); margin-right: .3rem; }
.compare-src { margin: -1.6rem auto 2rem; max-width: 640px; }

/* Qui vient chez vous */
.proof { background: #fff; border: 2px solid #D8E9EC; border-radius: 1rem; padding: 1.4rem; height: 100%; }
.proof .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--pmh-navy); color: var(--pmh-yellow); margin-bottom: .8rem; }
.proof h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.proof p { margin: 0; color: var(--pmh-muted); font-size: .97rem; }

/* Ce qui se passe ensuite (au-dessus du formulaire) */
.next-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.2rem; }
.next-steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; font-weight: 800; color: var(--pmh-navy); }
.next-steps li { display: flex; align-items: center; gap: .5rem; }
.next-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pmh-yellow); font-family: "Fredoka", sans-serif; font-size: .95rem; flex: 0 0 28px; }
.next-steps .chips { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; font-weight: 700; color: var(--pmh-navy); }
.next-steps .chips i { color: var(--pmh-teal-deep); margin-right: .3rem; }

/* Barre d'appel fixe sur mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 2px solid var(--pmh-yellow); box-shadow: 0 -6px 20px rgba(30,42,59,.12); transition: transform .2s; }
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (max-width: 991.98px) { body { padding-bottom: 4.6rem; } }
