/* ————————————————————————————————————————————————
   Typo et variables globales
——————————————————————————————————————————————— */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg: #FAF9F7;
  --primary: #6BB6A6;
  --accent: #F1C84B;
  --ink: #2E2A27;
  --muted: #EDE6E0;
  --link: #3C8F7E;
  --radius: 16px;
}

/* ————————————————————————————————————————————————
   Structure générale
——————————————————————————————————————————————— */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ————————————————————————————————————————————————
   Fond de page
——————————————————————————————————————————————— */
body {
  min-height: 100vh;
  background-image: url("img/fond_de_page.svg"); /* ton image de fond */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  /* background-attachment: fixed; ← active sur desktop seulement */
}

/* ————————————————————————————————————————————————
   Transparence sur les blocs blancs
——————————————————————————————————————————————— */
header,
.hero,
.card,
.tile,
.form,
footer {
  background: rgba(255, 255, 255, 0.82); /* léger voile de transparence */
  backdrop-filter: blur(3px);             /* effet verre dépoli */
}

/* bordures du header et footer */
header { border-bottom: 1px solid var(--muted); }
footer { border-top: 1px solid var(--muted); }

/* ————————————————————————————————————————————————
   Layout principal
——————————————————————————————————————————————— */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ————————————————————————————————————————————————
   En-tête & navigation
——————————————————————————————————————————————— */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

/* ————————————————————————————————————————————————
   Logo
——————————————————————————————————————————————— */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-image: url("favicon.svg"); /* ton logo */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent; /* masque la lettre A si présente */
  font-size: 0;
}

.brand-name {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.2px;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: var(--muted);
}

/* ————————————————————————————————————————————————
   Section "Hero"
——————————————————————————————————————————————— */
.hero {
  margin: 30px 0 20px;
  border: 1px solid var(--muted);
  border-radius: calc(var(--radius) + 6px);
  padding: 28px;
  display: grid;
  gap: 14px;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ————————————————————————————————————————————————
   Boutons
——————————————————————————————————————————————— */
.button {
  display: inline-block;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  color: white;
  background: var(--primary);
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.9;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--link);
  border-color: var(--link);
}

/* ————————————————————————————————————————————————
   Cartes, sections & contenu
——————————————————————————————————————————————— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}

.card {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 { margin-top: 0; }

.section {
  padding: 12px 0 28px;
}

/* ————————————————————————————————————————————————
   Pied de page
——————————————————————————————————————————————— */
footer {
  margin-top: 32px;
}

.footer-inner {
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted, #555);
  text-decoration: none;
}

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

footer {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 2rem;
}


/* ————————————————————————————————————————————————
   Divers
——————————————————————————————————————————————— */
a {
  color: var(--link);
}

a:hover { opacity: 0.9; }

.notice {
  background: rgba(255, 250, 241, 0.85);
  border: 1px solid #ffe5b3;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.clean li::before {
  content: "• ";
  color: var(--primary);
  margin-right: 6px;
}

/* ————————————————————————————————————————————————
   Grilles et tuiles
——————————————————————————————————————————————— */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tile {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.tile a {
  text-decoration: none;
}

.small {
  font-size: 0.92rem;
  color: #5b5652;
}

/* ————————————————————————————————————————————————
   Formulaires
——————————————————————————————————————————————— */
.form {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  font-family: inherit;
}

label { font-weight: 600; }

.form .button {
  width: fit-content;
}

/* ————————————————————————————————————————————————
   Responsif
——————————————————————————————————————————————— */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .brand-logo { width: 32px; height: 32px; }
}

/* Force l’icône du brand dans toutes les pages (dont Boutique) */
header .brand-logo{
  background-image: url("favicon.svg") !important; /* CSS et favicon au même niveau: assets/ */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
