/* ============================================================
   IMPRE3D — Feuille de style principale
   Palette : Ambre #F0B233 | Marine #1E2D40 | Blanc #FFFFFF | Crème #FBF6EC
   ============================================================ */

:root {
    --amber:      #F0B233;
    --amber-dark: #D9980E;
    --amber-light:#FBF0D0;
    --navy:       #1E2D40;
    --navy-mid:   #2C3E54;
    --navy-light: #3D5068;
    --white:      #FFFFFF;
    --cream:      #FBF6EC;
    --gray:       #8A9AAB;
    --gray-light: #EFF3F7;
    --radius:     6px;
    --shadow:     0 4px 24px rgba(30,45,64,.10);
    --shadow-lg:  0 12px 40px rgba(30,45,64,.16);
    --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
.display { font-family: 'Barlow Condensed', sans-serif; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
p { color: var(--navy-light); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary {
    background: var(--amber);
    color: var(--navy);
    border-color: var(--amber);
}
.btn-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,178,51,.35);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 8px;
}
.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--amber);
    letter-spacing: .05em;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    font-size: .95rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--amber);
    background: rgba(240,178,51,.1);
}
.nav-cta {
    padding: 9px 22px;
    background: var(--amber);
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-cta:hover, .nav-cta.active {
    background: var(--amber-dark);
    transform: translateY(-1px);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ── */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 70px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(240,178,51,.03) 40px,
        rgba(240,178,51,.03) 41px
    );
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(240,178,51,.15);
    color: var(--amber);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(240,178,51,.3);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--amber); }
.hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 36px;
    max-width: 420px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-wrap {
    position: relative;
    width: 280px;
    height: 280px;
}
.hero-logo-wrap img {
    width: 100%;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(240,178,51,.25));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-layers {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.layer-bar {
    height: 6px;
    background: var(--amber);
    border-radius: 3px;
    opacity: .4;
    animation: layerGrow 2s ease-in-out infinite alternate;
}
.layer-bar:nth-child(1) { width: 100px; animation-delay: 0s; }
.layer-bar:nth-child(2) { width: 75px; animation-delay: .15s; }
.layer-bar:nth-child(3) { width: 50px; animation-delay: .3s; }
@keyframes layerGrow {
    from { opacity: .25; } to { opacity: .7; }
}

/* ── Stats band ── */
.stats-band {
    background: var(--amber);
    padding: 24px 0;
}
.stats-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy-mid);
    margin-top: 2px;
}

/* ── Section titles ── */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 8px;
}
.section-header h2 { color: var(--navy); }
.section-header p {
    margin-top: 12px;
    font-size: 1.05rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Product cards ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber);
}
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--amber-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--amber-light) 0%, #F5DFA0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.product-body {
    padding: 20px;
}
.product-category {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--amber-dark);
    background: var(--amber-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.product-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--navy);
}
.product-desc {
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}
.product-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}
.product-price span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray);
}
.btn-order-sm {
    padding: 8px 18px;
    font-size: .95rem;
}
.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ── How it works ── */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.how-step {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background: var(--cream);
    position: relative;
}
.how-step::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 3px;
    background: var(--amber);
    border-radius: 2px;
}
.step-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}
.step-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--amber-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.how-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.how-step p { font-size: .88rem; }

/* ── Materials ── */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.material-card {
    padding: 28px;
    background: var(--cream);
    border-radius: 10px;
    border-left: 4px solid var(--amber);
}
.material-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.material-card p { font-size: .88rem; }
.material-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--amber-dark);
    background: var(--amber-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Page hero (intérieur) ── */
.page-hero {
    background: var(--navy);
    padding: 56px 0;
    color: var(--white);
    text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero h1 span { color: var(--amber); }
.page-hero p {
    color: rgba(255,255,255,.65);
    font-size: 1.05rem;
    margin-top: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Catalogue filter ── */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: center;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-light);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
}

/* ── Forms ── */
.form-section {
    max-width: 720px;
    margin: 0 auto;
}
.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy);
    margin-bottom: 8px;
}
label .req { color: var(--amber-dark); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: var(--navy);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--amber);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(240,178,51,.12);
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%231E2D40' d='M5.5 7l4.5 5 4.5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.form-hint { font-size: .8rem; color: var(--gray); margin-top: 5px; }
.form-title { margin-bottom: 8px; }
.form-subtitle { color: var(--gray); font-size: .95rem; margin-bottom: 32px; }
.form-submit { width: 100%; padding: 16px; font-size: 1.15rem; }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: .95rem;
    font-weight: 500;
}
.alert-success { background: #EDFBF3; color: #1A7A45; border: 1px solid #A3E6C0; }
.alert-error   { background: #FEF0EF; color: #A3231A; border: 1px solid #F5C0BB; }

/* ── Product selector (commande) ── */
.product-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 6px;
}
.product-option {
    position: relative;
}
.product-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.product-option-label {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream);
}
.product-option input:checked + .product-option-label {
    border-color: var(--amber);
    background: var(--amber-light);
}
.product-option-label:hover {
    border-color: var(--amber);
}
.option-name { font-weight: 600; font-size: .95rem; display: block; }
.option-price { color: var(--amber-dark); font-weight: 700; font-size: .9rem; }

/* ── Contact page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}
.contact-info {
    background: var(--navy);
    color: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
}
.contact-info h3 { color: var(--amber); margin-bottom: 24px; }
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item p { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 2px; }
.contact-item strong { color: var(--white); font-size: .95rem; }

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 0;
    margin-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
    height: 52px;
    width: 52px;
    border-radius: 8px;
    margin-bottom: 14px;
}
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.6; }
.footer-links h4,
.footer-contact h4 {
    color: var(--amber);
    margin-bottom: 16px;
    font-size: .8rem;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--amber); }
.footer-contact p { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 8px; }
.footer-contact a { color: var(--amber); }
.footer-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 20px;
    background: var(--amber);
    color: var(--navy);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.footer-cta:hover { background: var(--amber-dark); }
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    font-size: .85rem;
    color: var(--gray);
}
.breadcrumb a { color: var(--navy-light); }
.breadcrumb a:hover { color: var(--amber-dark); }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-lead { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-card { padding: 32px 24px; }
}
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }
    .main-nav.open { display: flex; }
    .nav-cta { text-align: center; }
    .stats-inner { gap: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 56px 0 50px; }
}
