/* Boutique US Cormeilles Lieurey — couleurs de l'écusson : bleu, blanc, noir */

/* Polices hébergées sur le site (latin) : aucune requête vers Google, donc aucune adresse IP transmise */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-iRpfLYp.woff2") format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-fn5da0S.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-variable-Gz7AlRl.woff2") format('woff2'); }

:root {
    --blue: #0050a1;
    --blue-dark: #003a75;
    --blue-light: #e8f0fa;
    --grey: #898989;
    --ink: #111418;
    --muted: #5d6470;
    --line: #e2e6ec;
    --bg: #f5f7fa;
    --white: #fff;
    --success: #18794e;
    --warning: #a35c00;
    --danger: #c0262d;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
    --font-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 8px 16px; }
.topbar strong { color: #fff; }
.topbar--open { background: var(--blue-dark); }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand__name { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.brand__name small { display: block; font-size: .8rem; color: var(--blue); letter-spacing: .12em; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.is-active { background: var(--blue-light); color: var(--blue); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--blue); color: #fff; font-weight: 600; padding: 10px 14px; border-radius: 999px; }
.cart-link:hover { background: var(--blue-dark); }
.cart-link svg { width: 20px; height: 20px; }
.cart-link__count { background: #fff; color: var(--blue); border-radius: 999px; min-width: 22px; height: 22px; font-size: .8rem; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 860px) {
    .nav { display: none; }
    .header__inner { justify-content: space-between; }
    .brand__name { font-size: 1.1rem; }
    .cart-link__label { display: none; }
}

/* ---------- Hero (rayures de l'écusson) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--blue); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 64px, #0a5bb0 64px 128px); opacity: .9; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 32px; padding: 56px 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 12px; }
.hero p { font-size: 1.1rem; max-width: 34em; opacity: .95; margin: 0 0 24px; }
.hero__crest { justify-self: center; width: min(240px, 60vw); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3)); }
@media (max-width: 760px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 40px 16px; }
    .hero__crest { width: 130px; grid-row: 1; }
    .hero p { margin-left: auto; margin-right: auto; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-light); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-light); }
.btn--link { background: none; border: 0; color: var(--muted); padding: 4px; font-weight: 500; text-decoration: underline; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__head h2::after { content: ''; display: block; width: 48px; height: 4px; background: var(--blue); margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -32px; position: relative; }
.step { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 14px; }
.step__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; }
.step strong { display: block; margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; margin-top: 16px; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 12px 28px rgba(16, 24, 40, .1); }
.card__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.card__img img { max-height: 100%; object-fit: contain; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-weight: 700; line-height: 1.25; }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card__price { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: var(--blue); }
.card__price small { font-family: var(--font-body); font-size: .75rem; color: var(--muted); font-weight: 500; }
.swatches { display: flex; gap: 4px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: var(--grey); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--blue-light); color: var(--blue); }
.badge--success { background: #e3f4ec; color: var(--success); }
.badge--warning { background: #fdf0dc; color: var(--warning); }
.badge--danger { background: #fde8e8; color: var(--danger); }
.badge--secondary { background: #eceff3; color: var(--muted); }
.badge--info { background: #e0f2fe; color: #075985; }
.badge--primary { background: var(--blue-light); color: var(--blue); }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 24px 0 48px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.product__media { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; aspect-ratio: 1; display: grid; place-items: center; position: sticky; top: 92px; }
@media (max-width: 860px) { .product__media { position: static; padding: 20px; aspect-ratio: auto; height: 75vw; max-height: 420px; } }
.product__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; transition: opacity .2s; }
.product__price { font-family: var(--font-title); font-size: 2.2rem; font-weight: 700; color: var(--blue); line-height: 1; margin: 8px 0 16px; }
.product__desc { color: var(--muted); margin-bottom: 20px; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .field legend, .field__label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; padding: 0; }
fieldset.field { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
    width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 80, 161, .15); }
.form-help, .help-text { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-error, .field ul { color: var(--danger); font-size: .85rem; list-style: none; padding: 0; margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }

/* Choice "chips" (coloris, gamme) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .9rem; font-weight: 600; margin: 0; }
.chip label:hover { border-color: var(--blue); }
.chip input:checked + label { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.chip input:disabled + label { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip input:focus-visible + label { box-shadow: 0 0 0 3px rgba(0, 80, 161, .25); }
.chip--color label { padding: 4px 12px 4px 4px; }
.chip--color img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; }

.perso { border: 1.5px dashed var(--blue); background: var(--blue-light); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.perso__title { display: flex; justify-content: space-between; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.perso .field { margin-bottom: 10px; }
.perso .field:last-child { margin-bottom: 0; }
.qty-add { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: end; }

/* ---------- Cart / checkout ---------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding: 24px 0 56px; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 0; }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line__img { width: 84px; height: 84px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; object-fit: contain; }
.line__title { font-weight: 700; }
.line__meta { font-size: .85rem; color: var(--muted); }
.line__price { font-weight: 700; text-align: right; white-space: nowrap; }
.line__actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line__actions input { width: 70px; padding: 6px 8px; }
.summary { position: sticky; top: 92px; }
.summary__row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
.summary__total span:last-child { font-family: var(--font-title); font-size: 1.6rem; color: var(--blue); }
.empty { text-align: center; padding: 64px 16px; }

/* ---------- Alerts ---------- */
.flashes { padding-top: 16px; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; font-weight: 500; border: 1px solid; }
.alert--success { background: #e9f7f0; border-color: #b7e2cb; color: var(--success); }
.alert--warning { background: #fff6e8; border-color: #f5d7a8; color: var(--warning); }
.alert--danger { background: #fdeeee; border-color: #f4c2c4; color: var(--danger); }
.alert--info { background: var(--blue-light); border-color: #bcd3ee; color: var(--blue-dark); }

/* ---------- Order tracking ---------- */
.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.timeline li { position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 40px; }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-weight: 700; z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.is-done { color: var(--ink); font-weight: 600; }
.timeline li.is-done::before { background: var(--blue); color: #fff; content: '✓'; }
.timeline li.is-done::after { background: var(--blue); }

/* ---------- Simulated payment ---------- */
.paybox { max-width: 440px; margin: 48px auto; text-align: center; }
.paybox__amount { font-family: var(--font-title); font-size: 3rem; font-weight: 700; color: var(--blue); margin: 8px 0 20px; }

/* ---------- Prose (CGV) ---------- */
.prose { max-width: 760px; padding: 32px 0 56px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.size-table { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.size-table table { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.size-table th, .size-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table thead th { background: var(--blue); color: var(--white); font-weight: 600; }
.size-table tbody th { text-align: left; font-weight: 600; }
.size-table tbody tr:last-child > * { border-bottom: 0; }
a.form-help { display: inline-block; color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c8ccd2; padding: 40px 0 24px; margin-top: 24px; font-size: .9rem; }
.footer a { color: #fff; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: 52px; }
.footer h4 { color: #fff; font-family: var(--font-title); text-transform: uppercase; font-size: 1.05rem; margin: 0 0 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__bottom { border-top: 1px solid #2a2f36; margin-top: 28px; padding-top: 16px; font-size: .8rem; color: #8b929c; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }

/* Bouton « Installer l'application » (pied de page) */
.footer__install { font: inherit; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 14px; margin-top: 4px; cursor: pointer; }
.footer__install:hover { background: rgba(255, 255, 255, .2); }
.footer__install-help { font-size: .85rem; margin: 8px 0 0; max-width: 260px; }
