/* ===========================================================
   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.5; margin: 0 0 5px;
}
footer.sos-footer .footer-note{
  font-size: .64rem !important;
  font-style: italic;
  color: #cfe4e9 !important;
  margin-top: 4px;
  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); }
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 .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{
  font-size: .68rem;
  color: #d8e4e8;
  line-height: 1.9;
  padding: 20px 0 40px;
  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;
}
