/* Infinite Paper : direction artistique du 1er décembre (papier, graphite, un accent cuivre). */
:root {
  --papier: #F4F1EA;
  --papier-fonce: #E8E3D8;
  --graphite: #1E2226;
  --gris: #4A4F55;
  --cuivre: #9A4F2A;
  --cuivre-clair: #E0A27E;
  --trait: rgba(30, 34, 38, .16);
  --rayon: 8px;
  --rayon-carte: 12px;
  --titres: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--graphite); font: 400 16px/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.conteneur { width: min(1120px, 100% - 40px); margin-inline: auto; }
.lecture { max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 860px) { body { font-size: 17px; } h1 { font-size: 64px; } h2 { font-size: 40px; } h3 { font-size: 24px; } }

/* Petites mentions : Inter 600, capitales espacées */
.etiquette { font: 600 12px var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-bottom: .9rem; }
@media (min-width: 860px) { .etiquette { font-size: 13px; } }
.note { font-size: .85rem; color: var(--gris); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: var(--papier); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { flex: none; }
.logo img { display: block; height: 26px; width: auto; }
.entete nav { display: none; gap: 2rem; font-size: .95rem; }
.entete nav a, .panier-lien { text-decoration: none; }
.entete nav a:hover, .panier-lien:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cuivre); }
.panier-lien { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; min-height: 44px; }
.panier-lien span { min-width: 1.6rem; height: 1.6rem; padding-inline: .3rem; border-radius: 999px; background: var(--graphite); color: var(--papier); font-size: .8rem; display: inline-grid; place-items: center; }
@media (min-width: 720px) { .entete nav { display: flex; } .logo img { height: 28px; } }

/* Boutons : principal graphite (cuivre au survol), secondaire à contour */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 1.6rem; border: 1.5px solid var(--graphite); border-radius: var(--rayon); background: var(--graphite); color: var(--papier); font: 600 16px var(--texte); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--cuivre); border-color: var(--cuivre); }
.btn--contour { background: transparent; color: var(--graphite); }
.btn--contour:hover { background: transparent; color: var(--cuivre); }
.btn--clair { background: var(--papier); color: var(--graphite); border-color: var(--papier); }
.btn--bloc { width: 100%; }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--fonce { background: var(--papier-fonce); }
.section--graphite { background: var(--graphite); color: var(--papier); }
.section__intro { max-width: 640px; margin-bottom: 2.5rem; }
.section__intro--centre { margin-inline: auto; text-align: center; }
.section--graphite .etiquette { color: var(--cuivre-clair); }

/* Double bannière */
.doublehero { display: grid; grid-template-columns: 1fr; }
.tuile { position: relative; min-height: clamp(460px, 62vw, 640px); display: flex; align-items: flex-end; justify-content: center; text-align: center; color: var(--papier); overflow: hidden; background: var(--graphite); }
.tuile__visuel { position: absolute; inset: 0; }
.tuile__visuel svg { width: 100%; height: 100%; }
.tuile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 34, 38, .88) 0%, rgba(30, 34, 38, .45) 38%, rgba(30, 34, 38, 0) 65%); }
.tuile__texte { position: relative; z-index: 1; max-width: 30rem; padding: 2rem 1.5rem 2.75rem; }
.tuile__texte h1, .tuile__texte h2 { color: var(--papier); }
.tuile__texte h1 { font-size: 34px; }
.tuile__texte h2 { font-size: 34px; }
.tuile__texte p { opacity: .92; }
.badge-rond { position: absolute; z-index: 2; top: 1.25rem; left: 1.25rem; width: 80px; height: 80px; border-radius: 50%; background: var(--cuivre); color: var(--papier); display: grid; place-items: center; font: 600 17px var(--titres); transform: rotate(-8deg); }
@media (min-width: 720px) { .doublehero { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tuile__texte h1, .tuile__texte h2 { font-size: 44px; } }

/* Grande photo pleine largeur */
.plein { position: relative; min-height: clamp(380px, 52vw, 600px); display: grid; place-items: center; text-align: center; color: var(--papier); overflow: hidden; background: var(--graphite); }
.plein > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plein::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(30, 34, 38, .58); }
.plein > div { position: relative; z-index: 2; max-width: 38rem; padding: 3rem 1.5rem; }
.plein h2 { color: var(--papier); }
.plein .etiquette { color: var(--cuivre-clair); }
.plein small { position: absolute; z-index: 2; right: 1rem; bottom: .6rem; font-size: .7rem; opacity: .75; }

