/* =================================================================
   HP-PAGES : styles partagés de la page d'accueil et des pages
   intérieures (body.hp-home, + .hp-page pour les pages intérieures).
   - Aucune règle ci-dessous ne cible les formulaires (formulaire Phenix
     de l'accueil, formulaires multi-étapes #regForm des autres pages) :
     ils gardent leurs styles d'origine (style.css / re-style.css).
   - Les classes sont préfixées « hp- » pour ne pas entrer en conflit
     avec style.css, qui contient des classes génériques.
   - style.css cible #section-1, #section-2 et #section-3 par leur id :
     les règles concernées sont donc écrites sous #contenu (balise main)
     ou sur l'id lui-même, ce qui évite tout !important.
   ================================================================= */

/* ---------- Variables ---------- */
:root {
  --hp-ink: #13263a;
  --hp-text: #475a6e;
  --hp-brand: #2FB7EF;
  --hp-brand-deep: #0277a3;
  --hp-accent: #FB9D2D;
  --hp-paper: #f2f7fa;
  --hp-line: #d8e3eb;
  --hp-max: 1200px;
  --hp-pad: max(1.25rem, calc((100% - var(--hp-max)) / 2));
  --hp-space: clamp(4rem, 8vw, 6.5rem);
  --hp-display: "Oswald", "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.hp-home {
  background: #fff;
  color: var(--hp-ink);
  overflow-x: hidden;
}

/* ---------- Éléments communs ---------- */
:where(#contenu) p {
  font-weight: 400;
  line-height: 1.75;
  color: var(--hp-text);
}

#contenu > section {
  padding: var(--hp-space) var(--hp-pad);
  text-align: left;
}

#contenu .hp-title {
  margin: 0 0 1.25rem;
  font-family: var(--hp-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-transform: none;
  text-align: left;
  color: var(--hp-ink);
}

.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-brand-deep);
}

.hp-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--hp-accent);
}

.hp-lead {
  max-width: 60ch;
  font-size: 1.075rem;
}

/* Boutons d'action */
.hp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-cta i {
  font-size: 1.1em;
  line-height: 1;
}

.hp-cta--accent {
  background: var(--hp-accent);
  color: var(--hp-ink);
}

.hp-cta--accent:hover {
  background: #ffb455;
}

.hp-cta--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hp-cta--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--hp-ink);
}

.hp-cta--ink {
  background: var(--hp-ink);
  color: #fff;
}

.hp-cta--ink:hover {
  background: #fff;
  color: var(--hp-ink);
}

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--hp-brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(2, 119, 163, 0.3);
  transition: text-decoration-color 0.2s ease;
}

.hp-link:hover {
  text-decoration-color: currentColor;
}

.hp-link i {
  font-size: 1rem;
}

:is(.hp-cta, .hp-link, .hp-nav__link, .hp-situation, .hp-trades__list a, .hp-faq summary):focus-visible {
  outline: 3px solid var(--hp-accent);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.navbar-1 {
  max-width: calc(var(--hp-max) + 2.5rem);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  gap: 2rem;
}

.logo img {
  display: block;
}

.Info-section {
  margin-left: auto;
  padding-right: 2rem;
  border-right: 1px solid var(--hp-line);
  text-align: right;
}

.Info-section p,
.Phone-section p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--hp-ink);
}

.hp-hours {
  display: block;
  font-size: 0.85rem;
  color: var(--hp-text);
}

.Phone-section .circle-icon {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 1.15rem;
}

.hp-phone {
  font-family: var(--hp-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--hp-ink);
}

.hp-phone:hover {
  color: var(--hp-brand-deep);
}

.navbar-2 {
  margin-top: 0;
  z-index: 10;
}

.navbar-2 ul {
  max-width: var(--hp-max);
  margin: 0 auto;
}

.navbar-2 ul li,
.navbar-2 ul li:hover {
  flex: 1;
  padding: 0;
  background: none;
  border-radius: 0;
}

.hp-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 100%;
  padding: 1rem 0.75rem;
  border-bottom: 3px solid transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 0.2s ease;
}

.hp-nav__link:hover {
  background: rgba(2, 80, 112, 0.22);
}

.hp-nav__link[aria-current="page"] {
  border-bottom-color: var(--hp-accent);
}

.hp-nav__link img {
  width: 22px;
  flex-shrink: 0;
}

/* Pictos blancs prévus pour la barre bleue : invisibles sur fond blanc */
.tablet-nav li img,
.mobile-nav-2 li img {
  display: none;
}

.tablet-nav li a {
  display: block;
  line-height: 1.35;
}

