/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.entry-title{
	display:none;
}

.site-main .post-navigation {
    margin-bottom: 3em;
}
.page-id-18 .entry-content:not(:first-child),
.page-id-18 .entry-summary:not(:first-child),
.page-id-18 .page-content:not(:first-child) {
    margin-top: 0em;
}

/* =========================================================
   CTA STICKY
========================================================= */

.cta-sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-sticky a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #ffd166;
  border-radius: 999px;
  background: #000;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
  .cta-sticky a:hover {
    transform: translateY(-2px);
    background: #ffd166 !important;
	color:#000!important;
    text-decoration: none;
  }
}

.cta-sticky .cta-mobile-single {
  display: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  /* -----------------------------------------
     CTA mobile
  ----------------------------------------- */

  .cta-sticky {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background:transparent!important;
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .cta-sticky a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: none;
  }

  .cta-sticky .cta-main {
    display: none;
  }

  .cta-sticky .cta-mobile-single {
    display: inline-flex;
  }
	
/* =========================================================
   RESPONSIVE FIX (remplace l'ancien script JS)
========================================================= */

/* Empêche le scroll horizontal */
body { overflow-x: hidden; }

/* Nav : masquer les liens sur mobile */
@media (max-width: 768px) {
  nav > div > div[style*="gap:20px"] { display: none !important; }
}

/* Grilles de stats à 4 colonnes -> 2 colonnes */
@media (max-width: 900px) {
  div[style*="repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* Grilles de stats à 3 colonnes -> 2 colonnes */
@media (max-width: 768px) {
  div[style*="repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* Grilles 2 colonnes -> 1 colonne */
@media (max-width: 900px) {
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Grilles produits en auto-fit -> 1 colonne */
@media (max-width: 600px) {
  div[style*="auto-fit,minmax(24"],
  div[style*="auto-fit,minmax(28"],
  div[style*="auto-fit,minmax(30"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="auto-fit,minmax(22"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Footer : 2fr 1fr 1fr -> adapté selon la largeur */
@media (max-width: 900px) {
  div[style*="2fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    padding: 0 16px !important;
  }
}
@media (max-width: 600px) {
  div[style*="2fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Boutons en colonne sur mobile */
@media (max-width: 600px) {
  div[style*="flex-wrap:wrap"][style*="gap:16px"] {
    flex-direction: column !important;
  }
}

/* Sections : padding réduit */
@media (max-width: 900px) {
  section[style*="padding:80px 24px"] { padding: 48px 16px !important; }
  section[style*="padding:64px 24px"] { padding: 40px 16px !important; }
}

/* Footer : padding réduit sur mobile */
@media (max-width: 600px) {
  footer { padding: 40px 16px 20px !important; }
}

/* CTA principal pleine largeur sur mobile */
@media (max-width: 600px) {
  a[style*="padding:20px 48px"] {
    display: block !important;
    text-align: center !important;
    padding: 16px 20px !important;
  }
}

/* Titres réduits sur mobile */
@media (max-width: 600px) {
  h1[style] { font-size: 26px !important; line-height: 1.2 !important; }
  h2[style] { font-size: 20px !important; }
}