/* ===== Corbie Informatique — feuille de style ===== */
:root {
  --navy: #0b1a33;
  --navy-2: #12264a;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --yellow: #ffd21f;
  --yellow-dark: #e6b800;
  --ink: #142033;
  --muted: #5b6678;
  --line: #e3e8f0;
  --bg: #f6f8fb;
  --white: #fff;
  --green: #18a058;
  --red: #d64545;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(11, 26, 51, .18);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html { overflow-anchor: none; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.material-symbols-rounded { font-size: 1.25em; line-height: 1; vertical-align: middle; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(255, 210, 31, .7); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: #1877f2; }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; color: var(--blue); }
.link-arrow .material-symbols-rounded { transition: transform .2s; }
.link-arrow:hover .material-symbols-rounded { transform: translateX(4px); }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--navy); color: #cdd6e6; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-links a, .topbar-links .topbar-mail { display: inline-flex; align-items: center; gap: .4em; transition: color .2s; }
.topbar-links a:hover { color: var(--yellow); }
.fb-link svg { width: 16px; height: 16px; fill: currentColor; }

.status { display: inline-flex; align-items: center; gap: .5em; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #8a94a6; }
.status.open .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(24,160,88,.2); }
.status.closed .dot { background: var(--red); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -10px rgba(11,26,51,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 140px; transition: height .25s; }
.brand-logo { height: 128px; width: auto; transition: height .25s; }
.header.scrolled .header-inner { height: 96px; }
.header.scrolled .brand-logo { height: 84px; }
.brand-text { align-items: center; gap: .6rem; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); color: var(--navy); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue); transition: width .2s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 85% 20%, rgba(37,99,235,.45), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(255,210,31,.18), transparent 60%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding: 6rem 0 7rem; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hl { color: var(--yellow); }
.lead { font-size: 1.15rem; color: #c9d3e5; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: #c9d3e5; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .4em; }
.hero-points .material-symbols-rounded { color: var(--yellow); }

.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 1.75rem; backdrop-filter: blur(6px); }
.hero-card-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.hero-card-head > .material-symbols-rounded { font-size: 2rem; color: var(--yellow); }
.hero-card-head small { display: block; color: #9fb0cc; font-size: .85rem; }
.hero-card-head strong { font-size: 1.2rem; }
.pill { margin-left: auto; padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .85rem; font-weight: 600; }
.hero-card-body { padding-top: 1.25rem; }
.hero-card-body p { display: flex; gap: .6rem; color: #c9d3e5; margin-bottom: 1rem; }
.hero-card-body p .material-symbols-rounded { color: var(--yellow); }
.hero-inner > * { min-width: 0; }
.hero-card-body a { overflow-wrap: break-word; }
.hero-card .link-arrow { color: var(--yellow); }

/* ---------- Piliers ---------- */
.pillars { margin-top: -4rem; position: relative; z-index: 2; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); color: var(--navy); margin-bottom: 1.25rem; }
.icon-badge .material-symbols-rounded { font-size: 1.6rem; }
.pillar h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.pillar p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Services */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--bg); border: 1px solid transparent; transition: border-color .2s, transform .2s, background .2s, box-shadow .2s; }
.card:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow); }
.card > .material-symbols-rounded { font-size: 2rem; color: var(--blue); background: var(--blue-soft); padding: .45rem; border-radius: 12px; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card li, .product li { position: relative; padding-left: 1.1rem; color: var(--muted); margin-bottom: .25rem; }
.card li::before, .product li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-dark); }

