/* ===========================================================
   apple-lyon.com - Passerelle vers la mise en page zone-help
   -----------------------------------------------------------
   Le contenu des pages utilise encore les classes du gabarit
   d'origine (.service_section, .box, .detail-box, .container…).
   Ce fichier leur applique l'apparence de zone-help.com, définie
   dans sos-style.css : fond bleu très clair, colonne blanche
   centrée de 1180 px, cartes à bord fin, accent orange.

   Chargé APRÈS sos-style.css, AVANT sos-header-footer.css.
   =========================================================== */

/* ---------- Fond de page et colonne centrale ---------- */
body{
  background: var(--bg);
  /* Voir sos-style.css : corps en Inter 400, Poppins reservee aux titres. */
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
}

/* Boutons du gabarit d'origine : ils gardent Poppins. */
.btn-box a{ font-family: "Poppins", "Segoe UI", sans-serif; }
.hero_area{ min-height: auto; }

/* Chaque section du gabarit devient une section zone-help :
   fond blanc, largeur maximale, centrée. */
.slider_section,
.service_section,
.about_section,
.why_us_section,
.info_section,
.client_section,
.contact_section{
  background: var(--white);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0;
}
.layout_padding{ padding: 40px 0; }
.layout_padding2{ padding: 26px 0; }

