/* ----------------------------------------------------
   Chuck’s Casse-Croûte – Full Theme CSS (multi-breakpoints)
   ---------------------------------------------------- */

/* Cacher le H1 auto de GitHub Pages */
body > h1:first-of-type,
main > h1:first-of-type,
.markdown-body > h1:first-of-type {
  display: none !important;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9f3e8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  font-size: 18px; /* base desktop */
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ----------------------------------------------------
   HEADER / NAV
   ---------------------------------------------------- */

.site-header {
  background: #b71c1c;
  color: #fff;
  padding: 1rem 1.5rem;
}

.wrapper-header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo dans le header */
.site-header .brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

/* Nav principale */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav .page-link {
  color: #ffe082;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-nav .page-link:hover {
  text-decoration: underline;
}

/* FR / EN */
.lang-switch-hero {
  color: #ffe082;
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 1.2rem;
}

.lang-switch-hero a {
  color: #ffe082;
}

/* ----------------------------------------------------
   MAIN WRAPPER
   ---------------------------------------------------- */

main {
  margin-top: 1.6rem;
}

.wrapper {
  max-width: 1100px;
  margin: 1.5rem auto 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* ----------------------------------------------------
   TITRES & TEXTE
   ---------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #b71c1c;
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.9rem;
  border-left: 4px solid #ffc107;
  padding-left: 0.5rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0.5rem 0 1rem;
}

/* ----------------------------------------------------
   HERO
   ---------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, #b71c1c, #c62828);
  color: #fff;
  padding: 2.2rem 2rem;
  border-radius: 20px;
  margin: 1.5rem 0 2.2rem;
  text-align: left;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-top: 0;
}

.hero p {
  font-size: 1.2rem;
  color: #ffeaea;
  margin-bottom: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: #ffc107;
  color: #4e342e;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

/* ----------------------------------------------------
   BOUTONS
   ---------------------------------------------------- */

.btn,
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.9rem 1.3rem;
  margin: 0.3rem 0.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid transparent;
  font-size: 1.05rem;
  text-align: center;
}

.btn-primary {
  background: #ffc107;
  color: #4e342e;
  border-color: #ffb300;
}

.btn-primary:hover {
  background: #ffb300;
}

.btn-outline {
  background: transparent;
  color: #ffc107;
  border-color: #ffc107;
}

.btn-outline:hover {
  background: rgba(255, 193, 7, 0.15);
}

/* ----------------------------------------------------
   CARTES, FAQ, CONTACT
   ---------------------------------------------------- */

.card,
.faq-item,
.contact-section {
  background: #fffdf9;
  border-radius: 14px;
  border: 1px solid #f0e0c8;
  padding: 1.4rem;
  margin: 1.2rem 0;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
}

/* ----------------------------------------------------
   ROW / COL – 2 colonnes desktop
   ---------------------------------------------------- */

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.col {
  flex: 1;
  min-width: 320px;
}

