/* =========================================================
   HD Web Digital — en-tête, bloc contact et pied de page (refonte 2026)
   Rendus par les codes courts [hd_header], [hd_prefooter], [hd_footer]
   placés dans le Theme Builder Divi. Dépend des variables de hd-base.css.
   ========================================================= */

/* --- Neutraliser les marges Divi autour des zones du Theme Builder --- */
.et-l--header .et_pb_section.hd-tb-section,
.et-l--footer .et_pb_section.hd-tb-section { padding: 0 !important; background: transparent; }
.et-l--header .et_pb_row.hd-tb-row,
.et-l--footer .et_pb_row.hd-tb-row { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.et-l--header .hd-tb-row .et_pb_column,
.et-l--footer .hd-tb-row .et_pb_column { margin: 0 !important; }
.et-l--header .hd-tb-row .et_pb_module,
.et-l--footer .hd-tb-row .et_pb_module { margin-bottom: 0 !important; }

.hd-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.hd-header *, .hd-prefooter *, .hd-footer * { box-sizing: border-box; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.et-l--header { min-height: var(--hd-header-h, 72px); }
.hd-header {
  --hd-header-h: 72px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  font-family: var(--hd-font);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
body.admin-bar .hd-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hd-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .hd-header { top: 0; } }
.hd-header.is-hidden { transform: translateY(-110%); }

.hd-header__bar {
  display: flex; align-items: stretch; height: var(--hd-header-h);
  background: rgba(247, 248, 250, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hd-line);
}
.hd-header__logo { display: flex; align-items: center; padding: 0 28px; border-right: 1px solid var(--hd-line); flex-shrink: 0; }
.hd-header__logo img { display: block; height: 40px; width: auto; }

.hd-header__nav { display: flex; flex: 1; min-width: 0; }
.hd-header__nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.hd-header__nav li { display: flex; border-right: 1px solid var(--hd-line); padding: 0 !important; }
.hd-header__nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 22px;
  font-size: 14px; font-weight: 600; color: var(--hd-navy); text-decoration: none; white-space: nowrap;
  transition: color .25s ease, background-color .25s ease;
}
.hd-header__nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hd-orange); transform: scale(0); transition: transform .25s ease; }
.hd-header__nav a:hover { color: var(--hd-orange); background: #fff; }
.hd-header__nav .current-menu-item > a::before,
.hd-header__nav a:hover::before { transform: scale(1); }

/* écrans larges : logo à gauche, menu centré, actions à droite (comme Rozen) */
.hd-header__actions { display: flex; align-items: stretch; margin-left: auto; }
@media (min-width: 981px) {
  .hd-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hd-header__logo { justify-self: start; }
  .hd-header__nav { justify-content: center; }
  .hd-header__nav li:first-child { border-left: 1px solid var(--hd-line); }
  .hd-header__actions { justify-self: end; }
}

.hd-header__phone {
  display: flex; align-items: center; gap: 10px; padding: 0 24px; border-left: 1px solid var(--hd-line);
  font-size: 14px; font-weight: 700; color: var(--hd-navy); text-decoration: none; white-space: nowrap;
}
.hd-header__phone svg { width: 18px; height: 18px; color: var(--hd-orange); }
.hd-header__phone:hover { color: var(--hd-orange); }

.hd-header__cta {
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: var(--hd-orange); color: #fff !important; text-decoration: none;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s ease;
}
.hd-header__cta svg { width: 16px; height: 16px; transition: transform .35s ease; }
.hd-header__cta:hover { background: var(--hd-orange-dark); }
.hd-header__cta:hover svg { transform: rotate(45deg); }

.hd-header__burger {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  width: var(--hd-header-h); border: 0; border-left: 1px solid var(--hd-line); background: transparent; cursor: pointer; padding: 0;
}
.hd-header__burger span { display: block; width: 22px; height: 2px; background: var(--hd-navy); transition: transform .3s ease, opacity .3s ease; }
.hd-header.is-open .hd-header__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hd-header.is-open .hd-header__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Menu mobile */
.hd-header__mobile {
  position: fixed; left: 0; right: 0; top: var(--hd-header-h); bottom: 0;
  background: var(--hd-navy); color: #fff; padding: 28px 24px 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.hd-header__mobile[hidden] { display: none; }
body.admin-bar .hd-header__mobile { top: calc(var(--hd-header-h) + 46px); }
@media (max-width: 600px) { body.admin-bar .hd-header__mobile { top: var(--hd-header-h); } }
.hd-header__mobile ul { list-style: none; margin: 0; padding: 0; }
.hd-header__mobile li { border-bottom: 1px solid rgba(255,255,255,.12); padding: 0 !important; }
.hd-header__mobile li a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: #fff; text-decoration: none; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; }
.hd-header__mobile li a::after { content: "→"; color: var(--hd-orange); font-size: 20px; }
.hd-header__mobile-actions { display: grid; gap: 12px; margin-top: auto; }
.hd-header__mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 8px; font-weight: 800; font-size: 15px; text-decoration: none; }
.hd-header__mobile-call { background: var(--hd-orange); color: #fff !important; }
.hd-header__mobile-quote { border: 1px solid rgba(255,255,255,.3); color: #fff !important; }

@media (max-width: 1360px) { .hd-header__phone { display: none; } }
@media (max-width: 1240px) { .hd-header__nav a { padding: 0 16px; } }
@media (max-width: 980px) {
  .hd-header { --hd-header-h: 64px; }
  .hd-header__nav { display: none; }
  .hd-header__logo { border-right: 0; padding: 0 20px; flex: 1; }
  .hd-header__logo img { height: 34px; }
  .hd-header__cta { padding: 0 18px; font-size: 12px; }
  .hd-header__burger { display: flex; }
}
@media (max-width: 420px) { .hd-header__cta { padding: 0 14px; gap: 8px; font-size: 11px; letter-spacing: .02em; } .hd-header__logo { padding: 0 14px; } }
@media (max-width: 330px) { .hd-header__cta span { display: none; } }
.hd-header__mobile-actions svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =========================================================
   BLOC CONTACT AVANT LE PIED DE PAGE
   ========================================================= */
.hd-prefooter { background: var(--hd-bg); color: var(--hd-text); padding: 120px 0; font-family: var(--hd-font); border-top: 1px solid var(--hd-line); }
.hd-prefooter__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hd-prefooter__title { margin: 18px 0 24px; padding: 0; font-size: clamp(48px, 6.4vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 700; text-transform: uppercase; color: var(--hd-navy); }
.hd-prefooter__title span { color: var(--hd-orange); display: block; }
.hd-prefooter__lead { max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--hd-text-2); margin: 0 0 32px; padding: 0; }
.hd-prefooter__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hd-prefooter__contact li { padding: 0 !important; }
.hd-prefooter__contact a, .hd-prefooter__contact span { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--hd-navy); text-decoration: none; }
.hd-prefooter__contact a:hover { color: var(--hd-orange); }
.hd-prefooter__contact svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--hd-orange); }

