/* ============================================================
   style.css - Pan de Yucas - SAE Marketing RCN
   Groupe 131 - Tessa, Louis, Julia, Timothee
   ============================================================ */

/* ---- VARIABLES ---- */

:root {
  --blanc:    #fdfaf5;
  --safran:   #e8972a;
  --safran-c: #f5b855;
  --terra:    #c4583a;
  --basilic:  #3a6b45;
  --creme:    #f0e8d8;
  --gris:     #5a5248;
  --gris-c:   #a09488;
  --noir:     #1e1a16;
}

/* ---- RESET & BASE ---- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--blanc);
  color: var(--noir);
}

/* ---- NAVIGATION ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 2px solid var(--creme);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--noir);
  text-decoration: none;
}

.logo span {
  color: var(--safran);
}

nav a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover {
  background: var(--creme);
  color: var(--noir);
}

.nav-cta {
  background: var(--safran);
  color: #fff !important;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--safran-c) !important;
}

/* ---- HERO ---- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.hero-left {
  padding: 64px 5% 64px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--creme);
  border: 1px solid rgba(232, 151, 42, 0.3);
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gris);
  width: fit-content;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--basilic);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .accent {
  color: var(--safran);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gris);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gris-c);
  font-weight: 500;
}

.hero-right {
  background: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 151, 42, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 88, 58, 0.1) 0%, transparent 50%);
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}

.dc1 {
  width: 120px;
  height: 120px;
  background: var(--safran-c);
  top: -30px;
  left: -30px;
}

.dc2 {
  width: 80px;
  height: 80px;
  background: var(--terra);
  bottom: 20px;
  right: -20px;
}

.product-display {
  position: relative;
  z-index: 1;
  text-align: center;
}

.product-big-emoji {
  font-size: 9rem;
  line-height: 1;
  display: block;
  margin-bottom: 24px;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.12));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.product-name-tag {
  background: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.product-name-tag h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 10px;
}

.sauce-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}

.chip-verde {
  background: #e8f4e8;
  color: var(--basilic);
}

.chip-picon {
  background: #fde8e3;
  color: var(--terra);
}

.chip-nat {
  background: var(--creme);
  color: var(--gris);
}

/* ---- BANDEAU ---- */

.bandeau {
  background: var(--safran);
  padding: 14px 5%;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.bandeau-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* ---- BOUTONS ---- */

.btn-primary {
  background: var(--safran);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(232, 151, 42, 0.3);
  display: inline-block;
}

.btn-primary:hover {
  background: var(--safran-c);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 10px;
  transition: background 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--creme);
}

.btn-outline {
  border: 2px solid var(--creme);
  color: var(--gris);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--safran);
}

/* ---- SECTIONS ---- */

section {
  padding: 70px 6%;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--safran);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.voir-tout {
  color: var(--safran);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- GRILLE PRODUITS ---- */

.produits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.produit-card {
  background: #fff;
  border: 2px solid var(--creme);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.produit-card:hover {
  border-color: var(--safran);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.card-img {
  background: var(--creme);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.badge-card {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--terra);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 1;
}

.badge-card.new {
  background: var(--basilic);
}

.card-body {
  padding: 20px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--gris-c);
  line-height: 1.55;
}

/* ---- SAUCES ---- */

.sauces-bg {
  background: var(--noir);
}

.sauces-bg .section-label {
  color: var(--safran-c);
}

.sauces-bg .section-title {
  color: #fff;
}

.sauces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.sauce-card {
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.sauce-verde-card {
  background: #f0f8f0;
}

.sauce-verde-card:hover {
  border-color: #b8ddb8;
}

.sauce-picon-card {
  background: #fdf0ec;
}

.sauce-picon-card:hover {
  border-color: #f0c0b0;
}

.sauce-icon-big {
  font-size: 3rem;
}

.sauce-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.sauce-verde-card .sauce-tag {
  background: #d0ecd0;
  color: var(--basilic);
}

.sauce-picon-card .sauce-tag {
  background: #fdd8cc;
  color: var(--terra);
}

.sauce-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 10px;
}

.sauce-card p {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ing {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
  background: #fff;
}

.sauce-verde-card .ing {
  color: var(--basilic);
}

.sauce-picon-card .ing {
  color: var(--terra);
}

/* ---- ENGAGEMENTS ---- */

.atouts-bg {
  background: var(--creme);
}

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.atout {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s;
}

.atout:hover {
  transform: translateY(-4px);
}

.atout-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.atout h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 8px;
}

.atout p {
  font-size: 0.8rem;
  color: var(--gris-c);
  line-height: 1.6;
}

/* ---- CTA ---- */

.cta-section {
  background: var(--safran);
  text-align: center;
  padding: 70px 6%;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--safran);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- PAGE EN-TETE ---- */

.page-header {
  background: var(--creme);
  padding: 60px 6% 50px;
  border-bottom: 2px solid rgba(232,151,42,0.2);
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--gris-c);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--safran);
  text-decoration: none;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 0.95rem;
  color: var(--gris);
  max-width: 520px;
  line-height: 1.7;
}

/* ---- STATISTIQUES ---- */

.stats-row {
  background: #fff;
  border-bottom: 2px solid var(--creme);
  display: flex;
  justify-content: center;
}

.stat {
  padding: 28px 56px;
  text-align: center;
  border-right: 1px solid var(--creme);
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--safran);
  line-height: 1;
}

