/* ============================================================
   El Makina Digital — couche de finition graphique
   Chargée après les styles de chaque page : elle n'ajoute que
   des ajustements visuels, sans modifier la structure.
   ============================================================ */

:root {
  --font: Arial, Helvetica, sans-serif;
  --em-orange: #f15b33;
  --em-radius: 14px;
  --em-shadow: 0 10px 30px rgba(17, 17, 17, 0.07);
  --em-shadow-hover: 0 18px 44px rgba(17, 17, 17, 0.12);
}

/* ---------- Typographie Arial ---------- */
html, body, button, input, select, textarea {
  font-family: Arial, Helvetica, sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .section-title, .pcta-title, .value-title, .svc-title, .service-title {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
::selection { background: rgba(241, 91, 51, 0.22); color: inherit; }

/* ---------- Alignement sur une grille de 1200 px (grands écrans) ---------- */
@media (min-width: 1321px) {
  .section {
    padding-left: calc((100% - 1200px) / 2);
    padding-right: calc((100% - 1200px) / 2);
  }
}
.values-grid { max-width: 1200px; }

/* ---------- Boutons ---------- */
.btn-orange {
  box-shadow: 0 8px 22px rgba(241, 91, 51, 0.28);
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-orange:hover { box-shadow: 0 12px 28px rgba(241, 91, 51, 0.36); }
.nav-cta { border-radius: 6px; }

/* ---------- Cartes : relief et survol homogènes ---------- */
.value-card, .service-preview-card {
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.value-card:hover, .service-preview-card:hover {
  box-shadow: var(--em-shadow-hover);
  border-color: rgba(241, 91, 51, 0.35);
}
.value-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(241, 91, 51, 0.08);
  font-size: 1.35rem;
}
.svc-features li { color: #666; }

/* ---------- Pages de service ---------- */
.breadcrumb-bar { background: #fafafa; }
.faq-list details { transition: background .2s; }
.faq-list summary:hover { color: var(--em-orange); }
.related-links a { background: #fff; }
.check-grid li i {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: rgba(241, 91, 51, 0.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* ---------- Pied de page : meilleure lisibilité ---------- */
.footer-desc, .footer-contact p, .footer-contact a,
.footer-section ul li a, .footer-bottom-links a,
.newsletter-checkbox, .footer-section > p { color: #a3a3a3; }
.footer-copyright { color: #8a8a8a; }
.footer-section ul li a:hover, .footer-bottom-links a:hover, .footer-contact a:hover { color: var(--em-orange); }
.footer-social a { color: #a3a3a3; border-color: #3a3a3a; }
.footer-bottom-links { gap: 10px 22px; max-width: 900px; }
.footer-bottom { align-items: flex-start; }

/* ---------- Liens dans les textes ---------- */
.lp-intro a, .faq-list a, .value-desc a, .check-grid a, .section-desc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .footer-bottom { align-items: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ---------- Prix des packs (Arial est plus large que Montserrat) ---------- */
.pack-price { font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Grilles de 4 packs : plus de carte isolée sur une ligne ---------- */
@media (min-width: 1200px) {
  .packs-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .packs-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pack-price { font-size: 1.25rem; }
}

/* Texte réservé aux lecteurs d'écran et aux moteurs (invisible à l'écran) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE MOBILE — corrections issues de l'audit 320 → 1440 px
   ============================================================ */

/* Petits libellés : jamais sous 12 px */
.value-num, .ptag, .pcard-cat, .ttag, .svc-badge { font-size: 0.75rem; }

/* Grilles : une colonne ne doit jamais imposer une largeur plus grande que l'écran */
.blog-container > *, .articles-grid > *, .mini-stats > *, .stats-section > * { min-width: 0; }

/* Bouton du menu mobile : zone tactile de 44 × 44 px */
@media (max-width: 1200px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
}

@media (max-width: 768px) {
  /* Liens d'action : zone tactile d'au moins 30 px de haut */
  .service-link, .case-link, .read-more, .svc-more, .article-nav-link { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 0; }
  .recent-title a { display: inline-block; padding: 5px 0; }
  /* Pied de page : liens plus faciles à toucher, même rythme visuel */
  .footer-section ul li { margin-bottom: 2px; }
  .footer-section ul li a { display: inline-block; padding: 7px 0; }
  .footer-bottom-links a, .footer-contact a { display: inline-block; padding: 6px 0; }
}

/* Très petits téléphones (320 – 480 px) : compteurs sur 2 colonnes qui tiennent dans l'écran */
@media (max-width: 480px) {
  .mini-stats, .stats-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-section { padding-left: 12px; padding-right: 12px; }
  .mstat, .stat-box { padding: 24px 8px; }
  .mstat-num, .stat-num { font-size: clamp(1.6rem, 9vw, 2.2rem); letter-spacing: -0.5px; }
  .mstat-label, .stat-label { letter-spacing: 0.5px; font-size: 0.75rem; }
  .pack-price { font-size: 1.25rem; }
}
@media (max-width: 768px) {
  .check-grid a { display: inline-block; padding: 6px 0; }
}

/* ============================================================
   FINITION VISUELLE v2 (2026-11-14)
   Uniquement du CSS : aucun texte, lien ni balise SEO modifié.
   Pour revenir en arrière : supprimer tout ce bloc.
   ============================================================ */

/* ---------- Police : Arial (charte El Makina) ---------- */
:root {
  --font: Arial, Helvetica, sans-serif; /* police de la charte El Makina */
  --em-ease: cubic-bezier(.2, .7, .2, 1);
}
html, body, button, input, select, textarea { font-family: var(--font); }
html { accent-color: var(--em-orange); }
body { color: #151515; }

/* Titres : un poil moins « massifs », plus élégants */
.hero-content h1, .blog-hero-content h1 { font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.section-title { font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.service-title, .value-title, .svc-title, .pack-name, .testimonial-name, .testi-name { font-weight: 700; letter-spacing: -0.01em; }
.section-desc, .section-subtitle { font-size: 1rem; line-height: 1.7; color: #5a5a5a; }
.service-desc, .value-desc, .svc-desc { color: #5f5f5f; }

/* Les liens d'ancre (ex. /#contact) ne passent plus sous le menu fixe */
[id] { scroll-margin-top: 90px; }

/* ---------- Menu : effet verre dépoli ---------- */
nav:not([class]) {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(0, 0, 0, .06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 8px 24px rgba(0, 0, 0, .04);
}
.nav-cta { border-radius: 50px; padding: 11px 22px; transition: background .25s, transform .2s var(--em-ease), box-shadow .25s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(241, 91, 51, .3); }
.nav-cta i { transition: transform .25s var(--em-ease); }
.nav-cta:hover i { transform: translateX(3px); }

/* ---------- Bandeau principal (hero) ---------- */
/* Dégradé sombre en bas + lueur orange discrète : plus de profondeur */
.hero::after, .blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(241, 91, 51, .22), transparent 70%),
    linear-gradient(to top, rgba(0, 0, 0, .45), transparent 45%);
}
.hero-content, .blog-hero-content { z-index: 2; }
.hero-pretitle { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-content p { color: rgba(255, 255, 255, .82); }

/* ---------- Boutons ---------- */
.btn-orange, .btn-white-outline, .btn-pack { transition: background .25s, border-color .25s, transform .2s var(--em-ease), box-shadow .25s; }
.btn-orange i, .btn-white-outline i, .btn-pack i, .service-link i, .svc-more i, .read-more i { transition: transform .25s var(--em-ease); }
.btn-orange:hover i, .btn-white-outline:hover i, .btn-pack:hover i,
.service-link:hover i, .svc-more:hover i, .read-more:hover i { transform: translateX(4px); }
.btn-white-outline:hover { transform: translateY(-2px); }

/* Focus clavier visible partout (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--em-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Cartes de services : même hauteur, lien aligné en bas ---------- */
.service-preview-card, .svc-card { display: flex; flex-direction: column; }
.service-preview-card > .service-link, .svc-card > .svc-more { margin-top: auto; align-self: flex-start; }
.svc-card > .svc-badge { align-self: flex-start; }

/* Liseré orange qui apparaît en haut de la carte au survol */
.service-preview-card, .value-card, .svc-card { position: relative; overflow: hidden; }
.service-preview-card::before, .value-card::before, .svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--em-orange), #ff8a5c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--em-ease);
}
.service-preview-card:hover::before, .value-card:hover::before, .svc-card:hover::before { transform: scaleX(1); }
.service-preview-card, .value-card, .svc-card { transition: box-shadow .3s, transform .3s var(--em-ease), border-color .3s; }
.service-preview-card:hover, .value-card:hover { transform: translateY(-5px); }
/* Les cartes de la page Services sont collées en grille : pas de soulèvement */
.svc-card:hover { transform: none; }
.svc-card > .svc-more { padding-top: 16px; }

/* Texte « Qui sommes-nous » plus aéré */
.about-left p { line-height: 1.7; }

/* L'icône passe en orange plein au survol */
.service-icon, .value-icon, .svc-icon-wrap { transition: background .3s, color .3s, transform .3s var(--em-ease); }
.service-preview-card:hover .service-icon,
.value-card:hover .value-icon,
.svc-card:hover .svc-icon-wrap { background: var(--em-orange); color: #fff; transform: scale(1.06) rotate(-4deg); }
.value-card:hover .value-icon i, .svc-card:hover .svc-icon-wrap i { color: #fff; }

/* ---------- Packs ---------- */
.pack-card { display: flex; flex-direction: column; transition: transform .3s var(--em-ease), box-shadow .3s, border-color .3s; }
.pack-card > .btn-pack, .pack-card > .btn-orange { margin-top: auto; align-self: center; }
.pack-card:hover { border-color: rgba(241, 91, 51, .35); }
.pack-card.recommended { border: 2px solid var(--em-orange); box-shadow: 0 22px 50px rgba(241, 91, 51, .16); }

/* ---------- Témoignages ---------- */
.testimonial-card, .testi-card { border: 1px solid rgba(0, 0, 0, .05); }
.testimonial-text { font-style: normal; color: #4a4a4a; }
.testimonial-avatar, .testi-avatar { box-shadow: 0 6px 16px rgba(241, 91, 51, .3); }

/* ---------- Images ---------- */
.blog-img { transition: filter .4s; }
.blog-card:hover .blog-img { filter: saturate(1.15) contrast(1.05); }

/* ---------- Formulaire de contact ---------- */
.form-group label { transition: color .25s; }
.form-group:focus-within label { color: #ffb09a; }

/* ---------- Bandeau défilant : pause au survol ---------- */
.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hero-pretitle { letter-spacing: 1px; font-size: .68rem; padding: 6px 14px; line-height: 1.5; }
  .hero-content h1 { letter-spacing: -0.03em; }
  .section-title { letter-spacing: -0.025em; }
  .service-preview-card:hover, .value-card:hover, .svc-card:hover { transform: none; }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  .service-preview-card, .value-card, .svc-card, .pack-card, .btn-orange, .nav-cta,
  .service-preview-card::before, .value-card::before, .svc-card::before { transition: none !important; }
  .service-preview-card:hover, .value-card:hover, .svc-card:hover, .pack-card:hover { transform: none !important; }
}

/* ============================================================
   FINITION VISUELLE v3 (2026-11-14)
   Uniquement du CSS. Pour revenir en arrière : supprimer ce bloc.
   ============================================================ */

/* ---------- Menu : survol en pastille douce ---------- */
.nav-links a { border-radius: 50px; transition: color .2s, background .2s; }
.nav-links a:hover { background: rgba(241, 91, 51, .07); }
.nav-links a::after { bottom: 3px; border-radius: 2px; }

/* ---------- Hero : boutons un peu plus généreux ---------- */
.hero-btns .btn-orange, .hero-btns .btn-white-outline { padding-top: 15px; padding-bottom: 15px; }
.hero-btns .btn-white-outline { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }

/* ---------- Bandeau défilant : bords fondus ---------- */
.ticker-bar {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  background: linear-gradient(90deg, #f15b33, #ff7a4d 50%, #f15b33);
}

/* ---------- Chiffres clés ---------- */
.mini-stats { background: linear-gradient(180deg, #fff, #fcfaf9); }
.mstat { transition: background .3s; }
.mstat:hover { background: #fff7f3; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb-bar a { color: inherit; text-decoration: none; transition: color .2s; }
.breadcrumb-bar a:hover { color: var(--em-orange); }

/* ---------- FAQ : questions en cartes ---------- */
.faq-list details {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.faq-list details:hover { border-color: rgba(241, 91, 51, .35); }
.faq-list details[open] { border-color: rgba(241, 91, 51, .5); box-shadow: 0 12px 30px rgba(17, 17, 17, .06); }
.faq-list summary { padding: 20px 22px; align-items: center; }
.faq-list summary::after {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(241, 91, 51, .1);
  font-size: 1.1rem;
  transition: background .25s, color .25s, transform .3s var(--em-ease);
}
.faq-list details[open] summary::after { background: var(--em-orange); color: #fff; transform: rotate(180deg); }
.faq-list details p { margin: 0; padding: 0 22px 20px; }
.bg-light .faq-list details { background: #fff; }

/* ---------- Liens « Services liés » : remplissage orange au survol ---------- */
.related-links a { transition: background .25s, border-color .25s, color .25s, transform .2s var(--em-ease); }
.related-links a:hover { background: var(--em-orange); border-color: var(--em-orange); color: #fff; transform: translateY(-2px); }

/* ---------- Blog ---------- */
.blog-category { transition: background .25s, color .25s; }
.blog-card:hover .blog-title a { color: var(--em-orange); }
.blog-title a { transition: color .25s; }
.sidebar-widget { transition: box-shadow .3s; }
.sidebar-widget:hover { box-shadow: var(--em-shadow); }
.recent-img { transition: transform .3s var(--em-ease); }
.recent-post:hover .recent-img { transform: scale(1.05); }

/* ---------- Témoignages : guillemet décoratif ---------- */
.testimonial-card { position: relative; }
.testimonial-card::after {
  content: "\201D";
  position: absolute;
  top: 6px; right: 26px;
  font: 700 6rem/1 Georgia, serif;
  color: rgba(241, 91, 51, .1);
  pointer-events: none;
}

/* ---------- Section contact : lueur de fond ---------- */
.contact-form-section {
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(241, 91, 51, .14), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(241, 91, 51, .08), transparent 70%),
    #1a1a1a;
}

/* ---------- Pied de page ---------- */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--em-orange), transparent);
}
.footer-social a { transition: background .25s, border-color .25s, color .25s, transform .2s var(--em-ease); }
.footer-social a:hover { background: var(--em-orange); border-color: var(--em-orange); color: #fff; transform: translateY(-2px); }
.footer-newsletter input { border-radius: 8px 0 0 8px; }
.footer-newsletter button { border-radius: 0 8px 8px 0; }

/* ---------- Bouton « haut de page » ---------- */
.scroll-top-btn { box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: opacity .3s, visibility .3s, transform .3s var(--em-ease), background .25s; }
.scroll-top-btn:hover { transform: translateY(-3px); }

/* ---------- Barre de défilement aux couleurs du site (ordinateur) ---------- */
@media (hover: hover) and (min-width: 1024px) {
  html { scrollbar-color: #c9c9c9 transparent; scrollbar-width: thin; }
}

@media (max-width: 600px) {
  .faq-list summary { padding: 16px 16px; font-size: .95rem; }
  .faq-list details p { padding: 0 16px 16px; }
  .testimonial-card::after { font-size: 4.5rem; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-bar:hover .ticker-track { animation-play-state: paused; }
  .related-links a:hover, .footer-social a:hover, .scroll-top-btn:hover { transform: none; }
}

/* ---------- Portfolio : icône visible dans un badge en verre ---------- */
.pcard-visual-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 45%, rgba(255, 255, 255, .12), transparent 70%);
  pointer-events: none;
}
.pcard-visual-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  font-size: 2.8rem;
  color: #fff;
  opacity: .92;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .5s var(--em-ease);
}
.pcard:hover .pcard-visual-icon { transform: translateY(-4px) scale(1.05); }
.pcard.third .pcard-visual-icon { width: 84px; height: 84px; border-radius: 22px; font-size: 2.2rem; }
@media (max-width: 600px) {
  .pcard-visual-icon { width: 76px; height: 76px; border-radius: 20px; font-size: 2rem; }
}