/* Produits */
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-head p { color: #a9b6cc; }
.section-dark .eyebrow { color: var(--yellow); }
.products-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; margin-bottom: 4rem; }
.product { position: relative; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 2.25rem 2rem; }
.product > .material-symbols-rounded { font-size: 2.6rem; color: var(--yellow); margin-bottom: 1rem; }
.product h3 { font-size: 1.45rem; }
.product .tag { color: #a9b6cc; margin-bottom: 1.25rem; }
.product li { color: #d5ddeb; }
.product.featured { background: linear-gradient(160deg, var(--blue), #1d3fa8); border: 0; transform: translateY(-10px); box-shadow: 0 25px 50px -20px rgba(37,99,235,.6); }
.product.featured li { color: #fff; }
.product.featured .tag { color: #dbe5ff; }
.badge { position: absolute; top: 1.25rem; right: 1.25rem; background: var(--yellow); color: var(--navy); font-size: .75rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.sub-title { text-align: center; font-size: 1.4rem; margin-bottom: 1.75rem; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.chip { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .2s; }
.chip:hover { background: rgba(255,255,255,.08); }
.chip > .material-symbols-rounded { font-size: 1.6rem; color: var(--yellow); }
.chip strong { display: block; }
.chip small { color: #a9b6cc; font-size: .9rem; line-height: 1.4; }

/* Actualités */
.section-soft { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-media { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.news-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
a.news-media { overflow: hidden; cursor: zoom-in; }
a.news-media:hover img { transform: scale(1.04); }
.news-media .material-symbols-rounded { font-size: 3.5rem; color: var(--yellow); }
.news-body { padding: 1.5rem; }
.news-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; font-size: .85rem; }
.news-tag { background: var(--yellow); color: var(--navy); font-weight: 700; padding: .2em .7em; border-radius: 999px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.news-date { color: var(--muted); }
.news h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.news p { color: var(--muted); white-space: pre-line; }
.news-more { text-align: center; margin-top: 2.5rem; }
.news-fb { display: inline-block; margin-top: .7rem; font-weight: 600; font-size: .9rem; color: #1877f2; text-decoration: none; }
.news-fb:hover { text-decoration: underline; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-size: .9rem; font-weight: 500; text-align: left; background: linear-gradient(transparent, rgba(11,26,51,.85)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 14, 28, .94); display: flex; align-items: center; justify-content: center; padding: 3rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: #dbe3f0; text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--yellow); color: var(--navy); }
.lb-btn .material-symbols-rounded { font-size: 1.8rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 4rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* Magasin */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-stat { position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--yellow); color: var(--navy); border-radius: 16px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow); }
.about-stat strong { display: block; font-size: 2.2rem; line-height: 1; }
.about-stat span { font-weight: 600; font-size: .9rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text p strong { color: var(--ink); }
.address { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink) !important; }
.address .material-symbols-rounded { color: var(--blue); }
.hours { margin-top: 1.75rem; background: var(--bg); border-radius: var(--radius); padding: 1.5rem; }
.hours h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.hours h3 .material-symbols-rounded { color: var(--blue); }
.hours li { display: flex; justify-content: space-between; padding: .55rem .75rem; border-radius: 10px; }
.hours li + li { border-top: 1px solid var(--line); }
.hours li.today { background: var(--navy); color: #fff; border-color: transparent; font-weight: 600; }
.hours li.today + li { border-color: transparent; }
.hours .closed { color: var(--red); }
.hours li.today .closed { color: #ff9b9b; }
.map-wrap { margin-top: 4rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: 20px; box-shadow: var(--shadow); }

/* Bandeau Facebook */
.fb-band { background: #1877f2; color: #fff; padding: 3rem 0; }
.fb-band-inner { display: flex; align-items: center; gap: 1.75rem; }
.fb-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.15); }
.fb-icon svg { width: 36px; height: 36px; fill: #fff; }
.fb-band h2 { font-size: 1.6rem; }
.fb-band p { color: #dbe7ff; }
.fb-band .btn { margin-left: auto; flex: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 14px; transition: background .2s; margin-bottom: .5rem; }
.contact-line:hover { background: var(--bg); }
.contact-line > .material-symbols-rounded { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 1.4rem; flex: none; }
.contact-line small { display: block; color: var(--muted); font-size: .85rem; }
.contact > * { min-width: 0; }
.contact-line > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-line span span { font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s, background .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
fieldset { border: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: inline-flex !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { padding: .45em .9em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .88rem; transition: .15s; }
.check:hover span { border-color: var(--blue); }
.check input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.check input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Pied de page */
.footer { background: var(--navy); color: #a9b6cc; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { height: 120px; width: auto; margin-bottom: 1rem; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer h4 { color: #fff; margin-bottom: 1rem; }
.footer-grid > div > a:not(.social) { display: block; margin-bottom: .4rem; transition: color .2s; }
.footer a:hover { color: var(--yellow); }
.footer p { margin-bottom: .75rem; }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); transition: background .2s; }
.social:hover { background: #1877f2; }
.social svg { width: 22px; height: 22px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy) !important; flex: none; }

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem 0 6rem; }
  .pillars-grid, .cards-grid, .products-main { grid-template-columns: 1fr 1fr; }
  .product.featured { transform: none; }
  .about { gap: 3rem; }
  .about-stat { left: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 760px) {
  .topbar-links { gap: .4rem 1rem; font-size: .82rem; flex-wrap: wrap; justify-content: center; padding: .5rem 0; }
  .topbar-inner { height: auto; }
  .topbar .status { display: none; }
  .topbar-inner { justify-content: center; }
  .pillars-grid, .cards-grid, .products-main { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .form .row { grid-template-columns: 1fr; }
  .fb-band-inner { flex-direction: column; text-align: center; }
  .fb-band .btn { margin-left: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 104px; }
  .brand-logo { height: 92px; }
  .header.scrolled .header-inner { height: 80px; }
  .header.scrolled .brand-logo { height: 68px; }
}