/* limiter la taille des images dans les cartes sur grand écran */
@media (min-width: 1025px) {
  .col img,
  .card img {
    max-width: 420px;
    width: 100%;
  }
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */

.site-footer {
  text-align: center;
  font-size: 0.95rem;
  color: #777;
  padding: 2rem 1rem 2.4rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #b71c1c;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ====================================================
   BREAKPOINT 1 – ≤ 1024px (Tablette landscape)
   ==================================================== */
@media (max-width: 1024px) {
  body {
    font-size: 17px;
  }

  .wrapper-header {
    max-width: 1000px;
    padding: 0 0.5rem;
  }

  .wrapper {
    max-width: 1000px;
    padding: 1.3rem 1.4rem;
  }

  .hero {
    padding: 2rem 1.6rem;
  }

  .row {
    gap: 1.8rem;
  }
     /* Layout : 1 colonne */
  .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .col {
    width: 100%;
    min-width: 100%;
  }

  .card,
  .faq-item,
  .contact-section {
    padding: 1.3rem 1.1rem;
  }

  .site-footer {
    font-size: 1.05rem;
  }
}
}

/* ====================================================
   BREAKPOINT 2 – ≤ 768px (Mobile général)
   ==================================================== */
@media (max-width: 768px) {

  body {
    font-size: 20px;
    line-height: 1.6;
  }

  .site-header {
    padding: 1rem 1rem;
  }

  .wrapper-header {
    max-width: 100%;
    padding: 0;
    gap: 0.8rem;
  }

  /* Header logo un peu plus gros */
  .site-header .brand-logo {
    height: 100px;
  }

  /* Nav + FR/EN plus gros */
  .site-nav .page-link,
  .lang-switch-hero {
    font-size: 1.4rem;
    font-weight: 700;
  }

  .wrapper {
    max-width: 100%;
    margin: 1rem 0.6rem 2rem;
    padding: 1.2rem 1rem;
  }

  main {
    margin-top: 1.2rem;
  }

  .hero {
    margin: 1.2rem 0.4rem 2rem;
    padding: 1.7rem 1.3rem;
    text-align: left;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  /* Boutons – plus gros, largeur auto mais grandes hitboxes */
  .btn,
  .btn-primary,
  .btn-outline {
    font-size: 1.25rem;
    padding: 1rem 1.4rem;
  }

  /* Layout : 1 colonne */
  .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .col {
    width: 100%;
    min-width: 100%;
  }

  .card,
  .faq-item,
  .contact-section {
    padding: 1.3rem 1.1rem;
  }

  .site-footer {
    font-size: 1.05rem;
  }
}

/* ====================================================
   BREAKPOINT 3 – ≤ 480px (iPhone portrait – mode XL)
   ==================================================== */
@media (max-width: 480px) {

  body {
    font-size: 22px !important;
    line-height: 1.62 !important;
  }

  .site-header {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  .site-header .brand-logo {
    height: 110px !important;
  }

  .site-nav .page-link,
  .lang-switch-hero {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
  }

  .hero {
    padding: 1.8rem 1.4rem !important;
    border-radius: 20px !important;
  }

  .hero h1 {
    font-size: 2.7rem !important;
    line-height: 1.25 !important;
  }

  .hero p {
    font-size: 1.35rem !important;
  }

  .hero .btn,
  .hero .btn-primary,
  .hero .btn-outline {
    font-size: 1.35rem !important;
    padding: 1.15rem 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.9rem !important;
  }

  h1 {
    font-size: 2.6rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.6rem !important;
  }

  p {
    font-size: 1.25rem !important;
  }

  .faq-item h3 {
    font-size: 1.55rem !important;
  }

  .faq-item p {
    font-size: 1.25rem !important;
  }

  .card,
  .faq-item,
  .contact-section {
    padding: 1.4rem 1.1rem !important;
  }

  .wrapper {
    margin: 1.2rem 0.6rem 2rem !important;
    padding: 1.3rem 1.1rem !important;
  }

  .row {
    gap: 1.8rem !important;
  }

  img {
    border-radius: 16px !important;
  }

  .site-footer {
    font-size: 1.15rem !important;
    padding: 2rem 1rem !important;
  }
}

/* ====================================================
   BREAKPOINT 4 – ≥ 1440px (très grands écrans)
   ==================================================== */
@media (min-width: 1440px) {
  .wrapper,
  .wrapper-header {
    max-width: 1200px;
  }

  body {
    font-size: 19px;
  }

  .hero {
    padding: 2.5rem 2.4rem;
  }
}
/* ==========================================
   MODE XL POUR TOUS LES TÉLÉPHONES (≤ 1024px)
   iPhone 12 inclus
   ========================================== */
@media (max-width: 1024px) {

  /* Base texte plus gros partout */
  body {
    font-size: 22px !important;
    line-height: 1.6 !important;
  }

  /* NAV BAR : Accueil / Menu / FR·EN */
  .site-nav .page-link,
  .lang-switch-hero {
    font-size: 1.8rem !important;      /* gros */
    font-weight: 900 !important;       /* très bold */
    letter-spacing: 0.4px !important;
    color: #ffe9a0 !important;         /* jaune clair = plus lisible */
  }

  /* HERO */
  .hero h1 {
    font-size: 3rem !important;
    font-weight: 900 !important;
  }

  .hero p {
    font-size: 1.5rem !important;
  }

  /* BOUTONS */
  .btn,
  .btn-primary,
  .btn-outline {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    padding: 1.2rem 1.6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.9rem !important;
  }

  .btn-primary {
    background: #ffd23c !important;
    border-color: #ffbf00 !important;
    color: #4a2f00 !important;
  }

  .btn-outline {
    border-color: #ffd23c !important;
    color: #ffd23c !important;
  }

  /* Sections texte */
  h2 {
    font-size: 2.1rem !important;
  }

  h3 {
    font-size: 1.7rem !important;
  }

  .card p,
  .faq-item p,
  .contact-section p {
    font-size: 1.4rem !important;
  }
}
/* ==========================================
   Centre TOUTES les images sur mobile
   ========================================== */
@media (max-width: 1024px) {

  /* Centre les images dans les colonnes */
  .row .col img,
  .card img,
  img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Empêche les textes de s'écraser autour */
  .col {
    text-align: center !important;
  }

  /* Mais garde les paragraphes alignés à gauche */
  .col p,
  .card p {
    text-align: left !important;
  }
}
/* Carte TikTok avec badge moderne */
.tiktok-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.tiktok-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Badge TikTok plus beau */
.tiktok-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* On remplace le "▶" par un petit rond play plus propre */
.tiktok-badge::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-right: 4px;

  background: #ff0050;      /* rose TikTok */
  color: #ffffff;
  font-size: 0.8rem;
}

/* Version mobile : badge un peu plus gros */
@media (max-width: 768px) {
  .tiktok-badge {
    font-size: 1.1rem;
    padding: 10px 16px;
    left: 16px;
    bottom: 16px;
  }

  .tiktok-badge::before {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}
