/* Police globale */
html,
body {
  font-family: "Roboto", sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  text-align: center;
}

.page-header {
  text-align: center;
}

.logo-small {
  max-width: 150px; /* Taille réduite par rapport à l'accueil */
  height: auto;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 1s ease forwards;
}

.btn-primary {
  display: block;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: max-content;
  margin: 20px auto;
}

.btn-primary:hover {
  background: #333;
  transform: scale(1.05);
}

/* Index */
.subscribe-container {
  text-align: center;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  line-height: 1.6;
  color: #333;
}

.intro-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #b30059; /* une teinte adulte mais élégante */
}

.intro-text p {
  margin-bottom: 15px;
}

/* FAQ */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  width: 900px;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #b30059;
}

.faq-item {
  margin-bottom: 25px;
  padding: 15px;
  border-left: 4px solid #b30059;
  background: #f9f9f9;
  border-radius: 8px;
}

.faq-item h3 {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 0;
  color: #b30059;
  font-weight: 700;
}
.faq-item.open h3::after {
  content: "–";
}

/* Fermé par défaut */
.faq-item p {
  display: none;
  opacity: 0;
  margin: 0;
  line-height: 1.6;
  color: #555;
  transition: opacity 0.2s ease;
}

/* Ouvert */
.faq-item.open p {
  display: block;
  opacity: 1;
}

/* Animation bouton */
.fade-in-btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s; /* Légère attente pour effet élégant */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation logo */
.fade-in-logo {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 1s ease forwards;
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Logo */
.logo {
  max-width: 90%;
  height: auto;
}

/* Conteneur principal */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.6;
  font-size: 16px;
}

/* Titres */
.container h1 {
  font-size: 28px;
  margin-bottom: 20px;
}
.container h2 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NewsLetter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
.newsletter-form label {
  margin-bottom: 5px;
  font-weight: 500;
}
.newsletter-form input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.newsletter-form button {
  background-color: #000;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter-form button:hover {
  background-color: #333;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 25px 15px;
  font-size: 14px;
  border-top: 2px solid #b30059; /* rappel couleur identitaire */
}

footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer p {
  margin: 0;
}

footer .footer-tagline {
  font-size: 13px;
  color: #ccc;
  font-style: italic;
}

.footer-links {
  margin-top: 10px;
  text-align: center;
}

.footer-links a {
  margin: 0 10px;
  font-size: 0.9rem;
  color: #b30059;
  text-decoration: none;
}

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

/* CAPTCHA */
.g-recaptcha {
  margin-bottom: 15px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.5s ease;
}

.modal-content h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Articles */
.article-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;
}

.article-container h1 {
  font-size: 2rem;
  color: #b30059;
  margin-bottom: 20px;
  text-align: center;
}

.article-container h2 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #444;
}

.article-container p {
  margin-bottom: 15px;
}

.article-container ul {
  margin: 10px 0 20px 20px;
  padding: 0;
}

.article-container li {
  margin-bottom: 8px;
}

.article-container .cta {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 30px;
}

/* Blog */
.blog-header {
  padding: 20px 0;
}
.brand-link .logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.blog-hero {
  text-align: center;
  padding: 10px 20px 30px;
}
.blog-hero h1 {
  font-size: 2rem;
  color: #b30059;
  margin: 10px 0 6px;
}
.blog-hero p {
  color: #555;
  margin-bottom: 16px;
}
.blog-toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.blog-toolbar input[type="search"] {
  min-width: 260px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.card-media img {
  width: auto;
  height: 80px;
  object-fit: cover;
  display: block;
  margin: 5px auto;
}
.card-body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-date {
  font-size: 0.9rem;
  color: #777;
}
.card-title {
  font-size: 1.1rem;
  margin: 0;
}
.card-title a {
  color: #222;
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
}
.card-excerpt {
  color: #555;
  margin: 0;
}
.card-link {
  margin-top: auto;
  color: #b30059;
  text-decoration: none;
  font-weight: 500;
}
.card-link:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.page-link {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background: #fff;
}
.page-link.active,
.page-link:hover {
  border-color: #b30059;
  color: #b30059;
}

/* ===== HEADER / NAV ===== */
:root {
  --brand: #b30059;
  --ink: #222;
  --paper: #ffffff;
  --ink-soft: #555;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.brand-name {
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
}

/* Toggle (mobile) */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 18px;
  height: 2px;
  background: #333;
}

/* Nav */
.primary-nav {
  position: fixed;
  inset: 60px 0 auto 0;
  background: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-bottom: 1px solid #eee;
  z-index: 999;
}
.primary-nav.open {
  max-height: 75vh;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-list a,
.dropdown-toggle {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-list a:hover,
.dropdown-toggle:hover {
  background: #f6f6f6;
}

/* CTA dans le menu */
.nav-cta .btn-primary {
  margin: 0;
  padding: 10px 14px;
}

/* Dropdown (mobile par défaut: au clic) */
.has-dropdown {
  position: relative;
}
.dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.dropdown-toggle .chev {
  width: 12px;
  height: 12px;
}
.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: none;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}
.has-dropdown.open > .dropdown {
  display: block;
}
.has-dropdown .dropdown li a {
  display: block;
  padding: 8px 10px;
}

/* Assurer que le contenu ne passe pas sous le header */
main {
  padding-top: 8px;
}

/* Ajustements mineurs existants */
.btn-primary {
  background: #000;
}
.btn-primary:hover {
  background: #333;
}

/* Forcer le style du bouton dans la navigation */
.nav-cta .btn-primary {
  color: #fff !important;
  display: inline-block;
  margin: 0; /* éviter le margin auto du bouton classique */
}

/* Contact / Notices */
.notice {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.5;
}
.notice.success {
  background: #e7f7ec;
  border-color: #b7e1c1;
  color: #205e37;
}
.notice.error {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #8a1f2d;
}
.notice.error ul {
  margin: 0 0 0 18px;
  padding: 0;
}

.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
}

/* Honeypot caché visuellement mais présent pour les bots */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Petit texte sous le formulaire */
.form-privacy-note {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-top: 10px;
}

/* ===== Auth (inscription / validation / login) ===== */
.auth-box {
  max-width: 520px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}
.auth-box h1 {
  margin-top: 0;
  text-align: center;
  color: #b30059;
}
.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-row label {
  font-weight: 500;
}

.auth-row input[type="text"],
.auth-row input[type="email"],
.auth-row input[type="password"],
.auth-row select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  color: #b30059;
  background-color: #999;
  font-weight: bold;
}

.auth-actions {
  display: flex;
  justify-content: center;
}

.errors {
  background: #ffecec;
  color: #b30000;
  border: 1px solid #ffb3b3;
  padding: 12px;
  border-radius: 10px;
}
.ok {
  background: #e8fff0;
  color: #0a7a3b;
  border: 1px solid #b9f0cd;
  padding: 12px;
  border-radius: 10px;
}
.terms {
  font-size: 14px;
  color: #555;
}

/* Bouton d'action dans les pages Auth (si besoin) */
.auth-actions .btn-primary {
  margin-top: 4px;
}
