/* ============================================================
   SOMMAIRE DES RÉGLAGES SELON LA TAILLE DE L’ÉCRAN
   Classé des grandes largeurs vers les petites ; lignes ci-dessous.
   Les règles communes s’appliquent à tous les écrans.
   Les blocs restent à leur place pour conserver leurs priorités.
   Modifier les sources, puis reconstruire le site.

   (max-width:1199px) : ligne(s) 182
   (max-width:1050px) : ligne(s) 335
   (max-width:700px) : ligne(s) 50, 187
   (max-width:600px) : ligne(s) 343
   (max-width:370px) : ligne(s) 471, 733
   ============================================================ */

/* ===== RÉGLAGES COMMUNS : TOUS LES ÉCRANS ===== */
/* PIED DE PAGE COMMUN : présentation et adaptations aux écrans. */

.site .footer {
  color: #d5e2e8;
}

.site .footer h3 {
  color: #fff;
  font-size: 14.4px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site .footer .brand-name strong {
  color: #fff;
  text-transform: uppercase;
}

.site .footer a {
  color: #b9cbd4;
  font-size: 14.4px;
}

.site .footer a:hover,
.site .footer .brand {
  color: #fff;
}

.site .footer-bottom {
  font-size: 12.8px;
  color: #8fa7b3;
}

/* ===== RÉGLAGES ÉCRANS : MOBILE | (max-width:700px) ===== */
@media (max-width:700px) {
  .site .footer .brand-name strong {
    color: #fff;
    font-size: 14.72px;
    line-height: 1.15;
    letter-spacing: .045em;
  }

  .site .footer .brand-name small {
    color: #42c8e8;
    font-size: 9.28px;
    line-height: 1.25;
    letter-spacing: .11em;
  }
}

.site footer.pied-de-page {
  color: #d5e2e8 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: 400 !important;
  font-stretch: normal !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.site footer.pied-de-page * {
  font-family: Inter, Arial, sans-serif !important;
}

.site footer.pied-de-page h3 {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site footer.pied-de-page a {
  color: #b9cbd4 !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.65;
}

.site footer.pied-de-page a:hover,
.site footer.pied-de-page a.brand {
  color: #fff !important;
}

.site footer.pied-de-page .brand-name strong {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  text-transform: uppercase;
}

.site footer.pied-de-page .brand-name small {
  color: #b9cbd4 !important;
  font-size: 10px !important;
  line-height: 1.6;
  letter-spacing: .08em;
}

.site footer.pied-de-page p {
  color: #d5e2e8 !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.7;
}

.site footer.pied-de-page .footer-bottom {
  color: #8fa7b3 !important;
  font-size: 13px !important;
  line-height: 1.6;
}

.site footer.pied-de-page .footer-bottom span {
  color: inherit;
  font-size: inherit;
}

.site .brand-logo-footer {
  width: 82px;
  height: 82px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.site .footer {
  background: #081f31;
  padding: 58px 0 30px;
}

.site .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 38px;
}

.site .footer h3 {
  margin-bottom: 14px;
}

.site .footer a {
  display: block;
  margin: .45rem 0;
}

.site .footer .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .85rem;
}

.site .footer .brand-name {
  transform: translateY(5px);
}

.site .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ===== RÉGLAGES ÉCRANS : TABLETTE ET MOBILE | (max-width:1199px) ===== */
@media (max-width:1199px) {
  .site .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== RÉGLAGES ÉCRANS : MOBILE | (max-width:700px) ===== */
@media (max-width:700px) {
  .site .footer .brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin-right: 0;
  }

  .site .footer .brand-logo-footer {
    width: 76px;
    height: 76px;
  }

  .site .footer .brand-name {
    display: grid;
    gap: .35rem;
    transform: translateY(4px);
    opacity: 1;
    visibility: visible;
  }

  .site .footer-grid { grid-template-columns: 1fr; }

  .site .footer-bottom {
    flex-direction: column;
  }
}

.site footer.pied-de-page {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  clear: both;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 60px 0 0 !important;
  padding: 58px 0 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #081f31 !important;
  text-align: left !important;
}

.site footer.pied-de-page * {
  box-sizing: border-box;
}

.site footer.pied-de-page > .container {
  display: block !important;
  width: min(calc(100% - 48px), 1740px) !important;
  max-width: 1740px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.site footer.pied-de-page .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) !important;
  gap: 38px !important;
  width: 100%;
}

.site footer.pied-de-page .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.site footer.pied-de-page h3 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-align: left;
}

