:root {
  --bg: #FFFFFF;
  --text: #212529;
  --accent: #1F3864;
  --accent-light: #2c4d8c;
  --light: #EEF1F6;
  --ok: #046A38;
  --err: #B03A2E;
  --bs-primary: #1F3864;
  --bs-primary-rgb: 31, 56, 100;
}
html { font-size: 17px; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
h1, h2, h3, h4, .navbar-brand, .card h3 {
  font-family: "Poppins", "Inter", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
}
h1 { font-size: 2.1rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: .9rem; }
h3 { font-size: 1.25rem; }
p { font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar-brand { color: #fff !important; font-size: 1.3rem; }
#main-nav .nav-link { color: rgba(255,255,255,.9); font-size: 1rem; padding: .5rem .9rem; }
#main-nav .nav-link:hover, #main-nav .nav-link.active { color: #fff; font-weight: 600; }
#nav-account .btn { border-radius: 999px; font-weight: 600; padding: .5rem 1.2rem; }
#nav-account .dropdown-toggle::after { margin-left: .4rem; }
#nav-account img.rounded-circle { object-fit: cover; }

/* ---------- Boutons & formulaires (renforcement Bootstrap) ---------- */
.btn { border-radius: 8px; font-weight: 600; padding: .6rem 1.4rem; font-size: 1rem; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.form-control, .form-select {
  padding: .65rem .95rem; font-size: 1rem; border-radius: 8px; border: 1px solid #ccd2da;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(31,56,100,.15);
}
label { font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { padding: .7rem 1.5rem; font-size: .92rem; color: #555; background: var(--light); border-bottom: 1px solid #dde2e8; border-radius: 0; margin-bottom: 0; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .35rem; color: #999; }
.breadcrumb span[aria-current] { font-weight: 600; color: var(--text); }

/* ---------- Contenu ---------- */
main { padding: 2.25rem 1.5rem; max-width: 1140px; margin: 0 auto; min-height: 60vh; }
#app.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Accueil ---------- */
.hero-carousel { border-radius: 14px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.hero-carousel img { height: 380px; object-fit: cover; }
.hero-carousel .carousel-caption { background: rgba(26,26,26,.5); border-radius: 8px; padding: .75rem 1.25rem; }
.hero-intro { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.hero-intro h1 { font-size: 2.4rem; }
.hero-intro p { color: #444; font-size: 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.home-section { margin-bottom: 2.5rem; }
.home-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.home-section-head a { font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.home-section-head a:hover { text-decoration: underline; }

.sub-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.sub-nav button { background: var(--light); border: none; padding: .65rem 1.25rem; border-radius: 999px; cursor: pointer; font-weight: 600; transition: background .15s ease; }
.sub-nav button:hover { background: #dfe5ee; }

.notice { font-size: .88rem; color: #666; }
.result { font-size: .92rem; min-height: 1.2em; margin-top: .3rem; }
.result.ok { color: var(--ok); font-weight: 600; }
.result.err { color: var(--err); font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.card { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 1.1rem; box-shadow: 0 2px 8px rgba(20,30,50,.06); transition: box-shadow .18s ease, transform .18s ease; overflow: hidden; }
.card:hover { box-shadow: 0 8px 22px rgba(20,30,50,.12); transform: translateY(-3px); }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p { font-size: .95rem; color: #444; }
.card-img { width: calc(100% + 2.2rem); margin: -1.1rem -1.1rem .85rem; display: block; height: 155px; object-fit: cover; }
.card-img-round { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin: 0 auto .6rem; display: block; }
.card.text-center { text-align: center; }
.card-price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.card-condition { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: var(--light); color: #444; }

.news-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.news-list li { padding: .75rem .9rem; background: var(--light); border-radius: 10px; font-size: .97rem; }

table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .96rem; }
th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--light); }
th { color: #555; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

.site-footer { text-align: center; padding: 1.75rem; color: #888; font-size: .9rem; border-top: 1px solid var(--light); }
.site-footer .site-credit { font-size: .72rem; color: #b5b5b5; margin-top: .25rem; }
.site-footer .site-credit a { color: #b5b5b5; text-decoration: none; }
.site-footer .site-credit a:hover { text-decoration: underline; }

.card-clickable { cursor: pointer; }
.post-detail-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 1.25rem; }
.post-detail h1 { font-size: 1.9rem; }
.post-detail .post-meta { color: #666; font-size: .88rem; margin-bottom: 1.1rem; }
.post-detail .post-body { line-height: 1.75; white-space: pre-line; font-size: 1.02rem; }
.post-detail--quote blockquote { font-size: 1.2rem; font-style: italic; color: #333; border-left: 4px solid var(--accent); padding-left: 1.1rem; margin: 1rem 0; }

/* ---------- Sidebar (pages de détail) ---------- */
.post-aside { background: var(--light); border-radius: 12px; padding: 1.25rem; }
.post-aside h4 { font-size: 1rem; margin-bottom: .75rem; }
.post-aside ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.post-aside ul:last-child { margin-bottom: 0; }
.post-aside li a { display: block; color: var(--text); text-decoration: none; font-size: .9rem; padding: .55rem .7rem; border-radius: 8px; background: #fff; transition: background .15s ease; }
.post-aside li a:hover { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.post-aside .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager span { font-size: .9rem; color: #666; }

/* ---------- Boutique ---------- */
.store-filters { background: var(--light); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.store-filters .row > div { margin-bottom: .5rem; }

/* ---------- Toasts ---------- */
.toast-container { z-index: 1080; }

@media (max-width: 991px) {
  main { padding: 1.5rem 1rem; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .breadcrumb { padding: .55rem 1rem; }
  .hero-carousel img { height: 220px; }
  .hero-intro h1 { font-size: 1.7rem; }
}

/* Refonte P01 — bleu d'origine, ivoire, turquoise et or doux */
:root { --ink:#152744; --paper:#f7f8fc; --gold:#e9bc73; --teal:#4dabb0; }
body { background:var(--paper); }
.navbar { box-shadow:0 8px 30px #15274412; padding:1rem 0; }
.navbar-brand { font-size:1.1rem; letter-spacing:-.03em; }
#main-nav { gap:.2rem; }
#main-nav .nav-link { white-space:nowrap; font-size:.86rem; padding:.7rem .65rem; }
#nav-account { margin-left:1rem; flex-shrink:0; }
#nav-account .btn { font-size:.82rem; padding:.55rem .85rem; }
main { max-width:1240px; padding:2rem 2rem 4rem; }
.eyebrow { display:block; font-size:.72rem; font-weight:700; letter-spacing:.18em; color:#397d89; margin-bottom:1rem; }
.modern-hero { position:relative; isolation:isolate; min-height:530px; display:flex; align-items:center; border-radius:24px; overflow:hidden; padding:4rem; background:radial-gradient(ellipse at 90% 10%,#45777e 0,transparent 55%),linear-gradient(125deg,#162b4e,#1f3864 65%,#2c4d8c); color:white; }
.hero-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.modern-hero:has(.hero-photo)::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#142847f0,#142847b3 50%,#14284733); z-index:-1; }
.hero-copy { max-width:690px; z-index:1; }
.hero-copy .eyebrow { color:var(--gold); }
.hero-copy h1 { font-size:clamp(2.2rem,4.5vw,3.8rem); color:white; line-height:1.12; letter-spacing:-.045em; font-weight:700; }
.hero-copy p { max-width:550px; color:#e6ebf4; font-size:1.1rem; margin:1.5rem 0 2rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap:.8rem; }
.hero-actions .btn-primary { background:var(--gold); border-color:var(--gold); color:#172c4d; }
.hero-seal { position:absolute; right:3rem; bottom:2.5rem; color:#ffffff30; font-size:3.5rem; font-weight:700; letter-spacing:-.06em; }
.hero-seal span { display:block; font-size:.8rem; letter-spacing:.65em; text-align:right; }
.mission-block { padding:4rem 1rem; max-width:850px; margin:auto; text-align:center; }
.mission-block h2 { font-size:2rem; letter-spacing:-.03em; }
.mission-block p { color:#647086; }
.mission-block a,.home-section-head a { color:var(--accent); font-weight:600; }
.featured-project { display:grid; grid-template-columns:1fr 1fr; background:#eaf0f7; border-radius:20px; overflow:hidden; margin:0 0 4rem; }
.feature-visual { min-height:350px; background:linear-gradient(140deg,#2c4d8c,#397d89); display:grid; place-items:center; color:#fff; }
.feature-visual img { width:100%; height:100%; min-height:350px; object-fit:cover; }
.feature-copy { padding:3rem; align-self:center; }
.feature-copy h2 { font-size:2rem; letter-spacing:-.04em; }
.home-section { margin:3.5rem 0; }
.home-section-head h2 { font-size:1.9rem; letter-spacing:-.035em; }
.card { padding:1.4rem; border:0; border-radius:16px; box-shadow:0 5px 24px #1527440a; }
.card-img { width:calc(100% + 2.8rem); margin:-1.4rem -1.4rem 1.2rem; height:210px; }
.card-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.gallery-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.gallery-grid figure { margin:0; }
.gallery-grid img { height:240px; box-shadow:none; }
.gallery-grid figcaption { font-size:.83rem; padding:.7rem 0; color:#647086; }
.site-footer { background:var(--accent); color:#e0e7f2; padding:2.5rem; }
#editorial-footer { max-width:650px; margin:0 auto 1rem; }
.dropdown-menu { border:0; box-shadow:0 15px 40px #15274420; border-radius:12px; }
:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
@media(max-width:1199px) { #nav-account { margin:1rem 0 0; } #main-nav .nav-link { white-space:normal; } }
@media(max-width:767px) {
  main { padding:1rem 1rem 3rem; }
  .modern-hero { min-height:480px; padding:2rem 1.5rem; border-radius:16px; }
  .hero-seal { display:none; }
  .featured-project { grid-template-columns:1fr; }
  .feature-copy { padding:2rem; }
  .feature-visual,.feature-visual img { min-height:230px; }
  .home-section-head { align-items:flex-start; gap:1rem; flex-wrap:wrap; }
  .mission-block { padding:3rem .5rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
.language-switcher {margin-left:.8rem;flex-shrink:0}
.language-select {border:1px solid #ffffff60;border-radius:30px;padding:.5rem .6rem;background:#ffffff15;color:#fff;font-size:.85rem;cursor:pointer}
.language-select option {color:#152744;background:white}
.post-aside details {border-bottom:1px solid #d8dfeb;padding:.75rem 0}
.post-aside summary {font-weight:600;color:var(--accent);cursor:pointer;margin-bottom:.5rem}
.product-detail {display:grid;grid-template-columns:1.15fr 1fr;gap:3rem;background:white;border-radius:22px;padding:2rem;margin:1.5rem 0}
.product-picture {display:grid;place-items:center;min-height:350px;background:#f7f8fc;border-radius:16px}
.product-picture img {width:100%;max-height:520px;object-fit:contain}
.product-price {font-size:2rem;font-weight:700;color:var(--accent)}
.product-description {white-space:pre-line}
.product-detail input {max-width:100px;margin-bottom:1rem}
.cart-row {display:flex;gap:1.5rem;align-items:center;justify-content:space-between;padding:1.2rem;background:white;border-radius:12px;margin:.7rem 0}
.cart-row input {max-width:90px}
.checkout-form {max-width:650px;display:grid;gap:1rem;background:white;padding:2rem;border-radius:16px}
.order-summary,.payment-panel {padding:2rem;background:white;border-radius:16px;margin:1rem 0}
.order-card {display:flex;gap:1rem;justify-content:space-between;padding:1.4rem;background:white;border-radius:12px;margin:1rem 0;text-decoration:none}
.order-timeline {border-left:3px solid #4dabb0;padding-left:2rem}
@media(max-width:767px){.product-detail{grid-template-columns:1fr;padding:1.2rem;gap:1.5rem}.cart-row,.order-card{flex-wrap:wrap}.language-switcher{margin:.6rem 0}}
@media(min-width:1200px){.navbar>.container-fluid{gap:.2rem}.navbar-brand{font-size:1rem}#main-nav .nav-link{padding:.5rem .45rem;font-size:.8rem}#nav-account{margin-left:.3rem}#nav-account .btn{padding:.4rem .6rem}.navbar .nav-link[href="#orders"]{font-size:.75rem}.language-switcher{margin-left:.2rem}}
@media(max-width:1199px){.navbar>.container-fluid{flex-wrap:wrap}.navbar-brand{order:1}.navbar .language-switcher{order:2;margin-left:auto}.navbar-toggler{order:3;margin-left:.6rem}.navbar-collapse{order:4;width:100%}}
@media(min-width:1200px){.navbar .language-switcher{margin-left:.5rem}}
.order-info {background:#eef1f6;padding:1rem;border-radius:10px;font-size:.85rem;max-height:220px;overflow:auto}
.language-switcher{display:flex;align-items:center;gap:.25rem}
.language-flag svg{display:block;width:25px;height:17px;border-radius:2px;box-shadow:0 0 0 1px #ffffff50}
.payment-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.8rem;margin:1.5rem 0}
.payment-option{background:white;border:1px solid #dce3ed;border-radius:14px;padding:1.1rem;min-height:85px;color:#1f3864}
.payment-option small{display:block;font-size:.75rem;margin-top:.5rem;color:#65738a}
.payment-option .payment-logo{font-weight:700}
.payment-option.unavailable .payment-logo{filter:blur(1.2px);opacity:.5}
.payment-option.unavailable{cursor:not-allowed;background:#eef1f6}
.payment-option.configured{opacity:1}

.legal-footer{display:flex;flex-wrap:wrap;gap:12px 22px;padding:25px max(20px,6vw);background:#f5eee1;border-top:1px solid #e4d7bd}.legal-footer a{color:#1f3864;font-size:14px}.legal-consent{padding:16px;border-radius:12px;background:#fff6e7;border:1px solid #e4d2ae;margin:12px 0}.legal-consent label{display:flex;gap:10px;align-items:flex-start;font-size:14px}.legal-consent input[type=checkbox]{flex:0 0 auto;margin-top:4px}.legal-document{max-width:900px;margin:auto}.legal-organisation{padding:22px;background:#edf4f3;border-radius:16px;margin-top:24px}.legal-card{display:block;padding:24px;border:1px solid #e2d7c5;border-radius:16px;background:#fffaf2;color:#1f3864;text-decoration:none}.legal-card h2{font-size:20px}.legal-card p,.legal-organisation p{white-space:pre-wrap}#privacy-request-form{display:grid;gap:12px;max-width:600px}#privacy-request-form label{display:grid;gap:6px}#privacy-request-form textarea{min-height:120px}.legal-consent a:focus-visible,.legal-footer a:focus-visible{outline:3px solid #bb8b32;outline-offset:3px}
/* P05 — dossiers financiers */
.finance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1.25rem;margin:1.5rem 0}.finance-card,.finance-method,.finance-summary{padding:1.5rem;border:1px solid #dbe4ec;border-radius:18px;background:#fff;box-shadow:0 8px 24px #17365a09}.finance-card{display:flex;flex-direction:column;gap:.65rem;text-decoration:none;color:#183b60}.finance-card strong,.finance-summary>strong{font-size:1.65rem;color:#a15e21}.finance-method.unavailable{background:#f2f4f6;opacity:.6}.finance-method.unavailable h3{filter:blur(1.4px)}.finance-summary>span{margin-left:1rem}.finance-summary dl{display:grid;grid-template-columns:1fr auto;gap:.5rem;max-width:480px;margin-top:1rem}.finance-reference{display:flex;flex-direction:column;gap:.7rem;margin-top:1rem}.finance-method p[data-content]{white-space:pre-wrap}

/* 4: product mockups must remain fully visible. */
.product-catalog-card .card-img{object-fit:contain;background:#f4f5f7;padding:.8rem;height:230px}.product-catalog-card .card-condition{font-size:.7rem}.product-description{white-space:pre-line}
