/* Accueil : pied de page, informations en modales et pages autonomes.
   Signature Chantierama : trois angles arrondis, angle inférieur droit carré. */
.home-footer {
  margin-top: 48px;
  padding: 40px max(24px, calc((100% - 1160px) / 2)) 20px;
  background: #19212b;
  color: #fff;
  border-top: 4px solid #f0ca36;
}
.home-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; }
.home-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 1.2rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.home-footer-logo img { object-fit: contain; }
.home-footer-brand p { margin: 18px 0; max-width: 34ch; color: #d3d8dd; line-height: 1.65; }
.home-footer-promise { display: inline-block; padding: 8px 12px; background: #f0ca36; color: #19212b; border-radius: 12px 12px 0 12px; font-size: .9rem; font-weight: 750; }
.home-footer nav h2 { margin: 5px 0 10px; color: #f0ca36; font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; }
.home-footer nav a, .home-footer nav button {
  display: block; width: fit-content; max-width: 100%; min-height: 44px; padding: 10px 12px; margin-left: -12px;
  border: 0; border-radius: 12px 12px 0 12px; background: transparent; color: #f2f4f6;
  font: inherit; font-size: .95rem; line-height: 1.5; text-align: left; text-decoration: none; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.home-footer nav a:hover, .home-footer nav button:hover { background: #34404d; color: #fff2b5; }
.home-footer nav a:active, .home-footer nav button:active,
.home-footer nav [aria-expanded="true"] { background: #f0ca36; color: #19212b; }
.home-footer :focus-visible { outline: 3px solid #f0ca36; outline-offset: 4px; }
.home-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #4b5562; color: #c9d0d8; font-size: .85rem; }

.home-info-dialog {
  width: calc(100% - 32px); max-width: 880px; max-height: calc(100dvh - 32px); padding: 0;
  border: 0; border-radius: 26px 26px 0 26px; background: #fff; color: #19212b;
  box-shadow: 0 24px 80px rgb(15 23 42 / 28%); overflow: auto; overscroll-behavior: contain;
}
.home-info-dialog::backdrop { background: rgb(15 23 42 / 55%); }
.home-info-dialog [hidden] { display: none !important; }
.home-info-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid #e0e3e5; background: #fff; }
.home-info-eyebrow { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5c6570; }
.home-info-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 850; }
.home-info-close { flex: 0 0 auto; width: 48px; height: 48px; padding: 8px; }
.home-info-close svg { width: 28px; height: 28px; }
.home-info-body { padding: 24px 28px; line-height: 1.7; overflow-wrap: anywhere; }
.home-info-section { padding: 20px; margin-bottom: 16px; border: 1px solid #e0e3e5; border-radius: 20px 20px 0 20px; background: #fafbf9; }
.home-info-section:last-child { margin-bottom: 0; }
.home-info-section h3, .home-info-section h2 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; line-height: 1.45; }
.home-info-section p { margin: 0 0 12px; }
.home-info-section p:last-child { margin-bottom: 0; }
.home-info-section ul { padding-left: 20px; margin: 0 0 16px; }
.home-info-section li + li { margin-top: 10px; }
.home-info-highlight { background: #fff6cc; border-color: #eadca1; }
.home-info-body a, .home-info-actions > a { color: #3d4b5c; text-decoration: underline; text-underline-offset: 3px; }
.home-info-body a:hover, .home-info-actions > a:hover { color: #111820; text-decoration-thickness: 2px; }
.home-info-body .chantierama-button { color: #19212b; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.home-info-details { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 1.7fr); gap: 12px 20px; margin: 0; }
.home-info-details dt { font-weight: 750; }
.home-info-details dd { margin: 0; }
.home-info-draft { padding: 16px 18px; margin: 0 0 20px; border: 1px solid #d9bd62; border-radius: 16px 16px 0 16px; background: #fff6cc; font-size: .92rem; }
.home-info-body mark { padding: 2px 3px; background: #fff0b2; color: #513e00; }
.home-info-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-top: 1px solid #e0e3e5; }
.home-info-actions > a { font-size: .9rem; }
.home-info-newtab { display: block; font-size: .8rem; }
.home-info-dialog :focus-visible { outline: 3px solid #19212b; outline-offset: 4px; }
body.home-modal-open { overflow: hidden; }

/* La route publique fonctionne sans Bootstrap ni accès à la base de données. */
.home-info-standalone { margin: 0; font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #eef0ec; color: #19212b; }
.home-info-standalone * { box-sizing: border-box; }
.home-info-site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px max(20px, calc((100% - 1040px) / 2)); background: #fff; }
.home-info-site-header a { display: inline-flex; align-items: center; gap: 12px; color: #19212b; text-underline-offset: 4px; }
.home-info-site-header a:first-child { font-weight: 900; text-decoration: none; }
.home-info-document { max-width: 880px; margin: 32px auto; padding-top: 28px; border-radius: 26px 26px 0 26px; background: #fff; box-shadow: 0 8px 30px rgb(25 33 43 / 8%); }
.home-info-document > .home-info-eyebrow, .home-info-document > h1 { margin-left: 28px; margin-right: 28px; }
.home-info-document h1 { margin-top: 0; margin-bottom: 0; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.3; }
.home-info-standalone .chantierama-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid #c7c9c7; border-radius: 16px 16px 0 16px; background: #fff; color: #19212b; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; }
.home-info-standalone .chantierama-button--primary { background: #f0ca36; border-color: #dfb91e; }
.home-info-standalone .chantierama-button:hover { background: #ffedaa; border-color: #b59623; }
.home-info-standalone .chantierama-button:active { background: #19212b; color: #fff; }
.home-info-standalone :focus-visible { outline: 3px solid #19212b; outline-offset: 4px; }
.home-info-site-footer { padding: 20px; text-align: center; color: #5c6570; font-size: .9rem; }
@media (max-width: 760px) {
  .home-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .home-footer-brand { grid-column: 1 / -1; }
  .home-footer-brand p { max-width: 48ch; }
  .home-info-heading { padding: 20px; }
  .home-info-body { padding: 20px; }
  .home-info-section { padding: 16px; }
  .home-info-actions { padding: 20px; }
  .home-info-document { margin: 20px 16px; }
}
@media (max-width: 480px) {
  .home-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-footer-bottom { flex-direction: column; }
  .home-info-details { grid-template-columns: 1fr; gap: 4px; }
  .home-info-details dd { margin-bottom: 12px; }
  .home-info-actions { align-items: stretch; flex-direction: column-reverse; }
  .home-info-actions > a { text-align: center; }
  .home-info-newtab { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .home-footer nav a, .home-footer nav button { transition: none; }
}
@media print {
  .home-info-site-header, .home-info-site-footer, .home-info-actions { display: none; }
  .home-info-standalone { background: #fff; }
  .home-info-document { max-width: none; margin: 0; box-shadow: none; }
  .home-info-section { break-inside: avoid; }
}