.stat-l {
  font-size: 0.72rem;
  color: var(--gris-c);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- TEMOIGNAGES ---- */

.temo-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 5% 20px;
}

.temo-card {
  background: #fff;
  border: 2px solid var(--creme);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.temo-card.featured {
  border-color: var(--safran);
  border-top: 4px solid var(--safran);
}

.temo-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.av-orange { background: #fef0da; }
.av-blue   { background: #e8eef8; }
.av-green  { background: #e8f4e8; }

.temo-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--noir);
}

.temo-meta {
  font-size: 0.76rem;
  color: var(--gris-c);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.stars {
  color: var(--safran);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.temo-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--gris);
}

.temo-pill {
  display: inline-block;
  margin-top: 18px;
  background: var(--creme);
  color: var(--gris);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 500;
}

.avis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5% 60px;
}

/* ---- SEO ---- */

.seo-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 50px 5% 80px;
}

.intro-card {
  background: #fff;
  border: 2px solid var(--creme);
  border-radius: 14px;
  padding: 30px 34px;
  margin-bottom: 36px;
  border-left: 4px solid var(--safran);
}

.intro-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 10px;
}

.intro-card p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.8;
}

.page-block {
  background: #fff;
  border: 2px solid var(--creme);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.block-header {
  background: var(--creme);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid rgba(232,151,42,0.15);
}

.block-icon {
  width: 40px;
  height: 40px;
  background: var(--safran);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--noir);
}

.block-file {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gris-c);
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
}

.block-body {
  padding: 26px;
}

.kw-group {
  margin-bottom: 20px;
}

.kw-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--safran);
  margin-bottom: 10px;
}

.kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kw-main {
  background: var(--noir);
  color: var(--safran-c);
}

.kw-sec {
  background: var(--creme);
  color: var(--gris);
}

.kw-vol {
  font-size: 0.65rem;
  background: rgba(232,151,42,0.25);
  color: var(--safran);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.arg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.arg {
  background: var(--blanc);
  border: 1px solid var(--creme);
  border-radius: 10px;
  padding: 16px 18px;
}

.arg h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 6px;
}

.arg p {
  font-size: 0.78rem;
  color: var(--gris-c);
  line-height: 1.6;
}

.balise-box {
  background: var(--noir);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 20px;
}

.balise-box h4 {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--safran-c);
  margin-bottom: 14px;
}

.b-item {
  margin-bottom: 10px;
}

.b-tag {
  font-family: monospace;
  color: var(--gris-c);
  font-size: 0.72rem;
}

.b-val {
  font-family: monospace;
  color: #f0d8a8;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ---- INFORMATIONS ---- */

.info-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 5% 80px;
}

.group-card {
  background: #fff;
  border: 2px solid var(--creme);
  border-left: 4px solid var(--safran);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.group-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 12px;
}

.group-card p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.9;
}

.table-block {
  margin-bottom: 52px;
}

.table-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 6px;
}

.table-block .sub {
  font-size: 0.82rem;
  color: var(--gris-c);
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid var(--creme);
  border-radius: 14px;
  overflow: hidden;
}

thead tr {
  background: var(--noir);
}

thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--safran-c);
  font-weight: 600;
}

tbody tr {
  border-bottom: 1px solid var(--creme);
  transition: background 0.1s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(240,232,216,0.4);
}

tbody td {
  padding: 16px 20px;
  font-size: 0.86rem;
  vertical-align: top;
  line-height: 1.6;
  color: var(--gris);
}

.td-badge {
  display: inline-block;
  background: var(--noir);
  color: var(--safran-c);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  font-family: monospace;
}

.td-prompt {
  font-style: italic;
  color: var(--gris-c);
  font-size: 0.82rem;
}

.td-result {
  color: var(--noir);
  font-weight: 500;
  font-size: 0.84rem;
}

.name-td {
  font-weight: 700;
  color: var(--noir);
  font-size: 0.92rem;
}

.contrib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctag {
  background: var(--creme);
  color: var(--gris);
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ---- PAGE NAV ---- */

.page-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 5% 50px;
}

/* ---- FOOTER ---- */

footer {
  background: #fff;
  border-top: 2px solid var(--creme);
  padding: 36px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--noir);
}

.footer-logo span {
  color: var(--safran);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gris-c);
  margin-top: 5px;
}

footer nav a {
  color: var(--gris-c);
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 22px;
  transition: color 0.15s;
}

footer nav a:hover {
  color: var(--noir);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .hero               { grid-template-columns: 1fr; min-height: auto; }
  .hero-right         { min-height: 360px; }
  .produits-grid      { grid-template-columns: 1fr 1fr; }
  .sauces-grid        { grid-template-columns: 1fr; }
  .atouts-grid        { grid-template-columns: 1fr 1fr; }
  .avis-grid          { grid-template-columns: 1fr; }
  .arg-grid           { grid-template-columns: 1fr; }
  .stats-row          { flex-wrap: wrap; }
  .stat               { border-right: none; border-bottom: 1px solid var(--creme); width: 100%; }
}

@media (max-width: 560px) {
  .produits-grid      { grid-template-columns: 1fr; }
  .atouts-grid        { grid-template-columns: 1fr; }
  table               { display: block; overflow-x: auto; }
  footer nav a        { margin: 0 10px; }
  .bandeau            { gap: 16px; }
}