.site footer.pied-de-page a {
  display: block;
  margin: 7px 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site footer.pied-de-page a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site footer.pied-de-page a:focus-visible {
  outline: 3px solid #ff7657;
  outline-offset: 4px;
}

.site footer.pied-de-page a.brand {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  text-decoration: none;
}

.site footer.pied-de-page .brand-logo-footer {
  display: block;
  flex: none;
  width: 82px !important;
  height: 82px !important;
  margin: 0;
  border: 0;
  border-radius: 50%;
  object-fit: contain;
}

.site footer.pied-de-page .brand-name {
  display: block;
  min-width: 0;
  transform: none !important;
}

.site footer.pied-de-page .brand-name strong {
  display: block !important;
  margin: 0 0 5px;
}

.site footer.pied-de-page .brand-name small {
  display: block !important;
}

.site footer.pied-de-page p {
  margin: 0;
  max-width: 360px;
}

.site footer.pied-de-page .footer-bottom {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 45px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ===== RÉGLAGES ÉCRANS : TABLETTE ET MOBILE | (max-width:1050px) ===== */
@media (max-width:1050px) {
  .site footer.pied-de-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }
}

/* ===== RÉGLAGES ÉCRANS : MOBILE | (max-width:600px) ===== */
@media (max-width:600px) {
  .site footer.pied-de-page {
    margin-top: 36px !important;
    padding: 34px 0 24px !important;
  }

  .site footer.pied-de-page > .container {
    width: calc(100% - 40px) !important;
  }

  .site footer.pied-de-page .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .site footer.pied-de-page .footer-bottom {
    flex-direction: column;
    margin-top: 30px !important;
  }

  .site footer.pied-de-page .brand-logo-footer {
    width: 64px !important;
    height: 64px !important;
  }
}

body.site > main:has(.final-cta:last-child) + footer.pied-de-page {
  margin-top: 0 !important;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-name strong {
  font-size: 14.08px;
  line-height: 1.15;
  letter-spacing: .035em;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-name small {
  color: #48cae9;
  font-size: 9.6px;
  line-height: 1.2;
  letter-spacing: .12em;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:first-child > p {
  color: #b9cbd4;
  font-size: 15.04px;
  line-height: 1.55;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer h3 {
  font-size: 12.48px;
  line-height: 1.2;
  letter-spacing: .13em;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer a:not(.brand) {
  color: #c5d5dc;
  font-size: 13.92px;
  line-height: 1.35;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:last-child a:not(.brand) {
  color: #fff;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-bottom {
  color: #8fa7b3;
  font-size: 11.52px;
  line-height: 1.45;
}

/* ===== RÉGLAGES ÉCRANS : MOBILE | (max-width:370px) ===== */
@media (max-width:370px) {
  html.affichage-mobile :is(.rubrique-accueil,
     
     .rubrique-identite,
     
     .rubrique-parcours,
     
     .rubrique-photos-videos,
     
     .rubrique-recherche) .footer .brand-name strong {
    font-size: 12.48px;
  }
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer {
  padding: 34px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 4px solid #0a89b5;
  background: radial-gradient(circle at 100%0, rgba(26, 153, 195, .18), transparent 34%), #071f31;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer > .container {
  width: min(100% - 36px, 560px);
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:first-child,
html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:last-child {
  grid-column: 1/-1;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 0;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-logo-footer {
  width: 58px;
  height: 58px;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-name {
  display: grid;
  gap: 4px;
  min-width: 0;
  transform: none;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-name strong,
html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer .brand-name small {
  white-space: nowrap;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:first-child > p {
  max-width: 34rem;
  margin: 16px 0 0;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer h3 {
  position: relative;
  margin: 0 0 13px;
  padding-bottom: 10px;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #ff7259;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer a:not(.brand) {
  margin: 0;
  padding: 6px 0;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:last-child h3 {
  flex: 0 0 100%;
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-grid > div:last-child a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

html.affichage-mobile :is(.rubrique-accueil,
 
 .rubrique-identite,
 
 .rubrique-parcours,
 
 .rubrique-photos-videos,
 
 .rubrique-recherche) .footer-bottom {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding-top: 18px;
  border-top-color: rgba(255, 255, 255, .14);
  text-align: center;
}

/* ===== RÉGLAGES ÉCRANS : MOBILE | (max-width:370px) ===== */
@media (max-width:370px) {
  html.affichage-mobile :is(.rubrique-accueil,
     
     .rubrique-identite,
     
     .rubrique-parcours,
     
     .rubrique-photos-videos,
     
     .rubrique-recherche) .footer-grid {
    grid-template-columns: 1fr;
  }

  html.affichage-mobile :is(.rubrique-accueil,
     
     .rubrique-identite,
     
     .rubrique-parcours,
     
     .rubrique-photos-videos,
     
     .rubrique-recherche) .footer-grid > div {
    grid-column: 1;
  }
}

