/* ==================== Variables & base ==================== */
:root {
  --rouge: #ED1C24;
  --rouge-fonce: #B4151B;
  --brun: #5C4033;
  --brun-clair: #8A6D5C;
  --brun-fond: #EFE7E1;
  --gris: #A7A9AC;
  --gris-fonce: #3A3A3A;
  --gris-texte: #55565A;
  --gris-clair: #F6F4F2;
  --blanc: #FFFFFF;
  --ombre: 0 10px 30px rgba(58, 40, 30, 0.10);
  --rayon: 14px;
  --police: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  color: var(--gris-fonce);
  line-height: 1.6;
  background: var(--blanc);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; color: var(--gris-fonce); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--gris-texte); }
a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 0; list-style: none; margin: 0; }

.conteneur {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Boutons ==================== */
.bouton {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.bouton:hover { text-decoration: none; transform: translateY(-2px); }
.bouton--rouge { background: var(--rouge); color: var(--blanc); box-shadow: var(--ombre); }
.bouton--rouge:hover { background: var(--rouge-fonce); }
.bouton--contour { border-color: var(--brun); color: var(--brun); }
.bouton--contour:hover { background: var(--brun); color: var(--blanc); }
.bouton--petit { padding: 9px 20px; font-size: 0.9rem; }

/* ==================== En-tete ==================== */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.entete__barre {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.entete__logo img { height: 34px; width: auto; }
.entete__nav { display: flex; align-items: center; gap: 28px; }
.entete__nav a:not(.bouton) {
  color: var(--gris-fonce); font-weight: 600; font-size: 0.95rem;
}
.entete__nav a:not(.bouton):hover { color: var(--rouge); text-decoration: none; }
.entete__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.entete__burger span { width: 24px; height: 2px; background: var(--gris-fonce); border-radius: 2px; }

/* ==================== Hero ==================== */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--gris-clair) 0%, var(--blanc) 100%); }
.hero__grille { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__label {
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--rouge); font-size: 0.82rem; margin-bottom: 14px;
}
.hero__intro { font-size: 1.08rem; max-width: 46ch; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero__visuel {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.hero__visuel-logo {
  position: absolute; top: 0; left: 50%; width: 92%;
  transform: translateX(-50%) rotate(-3deg);
  opacity: 0.13; z-index: 1; pointer-events: none; user-select: none;
}
.hero__visuel-papier {
  position: relative; z-index: 2;
  background: var(--blanc); border-radius: 10px; box-shadow: 0 20px 44px rgba(58,40,30,0.20);
  padding: 16px; width: 76%; border: 1px solid #eee;
  transform: rotate(-6deg) translateY(6%);
}
.hero__visuel-scanner {
  position: absolute; z-index: 3; right: 2%; bottom: -4%; width: 48%;
  transform: rotate(20deg);
  filter: grayscale(1) brightness(1.6) contrast(0.85) drop-shadow(0 16px 20px rgba(40,30,22,0.22));
}

/* ==================== Bande atouts ==================== */
.atouts { background: var(--brun); padding: 44px 0; }
.atouts__grille {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.atout__icone { color: var(--blanc); width: 46px; height: 46px; margin: 0 auto 14px; }
.atout__icone svg { width: 100%; height: 100%; }
.atout h3 { color: var(--blanc); }
.atout p { color: #E7DCD3; margin-bottom: 0; font-size: 0.92rem; }

/* ==================== Sections generiques ==================== */
.section { padding: 80px 0; }
.section--claire { background: var(--gris-clair); }
.section--brune { background: var(--brun); color: var(--blanc); }
.section--brune p, .section--brune li { color: #EFE3DA; }
.section__label {
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--rouge); font-size: 0.82rem; margin-bottom: 10px;
}
.section__label--clair { color: #FFD3D1; }
.section__intro { max-width: 66ch; font-size: 1.05rem; }

/* ==================== Cartes fonctionnalites ==================== */
.cartes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px; margin-top: 40px;
}
.carte {
  background: var(--blanc); border: 1px solid #ececec; border-radius: var(--rayon);
  padding: 28px 24px; box-shadow: var(--ombre);
}
.carte__icone { color: var(--rouge); width: 40px; height: 40px; margin-bottom: 16px; }
.carte__icone svg { width: 100%; height: 100%; }
.carte p { font-size: 0.94rem; margin-bottom: 0; }

/* ==================== Scanner ==================== */
.scanner__grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.scanner__visuel {
  background: var(--blanc); border-radius: var(--rayon); padding: 24px;
}
.specs { margin: 20px 0 26px; }
.specs li {
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #F3EAE4; font-size: 0.96rem;
}
.specs li strong { color: var(--blanc); }
.scanner__prix { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.scanner__prix-montant { font-size: 2rem; font-weight: 800; color: var(--blanc); }
.scanner__prix-detail { color: #E7DCD3; font-size: 0.88rem; }

/* ==================== Contact ==================== */
.contact__grille { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.contact__liste li { padding: 6px 0; color: var(--gris-texte); }
.contact__liste li strong { color: var(--gris-fonce); }
.contact__carte {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 28px; border-top: 4px solid var(--rouge);
}
.contact__croix { width: 44px; margin-bottom: 14px; border-radius: 4px; }
.contact__carte p { margin: 0; font-size: 0.94rem; }

/* ==================== Pied de page ==================== */
.pied { background: #241813; color: #cbb9ac; padding: 48px 0 26px; }
.pied__grille {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pied__logo img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 10px; }
.pied__logo p { color: #a3897a; font-size: 0.88rem; margin: 0; }
.pied__liens { display: flex; flex-direction: column; gap: 10px; }
.pied__liens a { color: #d8c9be; }
.pied__mentions p { color: #a3897a; font-size: 0.85rem; }
.pied .conteneur > .pied__mentions { margin-top: 20px; }
.pied__mentions { grid-column: 1 / -1; }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .hero__grille, .scanner__grille, .contact__grille { grid-template-columns: 1fr; }
  .hero__visuel { order: -1; }
  .atouts__grille { grid-template-columns: 1fr; gap: 28px; }
  .pied__grille { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .entete__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanc); flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid #eee;
    display: none;
  }
  .entete__nav.ouvert { display: flex; }
  .entete__burger { display: flex; }
  .section { padding: 56px 0; }
}

/* ==================== Formulaire de commande ==================== */
.commande {
  max-width: 620px;
  margin: 0 auto;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 36px;
}
.champ { margin-bottom: 20px; }
.champ label {
  display: block; font-weight: 600; font-size: 0.92rem;
  color: var(--gris-fonce); margin-bottom: 6px;
}
.champ input[type="text"],
.champ input[type="email"] {
  width: 100%; padding: 11px 14px; font-size: 1rem;
  border: 1px solid #D8D3CE; border-radius: 8px;
  font-family: var(--police); color: var(--gris-fonce);
}
.champ input:focus { outline: 2px solid var(--rouge); outline-offset: 1px; }
.champ--duo { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.champ--case label {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; font-size: 0.98rem; cursor: pointer;
}
.champ--case input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.commande__total {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 16px 0; margin: 8px 0 24px; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.commande__total strong { font-size: 1.6rem; color: var(--gris-fonce); }
.commande__total-detail { color: var(--gris-texte); font-size: 0.85rem; }
.commande .bouton { border: none; cursor: pointer; width: 100%; text-align: center; font-size: 1.05rem; }
.commande__erreurs {
  background: #FDEBEA; border: 1px solid var(--rouge); color: var(--rouge-fonce);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 22px;
}
.commande__erreurs p { color: var(--rouge-fonce); margin: 0 0 6px; font-weight: 600; }
.commande__erreurs ul { padding-left: 18px; list-style: disc; }
.commande__erreurs li { color: var(--rouge-fonce); }
.confirmation {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 48px 36px;
}
.confirmation__icone {
  width: 64px; height: 64px; margin: 0 auto 20px; color: var(--rouge);
}
@media (max-width: 560px) {
  .commande { padding: 24px; }
  .champ--duo { grid-template-columns: 1fr; }
}