/* Le conteneur Bootstrap prend la largeur et les marges de .wrap */
.slider_section .container,
.service_section .container,
.about_section .container,
.why_us_section .container,
.info_section .container,
.client_section .container,
.contact_section .container,
.service_container .container{
  max-width: var(--maxw);
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Titres de section ---------- */
.heading_container{ margin-bottom: 34px; }
.heading_container.heading_center{
  max-width: none;
  text-align: center;
}
.heading_container h1,
.heading_container h2{
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .4em;
}
/* Dans le gabarit, la seconde partie du titre est dans un <span> :
   c'est elle qui reçoit l'orange, comme sur zone-help. */
.heading_container h1 span,
.heading_container h2 span{ color: var(--accent); }
.heading_container p{
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

/* ---------- Cartes ---------- */
.box .img-box,
.box .img-box2{
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.box .img-box img,
.box .img-box2 img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.why_us_section .box{ text-align: center; }
.why_us_section .box .img-box,
.why_us_section .box .img-box2{ margin-left: auto; margin-right: auto; justify-content: center; }

.detail-box h5{
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .6em;
}
.detail-box h4{ font-size: 1.05rem; color: var(--navy); margin: 1.2em 0 .5em; }
.detail-box p{
  color: var(--ink-soft);
  font-size: .92rem;
  margin: 0 0 10px;
  text-align: justify;
}
.detail-box ul{ margin: 0 0 12px; padding: 0; list-style: none; }
.detail-box ul li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.detail-box ul li::before{
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.detail-box a{
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}
.detail-box a:hover{ color: var(--navy); }

/* Texte courant hors carte (pages À propos, MacBook…) */
.service_section h4,
.about_section h4{ color: var(--navy); margin: 1.4em 0 .5em; }
.service_section p,
.about_section p,
.why_us_section p{ color: var(--ink-soft); font-size: .95rem; }
/* Liens de TEXTE dans ces sections : bleu de marque. On exclut les boutons
   (.btn, .fab, .faq-tag) qui portent déjà leur propre couleur - sans quoi
   le libellé d'un bouton orange virait au bleu-pétrole, illisible. */
.service_section a:not(.btn):not(.fab):not(.faq-tag),
.about_section a:not(.btn):not(.fab):not(.faq-tag){ color: var(--blue); font-weight: 600; }
.service_section a:not(.btn):not(.fab):not(.faq-tag):hover,
.about_section a:not(.btn):not(.fab):not(.faq-tag):hover{ color: var(--accent); }

/* ---------- Boutons ---------- */
.btn-box{ margin-top: 18px; }
.btn-box a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background .2s ease, color .2s ease;
}
.btn-box a:hover{ background: transparent; color: var(--accent); }

/* ---------- Bandeau d'accueil (carrousel) ---------- */
.slider_section{
  position: relative;
  padding: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slider_section .slider-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slider_section .slider-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider_section::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(21,82,99,.92) 0%, rgba(21,82,99,.72) 55%, rgba(21,82,99,.35) 100%);
}
.slider_section .carousel{ position: relative; z-index: 2; width: 100%; }
.slider_section .carousel-item{ padding: 78px 0; }
.slider_section .detail-box{ color: #fff; }
.slider_section .detail-box h2{
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .5em;
}
.slider_section .detail-box p{
  color: #dcebee;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 22px;
}
.slider_section .detail-box a{
  display: inline-flex;
  padding: 10px 32px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.slider_section .detail-box a:hover{ background: transparent; color: #fff; }

/* ---------- Divers ---------- */
img{ max-width: 100%; }
table{ width: 100%; }
hr{ border: none; border-top: 1px solid var(--line); margin: 30px 0; }

@media (max-width: 760px){
  .layout_padding{ padding: 32px 0; }
  .slider_section .carousel-item{ padding: 54px 0; }
  .detail-box p{ text-align: left; }
}

/* ---------- Bandeau de titre des pages internes ---------- */
.page-hero .breadcrumb a:hover{ color: var(--accent); }
.page-hero + .service_section .heading_container,
.page-hero + .about_section .heading_container{ margin-top: 6px; }

/* ---------- Textes détaillés sous les grilles d'icônes ---------- */
.prose{ max-width: none; }   /* même largeur que les grilles de blocs */
.prose h4{
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8em 0 .6em;
}
.prose h4:first-child{ margin-top: 0; }
.prose p{
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 14px;
  text-align: justify;
}
.prose a{ color: var(--accent); font-weight: 600; }
.prose strong{ color: var(--navy); }

/* ---------- Espacements resserrés ---------- */
/* zone-help utilise 84 px en haut et en bas de chaque section, ce qui creuse
   168 px entre deux blocs. Ramené à 42 px de chaque côté. */
.section{ padding: 42px 0; }
.section:first-of-type{ padding-top: 34px; }
.page-hero{ padding: 46px 0 40px; }
.split{ gap: 34px; align-items: center; }
.section-head{ margin-bottom: 26px; }
.grid{ gap: 18px; }
.prose{ padding-top: 4px; }
.prose h4{ margin: 1.4em 0 .5em; }
.prose p{ margin-bottom: 11px; }
.cta{ padding: 30px 34px; }

/* Le texte du bandeau de titre n'est plus bridé à 620 px : il occupe la
   largeur des cadres, comme le reste du contenu. */
.page-hero p{ max-width: none; }

/* ---------- Cartes du gabarit : même habillage que les tuiles zone-help ---------- */
/* Bandeau bleu-pétrole en haut, coins arrondis, ombre légère, passage à
   l'orange au survol - comme les cartes « RÉPARATIONS MACBOOK » de zone-help. */
.box{
  background: var(--white);
  border: none;
  border-top: 10px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 22px;
  margin-bottom: 46px;   /* espace vertical entre deux rangees de cartes */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.box:hover{
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.box:hover .detail-box h5{ color: var(--accent); }
.detail-box h5{
  text-transform: uppercase;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: color .2s ease;
}

/* Espacement entre les cartes : la gouttière de Bootstrap est portée à 30 px */
.service_section .row,
.about_section .row,
.why_us_section .row{ margin-left: -15px; margin-right: -15px; }
.service_section .row > [class^="col-"],
.service_section .row > [class*=" col-"],
.about_section .row > [class^="col-"],
.why_us_section .row > [class^="col-"]{ padding-left: 15px; padding-right: 15px; }

/* ---------- Blocs de texte : plus aucune largeur bridée ---------- */
/* Tous les blocs de texte s'alignent sur la largeur des cadres. */
.section-head{ max-width: none; }
.info-box{ max-width: none; }

/* Bloc « Centre de réparation » : le titre est désormais hors colonne, il
   occupe donc toute la largeur comme les autres titres de section. */
.about_section .heading_container.heading_center{ margin-bottom: 28px; }
.about_section .detail-box p{ text-align: justify; }

/* Bloc « Centre de réparation » : un seul cadre autour du texte et de la photo */
.about_section .box{ padding: 30px 28px; }
.about_section .box .row{ align-items: center; }
/* Ici .img-box n'est pas une pastille d'icône mais la photo du bloc :
   elle ne doit pas hériter du gabarit 60 x 60 des cartes. */
.about_section .img-box{
  width: auto;
  height: auto;
  display: block;
  margin: 0;
}
.about_section .img-box img{
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  border-radius: 6px;
}

/* Deux sections voisines ne doivent laisser aucune bande de fond entre elles :
   la colonne blanche doit paraître continue. */
.slider_section, .service_section, .about_section,
.why_us_section, .info_section, .client_section, .contact_section{
  margin-top: 0;
  margin-bottom: 0;
}

/* ---------- Sections sans classe .layout_padding ---------- */
/* Le bloc « Centre de réparation » n'a pas de .layout_padding : sa marge
   intérieure valait donc 0. Or la carte qu'il contient porte une marge basse
   de 46 px, et une marge basse « traverse » un parent sans marge intérieure
   (fusion des marges en CSS) : ces 46 px se retrouvaient HORS du fond blanc,
   d'où la bande bleue entre deux blocs. Une marge intérieure suffit à
   contenir la marge de l'enfant. */
.slider_section:not(.layout_padding):not(.layout_padding2),
.service_section:not(.layout_padding):not(.layout_padding2),
.about_section:not(.layout_padding):not(.layout_padding2),
.why_us_section:not(.layout_padding):not(.layout_padding2),
.info_section:not(.layout_padding):not(.layout_padding2),
.client_section:not(.layout_padding):not(.layout_padding2),
.contact_section:not(.layout_padding):not(.layout_padding2){
  padding: 40px 0;
}
.slider_section:not(.layout_padding){ padding: 0; }   /* le carrousel garde la sienne */
.about_section .box{ margin-bottom: 0; }              /* plus de marge à absorber */

/* ---------- Aucun soulignement au survol ---------- */
/* Bootstrap souligne les liens au survol (a:hover). zone-help ne le fait
   nulle part : on aligne le comportement sur tout le site. */
a, a:hover, a:focus, a:active{ text-decoration: none; }
