/* Bloc d'appel du bas de page (accueil, Le duo, pages services et métiers, Tous les métiers).
   Version finale du 13/10/2026 (consigne d'Emma) : une carte unie bleu marine, sans dégradé ni flou ; puis (retours d'Emma,
   même soir) le « bouton orange » du site, des angles plus arrondis, du relief, une photo plus grande, le dégradé de la
   charte sur les boutons de contact au survol (sur téléphone, boutons normaux) et moins d'espace avant le pied de page.
   - Ordinateur : à gauche, alignés à gauche, la photo et « Tommy et Emma, LocaLeads », le titre (« Et vous ? » en orange),
     le slogan jaune animé, le bouton orange plein, puis les 3 boutons à contour (Nous appeler, WhatsApp, E-mail) ;
     à droite un mini résultat Google dans une carte blanche (barre de recherche, 3 concurrents, « Votre entreprise ? »).
   - Animation (le slogan pilote l'illustration), un cycle de 6 s, environ 3 s par état :
       état 1 : « Vous faites votre métier. », « Votre entreprise ? » en 4e position, en pointillés ;
       état 2 : « On s'occupe du reste. », la ligne remonte à la 1re place (les concurrents descendent d'un rang)
                et devient pleine orange, « Votre entreprise ★★★★★ ».
     Tout est en transform (rien ne bouge autour). Toutes les animations ont la même durée et le même départ
     (-0,8 s : on commence au repos de l'état 1) : elles restent calées entre elles. Elles sont en pause tant que
     le bloc n'est pas à l'écran (classe est-visible posée par le petit script juste après le bloc).
   - Téléphone : tout empilé (photo et prénoms, titre, slogan, illustration plus petite, bouton orange pleine largeur,
     boutons à contour).
   L'id CTA-Form est gardé sur la carte pour les anciens liens. */
.ll-appel {
  --pas: 3.1rem;                         /* hauteur d'une ligne du résultat Google + écart : le pas d'un rang */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  grid-template-rows: 1fr repeat(5, auto) 1fr;
  grid-template-areas:
    ".        illus"
    "id       illus"
    "titre    illus"
    "slogan   illus"
    "orange   illus"
    "contacts illus"
    ".        illus";
  column-gap: 3.5rem;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto 3.5rem;
  padding: 3rem 3.5rem;
  border: 1px solid #ffffff1f;
  border-radius: var(--_radius---radius-3xl);   /* 3 rem */
  background-color: #12304b;            /* le bleu marine foncé du site (titres, encadrés « Nos engagements ») */
  /* du relief : l'ombre portée des encadrés foncés du site, un liseré clair en haut et un léger creux en bas */
  box-shadow: 0 40px 70px -36px #0b1f33e6, 0 14px 30px -18px #0b1f3366, inset 0 1px 0 #ffffff26, inset 0 -3px 0 #00000033;
  color: #fff;
  font-family: var(--font-family--text);
}

/* ---- photo et prénoms ---- */
.ll-appel-id {
  grid-area: id;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  color: #ffffffa6;
  font-size: .9rem;
  line-height: 1.3;
}

