/* Word Wide — feuille de style du site
   Couleurs et polices : modifier ici, tout le site suit. */

:root {
  --navy: #1F3550;
  --gold: #B8913A;
  --gold-dark: #7A5C16;
  --gold-soft: #F3DFA6;
  --sky: #EDF4FB;
  --text-soft: #3C4E66;
  --line: #E3EAF2;

  --tint-fr: #CFE0F5;
  --tint-en: #F8D7D0;
  --tint-es: #F9E7B4;
  --tint-it: #D3EBCD;
  --tint-nl: #FADBC0;
  --tint-culture: #CBEAE6;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, p { margin: 0; }

h1, h2 { font-family: var(--serif); }

h2 { font-weight: 700; font-size: clamp(32px, 4vw, 42px); line-height: 1.15; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.text-link {
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0;
  text-underline-offset: 5px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: #16273C; border-color: #16273C; color: #FFFFFF; }
.btn-large { min-height: 58px; padding: 0 34px; font-size: 18px; }
.btn-outline { background: transparent; color: var(--navy); min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-outline:hover { background: var(--navy); color: #FFFFFF; }
.btn-light { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-light:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--navy); }

/* En-tête */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 600; font-size: 16px; }
.main-nav a { text-decoration: none; padding: 12px 0; }

/* Accroche */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-lead { font-size: 20px; line-height: 1.5; color: var(--text-soft); max-width: 30em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.pills { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; font-size: 15px; font-weight: 600; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--sky); }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 500px; padding: 0 0 28px 28px; }
.hero-art::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  border-radius: 56px;
  background: var(--gold-soft);
}
.hero-art img { position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 56px; }

/* Langues */
.languages { background: var(--sky); padding: clamp(56px, 7vw, 80px) 0; }
.languages .container { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.section-head p { font-size: 19px; color: var(--text-soft); }
.language-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 20px; }
.language-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 16px 28px;
  border-radius: 32px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  transition: transform 0.15s ease;
}
.language-tile:hover { transform: translateY(-4px); color: var(--navy); }
.flag { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: #FFFFFF; }
.flag img { width: 76px; height: 76px; border-radius: 50%; }

.tint-fr { background: var(--tint-fr); }
.tint-en { background: var(--tint-en); }
.tint-es { background: var(--tint-es); }
.tint-it { background: var(--tint-it); }
.tint-nl { background: var(--tint-nl); }
.tint-culture { background: var(--tint-culture); }

/* Comment ça marche */
.steps { display: flex; flex-direction: column; gap: 44px; padding-bottom: clamp(56px, 7vw, 88px); }
.steps h2 { text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 32px 26px; border-radius: 32px; border: 2px solid var(--line); }
.step-number { font-family: var(--serif); font-weight: 800; font-size: 56px; line-height: 1; color: var(--gold); }
.step h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.step p { color: var(--text-soft); }

/* Ressources */
.featured { display: flex; flex-direction: column; gap: 36px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 96px); }
.featured-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; gap: 16px; }
.product-cover {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: center;
  overflow: hidden;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover.has-image { aspect-ratio: 1 / 1; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; }
.tags span { padding: 5px 12px; border-radius: 999px; }
.tag-level { background: #F1F3F6; }
.product h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-family: var(--serif); font-weight: 700; font-size: 24px; }

/* Ressource gratuite */
.free { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 96px); }
.free-card {
  border-radius: 40px;
  background: var(--navy);
  color: #FFFFFF;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px 56px;
  align-items: center;
}
.free-text { display: flex; flex-direction: column; gap: 12px; }
.free-text .eyebrow { color: var(--gold-soft); }
.free-text h2 { font-size: clamp(30px, 3.6vw, 38px); }
.free-text p { font-size: 18px; color: #DCE6F1; }
.free-preview { margin: 20px 0 0 8px; display: flex; align-items: center; gap: 24px; }
.free-preview img { width: 170px; border-radius: 6px; background: #FFFFFF; transform: rotate(-4deg); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); }
.free-preview figcaption { font-size: 15px; font-weight: 600; color: #DCE6F1; max-width: 9em; }
.free-form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
.free-form .field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.free-form label { font-weight: 600; font-size: 15px; }
.free-form input[type="email"],
.free-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: inherit;
  font-size: 17px;
}
.free-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231F3550' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}
.free-form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 16px; line-height: 1.4; cursor: pointer; }
.free-form .check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold-soft); cursor: pointer; }
.free-form small { font-size: 14px; color: #DCE6F1; }

/* À propos */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-bottom: clamp(64px, 8vw, 96px);
}
.about-photo {
  min-height: 400px;
  border-radius: 40px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-align: center;
  overflow: hidden;
}
.about-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.about-text p { font-size: 19px; color: var(--text-soft); text-wrap: pretty; }