.tablet-nav li a[aria-current="page"] {
  color: var(--hp-brand-deep);
}

/* ---------- En-tête ---------- */
.top-header {
  margin-top: 0;
  padding: 0 var(--hp-pad);
  background: linear-gradient(rgba(10, 26, 41, 0.62), rgba(10, 26, 41, 0.62)), url(img/ihead.png) center / cover no-repeat;
}

.hp-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.hp-hero .hp-eyebrow {
  color: #fff;
}

.top-header .hp-hero__title {
  max-width: 17em;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  text-align: left;
  color: #fff;
}

.hp-hero__title span {
  display: block;
  font-family: inherit;
  color: var(--hp-brand);
}

.hp-hero__lead {
  max-width: 54ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hp-facts {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.hp-facts div + div {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hp-facts dt {
  font-family: var(--hp-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}

.hp-facts dd {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Devis (#section-1) ---------- */
#section-1 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "head form"
    "aside form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  scroll-margin-top: 70px;
}

.hp-quote__head {
  grid-area: head;
}

.hp-quote__aside {
  grid-area: aside;
  margin-top: 2.5rem;
}

#section-1 .card-1 {
  grid-area: form;
  display: block;
}

.hp-quote__subtitle {
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-ink);
}

.hp-journey {
  counter-reset: hp-step;
  list-style: none;
}

.hp-journey li {
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
  counter-increment: hp-step;
}

.hp-journey li::before {
  content: counter(hp-step, decimal-leading-zero);
  position: absolute;
  top: -0.1rem;
  left: 0;
  font-family: var(--hp-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--hp-brand-deep);
}

.hp-journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.3rem;
  bottom: 0.5rem;
  left: 0.75rem;
  width: 1px;
  background: var(--hp-line);
}

.hp-journey strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  color: var(--hp-ink);
}

.hp-journey li p {
  font-size: 0.97rem;
  line-height: 1.6;
}

.hp-quote__call {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hp-line);
}

.hp-quote__call a {
  font-family: var(--hp-display);
  font-size: 1.3rem;
  color: var(--hp-ink);
  white-space: nowrap;
}

.hp-quote__call a:hover {
  color: var(--hp-brand-deep);
}

/* ---------- Pourquoi Phenix ---------- */
#contenu .hp-why {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  background: var(--hp-paper);
}

.hp-why__head {
  align-self: start;
  position: sticky;
  top: 6rem;
}

.hp-why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem clamp(2rem, 4vw, 3.5rem);
}

.hp-why__item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--hp-ink);
}

.hp-why__item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--hp-ink);
}

/* ---------- Situations ---------- */
#contenu .hp-situations {
  background: var(--hp-ink);
}

.hp-situations__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.hp-situations .hp-eyebrow {
  color: var(--hp-brand);
}

#contenu .hp-situations .hp-title {
  margin: 0;
  color: #fff;
}

#contenu .hp-situations__head p {
  color: rgba(255, 255, 255, 0.72);
}

.hp-situations__list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hp-situation {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hp-situation__name {
  font-family: var(--hp-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.hp-situation__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.hp-situation i {
  font-size: 1.4rem;
  color: var(--hp-accent);
  transition: transform 0.2s ease;
}

.hp-situation:hover .hp-situation__name {
  color: var(--hp-brand);
}

.hp-situation:hover i {
  transform: translateX(4px);
}

/* ---------- Ce qu'il faut savoir (#section-2) ---------- */
#section-2 {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(2.5rem, 6vw, 6rem);
  background: #fff;
}

.hp-guide__head {
  grid-row: span 2;
}

.hp-guide .slideshow-container {
  position: relative;
  min-height: 100%;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 6rem;
  background: var(--hp-paper);
  border-top: 3px solid var(--hp-brand);
}

.hp-guide .mySlides {
  padding: 0;
  text-align: left;
}

.hp-guide .mySlides h3 {
  margin-bottom: 1.1rem;
  font-family: var(--hp-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--hp-ink);
}

.hp-guide .mySlides p + p {
  margin-top: 1rem;
}

.hp-guide .mySlides strong {
  color: var(--hp-ink);
}

.hp-guide .prev,
.hp-guide .next {
  display: flex;
  align-items: center;
  justify-content: center;
  top: auto;
  bottom: clamp(1.5rem, 3vw, 2rem);
  left: clamp(1.5rem, 4vw, 3rem);
  right: auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hp-line);
  border-radius: 0;
  background: #fff;
  color: var(--hp-ink);
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hp-guide .next {
  left: calc(clamp(1.5rem, 4vw, 3rem) + 52px);
}

.hp-guide .prev:hover,
.hp-guide .next:hover {
  background: var(--hp-ink);
  border-color: var(--hp-ink);
  color: #fff;
}

.hp-guide .dot-container {
  padding: 1rem 0 0;
  text-align: left;
}

.hp-guide .dot {
  display: inline-block;
  width: 36px;
  height: 20px;
  margin: 0 6px 0 0;
  padding: 8px 0;
  border-radius: 0;
  background-color: var(--hp-line);
  background-clip: content-box;
  text-align: left;
}

.hp-guide .dot.active,
.hp-guide .dot:hover {
  width: 36px;
  background-color: var(--hp-brand-deep);
}

/* ---------- Métiers ---------- */
#contenu .hp-trades {
  background: var(--hp-paper);
}

.hp-trades__head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hp-trades__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0;
  margin-bottom: 2.5rem;
}

