/* ===========================================================
   apple-lyon.com - En-tête et pied de page façon zone-help.com
   ---------------------------------------------------------
   Chargé APRÈS bootstrap.css / style.css / responsive.css.
   Toutes les règles sont volontairement limitées à .topbar,
   header.site-header, .mobile-nav et footer.sos-footer pour
   ne rien changer au reste des pages (template Bootstrap).
   =========================================================== */

:root{
  --navy: #155263;
  --navy-dark: #262b2d;
  --topbar-black: #000000;
  --accent: #ff6f3c;
  --maxw: 1180px;
}

/* ---------- Conteneur commun ---------- */
.topbar .wrap,
header.site-header .wrap,
footer.sos-footer .wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.topbar *, .topbar *::before, .topbar *::after,
header.site-header *, header.site-header *::before, header.site-header *::after,
.mobile-nav *, footer.sos-footer *, footer.sos-footer *::before, footer.sos-footer *::after{
  box-sizing: border-box;
}
.topbar a, header.site-header a, .mobile-nav a, footer.sos-footer a{
  color: inherit;
  text-decoration: none;
}
.topbar ul, header.site-header ul, .mobile-nav ul, footer.sos-footer ul{
  margin: 0; padding: 0; list-style: none;
}
.topbar img, footer.sos-footer img{ max-width: 100%; }
.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Barre du haut ---------- */
.topbar{
  background: var(--topbar-black);
  color: #ffffff;
  font-size: .85rem;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  max-width: var(--maxw);
  margin: 0 auto;
}
.topbar-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 20px;
  gap: 12px;
}
.topbar-brand{
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 10px 0;
}
.topbar-brand:hover{ color: var(--accent); }
/* Pas de logo : c'est la ligne de texte qui tient ce rôle */
.topbar-brand .brand-title{
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
}
.topbar-brand .breadcrumb-line{
  font-size: .78rem;
  font-weight: 400;
  opacity: .8;
  width: 100%;
  text-align: left;
}
.topbar-right{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-top: 10px;
}
.topbar-contact{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar-tel{ display: inline-flex; }
.topbar-tel a{ color: #fff; font-weight: 600; }
.topbar-tel a:hover{ color: var(--accent); }

/* ---------- Cartouche téléphone + mention tarifaire ARCEP ---------- */
.phone-card{
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cccccc;
  background: #fff;
  padding: 4px 0 4px 4px;
  margin-bottom: 10px;
}
.phone-card-num{
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 1.5px;
  padding: 6px 14px 6px 16px;
  display: flex;
  align-items: center;
}
.arcep{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: #889094;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 5px 10px 5px 12px;
  margin-left: 16px;
  vertical-align: middle;
  white-space: nowrap;
}
.arcep::before{
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  height: 100%;
  width: 10px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpolygon points='10,0 0,50 10,100' fill='%23889094'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.arcep-a, .arcep-b{ display: block; }
.phone-card .arcep{
  font-size: .72rem;
  padding: 9px 14px 9px 12px;
  margin-left: 18px;
}
.phone-card .arcep::before{ left: -13px; width: 13px; }
/* Version compacte : bandeau du haut et pied de page */
.phone-card-top{
  margin-left: 0;
  margin-right: 0;
  padding: 2px 0 2px 2px;
  vertical-align: middle;
}
.phone-card-top .phone-card-num{
  font-size: .82rem;
  letter-spacing: .5px;
  padding: 3px 8px 3px 10px;
  color: #111 !important;
  text-decoration: none;
}
.phone-card-top .arcep{
  font-size: .5rem;
  line-height: 1.2;
  padding: 4px 9px 4px 8px;
  margin-left: 12px;
}
.phone-card-top .arcep::before{ left: -9px; width: 9px; }
.topbar-contact .phone-card-top{ margin-bottom: 2px; }

/* Ligne mobile alignée sous le numéro fixe encadré */
.topbar-mobile-line{
  display: inline-flex;
  position: relative;
  align-items: center;
  color: #fff;
  font-size: .85rem;
  margin-top: 2px;
  padding-left: 13px;
}
.topbar-mobile-line a{ color: #fff; font-weight: 600; }
.topbar-mobile-line a:hover{ color: var(--accent); }
.topbar-mobile-line .mobile-ic{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #8ab4c4;
  display: inline-flex;
}
.topbar-mobile-line .mobile-ic svg{ width: 100%; height: 100%; }

/* ---------- Barre de menu ---------- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  box-shadow: 0 0 5px 0 rgba(0,0,0,.25);
  max-width: var(--maxw);
  margin: 0 auto;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}
header.site-header .sos-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  margin-left: -14px;
}
/* La remise a zero plus haut (header.site-header a { color: inherit }) est plus
   specifique que .nav-links a : les couleurs du menu sont donc ecrites avec le
   meme prefixe, sinon les liens heritent de la couleur du texte courant. */
header.site-header .nav-links a{
  padding: 10px 14px;
  font-weight: 500;
  font-size: .92rem;
  color: #ffffff;
  transition: color .15s;
  white-space: nowrap;
}
header.site-header .nav-links a:hover,
header.site-header .nav-links a.active{ color: var(--accent); }
.nav-cta{ display: flex; align-items: center; gap: 14px; margin-left: auto; }
header.site-header .nav-email{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
}
header.site-header .nav-email:hover{ color: var(--accent); }
.nav-email svg{ width: 21px; height: 21px; }
.menu-toggle{
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
}

/* ---------- Menu mobile ---------- */
.mobile-nav{
  display: none;
  position: fixed; inset: 0;
  background: var(--navy-dark);
  z-index: 100;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.mobile-nav.open{ display: block; }
.mobile-nav .close-btn{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  background: var(--navy-dark);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 18px 24px 14px;
  cursor: pointer;
  z-index: 2;
}
.mobile-nav ul{
  margin: 0;
  padding: 0 24px 40px;
  display: grid;
  gap: 2px;
}
.mobile-nav ul a{
  display: block;
  padding: 13px 6px;
  font-size: 1.02rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav ul a:hover{ color: var(--accent); }

/* ---------- Pied de page ---------- */
footer.sos-footer{
  background: var(--navy);
  color: #ffffff;
  padding-top: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}
footer.sos-footer .footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
footer.sos-footer .footer-grid h4{
  color: #fff; font-size: .74rem; font-weight: 600; margin: 0 0 10px;
}
footer.sos-footer .footer-grid p{
  font-size: .7rem; color: #ffffff; line-height: 1.35; margin: 0;
}
footer.sos-footer .footer-note{
  font-size: .64rem !important;
  font-style: italic;
  color: #cfe4e9 !important;
  margin-top: 4px;
  margin-bottom: 12px;
}
/* Aère la mention « Pour vos PC... » du bloc de présentation (à gauche) :
   on la décolle du paragraphe au-dessus. Ciblé au 1er bloc pour ne pas
   toucher la note de la colonne Contact. */
footer.sos-footer .footer-grid > div:first-child .footer-note{ margin-top: 12px; }
/* La règle « .footer-grid p { margin: 0 } » ci-dessus écrasait les marges de
   la note : on les rétablit avec un sélecteur au moins aussi spécifique,
   pour que la mention italique respire entre l'adresse et les téléphones. */
footer.sos-footer .footer-grid p.footer-note{
  margin-top: 8px;
  margin-bottom: 12px;
}
footer.sos-footer .footer-grid ul li{ margin-bottom: 1px; }
footer.sos-footer .footer-grid ul li a{
  font-size: .7rem; color: #ffffff; transition: color .15s; line-height: 1.5; display: block;
}
footer.sos-footer .footer-grid ul li a:hover{ color: var(--accent); }
/* Colonne Liens sur deux colonnes, comme zone-help.com. La liste est
   longue (21 liens) : deux colonnes évitent un pied de page trop haut.
   break-inside empêche qu'un lien soit coupé entre les deux colonnes. */
footer.sos-footer .footer-links{ columns: 2; column-gap: 28px; }
footer.sos-footer .footer-links li{ break-inside: avoid; -webkit-column-break-inside: avoid; }
@media (max-width: 900px){
  footer.sos-footer .footer-links{ columns: 2; column-gap: 20px; }
}
@media (max-width: 520px){
  footer.sos-footer .footer-links{ columns: 1; }
}
footer.sos-footer .footer-logo{
  font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 14px;
}
footer.sos-footer .ft-ic{
  display: inline-flex;
  width: 15px; height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  color: #cfe4e9;
}
footer.sos-footer .ft-ic svg{ width: 100%; height: 100%; }
footer.sos-footer .ft-ic-spacer{ display: inline-block; width: 23px; }
footer.sos-footer .ft-sep{ display: inline-block; margin: 0 8px; opacity: .5; }
footer.sos-footer .footer-map img{
  margin-top: 12px;
  border-radius: 5px;
  width: 100%;
  height: auto;
}
footer.sos-footer .footer-bottom{
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: .66rem;
  border-top: 1px solid rgba(255,255,255,.4);
  text-align: center;
}
footer.sos-footer .footer-siren{
  display: block;
  font-size: .6rem;
  color: #a8bfc7;
  line-height: 1.5;
}
footer.sos-footer .footer-legal{
  display: block;
  margin-top: 0;
  font-size: .62rem;
}
footer.sos-footer .footer-legal a{ color: #b9cbd2; }
footer.sos-footer .footer-legal a:hover{ color: var(--accent); }
footer.sos-footer .footer-areas{
  /* Inter en graisse normale : Poppins n'est chargee qu'en 600+, ce bloc
     apparaissait donc en semi-gras et pesait comme un vrai paragraphe.
     Reglage identique a zone-help.com. */
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: .62rem;
  color: #b9cdd4;
  line-height: 1.75;
  padding: 18px 0 34px;
  text-align: justify;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  footer.sos-footer .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .nav-links{ display: none; }
  .menu-toggle{ display: block; }
  footer.sos-footer .footer-grid{ grid-template-columns: 1fr; }
  .topbar-row{ flex-direction: column; align-items: flex-start; }
}

/* Le gabarit d'origine imposait une hauteur d'ecran entiere au bloc qui
   contenait l'en-tete : inutile avec le nouveau bandeau, plus compact. */
.hero_area{ min-height: auto; }

/* ---------- Sous-menus du bandeau (comme zone-help) ---------- */
/* Prefixes par header.site-header : la remise a zero du haut de ce fichier
   est plus specifique que .nav-dropdown-menu a, elle gagnerait sinon. */
header.site-header .nav-dropdown{ position: relative; }
header.site-header .nav-dropdown-trigger{
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-weight: 500;
  font-size: .92rem;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
header.site-header .nav-dropdown-trigger:hover,
header.site-header .nav-dropdown-trigger.active{ color: var(--accent); }
header.site-header .nav-dropdown-trigger .chevron{
  font-size: .7rem;
  transition: transform .15s ease;
}
header.site-header .nav-dropdown.open .nav-dropdown-trigger .chevron{ transform: rotate(180deg); }
header.site-header .nav-dropdown-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  min-width: 270px;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 60;
}
header.site-header .nav-dropdown:hover .nav-dropdown-menu,
header.site-header .nav-dropdown.open .nav-dropdown-menu{ display: block; }
header.site-header .nav-dropdown-menu a{
  display: block;
  padding: 10px 12px;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}
header.site-header .nav-dropdown-menu a:hover,
header.site-header .nav-dropdown-menu a.active{
  background: rgba(255,255,255,.08);
  color: var(--accent);
}

/* ---------- Groupes du menu mobile ---------- */
.mobile-nav .mnav-group{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 22px 6px 6px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  margin-bottom: 4px;
}
.mobile-nav .mnav-group:first-child{ padding-top: 4px; }
.mobile-nav .mnav-sub a{
  padding-left: 18px;
  font-size: .96rem;
  color: #d8e4e8;
}


/* ---------- Sélecteur de langue (repris de zone-help) ---------- */
header.site-header .lang-switcher{ position: relative; }
header.site-header .lang-current{
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s;
}
header.site-header .lang-current:hover{ border-color: var(--accent); }
header.site-header .lang-flag{ display: inline-flex; align-items: center; line-height: 1; }
header.site-header .lang-flag svg{
  width: 20px; height: 15px; display: block;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
header.site-header .lang-option .lang-flag svg{ width: 22px; height: 16.5px; }
header.site-header .lang-caret{ font-size: .6rem; opacity: .8; transition: transform .15s ease; }
header.site-header .lang-switcher.open .lang-caret{ transform: rotate(180deg); }
header.site-header .lang-menu{
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--navy-dark);
  border-radius: 5px;
  padding: 5px;
  min-width: 190px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 120;
}
header.site-header .lang-switcher.open .lang-menu{ display: block; }
header.site-header .lang-option{
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: .82rem;
  font-family: inherit;
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
header.site-header .lang-option:hover{ background: rgba(255,255,255,.09); color: var(--accent); }
header.site-header .lang-option.active{ background: var(--accent); color: #fff; }

/* ===========================================================
   Boutons flottants (appel, rappel, WhatsApp) + fenêtre « Être
   rappelé ». Porté depuis zone-help.com le 18/08/2026.
   =========================================================== */
.fab-stack{
  /* En HAUT à DROITE, sous l'entête. Les libellés se déploient donc vers
     la gauche (align-items: flex-end), sinon ils sortiraient de l'écran. */
  position: fixed;
  right: 18px;
  top: 160px;   /* juste sous la barre de menu, qui se termine vers 147px */
  left: auto;
  bottom: auto;
  align-items: flex-end;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* La remontée au-dessus du bandeau cookies n'a plus lieu d'être en haut. */
.fab-stack.fab-up{ top: 160px; bottom: auto; }

.fab{
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 15px;
  max-width: 54px;
  overflow: hidden;
  border-radius: 27px;
  color: #fff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: max-width .28s ease, box-shadow .18s ease;
}
.fab-label{
  white-space: nowrap;
  margin-left: 10px;
  opacity: 0;
  transition: opacity .18s ease;
}
.fab:hover, .fab:focus-visible{ max-width: 340px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
/* Bootstrap colore les liens en bleu au survol : on impose le blanc. */
.fab, .fab:hover, .fab:focus, .fab:active, .fab:visited,
.fab:hover .fab-label, .fab:focus .fab-label{ color: #fff; text-decoration: none; }
.fab:hover .fab-label, .fab:focus-visible .fab-label{ opacity: 1; }
.fab:focus-visible{ outline: 3px solid #fff; outline-offset: 3px; }
.fab svg{ width: 24px; height: 24px; fill: currentColor; flex: none; }

.fab-wa{ background: #25d366; }

@media (max-width: 760px){
  /* Plus bas sur mobile : l'entête compacte place le bouton de menu vers 104px. */
  .fab-stack{ right: 14px; top: 240px; left: auto; bottom: auto; gap: 8px; }
  .fab{ max-width: 50px; height: 50px; padding: 0; justify-content: center; }
  .fab svg{ width: 22px; height: 22px; }
  .fab-label{ display: none; }
  .fab-stack.fab-up{ bottom: 170px; }
}

@media (prefers-reduced-motion: reduce){
  .fab, .fab-stack{ transition: none; }
  .fab:hover{ transform: none; }
}

/* Bouton d'appel : lien téléphonique sur mobile, numéro affiché sur
   ordinateur (un lien tel: y ouvrirait une boîte « choisir une
   application » inutile). */
.fab-tel{ display: none; background: var(--accent); }
.fab-num{ background: var(--accent); }

@media (max-width: 760px){
  .fab-tel{ display: flex; }
  .fab-num{ display: none; }
}

.fab-rappel{
  background: var(--navy);
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Fenêtre « Être rappelé » - ouverte uniquement au clic. */
.rappel-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 30, .55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.rappel-overlay.open{ opacity: 1; }

.rappel-box{
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 30px 28px 26px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  max-height: 90vh;
  overflow-y: auto;
}
.rappel-box h3{
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.rappel-intro{ color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; }

.rappel-close{
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px;
  border: none; background: none;
  color: var(--ink-soft); font-size: 1.7rem; line-height: 1;
  cursor: pointer;
}
.rappel-close:hover{ color: var(--accent); }

.rappel-form label{ display: block; margin-bottom: 12px; }
.rappel-form label span{
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.rappel-form input{
  width: 100%;
  padding: 11px 13px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.rappel-form input:focus{ outline: none; border-color: var(--navy); }
.rappel-pot{ position: absolute; left: -9999px; width: 1px; height: 1px; }

.rappel-send{ width: 100%; margin-top: 4px; justify-content: center; }
.rappel-send[disabled]{ opacity: .6; cursor: default; }

.rappel-msg{ margin: 0 0 10px; font-size: .88rem; }
.rappel-err{ color: #b3261e; }

.rappel-rgpd{
  margin: 14px 0 0;
  font-size: .76rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.rappel-ok{ text-align: center; padding: 20px 0; }
.rappel-ok p{ color: var(--ink-soft); margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce){
  .rappel-overlay{ transition: none; }
}