/* Hero (ancien) */
.hero { padding-block: clamp(2rem, 6vw, 5rem); }
.hero__grille { display: grid; gap: 2rem; align-items: center; }
.hero__visuel { border-radius: var(--rayon-carte); overflow: hidden; background: var(--papier-fonce); }
.hero__prix { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.5rem 0; font: 500 24px var(--titres); }
@media (min-width: 860px) { .hero__grille { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* Prix : barré en gris crayon, promo en graphite, badge cuivre */
.prix-barre { color: var(--gris); font-size: .8em; }
.badge { display: inline-block; background: var(--cuivre); color: var(--papier); font: 600 12px var(--texte); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; }

/* Collection : cartes sur papier foncé, coins 12 px, sans ombre */
.collection { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.carte { background: var(--papier-fonce); border-radius: var(--rayon-carte); padding: .75rem .75rem 1.25rem; height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.carte__image { border-radius: 8px; overflow: hidden; background: var(--papier); aspect-ratio: 1; display: grid; place-items: center; }
.carte__image > svg { width: 100%; height: 100%; }
.carte__image--vide svg { width: 56px; height: 56px; fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 { font-size: 18px; margin: 1rem .5rem .15rem; }
.carte p { margin: 0 .5rem; font-size: .95rem; color: var(--gris); }
.carte .prix-carte { color: var(--graphite); font: 500 18px var(--titres); }
.pastilles { display: flex; gap: .5rem; margin: .75rem .5rem 0; }
.pastilles button { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .3); padding: 0; cursor: pointer; }
.pastilles button[aria-pressed="true"] { outline: 2px solid var(--graphite); outline-offset: 2px; }
@media (min-width: 860px) { .collection { grid-template-columns: repeat(4, 1fr); } }

/* Arguments et étapes (icônes au trait, 1,5 px) */
.arguments, .etapes { display: grid; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.arguments svg, .etapes svg { width: 48px; height: 48px; fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 1rem; }
.arguments p, .etapes p { margin: 0; color: var(--gris); }
.etapes { counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li > span { display: block; font: 600 13px var(--texte); letter-spacing: .16em; color: var(--gris); margin-bottom: .75rem; }
.etapes li > span::before { content: "0" counter(etape); }
@media (min-width: 720px) { .arguments, .etapes { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Comparatif : colonne Infinite Paper en graphite */
.tableau-zone { overflow-x: auto; }
.tableau { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: var(--papier); border-radius: var(--rayon-carte); text-align: left; }
.tableau th, .tableau td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--trait); vertical-align: top; font-size: .95rem; }
.tableau thead th { font-family: var(--titres); font-size: 1.05rem; }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau .nous { background: var(--graphite); color: var(--papier); border-bottom-color: rgba(244, 241, 234, .18); font-weight: 600; }
.tableau thead .nous { border-top-left-radius: var(--rayon-carte); border-top-right-radius: var(--rayon-carte); }
.tableau tbody tr:last-child .nous { border-bottom-left-radius: var(--rayon-carte); border-bottom-right-radius: var(--rayon-carte); }

/* Bloc graphite : chiffres */
.chiffres { display: grid; gap: 2rem; }
.chiffres strong { display: block; font: 600 clamp(64px, 12vw, 120px)/1 var(--titres); color: var(--cuivre-clair); }
@media (min-width: 720px) { .chiffres { grid-template-columns: 1fr 1fr 1.2fr; align-items: end; } }

/* Usages (photos) */
.usages { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.usage { margin: 0; }
.usage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon-carte); background: var(--papier-fonce); }
.usage figcaption { padding-top: .75rem; font-size: .95rem; }
.usage figcaption strong { display: block; font-family: var(--titres); font-weight: 500; font-size: 1.1rem; }
.usage small { display: block; color: var(--gris); font-size: .75rem; }
@media (min-width: 860px) { .usages { grid-template-columns: repeat(4, 1fr); } }

/* Avis : défilement horizontal */
.avis { display: flex; gap: 1rem; list-style: none; padding: 0 0 1rem; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.avis li { flex: 0 0 min(320px, 82%); scroll-snap-align: start; background: var(--papier); border-radius: var(--rayon-carte); padding: 1.5rem; }
.badge-fictif { display: inline-block; font: 600 11px var(--texte); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--graphite); border-radius: 6px; padding: .15rem .5rem; margin-bottom: .75rem; }
.avis p { margin-bottom: .75rem; }
.avis footer { font-size: .85rem; color: var(--gris); }

/* Entreprises */
.entreprises { display: grid; gap: 1.5rem; align-items: center; background: var(--papier-fonce); border-radius: var(--rayon-carte); padding: clamp(1.5rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .entreprises { grid-template-columns: 1.4fr auto; } }

/* FAQ */
details { border-bottom: 1px solid var(--trait); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--gris); padding-bottom: 1rem; margin: 0; }

/* Formulaires */
.newsletter { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 460px; }
.newsletter input { flex: 1 1 200px; height: 48px; padding: 0 1rem; border: 1.5px solid var(--papier); border-radius: var(--rayon); background: transparent; color: var(--papier); font: inherit; }
.newsletter input::placeholder { color: rgba(244, 241, 234, .6); }
.message { min-height: 1.6em; font-size: .9rem; margin: .75rem 0 0; }
.champ { margin: 1rem 0 0; }
.champ label { display: block; font-size: .9rem; margin-bottom: .4rem; }
.champ input { width: 100%; height: 48px; padding: 0 1rem; border: 1.5px solid var(--graphite); border-radius: var(--rayon); background: transparent; color: inherit; font: inherit; }

/* Page produit */
.produit { display: grid; gap: 2rem; padding-block: 2rem 4rem; }
.galerie__image { border-radius: var(--rayon-carte); overflow: hidden; background: var(--papier-fonce); }
.galerie__vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.vignette { padding: 0; border: 2px solid transparent; border-radius: var(--rayon); overflow: hidden; background: var(--papier-fonce); cursor: pointer; }
.vignette[aria-pressed="true"] { border-color: var(--graphite); }
.achat h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: .25rem; }
.sous-titre { color: var(--gris); font-size: 1.1rem; }
.prix { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font: 500 24px var(--titres); margin-bottom: .25rem; }
.promo-info { font-size: .9rem; color: var(--gris); }
.promo-info strong { color: var(--cuivre); }
fieldset { border: 0; padding: 0; margin: 1.5rem 0; }
legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.choix input { position: absolute; opacity: 0; }
.choix label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--trait); border-radius: var(--rayon); cursor: pointer; }
.choix input:checked + label { border-color: var(--graphite); background: var(--papier-fonce); }
.choix input:focus-visible + label { outline: 2px solid var(--graphite); outline-offset: 3px; }
.pastille { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.quantite { display: inline-flex; align-items: center; border: 1.5px solid var(--graphite); border-radius: var(--rayon); height: 48px; }
.quantite button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; color: inherit; cursor: pointer; }
.quantite output { min-width: 2.5rem; text-align: center; font-weight: 600; }
.infos { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; font-size: .92rem; color: var(--gris); }
.erreur { font-weight: 600; }
@media (min-width: 860px) { .produit { grid-template-columns: 1.1fr 1fr; gap: 4rem; } .achat { padding-top: 1rem; } }

/* Panier */
.panier { padding-block: 2.5rem 4rem; }
.ligne { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center; padding-block: 1.25rem; border-bottom: 1px solid var(--trait); list-style: none; }
.ligne__image { border-radius: var(--rayon); overflow: hidden; background: var(--papier-fonce); }
.ligne h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ligne small { display: block; color: var(--gris); }
.ligne__outils { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.lien { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--gris); text-decoration: underline; cursor: pointer; }
.recap { margin-top: 2rem; padding: 1.5rem; background: var(--papier-fonce); border-radius: var(--rayon-carte); }
.recap dl { margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; }
.recap dt, .recap dd { margin: 0; }
.recap .total { font: 600 1.25rem var(--titres); padding-top: .75rem; border-top: 1px solid var(--trait); }
.code { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.code input { flex: 1 1 160px; height: 44px; padding: 0 .9rem; border: 1.5px solid var(--graphite); border-radius: var(--rayon); background: var(--papier); font: inherit; text-transform: uppercase; }
.code .btn { height: 44px; }
.vide { padding-block: 3rem; }
@media (min-width: 860px) { .panier__grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; } .recap { margin-top: 0; position: sticky; top: 96px; } }

/* Pages de texte */
.texte { padding-block: 3rem 5rem; }
.texte h2 { font-size: 1.5rem; margin-top: 2rem; }
.texte ul, .texte ol { padding-left: 1.2rem; }
.texte a { color: var(--cuivre); }

/* Pied de page graphite */
.pied { background: var(--graphite); color: var(--papier); padding-block: 3.5rem; font-size: .92rem; }
.pied__grille { display: grid; gap: 2.5rem; }
.pied img { height: 28px; width: auto; }
.pied h2 { font: 600 12px var(--texte); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; color: var(--cuivre-clair); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cuivre-clair); }
.pied p { opacity: .85; }
.pied .newsletter input { border-color: rgba(244, 241, 234, .5); }
.pied .btn { background: var(--papier); border-color: var(--papier); color: var(--graphite); }
.pied .btn:hover { background: var(--cuivre-clair); border-color: var(--cuivre-clair); }
@media (min-width: 860px) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Logo allongé : plus grand quand la place le permet */
@media (min-width: 1000px) { .logo img { height: 36px; } }

/* Photos de la gamme */
.gamme { text-align: center; }
.gamme img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto .75rem; background: #fff; border-radius: var(--rayon-carte); }
.carte__image--photo { background: #fff; position: relative; }
.carte__image--photo img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }

/* Mines de rechange */
.mines { scroll-margin-top: 64px; }
.mines__bloc { text-align: center; max-width: 640px; }
.mines__bloc .prix { margin: 0 0 1rem; }
.mines__bloc .prix strong { font: 500 24px var(--titres); }
.mines__bloc fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.mines__bloc legend { margin: 0 auto .75rem; font-weight: 600; }
.choix--mines { justify-content: center; }
.choix--mines label { flex-direction: column; align-items: center; padding: .5rem; min-width: 76px; background: #fff; }
.choix--mines img { display: block; width: 60px; height: 60px; object-fit: contain; }
.mines__achat { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.ligne__image img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.choix--mines input:checked + label { background: #fff; box-shadow: 0 0 0 1.5px var(--graphite); }
.mines__bloc .prix { justify-content: center; }
.choix--mines { flex-wrap: nowrap; gap: .5rem; }
.choix--mines label { min-width: 68px; }

/* Photos */
.tuile__visuel img { width: 100%; height: 100%; object-fit: cover; }
.tuile__main { object-position: 50% 45%; }
.gamme--photo img { max-width: 100%; }
.mines__photo { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 1.25rem; border-radius: var(--rayon-carte); }
.galerie__image { aspect-ratio: 1; }
.galerie__image > svg { display: block; width: 100%; height: 100%; }
.galerie__photo { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--papier-fonce); }
.galerie__vignettes { grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.vignette { aspect-ratio: 1; }
.vignette > svg { display: block; width: 100%; height: 100%; }
.tuile__mines { transform: scale(1.18); transform-origin: 42% 100%; }
/* Sur téléphone : la photo d'abord, le texte dessous, pour ne pas cacher le crayon */
@media (max-width: 719px) {
  .tuile { flex-direction: column; justify-content: flex-start; align-items: stretch; min-height: 0; }
  .tuile__visuel { position: relative; inset: auto; width: 100%; aspect-ratio: 1; overflow: hidden; }
  .tuile::after { display: none; }
  .tuile__texte { margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
  .tuile__main { object-position: 50% 55%; }
}

/* Vues du crayon, à partir de la photo détourée (proportions d'origine) */
.vue { display: block; position: relative; width: 100%; height: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; }
.vue img { position: absolute; max-width: none; height: auto; }
.vue--packshot img { width: 118%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-45deg); filter: drop-shadow(0 6px 5px rgba(30, 34, 38, .22)); }
.vue--pointe img { width: 230%; left: -158%; top: 38%; transform: translateY(-50%) rotate(-30deg); transform-origin: 100% 50%; }
.vue--logo img { width: 300%; left: -97%; top: 50%; transform: translateY(-50%) rotate(-12deg); transform-origin: 49% 50%; }

/* Choix de la langue */
.langue { margin-left: auto; font: 600 12px var(--texte); letter-spacing: .1em; text-decoration: none; border: 1.5px solid var(--graphite); border-radius: 6px; padding: .35rem .55rem; }
.langue:hover { color: var(--cuivre); border-color: var(--cuivre); }
@media (min-width: 720px) { .langue { margin-left: 0; } }
@media (max-width: 420px) { .entete__ligne { gap: .6rem; } .logo img { height: 24px; } }
@media (max-width: 359px) { .logo img { height: 19px; } }
.carte__image--photo img.remplir { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Guide */
.guide img { width: 100%; height: auto; border-radius: var(--rayon-carte); margin: 1rem 0 2rem; }
.guide h2 { margin-top: 2.2rem; font-size: clamp(22px, 3vw, 30px); }
.guide li { margin-bottom: .4rem; }
.guide h1 { font-size: clamp(30px, 6vw, 52px); }
