/* ==========================================================================
   LE CADRE DES PAGES PUBLIQUES (lot REGROUPE, C) -- en-tete et pied UNIQUES.
   Fragments : WEB-INF/views/public/_entete.jspf et _pied.jspf. Reprend
   l'en-tete et le pied de l'accueil, qui font reference.
   Toutes les classes sont prefixees « pc- » et les couleurs sont portees par
   les elements du cadre eux-memes : rien ne fuit vers la page (main.css,
   styles propres a chaque page), rien de la page ne deforme le cadre.
   ========================================================================== */
body.pc-cadre {
  margin: 0 !important; padding: 0 !important;
  display: flex !important; flex-direction: column !important;
  align-items: stretch !important; justify-content: flex-start !important;
  min-height: 100vh;
}
/* Le contenu propre a la page, entre l'en-tete et le pied. */
.pc-page { flex: 1 0 auto; width: 100%; }

.pc-nav, .pc-tiroir, .pc-ft {
  --pc-or: #FF9E1B; --pc-or-d: #E07B00; --pc-bl: #00529B;
  --pc-nv: #1A1A2E; --pc-tx: #1A1A2E; --pc-ts: #5B6168; --pc-ln: #E4E6E8;
  font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  box-sizing: border-box; text-align: left;
}
.pc-nav *, .pc-tiroir *, .pc-ft * { box-sizing: border-box; margin: 0; padding: 0; }
/* Socle NEUTRE : les regles d'element des pages (p{color}, a{…}, li{…}, h1{…})
   ne deteignent pas sur le cadre ; les regles de classe ci-dessous, prefixees
   par leur bloc, l'emportent ensuite. */
.pc-nav p, .pc-nav span, .pc-nav li, .pc-nav ul, .pc-nav div, .pc-nav a,
.pc-tiroir a, .pc-tiroir div,
.pc-ft p, .pc-ft span, .pc-ft li, .pc-ft ul, .pc-ft div, .pc-ft a {
  color: inherit; font-size: inherit; font-weight: inherit; font-family: inherit;
  line-height: inherit; letter-spacing: normal; text-transform: none; text-align: inherit;
  background: none; border: 0; text-decoration: none; list-style: none;
}

/* --- Barre de navigation --- */
.pc-nav {
  position: sticky; top: 0; z-index: 1000; width: 100%; height: 68px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  transition: height .35s, background .35s, border-color .35s, box-shadow .35s;
}
/* Accueil : posee sur la photo d'ouverture, transparente, puis opaque au defilement. */
.pc-nav--flottante { position: fixed; left: 0; right: 0; background: rgba(255, 255, 255, .55); border-bottom-color: transparent; }
.pc-nav--flottante.pc-nav--defilee {
  height: 56px; background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(0, 0, 0, .07); box-shadow: 0 4px 28px -12px rgba(40, 45, 48, .18);
}
.pc-nav .pc-nav__marque {
  font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 1.55rem;
  letter-spacing: -1px; color: var(--pc-bl); line-height: 1;
}
.pc-nav .pc-nav__marque b { color: var(--pc-or); }
.pc-nav .pc-nav__liens { display: flex; gap: 34px; list-style: none; }
.pc-nav .pc-nav__liens a {
  font-size: .9rem; font-weight: 500; color: var(--pc-ts);
  position: relative; padding-bottom: 3px; transition: color .2s;
}
.pc-nav .pc-nav__liens a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--pc-or); transition: right .25s;
}
.pc-nav .pc-nav__liens a:hover { color: var(--pc-tx); }
.pc-nav .pc-nav__liens a:hover::after { right: 0; }
.pc-nav .pc-nav__droite { display: flex; align-items: center; gap: 10px; }
.pc-nav .pc-nav__bonjour { font-size: .85rem; color: var(--pc-ts); }
.pc-nav .pc-nav__bonjour strong { color: var(--pc-tx); }
.pc-nav form { display: inline; margin: 0; }

.pc-nav .pc-btn, .pc-tiroir .pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; border: 2px solid transparent;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .84rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap; background: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.pc-nav .pc-btn:hover, .pc-tiroir .pc-btn:hover { transform: translateY(-2px); }
.pc-nav .pc-btn--or, .pc-tiroir .pc-btn--or { background: var(--pc-or); color: #fff; border-color: var(--pc-or); }
.pc-nav .pc-btn--or:hover, .pc-tiroir .pc-btn--or:hover { background: var(--pc-or-d); color: #fff; box-shadow: 0 8px 28px -6px rgba(255, 158, 27, .52); }
.pc-nav .pc-btn--contour, .pc-tiroir .pc-btn--contour { background: transparent; color: var(--pc-bl); border-color: var(--pc-bl); }
.pc-nav .pc-btn--contour:hover, .pc-tiroir .pc-btn--contour:hover { background: var(--pc-bl); color: #fff; }

.pc-nav .pc-hamb {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.pc-nav .pc-hamb span { display: block; height: 2px; background: var(--pc-ts); border-radius: 2px; transition: all .3s; }
.pc-nav .pc-hamb--ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pc-nav .pc-hamb--ouvert span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pc-nav .pc-hamb--ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pc-tiroir {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 999;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 20px 24px 28px;
  border-top: 1px solid var(--pc-ln); box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}
.pc-tiroir--ouvert { display: block; }
.pc-tiroir > a {
  display: block; padding: 13px 0; font-size: 15px; font-weight: 500;
  color: var(--pc-tx); border-bottom: 1px solid #f0f0f0;
}
.pc-tiroir__boutons { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* --- Pied de page --- */
.pc-ft { background: var(--pc-nv); color: rgba(255, 255, 255, .55); padding: 70px 6vw 30px; width: 100%; flex: 0 0 auto; }
.pc-ft .pc-ft__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; max-width: 1200px; margin: 0 auto; }
.pc-ft .pc-ft__logo { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.pc-ft .pc-ft__logo b { color: var(--pc-or); }
.pc-ft .pc-ft__devise { font-size: .86rem; line-height: 1.7; max-width: 240px; margin-bottom: 22px; }
.pc-ft .pc-ft__titre {
  font-family: 'Poppins', sans-serif; font-size: .7rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px;
}
.pc-ft .pc-ft__liste { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pc-ft .pc-ft__liste a { font-size: .86rem; color: rgba(255, 255, 255, .5); transition: color .2s; }
.pc-ft .pc-ft__liste a:hover { color: var(--pc-or); }
.pc-ft .pc-ft__coord { display: flex; gap: 10px; font-size: .86rem; margin-bottom: 11px; overflow-wrap: anywhere; }
.pc-ft .pc-ft__coord a { color: var(--pc-or); }
.pc-ft .pc-ft__ico { color: var(--pc-or); flex-shrink: 0; }
.pc-ft .pc-ft__legal {
  max-width: 1200px; margin: 44px auto 0; font-size: 13px; line-height: 1.6;
  color: rgba(255, 255, 255, .34);
}
.pc-ft .pc-ft__bas {
  max-width: 1200px; margin: 50px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .8rem; color: rgba(255, 255, 255, .28);
}
.pc-ft .pc-ft__bas a { color: inherit; text-decoration: underline; }

@media (max-width: 1024px) {
  .pc-ft .pc-ft__in { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .pc-nav .pc-nav__liens, .pc-nav .pc-nav__droite { display: none; }
  .pc-nav .pc-hamb { display: flex; }
  .pc-ft .pc-ft__in { grid-template-columns: 1fr; gap: 28px; }
  .pc-ft .pc-ft__bas { flex-direction: column; text-align: center; }
}
