/* ===============================
   GuideFacile — thème clair propre
   Couleurs : Crimson #A4193D / Peach #FFDFB9
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
  --peach: #FFDFB9;
  --crimson: #A4193D;
  --crimson-dark: #8F1434;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Reset léger */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;height:auto;display:block}

/* Base */
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: var(--peach);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Conteneur global
   -> sur mobile : marges latérales très faibles pour que le bandeau “colle” presque aux bords */
.container{
  max-width: 1040px;
  padding-inline: clamp(6px, 2.2vw, 20px);
  margin-inline: auto;
  padding-block: 10px;
}

/* ===============================
   HERO (bandeau rouge)
   =============================== */
.hero{
  background: linear-gradient(180deg, var(--crimson), var(--crimson-dark));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 5vw, 28px);
  text-align: center;

  /* Le hero occupe presque toute la largeur :
     on limite les marges via le conteneur + on autorise le hero à s’étirer */
  width: 100%;
}

.hero h1{
  margin: 0 0 8px 0;
  font-size: clamp(20px, 5.4vw, 34px);
  line-height: 1.25;
}

.hero p{
  margin: 0 0 14px 0;
  opacity: .95;
  font-size: clamp(14px, 3.6vw, 17px);
}

.cta{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Boutons */
.btn{
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: clamp(14px, 3.8vw, 16px);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }

/* ===============================
   Section / Titre
   =============================== */
.section{ margin-top: 8px; }
.section h2{
  text-align: center;
  margin: 10px 0 10px;
  font-size: clamp(18px, 5vw, 26px);
  color: var(--crimson);
}

/* ===============================
   Grille des cartes
   =============================== */
.grid{
  display: grid;
  gap: 10px;
  /* Desktop/tablette : grille fluide */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Mobile : UNE SEULE COLONNE + largeur visuelle confortable */
@media (max-width: 760px){
  .grid{
    grid-template-columns: 1fr;   /* 1 colonne */
    max-width: 720px;
    margin-inline: auto;
  }
}

/* Carte */
.card{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* Lien de carte (pleine largeur, texte lisible) */
.card a{
  display: block;
  text-decoration: none;
  color: var(--crimson);
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 4.3vw, 18px);
  padding: 12px 14px;
}

/* ===============================
   Bloc d’achat (boutons Amazon)
   =============================== */
.buy-block{
  margin: 16px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-amazon{
  display: inline-block;
  text-decoration: none;
  background: #232F3E;     /* Bleu foncé Amazon */
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

/* ===============================
   Tableau simple (si utilisé dans les pages)
   =============================== */
table{border-collapse:collapse;width:100%;background:#fff;border-radius:12px;overflow:hidden}
th,td{border:1px solid rgba(0,0,0,.06);padding:.7rem;text-align:left}
th{background:#f8f8f8;font-weight:600}

/* ===============================
   “Mis à jour le …”
   =============================== */
.updated{
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.updated .dot{
  display:inline-block;
  width:8px;height:8px;border-radius:50%;
  background: var(--crimson);
  margin-right:6px;
}

/* ===============================
   Footer
   =============================== */
footer{
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a{ color: var(--crimson); text-decoration: none; }
footer a:hover{ text-decoration: underline; }

/* ===============================
   Ajustements tablettes/desktop
   =============================== */
@media (min-width: 761px){
  .container{ padding-inline: 20px; }
  .hero{ border-radius: 18px; }
  .card a{ padding: 14px 16px; }
}
/* Image produit (non cliquable) */
.product-figure { margin: 8px auto 14px; text-align: center; }
.product-img {
  max-width: 720px;   /* garde une largeur lisible sur desktop */
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
}

/* Un peu d'air autour des blocs d'achat */
.buy-block.buy-top { margin: 8px 0 10px; }
.buy-block.buy-bottom { margin: 12px 0 8px; }

/* Sécurité responsive */
.container img { max-width: 100%; height: auto; }
