/* FRANCE NUMERIQUE / Home R6.2.5 — CANDIDAT MOBILE SANS TEMOIN
   Pas de modification des styles globaux, du CMS Builder, des modales ou du header.
   Active seulement sur la Home du clone lorsque le chargeur Blade R6.2.5 est installe.
   Autres pages et ecrans > 640px non concernes.
   Le test a ete calcule sous Chromium pour 320, 375, 390 et 430 CSS px.
*/
@media screen and (max-width: 640px) {

  /* PARTENAIRES : titre + rail sur deux lignes ; intro reste cliquable. */
  #partner-topbar > .container { padding-inline: .85rem; }
  #partner-topbar > .container > .flex {
    display: grid; min-height: 0;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "intro" "logos";
    column-gap: 0; row-gap: .34rem;
    padding-block: .55rem .6rem;
  }
  #partner-topbar > .container > .flex > a.partner-topbar-link:first-child {
    display: inline-flex; width: fit-content; max-width: 100%;
    gap: .6rem; padding: 0; margin: 0; border: 0;
  }
  #partner-topbar > .container > .flex > a.partner-topbar-link:first-child > span:first-child {
    width: 2.3rem; height: 2.3rem; flex: 0 0 2.3rem; border-radius: .7rem;
  }
  #partner-topbar > .container > .flex > a.partner-topbar-link:first-child > span:last-child > span:first-child {
    font-size: .57rem; line-height: 1.22; letter-spacing: .12em;
  }
  #partner-topbar > .container > .flex > a.partner-topbar-link:first-child > span:last-child > span:last-child {
    font-size: .86rem; line-height: 1.22; letter-spacing: -.02em;
  }
  #partner-topbar > .container > .flex > a.partner-topbar-link:last-child {
    display: none;
  }
  #partner-topbar .partner-topbar-scroll-shell { width: 100%; }
  #partner-topbar .partner-topbar-track {
    padding: .14rem .8rem .18rem 0; gap: .46rem;
  }
  #partner-topbar .partner-topbar-logo {
    width: 5.4rem; height: 2.45rem; border-radius: .65rem; padding: .35rem .55rem;
  }
  #partner-topbar .partner-topbar-logo img { max-height: 1.5rem; max-width: 100%; }

  /* HERO : toutes les fonctionnalites historiques conservees. */
  #fn-home-page .fn-home-hero {
    height: clamp(500px, 123vw, 555px);
    min-height: 500px;
  }
  #fn-home-page .fn-home-hero .fn-home-hero__content-layer { align-items: flex-start; }
  #fn-home-page .fn-home-hero #heroMainContent {
    box-sizing: border-box; width: calc(100% - 1.85rem); max-width: 100%;
    margin: 1rem .925rem 0; padding: 0;
    align-items: flex-start; justify-content: flex-start;
  }
  #fn-home-page .fn-home-hero .hero-reveal--video { margin-bottom: .55rem; }
  #fn-home-page .fn-home-hero #openFranceNumeriqueVideo {
    gap: .52rem; padding-block: 0;
  }
  #fn-home-page .fn-home-hero #openFranceNumeriqueVideo > span:first-child {
    width: 2.45rem; height: 2.45rem; flex: 0 0 2.45rem;
  }
  #fn-home-page .fn-home-hero #openFranceNumeriqueVideo > span:first-child > span:last-child {
    width: 2.18rem; height: 2.18rem;
  }
  #fn-home-page .fn-home-hero #openFranceNumeriqueVideo > span:last-child > span:first-child {
    font-size: .56rem; line-height: 1.2;
  }
  #fn-home-page .fn-home-hero #openFranceNumeriqueVideo > span:last-child > span:last-child {
    font-size: .64rem; line-height: 1.22;
  }
  #fn-home-page .fn-home-hero .hero-reveal--subtitle { margin-bottom: .58rem; }
  #fn-home-page .fn-home-hero .hero-reveal--subtitle > span {
    font-size: clamp(.79rem, 2.9vw, .92rem); line-height: 1.3;
  }
  #fn-home-page .fn-home-hero .hero-reveal--title {
    font-size: clamp(1.32rem, 5.6vw, 1.55rem);
    line-height: 1.12; letter-spacing: -.043em;
    margin-bottom: .68rem; overflow-wrap: break-word;
  }
  #fn-home-page .fn-home-hero .hero-reveal--actions {
    display: flex; flex-direction: row; flex-wrap: wrap;
    align-items: stretch; justify-content: flex-start;
    gap: .48rem; margin-top: 0;
  }
  #fn-home-page .fn-home-hero .fn-home-btn {
    min-height: 44px; padding: .55rem .72rem;
    font-size: clamp(.73rem, 2.8vw, .82rem);
    line-height: 1.25; border-radius: .72rem;
    max-width: 100%; white-space: normal; text-align: center;
  }
  #fn-home-page .fn-home-hero .fn-home-btn > i {
    margin-right: .18rem; font-size: .92em;
  }
  #fn-home-page .fn-home-hero .fn-home-hero__slider-controls {
    left: 50%; bottom: .45rem; transform: translateX(-50%);
    padding: .1rem .23rem; gap: .05rem;
    max-width: calc(100% - 1.1rem);
  }
  #fn-home-page .fn-home-hero .fn-home-hero__dot { width: 1.25rem; height: 1.7rem; }
  #fn-home-page .fn-home-hero .fn-home-hero__toggle { min-height: 34px; }

  /* Solutions : tailles souples ; rien ne change au-dessous du header commun. */
  #fn-home-page #solutions-techniques { padding-block: 2.15rem; }
  #fn-home-page #solutions-techniques > .container { padding-inline: .9rem; }
  #fn-home-page #solutions-techniques .grid { gap: .75rem; }
  #fn-home-page #solutions-techniques .tech-box { padding: 1rem .85rem; }
  #fn-home-page #solutions-techniques .tech-box > div:first-child {
    width: 2.9rem; height: 2.9rem; border-radius: .8rem;
    margin-bottom: .75rem; font-size: 1.3rem;
  }
  #fn-home-page #solutions-techniques .tech-box h3 { font-size: .92rem; line-height: 1.27; }
  #fn-home-page #solutions-techniques .tech-box p { font-size: .78rem; line-height: 1.43; }
  #fn-home-page #produits-premium > .container > h2 {
    font-size: clamp(1.42rem, 5.4vw, 1.8rem); line-height: 1.16;
  }
}
@media screen and (min-width: 380px) and (max-width: 640px) {
  #fn-home-page #solutions-techniques .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media screen and (max-width: 359px) {
  #fn-home-page .fn-home-hero { height: 530px; min-height: 530px; }
  #fn-home-page .fn-home-hero .hero-reveal--actions { flex-direction: column; align-items: flex-start; }
  #fn-home-page .fn-home-hero .fn-home-btn { width: auto; }
}