.hd-prefooter__card {
  position: relative; padding: 44px 40px 40px; border-radius: 6px;
  background: linear-gradient(150deg, #F38457 0%, var(--hd-orange) 45%, var(--hd-orange-dark) 100%);
  color: #fff; box-shadow: 0 30px 60px -30px rgba(201, 85, 42, .55);
}
.hd-prefooter__card::before, .hd-prefooter__card::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: rgba(255,255,255,.75); border-style: solid; }
.hd-prefooter__card::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.hd-prefooter__card::after { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.hd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hd-form__field { display: grid; gap: 8px; }
.hd-form__field--full { grid-column: 1 / -1; }
.hd-form label { font-size: 13px; font-weight: 700; color: #fff; padding: 0; }
.hd-form input, .hd-form select, .hd-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff !important; font: 500 15px/1.4 var(--hd-font); outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.hd-form select option { color: var(--hd-text); }
.hd-form input::placeholder, .hd-form textarea::placeholder { color: rgba(255,255,255,.7); }
.hd-form input:focus, .hd-form select:focus, .hd-form textarea:focus { border-color: #fff; background: rgba(255,255,255,.22); }
.hd-form [aria-invalid="true"] { border-color: var(--hd-navy); box-shadow: 0 0 0 2px var(--hd-navy); }
.hd-form textarea { min-height: 96px; resize: vertical; }
.hd-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hd-form__submit {
  grid-column: 1 / -1; display: inline-flex; align-items: stretch; justify-self: start; padding: 0; border: 0; cursor: pointer;
  background: var(--hd-navy); color: #fff; border-radius: 6px; overflow: hidden;
  font: 800 13px/1 var(--hd-font); letter-spacing: .04em; text-transform: uppercase;
}
.hd-form__submit span { padding: 17px 22px; }
.hd-form__submit i { display: grid; place-items: center; width: 50px; background: var(--hd-navy-2); font-style: normal; transition: background-color .25s ease; }
.hd-form__submit:hover i { background: #fff; color: var(--hd-orange); }
.hd-form__submit[disabled] { opacity: .7; cursor: wait; }
.hd-form__note { grid-column: 1 / -1; margin: 0; padding: 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.85); }
.hd-form__note a { color: #fff; text-decoration: underline; }
.hd-form__error { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--hd-navy); color: #fff; font-size: 14px; }
.hd-form__success { text-align: left; }
.hd-form__success h3 { margin: 0 0 10px; padding: 0; font-size: 28px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: -.02em; }
.hd-form__success p { margin: 0; padding: 0; font-size: 16px; line-height: 1.6; color: #fff; }
.hd-form__success a { color: #fff; font-weight: 700; }

@media (max-width: 980px) {
  .hd-prefooter { padding: 80px 0; }
  .hd-prefooter__grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 600px) {
  .hd-wrap { padding: 0 20px; }
  .hd-prefooter__card { padding: 36px 22px 28px; }
  .hd-form { grid-template-columns: 1fr; }
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.hd-footer { background: var(--hd-navy); color: rgba(255,255,255,.78); font-family: var(--hd-font); overflow: hidden; }

.hd-band { position: relative; z-index: 1; padding: 16px 0; background: rgba(11,31,58,.045); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); font-family: var(--hd-font); }
.hd-band .hd-marquee__track { gap: 36px; padding-right: 36px; animation-duration: 40s; }
.hd-band span { display: inline-flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(11,31,58,.72); }
.hd-band span::after { content: "✦"; color: var(--hd-orange); font-size: 13px; }

.hd-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding: 80px 0 64px; }
.hd-footer__brand-name { margin: 0 0 16px; padding: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-transform: uppercase; }
.hd-footer__brand-name span { color: var(--hd-orange); }
.hd-footer__brand p { max-width: 420px; margin: 0 0 26px; padding: 0; font-size: 16px; line-height: 1.65; }
.hd-footer__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-footer__pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .25s ease, background-color .25s ease; }
.hd-footer__pill:hover { border-color: var(--hd-orange); background: rgba(237,108,61,.12); }
.hd-footer__pill svg { width: 15px; height: 15px; }
.hd-footer__pill--accent { background: var(--hd-orange); border-color: var(--hd-orange); }
.hd-footer__pill--accent:hover { background: var(--hd-orange-dark); border-color: var(--hd-orange-dark); }

.hd-footer__col h3 { position: relative; margin: 0 0 22px; padding: 0 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hd-footer__col h3::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 2px; background: var(--hd-orange); }
.hd-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hd-footer__col li { padding: 0 !important; }
.hd-footer__col a, .hd-footer__col li > span { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; transition: color .2s ease; }
.hd-footer__col a:hover { color: var(--hd-orange); }
.hd-footer__col small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; }

.hd-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.hd-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.hd-footer__legal li { padding: 0 !important; }
.hd-footer__legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.hd-footer__legal a:hover { color: #fff; }
.hd-footer__top { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #fff; font: 700 13px/1 var(--hd-font); cursor: pointer; }
.hd-footer__top i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); font-style: normal; transition: background-color .25s ease, border-color .25s ease; }
.hd-footer__top:hover i { background: var(--hd-orange); border-color: var(--hd-orange); }

.hd-footer__giant {
  display: block; margin: 0 0 -0.16em; padding: 0; text-align: center; white-space: nowrap;
  font-size: 11.2vw; line-height: .9; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--hd-orange) 20%, rgba(237,108,61,.25) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

@media (max-width: 980px) {
  .hd-footer__main { grid-template-columns: 1fr 1fr; gap: 44px; padding: 64px 0 48px; }
  .hd-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hd-footer__main { grid-template-columns: 1fr; }
  .hd-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Correctifs Divi --- */
/* Divi remet des puces sur les listes : on les retire dans nos blocs */
.hd-header ul, .hd-header li, .hd-prefooter ul, .hd-prefooter li, .hd-footer ul, .hd-footer li { list-style: none !important; }
.hd-header li::before, .hd-prefooter li::before, .hd-footer li::before { content: none !important; }
/* Notre pied de page a son propre bouton « haut de page » */
.et_pb_scroll_top { display: none !important; }
.hd-footer__top i svg, .hd-form__submit i svg { width: 16px; height: 16px; }
/* Barre d'administration WordPress (visible seulement connecté) : sur mobile elle fait 46 px */
@media (max-width: 600px) {
  body.admin-bar .hd-header { top: 46px; }
  body.admin-bar .hd-header__mobile { top: calc(var(--hd-header-h) + 46px); }
}
/* Laisse la place à la bulle de l'assistant (en bas à droite) */
@media (min-width: 601px) { .hd-footer__bottom { padding-right: 96px; } }
@media (min-width: 981px) { .hd-footer__main { grid-template-columns: 1.3fr .9fr 1.1fr 1.1fr; gap: 48px; } }

/* =========================================================
   « ESTIMER MON PROJET » : bouton d'en-tête, menu mobile, bloc contact et bandeau réutilisable
   ========================================================= */
.hd-header__estimate {
  display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid var(--hd-line);
  font-size: 14px; font-weight: 700; color: var(--hd-navy) !important; text-decoration: none; white-space: nowrap;
  transition: color .25s ease, background-color .25s ease;
}
.hd-header__estimate svg { width: 18px; height: 18px; color: var(--hd-orange); }
.hd-header__estimate:hover { color: var(--hd-orange) !important; background: #fff; }
@media (max-width: 1500px) { .hd-header__phone { display: none; } }
@media (max-width: 1280px) { .hd-header__estimate { padding: 0 18px; } .hd-header__estimate span { display: none; } }
@media (max-width: 980px) { .hd-header__estimate { display: none; } }
.hd-header__mobile-estimate { background: #fff; color: var(--hd-navy) !important; }
.hd-header__mobile-estimate svg { color: var(--hd-orange); }

.hd-estimate__btn {
  display: inline-flex; align-items: center; gap: 18px; padding: 6px 6px 6px 22px; border-radius: 8px; flex-shrink: 0;
  background: var(--hd-navy); color: #fff !important; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; transition: background-color .25s ease;
}
.hd-estimate__btn i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; background: var(--hd-orange); color: #fff; font-style: normal; }
.hd-estimate__btn i svg { width: 16px; height: 16px; transition: transform .35s ease; }
.hd-estimate__btn:hover { background: #142f55; }
.hd-estimate__btn:hover i svg { transform: rotate(45deg); }

.hd-prefooter__estimate { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; padding: 20px 22px; border-radius: 10px; background: #fff; border: 1px solid var(--hd-line); max-width: 560px; }
.hd-prefooter__estimate p { margin: 0; padding: 0; font-size: 16px; font-weight: 600; color: var(--hd-navy); flex: 1 1 200px; }

.hd-estimate {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  margin-top: 16px; padding: 32px 36px; border-radius: 10px; background: var(--hd-orange); color: var(--hd-navy); font-family: var(--hd-font);
}
.hd-estimate__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--hd-navy); color: #fff; }
.hd-estimate__icon svg { width: 30px; height: 30px; }
.hd-page .hd-estimate__kicker, .hd-estimate__kicker { margin: 0 0 6px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-navy); opacity: .75; }
.hd-page .hd-estimate__title, .hd-estimate__title { margin: 0 0 8px; padding: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--hd-navy); }
.hd-page .hd-estimate__lead, .hd-estimate__lead { margin: 0; padding: 0; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--hd-navy); }
.hd-sp-estimate { padding: 0 0 40px; }
.hd-sp-estimate .hd-estimate { margin-top: 0; }
@media (max-width: 980px) {
  .hd-estimate { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .hd-estimate__icon { width: 52px; height: 52px; }
  .hd-estimate__btn { justify-self: start; }
}

/* Accueil : second bouton du héros */
.hd-home-hero__bottom .hd-home-btn--accent { background: var(--hd-orange); border-color: var(--hd-orange); }
.hd-home-hero__bottom .hd-home-btn--accent i { color: var(--hd-orange); }
.hd-home-hero__bottom .hd-home-btn--accent:hover { background: var(--hd-navy); border-color: var(--hd-navy); }
.hd-home-hero__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hd-home-hero__bottom .hd-home-hero__statement { flex-basis: 100%; }

/* Menu principal en 15 px (27/10) */
.hd-header__nav a { font-size: 15px; }
