/* V3.3 - Pages juridiques et pied de page : La Boussole des Démarches */
.bdd-legal-footer{padding:14px 0 7px}
.bdd-footer-top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(190px,.82fr) minmax(190px,.84fr);gap:38px;align-items:start}
.bdd-footer-intro strong{font-size:16px;color:#163d73;letter-spacing:-.25px}
.bdd-footer-intro p{font-size:13px;line-height:1.75;color:#526781;max-width:520px;margin:10px 0 0}
.bdd-footer-links{display:flex;align-items:flex-start;flex-direction:column;gap:9px;font-size:12.7px}
.bdd-footer-links strong{font-size:13px;color:#243c62;letter-spacing:.01em;margin-bottom:4px}
.bdd-footer-links a{color:#24568d;text-decoration:none;line-height:1.5}
.bdd-footer-links a:hover,.bdd-footer-links a:focus-visible{text-decoration:underline}
.bdd-footer-bottom{margin-top:27px;padding-top:15px;border-top:1px solid #dce6f1;display:flex;justify-content:space-between;gap:12px;color:#59718c;font-size:11.5px;flex-wrap:wrap}
.ai-legal-note{font-size:12px;margin:0 0 3px;color:#4f6783;line-height:1.5}
.ai-legal-note a{font-weight:760}
/* Legal pages use the same design language as the home page. */
.bdd-legal-head{background:#fff;border-bottom:1px solid #dce5f1}
.bdd-legal-head .shell{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0}
.bdd-legal-brand{display:flex;align-items:center;gap:13px;color:#153c70;text-decoration:none;min-width:0}
.bdd-legal-brand img{width:51px;height:51px;flex:0 0 51px}
.bdd-legal-brand strong{display:block;font-size:19px;line-height:1.16;font-weight:850;letter-spacing:-.45px}
.bdd-legal-brand small{font-size:11px;color:#526b8e;display:block;margin-top:2px}
.bdd-legal-home{font-size:13px;font-weight:750;border:1px solid #c9ddf1;background:#f2f8ff;color:#23518b;border-radius:10px;padding:10px 14px;text-decoration:none;white-space:nowrap}
.bdd-legal-home:hover{background:#e6f3ff}
.bdd-legal-main{background:linear-gradient(180deg,#edf7ff 0,#f7fbff 210px,#fff 480px);min-height:62vh;padding:32px 0 66px}
.bdd-legal-inner{max-width:1060px;margin:0 auto}
.bdd-legal-back{display:inline-flex;text-decoration:none;font-size:13px;font-weight:750;margin:0 0 22px;color:#265d9e}
.bdd-legal-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#32669e;font-weight:850;margin:0 0 8px}
.bdd-legal-main h1{font-size:clamp(30px,4vw,45px);letter-spacing:-1.3px;margin:0 0 15px;color:#12386a;line-height:1.15}
.bdd-legal-lead{font-size:16px;line-height:1.75;max-width:780px;color:#516886;margin-bottom:20px}
.bdd-legal-meta{font-size:12px;color:#627893;margin:0 0 25px}
.bdd-legal-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(210px,.83fr);align-items:start;gap:24px}
.bdd-legal-article{background:#fff;border-radius:20px;border:1px solid #dce9f7;box-shadow:0 12px 40px rgba(34,76,125,.06);padding:36px 41px}
.bdd-legal-article section+section{border-top:1px solid #edf2f8;margin-top:25px;padding-top:25px}
.bdd-legal-article h2{font-size:19px;line-height:1.36;letter-spacing:-.25px;color:#163c70;margin:0 0 11px}
.bdd-legal-article h3{font-size:15px;color:#234e83;margin:15px 0 7px}
.bdd-legal-article p,.bdd-legal-article li{font-size:14px;line-height:1.84;color:#3e546f}
.bdd-legal-article p{margin:0 0 12px}.bdd-legal-article p:last-child{margin-bottom:0}
.bdd-legal-article ul{padding-left:19px;margin:10px 0 0}
.bdd-legal-article li{margin:5px 0}
.bdd-legal-article a{overflow-wrap:anywhere;font-weight:650;text-underline-offset:3px}
.bdd-legal-article strong{color:#203d64}
.bdd-legal-note{background:#eff8ff;border:1px solid #cfe7fa;border-radius:14px;padding:15px 18px;margin:16px 0;font-size:13px;line-height:1.74;color:#284d74}
.bdd-legal-aside{position:sticky;top:18px;display:grid;gap:16px}
.bdd-legal-aside-box{background:#f7fbff;border:1px solid #d8e7f6;padding:20px;border-radius:16px}
.bdd-legal-aside h2{font-size:14px;letter-spacing:.02em;color:#244f80;margin:0 0 12px}
.bdd-legal-aside a{display:block;margin:0 0 10px;font-size:13px;color:#285d92;text-decoration:none;line-height:1.4}
.bdd-legal-aside a[aria-current="page"]{font-weight:850;color:#103b78}
.bdd-legal-aside a:hover{text-decoration:underline}
.bdd-legal-aside p{font-size:12px;color:#526b87;line-height:1.6;margin:0}
.bdd-legal-subfooter{padding:20px 0 29px}
@media(max-width:820px){.bdd-legal-grid{grid-template-columns:1fr}.bdd-legal-aside{position:static;grid-row:1}.bdd-legal-aside-box:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:10px 15px}.bdd-legal-aside h2{width:100%;margin:0}.bdd-legal-aside a{margin:0}.bdd-footer-top{grid-template-columns:1fr 1fr;gap:24px}.bdd-footer-intro{grid-column:1/-1}}
@media(max-width:540px){.bdd-legal-head .shell{gap:10px}.bdd-legal-brand img{width:42px;height:42px;flex-basis:42px}.bdd-legal-brand strong{font-size:14px}.bdd-legal-brand small{font-size:10px}.bdd-legal-home{font-size:11px;padding:9px}.bdd-legal-main{padding:24px 0 40px}.bdd-legal-article{padding:22px 19px;border-radius:14px}.bdd-legal-lead{font-size:14px}.bdd-legal-grid{gap:14px}.bdd-footer-top{grid-template-columns:1fr;gap:20px}.bdd-footer-intro{grid-column:auto}.bdd-footer-bottom{display:block}.bdd-footer-bottom span{display:block;margin:8px 0}}
@media print{.bdd-legal-head,.bdd-legal-aside,.bdd-legal-subfooter,.bdd-legal-back{display:none!important}.bdd-legal-main{padding:0;background:#fff}.bdd-legal-grid{display:block}.bdd-legal-article{border:0;padding:0;box-shadow:none}}


/* V3.9.2 — Footer mobile compact : layout conserve sur ordinateur. */
@media (max-width: 600px) {
  .site-footer {
    background: linear-gradient(155deg, #123b73 0%, #0b2d5a 100%);
    color: #e6f1ff;
    border-top: 3px solid #2cbe9d;
    padding: 0 0 max(15px, env(safe-area-inset-bottom));
  }
  .bdd-legal-footer { padding: 21px 0 5px; }
  .bdd-footer-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
    align-items: start;
  }
  .bdd-footer-intro {
    grid-column: 1 / -1;
    padding: 0 4px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(221, 239, 255, .17);
  }
  .bdd-footer-intro strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.35px;
  }
  .bdd-footer-intro strong::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: #5de0b5;
    box-shadow: 0 0 0 4px rgba(93, 224, 181, .13);
  }
  .bdd-footer-intro p {
    color: #d5e5f6;
    font-size: 12px;
    line-height: 1.5;
    max-width: 37ch;
    margin: 6px auto 0;
  }
  .bdd-footer-links { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .bdd-footer-links strong {
    color: #87e3cf;
    font-size: 11.5px;
    line-height: 1.25;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 3px;
  }
  .site-footer .bdd-footer-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    width: 100%;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(225, 239, 255, .14);
    border-radius: 9px;
    background: rgba(233, 243, 255, .06);
    color: #f2f7ff;
    font-size: 12.2px;
    font-weight: 520;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .site-footer .bdd-footer-links a:hover,
  .site-footer .bdd-footer-links a:focus-visible {
    background: rgba(233, 243, 255, .17);
    border-color: rgba(225, 239, 255, .33);
    text-decoration: underline;
  }
  .bdd-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    padding-top: 13px;
    margin-top: 16px;
    border-color: rgba(221, 239, 255, .17);
    color: #c4d8ec;
    font-size: 11px;
    line-height: 1.4;
  }
  .bdd-footer-bottom > span { display: block; margin: 0; }
  /* Ne pas forcer un retour a la ligne entre © et l'annee. */
  .bdd-footer-bottom > span > span { display: inline; margin: 0; }
}
@media (max-width: 345px) {
  .bdd-footer-top { gap: 13px 9px; }
  .site-footer .bdd-footer-links a { padding: 6px 7px; font-size: 11.5px; }
  .bdd-footer-intro strong { font-size: 15.5px; }
}


/* Pied de page harmonise pour ordinateur et tablette : identite marine du mobile.
   Les styles mobiles d'origine restent strictement inchanges sous 601 px. */
@media (min-width: 601px) {
  .site-footer {
    position: relative;
    background: linear-gradient(128deg, #123b73 0%, #0c2d5b 60%, #081f43 100%);
    color: #ecf5ff;
    border-top: 3px solid #55d7b2;
    padding: 32px 0 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .site-footer.bdd-legal-subfooter { padding: 32px 0 24px; }
  .site-footer .bdd-legal-footer { padding: 0; }
  .site-footer .bdd-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 2.7vw, 36px);
    align-items: start;
  }
  .site-footer .bdd-footer-intro {
    min-width: 0;
    align-self: start;
    height: auto;
    min-height: 0;
    padding: 20px 23px;
    border: 1px solid rgba(219, 237, 255, .17);
    border-radius: 17px;
    background: linear-gradient(150deg, rgba(242, 249, 255, .10), rgba(242, 249, 255, .035));
    box-shadow: 0 10px 25px rgba(0, 12, 35, .08);
  }
  .site-footer .bdd-footer-intro strong {
    display: block;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.35;
    letter-spacing: -.4px;
    color: #fff;
  }
  .site-footer .bdd-footer-intro strong::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 11px;
    vertical-align: middle;
    border-radius: 50%;
    background: #5de0b5;
    box-shadow: 0 0 0 4px rgba(93, 224, 181, .13);
  }
  .site-footer .bdd-footer-intro p {
    color: #d5e5f6;
    font-size: 13px;
    line-height: 1.72;
    max-width: 42ch;
    margin: 12px 0 0;
  }
  .site-footer .bdd-footer-links {
    min-width: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
  }
  .site-footer .bdd-footer-links strong {
    color: #8ce7d0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
    margin: 0 0 5px;
  }
  .site-footer .bdd-footer-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(225, 239, 255, .16);
    border-radius: 10px;
    background: rgba(233, 243, 255, .055);
    color: #f1f7ff;
    font-size: 12.8px;
    font-weight: 560;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  }
  .site-footer .bdd-footer-links a:hover,
  .site-footer .bdd-footer-links a:focus-visible {
    background: rgba(236, 247, 255, .16);
    border-color: rgba(225, 239, 255, .39);
    color: #fff;
    text-decoration: underline;
    transform: translateX(2px);
  }
  .site-footer .bdd-footer-links a:focus-visible { outline: 2px solid #95f5de; outline-offset: 2px; }
  .site-footer .bdd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    margin-top: 29px;
    padding-top: 19px;
    border-top: 1px solid rgba(221, 239, 255, .18);
    color: #c6d9ed;
    font-size: 12px;
    line-height: 1.55;
  }
  .site-footer .bdd-footer-bottom > span { margin: 0; }
  .site-footer .bdd-footer-bottom > span > span { display: inline; margin: 0; }
}
@media (min-width: 601px) and (max-width: 1020px) {
  .site-footer .bdd-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 25px; }
  .site-footer .bdd-footer-intro { grid-column: 1 / -1; padding: 17px 21px; }
  .site-footer .bdd-footer-intro p { max-width: none; margin-top: 5px; }
  .site-footer .bdd-footer-links { padding: 2px 0; }
}
@media (min-width: 601px) and (max-width: 760px) {
  .site-footer .bdd-footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .bdd-footer-links a { transition: none; }
}