/* Pied de page */
.site-footer { background: var(--sky); padding: 56px 0 40px; }
.site-footer .container { display: flex; flex-direction: column; gap: 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand img { width: 48px; height: 48px; }
.footer-brand .brand span { font-size: 20px; }
.footer-brand p { font-size: 16px; color: var(--text-soft); }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.footer-col strong { margin-bottom: 6px; }
.footer-col a { text-decoration: none; padding: 5px 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid #C9D8E8;
  font-size: 15px;
  color: var(--text-soft);
}

[hidden] { display: none !important; }

/* Conditions d'utilisation */
.legal { max-width: 920px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(64px, 8vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.legal-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.legal-head img { width: 112px; height: 112px; border-radius: 50%; }
.legal-head h1 { font-weight: 800; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; }
.legal-tagline { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--gold-dark); }
.legal-intro { font-size: 20px; text-align: center; text-wrap: pretty; }
.legal-note { text-align: center; color: var(--text-soft); }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.legal-card { padding: 32px; border-radius: 32px; }
.legal-card h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--sans); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-card ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-copyright { display: flex; flex-direction: column; gap: 8px; padding: 32px; border: 2px solid var(--line); border-radius: 32px; }
.legal-copyright h2 { font-family: var(--sans); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.legal-copyright p { color: var(--text-soft); }
.legal-copyright p:first-of-type { color: var(--navy); font-weight: 700; }

/* Page par langue */
.lang-hero { padding: clamp(32px, 5vw, 56px) 0; }
.lang-hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.lang-hero .flag { flex: none; width: 112px; height: 112px; }
.lang-hero .flag img { width: 90px; height: 90px; }
.lang-hero h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; }
.lang-hero p { margin-top: 8px; font-size: 19px; color: var(--text-soft); }
.back-link { display: inline-block; margin-bottom: 8px; font-weight: 700; font-size: 15px; text-underline-offset: 4px; }

.lang-hero + .featured { padding-bottom: 0; }
.catalog-title { grid-column: 1 / -1; }
.catalog {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.catalog-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 32px; }
.catalog-filters { display: flex; flex-direction: column; gap: 6px; }
.catalog-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.catalog-filter:hover { background: var(--sky); }
.catalog-filter.is-active { background: var(--navy); color: #FFFFFF; }
.catalog-filter small { display: block; font-weight: 400; font-size: 14px; opacity: 0.85; }
.catalog-filter .count { font-weight: 700; }
.catalog-others { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; font-size: 16px; }
.catalog-others strong { margin-bottom: 6px; }
.catalog-others a { text-decoration: none; padding: 5px 0; }

.catalog-list { display: flex; flex-direction: column; gap: 20px; }
.resource {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 28px;
}
.resource-cover { width: 180px; height: 180px; border-radius: 16px; object-fit: cover; }
.resource-body { display: flex; flex-direction: column; gap: 10px; }
.resource-body h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.3; }
.resource-body p { font-size: 16px; color: var(--text-soft); }
.resource .tags span { background: #F1F3F6; }
.resource-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 130px; }
.catalog-empty { padding: 40px 24px; border-radius: 28px; background: var(--sky); text-align: center; font-weight: 600; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-nav { position: static; gap: 0; }
  .catalog-filters { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .catalog-filter { flex: none; width: auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--sky); white-space: nowrap; }
  .catalog-filter small { display: none; }
  .catalog-others { display: none; }
}
@media (max-width: 640px) {
  .resource { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .resource-cover { width: 110px; height: 110px; }
  .resource-body h2 { font-size: 18px; }
  .resource-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .lang-hero .flag { width: 84px; height: 84px; }
  .lang-hero .flag img { width: 66px; height: 66px; }
}

/* Téléphone */
@media (max-width: 760px) {
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 16px; font-size: 15px; white-space: nowrap; overflow-x: auto; }
  .brand img { width: 48px; height: 48px; }
  .brand span { font-size: 21px; }
  .hero { gap: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-art { max-width: 380px; }
  .language-tile { padding: 24px 12px 22px; font-size: 18px; }
  .about-photo { min-height: 300px; }
}

/* Panier */
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 2px solid var(--line); border-radius: 50%;
  background: #FFFFFF; color: var(--navy); cursor: pointer;
}
.cart-toggle:hover { border-color: var(--navy); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: #FFFFFF;
  font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
}
.cart-count[hidden] { display: none; }
.btn-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.add-to-cart.is-added { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.buy-now { font-size: 14px; font-weight: 600; text-align: center; }
.btn[aria-disabled="true"] { background: #E9EDF2; border-color: #E9EDF2; color: var(--text-soft); cursor: default; }

.cart-drawer { position: fixed; inset: 0; z-index: 100; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(31, 53, 80, 0.45); }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; background: #FFFFFF; overflow-y: auto;
  box-shadow: -12px 0 40px rgba(31, 53, 80, 0.18);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 28px; }
.cart-close, .cart-remove {
  border: 0; background: transparent; color: var(--navy);
  font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item p { font-size: 15px; font-weight: 600; line-height: 1.35; }
.cart-item span { font-size: 15px; color: var(--text-soft); }
.cart-remove { font-size: 24px; }
.cart-empty { color: var(--text-soft); }
.cart-empty[hidden], .cart-foot[hidden] { display: none; }
.cart-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.cart-total { display: flex; justify-content: space-between; font-size: 20px; }
.cart-note { font-size: 14px; color: var(--text-soft); text-align: center; }
body.cart-open { overflow: hidden; }

@media (max-width: 640px) {
  .btn-buttons { flex-direction: row; align-items: center; }
}