.hp-trades__list li:not(:last-child)::after {
  content: "/";
  margin: 0 0.85rem;
  font-family: var(--hp-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--hp-brand);
}

.hp-trades__list a {
  font-family: var(--hp-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--hp-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hp-trades__list a:hover {
  color: var(--hp-brand-deep);
  text-decoration-color: var(--hp-accent);
}

/* ---------- FAQ ---------- */
#contenu .hp-faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hp-faq__help {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--hp-paper);
  border-left: 3px solid var(--hp-accent);
}

.hp-faq__help strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--hp-ink);
}

.hp-faq__list {
  border-top: 1px solid var(--hp-line);
}

.hp-faq details {
  border-bottom: 1px solid var(--hp-line);
}

.hp-faq summary {
  position: relative;
  padding: 1.4rem 3rem 1.4rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--hp-ink);
}

.hp-faq summary::-webkit-details-marker {
  display: none;
}

.hp-faq summary::after {
  content: "+";
  position: absolute;
  top: 1.15rem;
  right: 0.25rem;
  font-family: var(--hp-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--hp-brand-deep);
  transition: transform 0.2s ease;
}

.hp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.hp-faq summary:hover {
  color: var(--hp-brand-deep);
}

.hp-faq__answer {
  max-width: 62ch;
  padding-bottom: 1.5rem;
}

.hp-faq__answer a {
  font-weight: 700;
  color: var(--hp-brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact (#section-3) ---------- */
#section-3 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  background: var(--hp-brand);
}

#contenu #section-3 .hp-title {
  max-width: 14em;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

#section-3 p {
  margin: 0;
  font-size: 1.075rem;
  color: var(--hp-ink);
}

.hp-contact__panel {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 2px solid var(--hp-ink);
}

.hp-contact__phone {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: var(--hp-display);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 600;
  color: var(--hp-ink);
}

.hp-contact__phone:hover {
  color: #fff;
}

#section-3 .hp-contact__hours {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* =================================================================
   PAGES INTÉRIEURES
   ================================================================= */

/* ---------- En-tête de page ---------- */
.hp-hero--page {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.top-header .hp-hero--page .hp-hero__title {
  max-width: 20em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hp-crumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.hp-crumbs a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Bloc de texte éditorial ---------- */
#contenu .hp-prose {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}

#contenu .hp-paper {
  background: var(--hp-paper);
}

.hp-prose__body {
  max-width: 68ch;
}

.hp-prose__body p + p,
.hp-prose__body p + .hp-checklist,
.hp-prose__body .hp-checklist + p {
  margin-top: 1.1rem;
}

.hp-prose__body h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--hp-ink);
}

.hp-prose__body h3:first-child {
  margin-top: 0;
}

.hp-prose__body strong {
  color: var(--hp-ink);
}

.hp-checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-bottom: 1px solid var(--hp-line);
  line-height: 1.6;
  color: var(--hp-text);
}

.hp-checklist li::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--hp-accent);
}

/* ---------- Carte du formulaire multi-étapes ----------
   Seul le conteneur est habillé ; le contenu du formulaire n'est pas ciblé. */
.hp-page #section-1 .card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--hp-line);
  border-top: 3px solid var(--hp-brand);
  box-shadow: none;
}

.hp-page #section-1 .icons {
  background: transparent;
}

.hp-page #section-1 .hp-formcard__title {
  margin: 0 0 1.5rem;
  font-family: var(--hp-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  color: var(--hp-ink);
}

/* ---------- Sélecteur de métiers (Garantie par métier) ---------- */
#contenu .hp-metiers {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas:
    "head head"
    "tabs panel";
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
}

.hp-metiers__head {
  grid-area: head;
  max-width: 760px;
}

.hp-metiers__tabs {
  grid-area: tabs;
  align-self: start;
  border-top: 1px solid var(--hp-line);
}