.ll-appel-photo {
  flex: none;
  display: block;
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- titre : la fin en orange ---- */
.ll-appel-titre {
  grid-area: titre;
  margin: 0 0 .9rem;
  color: #fff;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.ll-appel-titre span {
  color: #ff6b35;
}

/* ---- le slogan jaune animé ----
   même effet que les mots de l'écran d'entrée de l'accueil (css/entree.css) : la phrase sort par le haut pendant que
   la suivante entre par le bas, dans une fenêtre (0,18 s, même courbe). Les deux phrases sont empilées dans la même
   case de grille : la fenêtre prend la hauteur de la plus haute, le bloc ne saute pas quand la phrase change.
   Lecteurs d'écran : le slogan complet est lu une fois (.ll-cache) ; la partie animée est en aria-hidden. */
.ll-appel-slogan {
  grid-area: slogan;
  margin: 0 0 1.6rem;
  color: #ffd580;
  font-family: Parkinsans, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.ll-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ll-defile {
  display: grid;
  overflow: hidden;
}

/* chaque phrase a une case un peu plus haute que sa ligne, pour que les jambages (« p » d'occupe) ne soient pas coupés */
.ll-defile-case {
  grid-area: 1 / 1;
  padding-bottom: .12em;
  animation: ll-defile 6s -.8s infinite;
}

.ll-defile-case + .ll-defile-case {
  animation-delay: -3.8s;
}

@keyframes ll-defile {
  /* entre par le bas (0,18 s = 3 %), reste 2,8 s, sort par le haut, attend sous la fenêtre pendant l'autre phrase */
  0% { transform: translateY(100%); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  3% { transform: translateY(0); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
  53% { transform: translateY(-100%); }
  53.01% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---- le mini résultat Google ---- */
.ll-g {
  grid-area: illus;
  align-self: center;
  padding: 1.1rem;
  border-radius: 16px;
  background-color: #fff;
  color: #3c4043;
  font-family: var(--font-family--text);
}

.ll-g-recherche {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  padding: .6rem .95rem;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.3;
}

.ll-g-recherche svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  color: #5f6368;
}

.ll-g-liste {
  display: grid;
  grid-auto-rows: 2.6rem;
  row-gap: .5rem;                         /* 2,6 rem + 0,5 rem = --pas */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* une ligne de concurrent : une barre grise à la place du nom, et ses étoiles */
.ll-g-ligne {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .85rem;
  border: 1px solid #e8ebef;
  border-radius: .7rem;
  background-color: #fff;
  animation: ll-g-concurrent 6s -.8s infinite;
}

.ll-g-ligne i {
  width: 58%;
  height: .55rem;
  border-radius: 999px;
  background-color: #e3e7ec;
}

.ll-g-ligne i.moyen { width: 48%; }
.ll-g-ligne i.court { width: 40%; }

.ll-g-ligne > b {
  margin-left: auto;
  color: #fbbc04;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* la ligne « Votre entreprise » : deux couches superposées (pointillés / pleine orange), au-dessus des autres
   quand elle les croise en remontant */
.ll-g-ligne.ll-g-vous {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: stretch;                  /* les deux couches prennent toute la hauteur de la ligne */
  padding: 0;
  border: 0;
  background: none;
  animation-name: ll-g-vous;
}

.ll-g-pointilles,
.ll-g-plein {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .85rem;
  border-radius: .7rem;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

.ll-g-pointilles {
  border: 2px dashed #ff6b35;
  background-color: #fff;
  color: #d4491a;
  animation: ll-g-pointilles 6s -.8s infinite;
}

.ll-g-plein {
  border: 2px solid #ff6b35;
  background-color: #ff6b35;
  color: #fff;
  opacity: 0;
  animation: ll-g-plein 6s -.8s infinite;
}

.ll-g-plein b {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
}

/* « Votre entreprise » : 4e place (état 1) → 1re place (état 2) en 0,8 s, puis retour */
@keyframes ll-g-vous {
  0% { transform: translateY(calc(-3 * var(--pas))); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  13.33% { transform: translateY(0); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  63.33% { transform: translateY(calc(-3 * var(--pas))); }
  100% { transform: translateY(calc(-3 * var(--pas))); }
}

/* les 3 concurrents descendent d'un rang pendant l'état 2 */
@keyframes ll-g-concurrent {
  0% { transform: translateY(var(--pas)); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  13.33% { transform: translateY(0); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  63.33% { transform: translateY(var(--pas)); }
  100% { transform: translateY(var(--pas)); }
}

/* la ligne passe des pointillés à la pleine orange en montant (0,4 s), et revient en redescendant */
@keyframes ll-g-plein {
  0% { opacity: 1; }
  6.67% { opacity: 0; }
  50% { opacity: 0; }
  56.67% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes ll-g-pointilles {
  0% { opacity: 0; }
  6.67% { opacity: 1; }
  50% { opacity: 1; }
  56.67% { opacity: 0; }
  100% { opacity: 0; }
}

/* en pause tant que le bloc n'est pas à l'écran (on voit alors l'état 1) */
.ll-appel:not(.est-visible) :is(.ll-defile-case, .ll-g-ligne, .ll-g-pointilles, .ll-g-plein) {
  animation-play-state: paused;
}

/* ---- le « bouton orange » du site (classes .button.contact-button, comme le bouton d'appel du haut de l'accueil) :
   ici on ne règle que sa place ; son texte est animé lettre par lettre, il doit tenir sur une ligne ---- */
.ll-appel-orange {
  grid-area: orange;
  justify-self: start;
  margin-bottom: .9rem;
}

.ll-appel-orange .button-text {
  white-space: nowrap;
}

/* ---- les 3 boutons à contour, plus petits, sur une ligne (sur deux si la place manque) ---- */
.ll-appel-contacts {
  grid-area: contacts;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ll-appel-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-height: 2.6rem;
  padding: 0 .95rem;
  border: 1px solid #ffffff59;
  border-radius: .6rem;
  background-color: transparent;
  color: #fff;
  font-size: .92rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), border-color .6s ease, color .6s ease;
}

/* au survol, le dégradé identité visuelle de la charte (celui du CTA dégradé et des boutons réseaux de la page
   contact) apparaît en fondu derrière le bouton, et le texte passe en foncé pour rester lisible */
.ll-appel-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 0 0, #ff6b35 0%, #ffd580 35%, #b3e2ff 65%, #1f4e79);
  opacity: 0;
  transition: opacity .8s ease;
}

@media (hover: hover) {
  .ll-appel-contact:hover {
    transform: translateY(-3px);
    border-color: #ffffffb3;
    color: #1a1a1a;
  }

  .ll-appel-contact:hover::before {
    opacity: 1;
  }
}

.ll-appel-contact:focus-visible {
  transform: translateY(-3px);
  border-color: #ffffffb3;
  color: #1a1a1a;
}

.ll-appel-contact:focus-visible::before {
  opacity: 1;
}

.ll-appel-contact svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

/* ---- espace entre la carte et le pied de page : la zone de la carte ne fait plus la hauteur de l'écran
   (environ 250 px d'espace avant) ; réduit à 56 px puis réagrandi à la demande d'Emma : environ 150 px ---- */
.footer-top.ll-appel-zone {
  min-height: 0;
  padding-bottom: 6rem;
}

@media screen and (max-width: 767px) {
  .footer-top.ll-appel-zone {
    padding-bottom: 4rem;
  }
}

/* ---- tablette : l'illustration un peu plus étroite ---- */
@media screen and (max-width: 991px) {
  .ll-appel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
    column-gap: 2.25rem;
    padding: 2.75rem;
  }
}

/* ---- téléphone : tout empilé et centré ---- */
@media screen and (max-width: 767px) {
  .ll-appel {
    --pas: 2.75rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "id"
      "titre"
      "slogan"
      "illus"
      "orange"
      "contacts";
    justify-items: center;
    margin-bottom: 2.5rem;
    padding: 2.25rem 1.5rem;
    border-radius: var(--_radius---radius-2xl);   /* 2 rem */
    text-align: center;
  }

  .ll-appel-photo {
    width: 64px;
    height: 64px;
  }

  .ll-appel-titre {
    font-size: 1.75rem;
  }

  .ll-appel-slogan {
    margin-bottom: 1.4rem;
    font-size: 1.3rem;
  }

  .ll-g {
    justify-self: stretch;
    max-width: 20rem;
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: .9rem;
    text-align: left;
  }

  .ll-g-liste {
    grid-auto-rows: 2.3rem;
    row-gap: .45rem;                     /* 2,3 rem + 0,45 rem = --pas */
  }

  .ll-g-recherche,
  .ll-g-pointilles,
  .ll-g-plein {
    font-size: .85rem;
  }

  .ll-appel-orange {
    justify-self: stretch;
  }

  .ll-appel-orange .button-inner {
    justify-content: center;
    width: 100%;
  }

  .ll-appel-contacts {
    justify-content: center;
  }

}

/* très petits écrans */
@media screen and (max-width: 359px) {
  .ll-appel {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ll-appel-orange .button-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* « réduire les animations » : rien ne bouge, l'état 2 directement et le slogan complet sur deux lignes */
@media (prefers-reduced-motion: reduce) {
  .ll-defile {
    display: block;
  }

  .ll-defile-case {
    display: block;
    padding-bottom: 0;
    animation: none;
    transform: none;
  }

  .ll-g-ligne {
    animation: none;
    transform: translateY(var(--pas));
  }

  .ll-g-ligne.ll-g-vous {
    animation: none;
    transform: translateY(calc(-3 * var(--pas)));
  }

  .ll-g-pointilles {
    animation: none;
    opacity: 0;
  }

  .ll-g-plein {
    animation: none;
    opacity: 1;
  }

  .ll-appel-contact,
  .ll-appel-contact::before {
    transition: none;
  }

  .ll-appel-contact:hover,
  .ll-appel-contact:focus-visible {
    transform: none;
  }
}
