/* ============================================================
   LES ARTICLES DU BLOG (le même style pour tous les articles)
   Le haut bleu ciel (titre, infos, et une image dessinée à droite,
   propre à chaque article), puis le sommaire à gauche et le texte à
   droite : « En bref », étapes numérotées, astuce, questions
   fréquentes, et la bande bleue de fin vers le formulaire de contact.
   ============================================================ */

/* ---------- Le haut : fond bleu ciel, titre à gauche, une image
   dessinée à droite ---------- */
.art-haut {
  background: #CFE3FF;
  /* 9,5rem en haut = la place de la barre qui flotte au-dessus */
  padding: 9.5rem 1.5rem 3.5rem;
}
.art-haut-contenu {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem;
  align-items: center;
}
/* Le fil d'Ariane : Blog › Google & SEO */
.fil {
  margin: 0 0 1rem;
  font-size: 14px;
  color: #22304F;
}
.fil a {
  color: #1D3FC4;
  font-weight: 700;
  text-decoration: none;
}
.fil a:hover {
  text-decoration: underline;
}
/* Le thème de l'article, dans une pastille blanche */
.art-theme {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1D3FC4;
  font-size: 13px;
  font-weight: 700;
}
.art-haut h1 {
  margin: 0 0 1.2rem;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.06;
  color: #1D3FC4;
  text-wrap: balance;
}
/* « Google Maps ? » en blanc dans une étiquette rouge */
.art-haut h1 .surligne {
  padding: 0 0.18em;
  border-radius: 10px;
  background: #E63B2E;
  color: #FFFFFF;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Temps de lecture, niveau, date de mise à jour */
.art-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #22304F;
}
.art-infos span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.art-infos svg {
  flex: none;
  width: 15px;
  height: 15px;
}

/* ---------- Le corps : le sommaire à gauche, le texte à droite ---------- */
.art-corps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
/* Le sommaire reste visible quand on fait défiler */
.sommaire {
  position: sticky;
  top: 110px;
  padding: 1.3rem 1.4rem;
  border-radius: 20px;
  background: #FFF4E0;
  font-size: 14.5px;
}
.sommaire p {
  margin: 0 0 0.7rem;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8C6A3F;
}
.sommaire ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}
.sommaire a {
  color: #1A1A1A;
  text-decoration: none;
}
.sommaire a:hover {
  color: #1D3FC4;
}

.texte {
  max-width: 720px;
}
.texte h2 {
  margin: 2.8rem 0 0.9rem;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1D3FC4;
  /* Un clic dans le sommaire : le titre ne passe pas sous la barre */
  scroll-margin-top: 110px;
}
.texte p {
  margin: 0 0 1rem;
}

/* « En bref » : le résumé, dans un cadre avec un trait bleu à gauche */
.en-bref {
  margin: 0 0 1.6rem;
  padding: 1.3rem 1.5rem;
  border: 2px solid #CFE3FF;
  border-left: 8px solid #1D3FC4;
  border-radius: 18px;
  background: #FFFFFF;
}
.en-bref-titre {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1D3FC4;
  color: #FFFFFF;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.texte .en-bref p {
  margin: 0;
  font-size: 1.08rem;
}

/* Les 7 réglages : un numéro rouge dans un rond, dans une carte blanche */
.etapes {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid #EEE6D6;
  border-radius: 18px;
  background: #FFFFFF;
}
.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E63B2E;
  color: #FFFFFF;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.etapes b {
  color: #1D3FC4;
}

/* « L'astuce Miam Miam » : un cadre rose */
.astuce {
  margin: 1.4rem 0;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: #FCE4E1;
}
.astuce strong {
  color: #B8352A;
}

/* Trois cartes côte à côte (par exemple les formats Instagram) :
   un titre bleu, une petite ligne rouge « à quoi ça sert », un texte */
.cartes-trois {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0 1rem;
  padding: 0;
  list-style: none;
}
.cartes-trois li {
  padding: 1.1rem 1.2rem;
  border: 1.5px solid #EEE6D6;
  border-radius: 18px;
  background: #FFFFFF;
}
.cartes-trois strong {
  display: block;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.2rem;
  color: #1D3FC4;
}
.cartes-trois small {
  display: block;
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E63B2E;
}
.texte .cartes-trois p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Une semaine type : les 7 jours, les jours « à faire » en bleu */
.semaine {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin: 1.2rem 0 1rem;
  padding: 0;
  list-style: none;
  text-align: center;
}
.semaine li {
  padding: 0.7rem 0.3rem;
  border: 1.5px solid #EEE6D6;
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #6A6F80;
}
.semaine b {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1A1A1A;
}
.semaine .jour-plein {
  border-color: #1D3FC4;
  background: #1D3FC4;
  color: #DCE7FF;
}
.semaine .jour-plein b {
  color: #FFFFFF;
}
.semaine .jour-story {
  border-color: #CFE3FF;
  background: #EAF1FD;
  color: #1D3FC4;
}

/* Les erreurs à éviter : une croix rouge devant chaque ligne */
.erreurs {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.erreurs li {
  position: relative;
  padding-left: 2.2rem;
}
.erreurs li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #FCE4E1;
  color: #B8352A;
  font-size: 0.8rem;
  font-weight: 700;
}
.erreurs b {
  color: #1A1A1A;
}

/* Les liens dans le texte (vers une autre page du site) */
.texte p a {
  color: #1D3FC4;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Les questions fréquentes : on clique pour ouvrir la réponse */
.faq details {
  margin-bottom: 0.7rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid #EEE6D6;
  border-radius: 16px;
  background: #FFFFFF;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: #1D3FC4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: #E63B2E;
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:focus-visible {
  outline: 3px solid #1D3FC4;
  outline-offset: 4px;
  border-radius: 8px;
}
.texte .faq details p {
  margin: 0.7rem 0 0;
}

/* La bande bleue de fin d'article, avec le bouton vers le formulaire */
.art-fin {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  border-radius: 24px;
  background: #1D3FC4;
  color: #FFFFFF;
}
.art-fin-titre {
  display: block;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.45rem;
}
.texte .art-fin p {
  margin: 0;
  color: #DCE7FF;
}
.art-fin-bouton {
  padding: 14px 24px;
  border-radius: 999px;
  background: #E63B2E;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.art-fin-bouton:hover {
  background: #C42B1E;
}
.art-fin-bouton:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Les liens au clavier (touche Tab) dans l'article */
.art-corps a:focus-visible,
.fil a:focus-visible {
  outline: 3px solid #1D3FC4;
  outline-offset: 3px;
}

/* Tablette et téléphone : tout en une colonne, le sommaire ne reste
   plus collé en haut */
@media (max-width: 860px) {
  .art-haut {
    padding-top: 8rem;
  }
  .art-haut-contenu,
  .art-corps {
    grid-template-columns: minmax(0, 1fr);
  }
  .sommaire {
    position: static;
  }
}
@media (max-width: 600px) {
  .cartes-trois {
    grid-template-columns: 1fr;
  }
  .semaine {
    grid-template-columns: repeat(4, 1fr);
  }
  .art-haut {
    padding: 7.5rem 1.25rem 2.5rem;
  }
  .art-corps {
    padding: 2.5rem 1.25rem 3rem;
    gap: 2rem;
  }
  .texte h2 {
    font-size: 1.5rem;
  }
  .art-fin {
    padding: 1.5rem;
  }
}
