/* Paul Informatique — V4 : header à deux niveaux, navigation, pages de prestations.
   Bleu Paul = #40c4f0 (couleur du logo). Les styles V3 de /assistance/ restent dans paul-assistance.css. */

/* ---------- Header ---------- */
.header-area-3.pi-header, .header-area-3.pi-header.header__sticky { display: block; height: auto !important; padding: 0; }
.pi-top { display: flex; align-items: center; justify-content: space-between; gap: 21px; min-height: 80px; }
.pi-logo { display: inline-flex; align-items: center; padding: 6px 0; border-radius: 6px; }
.pi-logo img { display: block; width: auto; height: 50px; }
.pi-logo:focus-visible { outline: 2px solid #40c4f0; outline-offset: 4px; }
.pi-actions { display: none; align-items: center; gap: 13px; }
.pi-burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.pi-burger:focus-visible { outline: 2px solid #40c4f0; outline-offset: 2px; }
.pi-nav { display: none; }

/* Boutons d'action : même hauteur, même rayon, identités Assistance (bleu) / Urgence (orange) / Contact (vert) */
.pi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 1px solid; border-radius: 4px; font-family: var(--ff-p); font-weight: var(--fw-600); font-size: 14px; line-height: 20px;
  white-space: nowrap; transition: all .25s linear; }
.pi-btn--assist { color: #40c4f0; border-color: #40c4f0; }
.pi-btn--assist:hover, .pi-btn--assist:focus-visible, .pi-btn--assist.is-active { background: #40c4f0; color: #061018; }
.pi-btn--urgence { color: #f59e0b; border-color: #f59e0b; }
.pi-btn--urgence:hover, .pi-btn--urgence:focus-visible, .pi-btn--urgence.is-active { background: #f59e0b; color: #061018; }
.pi-btn--contact { color: var(--common-white); border-color: var(--theme-1); }
.pi-btn--contact:hover, .pi-btn--contact:focus-visible, .pi-btn--contact.is-active { background: var(--theme-1); color: var(--common-body-1); }
.pi-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Navigation principale (ligne inférieure) */
.pi-nav-list { display: flex; align-items: center; justify-content: space-between; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pi-nav-item { position: relative; }
.pi-nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 12px; border: 0;
  background: none; color: rgba(226, 236, 245, .8); font-family: var(--ff-p); font-weight: var(--fw-600); font-size: 15px;
  line-height: 20px; white-space: nowrap; cursor: pointer; transition: color .2s; }
.pi-nav-link:hover, .pi-nav-item.is-open > .pi-nav-link { color: #fff; }
.pi-nav-link.is-active { color: #40c4f0; }
/* état actif signalé aussi sans couleur : trait sous le lien */
.pi-nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: #40c4f0; }
.pi-nav-link:focus-visible { outline: 2px solid #40c4f0; outline-offset: -4px; border-radius: 6px; }
.pi-chev { font-size: 13px; transition: transform .2s; }
.pi-nav-item.is-open > .pi-nav-link .pi-chev { transform: rotate(180deg); }

/* Menus déroulants */
.pi-dd { position: absolute; top: 100%; left: 0; z-index: 100; min-width: 310px; padding: 10px; background: #071a26;
  border: 1px solid rgba(64, 196, 240, .22); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
  /* un panneau fermé (y compris pendant son fondu de sortie) ne capte pas le pointeur : sinon, en passant vite
     d'un menu à l'autre, le panneau voisin encore visible intercepte la souris et se rouvre */
  pointer-events: none; }
/* Pont de survol : couvre l'espace entre le bouton et le panneau (décalage translateY de l'ouverture),
   sinon la souris qui descend vers le menu pendant l'animation perd le survol et le menu se referme. */
.pi-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.pi-nav-item.dd-right > .pi-dd { left: auto; right: 0; }
.pi-dd--wide { width: 620px; }
.pi-dd--wide .pi-dd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pi-nav-item.is-open > .pi-dd { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (hover: hover) {
  .pi-nav-item.has-dd:hover > .pi-dd { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .pi-nav-item.has-dd:hover > .pi-nav-link { color: #fff; }
  .pi-nav-item.has-dd:hover > .pi-nav-link .pi-chev { transform: rotate(180deg); }
}
.pi-dd-title { margin: 4px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #40c4f0; }
.pi-dd-list { list-style: none; margin: 0; padding: 0; }
.pi-dd:not(.pi-dd--wide) .pi-dd-list li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.pi-dd-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #fff; transition: background .15s; }
.pi-dd-link:hover, .pi-dd-link:focus-visible { background: rgba(64, 196, 240, .1); color: #fff; }
.pi-dd-link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #40c4f0; }
.pi-dd-link.is-active .pi-dd-label { color: #40c4f0; }
.pi-dd-link.is-featured { background: rgba(19, 196, 161, .12); box-shadow: inset 3px 0 0 var(--theme-1); }
.pi-dd-icon { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  background: rgba(64, 196, 240, .12); color: #40c4f0; font-size: 15px; }
.pi-dd-link.is-featured .pi-dd-icon { background: rgba(19, 196, 161, .2); color: #13c4a1; }
.pi-dd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pi-dd-label { font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }
.pi-dd-desc { font-size: 13px; line-height: 1.45; color: rgba(226, 236, 245, .72); white-space: normal; }

@media (min-width: 1200px) {
  .pi-top { min-height: 84px; }
  .pi-logo img { height: 66px; } /* taille définitive validée */
  .pi-actions { display: flex; }
  .pi-burger { display: none; }
  .pi-nav { display: block; border-top: 1px solid rgba(64, 196, 240, .12); }
  /* grille visuelle : le texte « Accueil » s'aligne sur le bord gauche du logo et le chevron de « À propos »
     sur le bord droit du bouton Contact (compensation exacte du padding horizontal des liens) */
  .pi-nav-list { margin: 0 -12px; }
  .pi-header.header__sticky .pi-top { min-height: 64px; }
  .pi-header.header__sticky .pi-logo img { height: 44px; }
  /* le header passe de 80 à ~135 px : décalage du premier bloc des pages intérieures */
  .breadcrumb { padding-top: 175px; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
  .pi-nav-link { padding: 0 9px; }
  .pi-nav-link.is-active::after { left: 9px; right: 9px; }
  .pi-nav-list { margin: 0 -9px; }
}

/* ---------- Panneau mobile ---------- */
.pi-mobile .sidebar__content { padding-bottom: 34px; }
.pi-mlogo { margin: 34px 0 21px; }
.pi-mlogo img { height: 56px; }
.pi-mlist { list-style: none; margin: 0; padding: 0; }
.pi-mitem { border-top: 1px solid rgba(255, 255, 255, .09); }
.pi-mitem:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.pi-mlink { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 12px 4px;
  border: 0; background: none; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  text-align: left; cursor: pointer; }
.pi-mlink.is-active { color: #40c4f0; }
.pi-mlink:focus-visible, .pi-msublink:focus-visible { outline: 2px solid #40c4f0; outline-offset: 2px; }
.pi-mchev { transition: transform .2s; }
.pi-mitem.is-open .pi-mchev { transform: rotate(180deg); }
.pi-msub { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid rgba(64, 196, 240, .35); }
.pi-msub[hidden] { display: none; }
.pi-msublink { display: flex; align-items: center; min-height: 46px; padding: 8px 10px; color: rgba(226, 236, 245, .9); font-size: 15px; font-weight: 500; }
.pi-msublink.is-featured { color: #13c4a1; font-weight: 700; }
.pi-msublink.is-active { color: #40c4f0; }
.pi-mactions { display: grid; gap: 10px; margin-top: 24px; }
.pi-mcta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid; border-radius: 4px;
  font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pi-mcta--assist { color: #40c4f0; border-color: #40c4f0; }
.pi-mcta--urgence { color: #f59e0b; border-color: #f59e0b; }
.pi-mcta--contact { color: #fff; border-color: var(--theme-1); }
.pi-mcta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Pages de prestations (V4) ---------- */
.pi-page-intro { padding: 55px 0 13px; }
.pi-lead p { max-width: 820px; font-size: 18px; line-height: 1.7; color: var(--text-p-1); }
.pi-block { padding: 34px 0; }
.pi-block h2 { font-size: 30px; line-height: 1.25; color: var(--text-h); margin-bottom: 21px; }
.pi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 21px; list-style: none; margin: 0; padding: 0; }
.pi-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px; background: var(--common-body-3); color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.pi-card:hover, a.pi-card:focus-visible { border-color: #40c4f0; box-shadow: 0 10px 26px rgba(0, 0, 0, .08); transform: translateY(-2px); }
a.pi-card:focus-visible { outline: 3px solid #061018; outline-offset: 3px; }
.pi-card-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(64, 196, 240, .14); color: #147cb8; font-size: 18px; }
.pi-card h3 { font-size: 20px; line-height: 1.3; color: var(--text-h); margin: 6px 0 0; }
.pi-card p { font-size: 16px; line-height: 1.6; color: var(--text-p-1); margin: 0; }
.pi-card-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: #0f7fa8; }
.pi-checks { display: grid; gap: 13px; max-width: 820px; list-style: none; margin: 0; padding: 0; }
.pi-checks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.6; color: var(--text-p-1); }
.pi-checks li::before { content: "\f00c"; position: absolute; left: 0; top: 2px; font-family: "Font Awesome 6 Pro"; font-weight: 900; color: var(--theme-1); }
.pi-related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pi-related a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px; color: var(--text-h); font-weight: 600; }
.pi-related a:hover, .pi-related a:focus-visible { border-color: #40c4f0; color: #0f7fa8; }
.pi-cta-section { padding: 34px 0 89px; }
.pi-cta-card { padding: 34px; border-radius: 8px; background: var(--common-body-2); text-align: center; }
.pi-cta-card h2 { font-size: 28px; line-height: 1.3; color: #fff; margin-bottom: 13px; }
.pi-cta-card p { max-width: 640px; margin: 0 auto; font-size: 17px; color: rgba(226, 236, 245, .86); }
.pi-cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.pi-cta-actions .default-btn { margin-top: 21px; }
.pi-cta-actions .pi-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .55); }
@media (max-width: 767px) {
  .pi-page-intro { padding: 34px 0 8px; }
  .pi-lead p { font-size: 17px; }
  .pi-block h2 { font-size: 24px; }
  .pi-cta-card { padding: 24px 16px; }
  .pi-cta-card h2 { font-size: 23px; }
}

/* ==========================================================================
   HOTFIX V4.3 — hero, cartes Particuliers/Professionnels, header sticky.
   Ajouté en fin de pi-v4.css (chargé en dernier) : l'emporte par cascade.
   ========================================================================== */

/* ---------- Hero : règle générale, identique pour les 3 slides ----------
   Cause : le bloc texte était placé par « top: X% » et la barre des 4 bénéfices
   par « bottom: 12% », indépendamment l'un de l'autre → recouvrement du CTA selon
   la hauteur d'écran. Désormais le bloc texte est ancré par le BAS, au-dessus
   d'une zone réservée à la barre (position + hauteur + écart fixe de 28 px). */
@media (min-width: 992px) {
  .hero-slider.two {
    --pi-hb-bottom: clamp(18px, 20% - 100px, 160px); /* distance barre ↔ bas du hero (remonte sur les grands heros) */
    --pi-hb-h: 44px;                          /* hauteur fixe de la barre */
    --pi-hb-gap: 28px;                        /* écart CTA ↔ barre */
  }
  /* plancher de hauteur pour les écrans peu hauts (ratio photo < contenu + header) :
     sans effet dès 1366 px, où la hauteur native du ratio est déjà supérieure */
  .hero-slider.two .swiper { min-height: 580px; }
  .hero-slider.two .hero-service-cards {
    bottom: var(--pi-hb-bottom);
    height: var(--pi-hb-h);
    box-sizing: border-box;
  }
  .hero-slider.two .hero-slider-init-one .swiper .swiper-wrapper > .swiper-slide .item-slider .slider-content-inner:not(.pi-x) {
    top: auto;
    bottom: calc(var(--pi-hb-bottom) + var(--pi-hb-h) + var(--pi-hb-gap));
    width: clamp(480px, 38vw, 640px);
    max-width: 640px;
  }
  .hero-slider.two .hero-slider-init-one .swiper .swiper-wrapper > .swiper-slide .item-slider .slider-content-inner:not(.pi-x) .slider-title {
    text-transform: none;
    font-size: clamp(42px, 3.2vw, 58px);
    line-height: 1.12;
    width: auto;
    max-width: none;
  }
}
@media (min-width: 1200px) {
  .hero-slider.two .swiper { min-height: 632px; } /* header desktop 136 px */
}
@media (min-width: 1600px) and (min-aspect-ratio: 2/1) {
  .hero-slider.two { --pi-hb-h: 54px; } /* cartes plus aérées en ultra-wide (padding 10px) */
}
/* mobile/tablette : casse naturelle aussi (tailles du thème conservées) */
.hero-slider.two .slider-title { text-transform: none; }

/* ---------- Cartes Particuliers / Professionnels (accueil) ---------- */
.home-audience-v2__card { border-width: 2px; border-style: solid;
  transition: transform .21s ease, border-color .21s ease, box-shadow .21s ease, background-color .21s ease; }
.home-audience-v2__card--personal { background: #e8f8f5; border-color: #20bfa9; box-shadow: 0 14px 36px rgba(15, 143, 131, .12); }
.home-audience-v2__card--business { background: #eaf4fc; border-color: #2f8fc5; box-shadow: 0 14px 36px rgba(20, 124, 184, .12); }
.home-audience-v2__card:hover { transform: translateY(-3px); }
.home-audience-v2__card--personal:hover { background: #dff4ef; border-color: #0f8f83; box-shadow: 0 20px 44px rgba(15, 143, 131, .18); }
.home-audience-v2__card--business:hover { background: #e0eefa; border-color: #147cb8; box-shadow: 0 20px 44px rgba(20, 124, 184, .18); }
.home-audience-v2__card--personal .home-audience-v2__card-icon { background: #d2f1ea; color: #0f8f83; border: 1px solid rgba(32, 191, 169, .45); box-shadow: none; }
.home-audience-v2__card--business .home-audience-v2__card-icon { background: #d5e8f7; color: #147cb8; border: 1px solid rgba(47, 143, 197, .45); box-shadow: none; }
/* libellés 13 px : teinte foncée de l'accent pour AA (#0F8F83 = 3,6:1 sur #E8F8F5) */
.home-audience-v2__card--personal .home-audience-v2__card-label { color: #0b7469; }
.home-audience-v2__card--business .home-audience-v2__card-label { color: #10659a; }
/* CTA : #0F8F83 donne 3,98:1 avec le blanc (< AA 4,5) → #0D8378, quasi identique, 4,63:1 */
.home-audience-v2__card--personal .home-audience-v2__button { background: #0d8378; border-color: #0d8378; color: #fff; }
.home-audience-v2__card--business .home-audience-v2__button { background: #147cb8; border-color: #147cb8; color: #fff; }
.home-audience-v2__card--personal .home-audience-v2__button:hover { background: #0b7469; border-color: #0b7469; color: #fff; }
.home-audience-v2__card--business .home-audience-v2__button:hover { background: #10659a; border-color: #10659a; color: #fff; }

/* ---------- Header sticky : version compacte du header V4 (desktop) ----------
   Cause : le header est déjà position:fixed, mais le passage en sticky rejouait
   l'animation du thème (glissement depuis -100% en 1 s) et réduisait le logo à
   44 px instantanément → effet « ancien header ». Même structure, mêmes axes. */
@media (min-width: 1200px) {
  .header-area-3.pi-header.header__sticky { animation: none; }
  .pi-top { transition: min-height .25s ease; }
  .pi-logo { transition: padding .25s ease; }
  .pi-logo img { transition: height .25s ease; }
  .pi-header.header__sticky .pi-top { min-height: 64px; }
  .pi-header.header__sticky .pi-logo { padding: 3px 0; }
  .pi-header.header__sticky .pi-logo img { height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .pi-top, .pi-logo, .pi-logo img { transition: none; }
}