.hp-metiers__tabs li {
  border-bottom: 1px solid var(--hp-line);
}

.hp-metiers__tabs .btn_jdida {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1rem 1.15rem 0;
  background: #fff;
  color: var(--hp-ink);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.hp-metiers__tabs .btn_jdida:hover {
  background: #fff;
  color: var(--hp-brand-deep);
}

.hp-metiers__tabs .btn_jdida i {
  font-size: 1.1rem;
  color: var(--hp-accent);
}

/* Onglet actif : déduit du panneau affiché par le script existant */
.hp-metiers:has(#dgo:not([style*="none"])) #func .btn_jdida,
.hp-metiers:has(#dso:not([style*="none"])) #func1 .btn_jdida,
.hp-metiers:has(#ad:not([style*="none"])) #func2 .btn_jdida {
  padding-left: 1rem;
  border-left: 3px solid var(--hp-brand-deep);
  color: var(--hp-brand-deep);
}

.hp-metiers__panel {
  grid-area: panel;
}

.hp-metiers__panel h3 {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-brand-deep);
}

.hp-metiers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  border-top: 1px solid var(--hp-line);
}

.hp-metiers__list li {
  border-bottom: 1px solid var(--hp-line);
}

.hp-metier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  background: none;
  color: var(--hp-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  transition: color 0.2s ease;
}

.hp-metier i {
  font-size: 1.1rem;
  color: var(--hp-brand-deep);
  transition: transform 0.2s ease;
}

.hp-metier:hover {
  color: var(--hp-brand-deep);
}

.hp-metier:hover i {
  transform: translateX(4px);
}

/* ---------- Fenêtres modales (Garantie par métier) ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 6vh 1.25rem;
  overflow: auto;
  background: rgba(19, 38, 58, 0.62);
}

.modal-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border-top: 3px solid var(--hp-brand);
}

.hp-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  line-height: 44px;
  text-align: center;
  color: var(--hp-text);
  cursor: pointer;
}

.hp-modal__close:hover {
  color: var(--hp-ink);
}

.hp-modal__body h2 {
  margin: 0 2.5rem 1rem 0;
  font-family: var(--hp-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--hp-ink);
}

.hp-modal__body p {
  font-weight: 400;
  line-height: 1.75;
  color: var(--hp-text);
}

.hp-modal__body p + p {
  margin-top: 1rem;
}

.hp-modal__body .hp-cta {
  margin-top: 1.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-why__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1014px) {
  .Info-section {
    display: none;
  }

  .hp-nav__link {
    font-size: 0.82rem;
  }

  .hp-hero,
  #section-1,
  #contenu .hp-why,
  #contenu .hp-prose,
  #section-2,
  #contenu .hp-faq,
  #section-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  #contenu .hp-metiers {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "tabs"
      "panel";
  }

  #section-1 {
    grid-template-areas:
      "head"
      "form"
      "aside";
    grid-template-rows: auto;
  }

  .hp-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .hp-facts div + div {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .hp-why__head {
    position: static;
  }

  .hp-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-guide__head {
    grid-row: auto;
    margin-bottom: 1rem;
  }
}

@media (max-width: 850px) {
  .tablet-nav {
    padding: 1rem 1.5rem;
    gap: 2rem;
  }

  .tablet-nav ul {
    align-items: center;
    gap: 1.25rem;
  }

  .hp-situations__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .hp-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .hp-facts div {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
  }

  .hp-facts dt {
    font-size: 1.6rem;
  }

  .hp-facts dd {
    margin: 0;
  }

  .hp-why__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hp-situation {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.35rem 0;
  }

  .hp-situation__desc {
    grid-row: 2;
    font-size: 0.95rem;
  }

  .hp-situation i {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .hp-trades__list li:not(:last-child)::after {
    margin: 0 0.6rem;
  }
}

@media (max-width: 560px) {
  .hp-hero__actions {
    flex-direction: column;
  }

  .hp-cta {
    width: 100%;
  }

  .hp-facts div {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .hp-faq summary {
    font-size: 1rem;
  }

  .hp-metiers__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-page #section-1 .card {
    padding: 1.25rem 0.75rem;
  }
}

/* Mouvements réduits : seuls les composants hp- sont concernés */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hp-cta,
  .hp-link,
  .hp-nav__link,
  .hp-situation__name,
  .hp-situation i,
  .hp-trades__list a,
  .hp-faq summary::after,
  .hp-guide .prev,
  .hp-guide .next,
  .hp-metiers__tabs .btn_jdida,
  .hp-metier,
  .hp-metier i {
    transition: none;
  }
}
