/* LOGO DE MARQUE — version HTML/CSS fournie par le client */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 600 700;
  font-display: block;
  src: url('../fonts/bodoni-moda-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

.ff-brand {
  --ff-size: 100px; /* échelle générale du logo */
  --ff-navy: #0b2446;
  --ff-blue: #0b35a5;
  --ff-red: #e62b3d;
  --ff-bg: #fff;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: .08em;
  color: var(--ff-navy);
  font-size: var(--ff-size);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ff-brand *, .ff-brand *::before, .ff-brand *::after { box-sizing: border-box; }

.ff-brand__seal {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 1.16em;
  height: 1.16em;
  isolation: isolate;
}

/* Cercle vectoriel avec encoches tricolores à droite. */
.ff-brand__seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--ff-navy) 0deg 65deg,
    transparent 65deg 69deg,
    var(--ff-blue) 69deg 80deg,
    transparent 80deg 99deg,
    var(--ff-red) 99deg 116deg,
    transparent 116deg 120deg,
    var(--ff-navy) 120deg 360deg
  );
  /* Le masque découpe uniquement l'anneau : il n'y a aucune image raster. */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .055em), #000 calc(100% - .053em));
  mask: radial-gradient(farthest-side, transparent calc(100% - .055em), #000 calc(100% - .053em));
}

.ff-brand__initial {
  position: relative;
  top: -.004em;
  left: -.02em;
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni MT', 'GFS Didot', Georgia, serif;
  font-size: 1.02em;
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1;
}

.ff-brand__right {
  display: inline-flex;
  flex-direction: column;
  flex: none;
  align-items: stretch;
  position: relative;
  transform: translateY(.10em);
}

.ff-brand__name {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni MT', 'GFS Didot', Georgia, serif;
  font-size: .585em;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}

/* Ruban horizontal fin bleu / blanc / rouge, raccords biseautés. */
.ff-brand__stripe {
  display: flex;
  width: 85%;
  height: .07em;
  margin-top: .02em;
  margin-left: 8.5%;
}
.ff-brand__stripe-blue {
  flex: 0 0 37.5%;
  background: var(--ff-blue);
  clip-path: polygon(0 0,100% 0,95% 100%,0 100%);
}
.ff-brand__stripe-blank { flex: 0 0 25%; }
.ff-brand__stripe-red {
  flex: 0 0 37.5%;
  background: var(--ff-red);
  clip-path: polygon(5% 0,100% 0,100% 100%,0 100%);
}

/* Tailles adaptées au contexte : au zoom, aucune perte de définition. */
.ff-brand--header { --ff-size: 35px; }
.ff-brand--footer { --ff-size: 47px; }

@media (max-width: 520px) {
  .ff-brand--header { --ff-size: 26px; }
  .ff-brand--footer { --ff-size: 36px; }
}


/* ADAPTATIONS AU SITE — ajouts, le fichier fourni s'arrête ci-dessus */
.nav-logo .ff-brand        { --ff-size: 49px; }
.footer-logo-wrap .ff-brand{ --ff-size: 44px; }
.tn-logo .ff-brand         { --ff-size: 36px; }


@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo .ff-brand { --ff-size: 33px; }
}
@media (max-width: 768px) {
  
  .nav-logo .ff-brand { --ff-size: clamp(22px, calc(18.4vw - 27px), 41px); }
}

.ff-brand__stripe-blank { background: var(--ff-bg); }


.footer-logo-wrap .ff-brand {
  --ff-navy: #ffffff;
  --ff-blue: #8585F6;
}

.ff-brand__seal::before { display: none; }
.ff-brand__initial { display: none; }

.ff-brand__mono {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.406em;
  height: 1.406em;
  transform: translate(-50%, -50%);
  background: url('../img/monogramme-f.svg') center / contain no-repeat;
  pointer-events: none;
}

/* Sur le fond sombre du pied de page, la même image en blanc. */
.footer-logo-wrap .ff-brand__mono {
  background-image: url('../img/monogramme-f-blanc.svg');
}


.ff-brand__name {
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 8, 'wght' 700;
}

.ff-brand { cursor: pointer; }
