/* ==========================================================================
   BTIS Sarl — couche design & animations (v1, 2026-10)
   Chargée après les styles de chaque page : tous les sélecteurs sont préfixés
   par "body" pour l'emporter sur les <style> intégrés, sans !important.
   ========================================================================== */

:root {
    --b-navy: #113f5c;
    --b-navy-deep: #0a2a3f;
    --b-orange: #f97316;
    --b-orange-dark: #ea580c;
    --b-ink: #0f1f2b;
    --b-text: #475569;
    --b-line: #e2e8f0;
    --b-soft: #f4f7fa;
    --b-radius: 16px;
    --b-ease: cubic-bezier(.22, .8, .25, 1);
    --b-shadow-s: 0 2px 10px rgba(10, 42, 63, .06);
    --b-shadow-m: 0 12px 32px rgba(10, 42, 63, .12);
    --b-shadow-l: 0 24px 56px rgba(10, 42, 63, .18);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body ::selection { background: var(--b-orange); color: #fff; }
body :focus-visible { outline: 3px solid var(--b-orange); outline-offset: 3px; border-radius: 6px; }
body img { max-width: 100%; }

/* ---------- Barre de progression de lecture ---------- */
.btis-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 2000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--b-orange), #fbbf24); pointer-events: none; }

/* ---------- En-tête ---------- */
body .header { transition: height .35s var(--b-ease), box-shadow .35s var(--b-ease), background .35s var(--b-ease), backdrop-filter .35s; }
body .header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 42, 63, .12); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
body .nav-link { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 600; letter-spacing: .2px; position: relative; transition: color .25s; }
body .nav-link::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--b-orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--b-ease); }
body .nav-link:hover::after, body .nav-link.is-active::after { transform: scaleX(1); }
body .nav-link.is-active { color: var(--b-navy); }
body .logo-img { transition: transform .35s var(--b-ease); }
body .logo:hover .logo-img { transform: scale(1.04); }
body .devise { transition: transform .3s var(--b-ease), box-shadow .3s; }
body .devise:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249, 115, 22, .25); }

/* ---------- Titres de section (unifiés) ---------- */
body .titre-section,
body .section-titles,
body .projets-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    letter-spacing: -.01em;
    color: var(--b-navy-deep);
    text-shadow: none;
    text-align: center;
    position: relative;
    padding-bottom: 1.1rem;
    margin-bottom: 2.8rem;
}
body .titre-section::after,
body .section-titles::after,
body .projets-title::after {
    content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--b-orange), #fbbf24);
}
body .projets-title { margin-bottom: 1.4rem; }
body .projets-subtitle { color: var(--b-text); font-size: 1.1rem; }
body .section-titleA { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: .04em; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
body .section-subtitleA { color: #cbd5e1; }
body .section-titleA::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 1rem auto 0; background: linear-gradient(90deg, var(--b-orange), #fbbf24); }

/* ---------- Héros ---------- */
body .hero { height: auto; min-height: 100vh; min-height: 100svh; height: 100svh; background: var(--b-navy-deep); }
body .hero-overlay { background:
    linear-gradient(105deg, rgba(10, 42, 63, .88) 0%, rgba(10, 42, 63, .55) 48%, rgba(10, 42, 63, .22) 100%),
    linear-gradient(to top, rgba(10, 42, 63, .55), transparent 35%); }
body .slide { transition: opacity 1.4s ease-in-out; }
body .slide-image { transform: scale(1.02); will-change: transform; }
body .slide.active .slide-image { animation: btisKen 9s ease-out forwards; }
@keyframes btisKen { from { transform: scale(1.02); } to { transform: scale(1.12); } }

body .hero-content { animation: none; max-width: 760px; }
body .hero-content > * { opacity: 0; transform: translateY(26px); animation: btisUp .9s var(--b-ease) forwards; }
body .hero-content > :nth-child(1) { animation-delay: .15s; }
body .hero-content > :nth-child(2) { animation-delay: .30s; }
body .hero-content > :nth-child(3) { animation-delay: .45s; }
body .hero-content > :nth-child(4) { animation-delay: .60s; }
body .hero-content > :nth-child(5) { animation-delay: .75s; }
@keyframes btisUp { to { opacity: 1; transform: none; } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; margin-bottom: 1.4rem;
    border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font: 600 .78rem/1 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--b-orange); box-shadow: 0 0 0 0 rgba(249, 115, 22, .7); animation: btisPulse 2s infinite; }
@keyframes btisPulse { 70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }

body .hero-title { font-size: clamp(2.6rem, 6.2vw, 4.8rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
body .hero-title::after { content: ''; display: block; width: 84px; height: 5px; border-radius: 5px; margin-top: 1rem; background: linear-gradient(90deg, var(--b-orange), #fbbf24); }
body .hero-subtitle { font-size: clamp(1.15rem, 2.2vw, 1.85rem); color: #fff; }
body .hero-description { font-size: clamp(1rem, 1.4vw, 1.2rem); color: #e2e8f0; }

body .hero .btn { border-radius: 999px; padding: 1.05rem 2.2rem; font-size: 1rem; letter-spacing: .02em; position: relative; overflow: hidden; isolation: isolate; }
body .hero .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--b-ease); }
body .hero .btn:hover::after { transform: translateX(120%); }
body .hero .btn-primary { background: linear-gradient(135deg, var(--b-orange), var(--b-orange-dark)); box-shadow: 0 10px 28px rgba(249, 115, 22, .45); }
body .hero .btn-primary:hover { background: linear-gradient(135deg, #fb8a3c, var(--b-orange)); box-shadow: 0 14px 34px rgba(249, 115, 22, .6); transform: translateY(-3px); }
body .hero .btn-secondary { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
body .hero .btn-secondary:hover { background: #fff; border-color: #fff; color: var(--b-navy-deep); }

body .slider-controls { bottom: 2.2rem; gap: 1.2rem; }
body .slider-prev, body .slider-next { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); width: 46px; height: 46px; }
body .slider-prev:hover, body .slider-next:hover { background: var(--b-orange); border-color: var(--b-orange); transform: scale(1.08); }
body .slider-dots { align-items: center; }
body .slider-dots .dot { width: 10px; height: 10px; background: rgba(255, 255, 255, .5); transition: width .4s var(--b-ease), background .3s; transform: none; }
body .slider-dots .dot.active { width: 38px; border-radius: 10px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; transform: none; }
body .slider-dots .dot.active::after { content: ''; position: absolute; inset: 0; background: var(--b-orange); transform-origin: left; animation: btisFill 5s linear forwards; }
@keyframes btisFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body .hero:hover .slider-dots .dot.active::after { animation-play-state: paused; }

.hero-scroll { position: absolute; z-index: 3; left: 2rem; bottom: 2.4rem; display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font: 600 .72rem/1 'Montserrat', sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.hero-scroll:hover { opacity: 1; }
.hero-scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--b-orange); animation: btisWheel 1.8s ease-in-out infinite; }
@keyframes btisWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Domaines d'excellence ---------- */
body .competences { background: #fff; padding: clamp(60px, 8vw, 110px) 1.5rem; }
body .carte-competence {
    border: 1px solid var(--b-line); border-radius: var(--b-radius); box-shadow: var(--b-shadow-s); background: #fff; overflow: hidden;
    animation: none; opacity: 0; transform: translateY(34px);
    transition: opacity .8s var(--b-ease), transform .8s var(--b-ease), box-shadow .4s var(--b-ease), border-color .4s;
}
body .carte-competence::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--b-orange), #fbbf24); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--b-ease); }
body .carte-competence.is-in { opacity: 1; transform: none; }
body .carte-competence.is-in:hover { transform: translateY(-8px); box-shadow: var(--b-shadow-m); border-color: transparent; }
body .carte-competence:hover::before { transform: scaleX(1); }
body .icone-competence { width: 76px; height: 76px; border-radius: 20px; background: linear-gradient(145deg, #eef3f8, #fff); border-color: var(--b-line); transition: background .4s, transform .5s var(--b-ease), border-color .4s; }
body .icone-competence img { filter: brightness(0) saturate(100%) invert(19%) sepia(35%) saturate(1500%) hue-rotate(172deg); width: 34px; height: 34px; transition: filter .4s, transform .5s var(--b-ease); }
body .carte-competence:hover .icone-competence { background: linear-gradient(145deg, var(--b-navy), var(--b-navy-deep)); border-color: transparent; transform: rotate(-6deg) scale(1.06); }
body .carte-competence:hover .icone-competence img { filter: brightness(0) invert(1); transform: scale(1.1); }
body .carte-competence h3 { color: var(--b-navy-deep); font-weight: 700; }
body .carte-competence p { color: var(--b-text); }

/* ---------- « Nous offrons à nos clients » ---------- */
.btis-offres { background: linear-gradient(180deg, var(--b-soft), #fff 70%); padding: clamp(60px, 8vw, 110px) 0; }
body .btis-offres .container { max-width: 1200px; padding: 0 1.5rem; }
body .items-grid { gap: 28px; }
body .item {
    align-items: flex-start; text-align: left; padding: 2rem 1.8rem 2rem; border-radius: var(--b-radius); border: 1px solid var(--b-line);
    box-shadow: var(--b-shadow-s); position: relative; overflow: hidden; background: #fff;
    transition: opacity .8s var(--b-ease), transform .8s var(--b-ease), box-shadow .4s var(--b-ease), border-color .4s;
}
body .item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--b-orange), #fbbf24); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--b-ease); }
body .item.visible:hover { transform: translateY(-8px); box-shadow: var(--b-shadow-m); border-color: transparent; }
body .item:hover::before { transform: scaleY(1); }
body .item-img { width: 72px; height: 72px; max-width: none; padding: 14px; margin-bottom: 1.2rem; border-radius: 18px; background: linear-gradient(145deg, #eef3f8, #fff); border: 1px solid var(--b-line); object-fit: contain; transition: transform .5s var(--b-ease), background .4s; }
body .item:hover .item-img { transform: rotate(-5deg) scale(1.07); background: #fff4ec; }
body .item-title { color: var(--b-navy-deep); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.35; min-height: 0; justify-content: flex-start; text-align: left; margin-bottom: .8rem; }
body .item-text { color: var(--b-text); line-height: 1.7; }

/* ---------- « Pourquoi nous choisir » ---------- */
body .btis-section { background: linear-gradient(rgba(10, 42, 63, .9), rgba(10, 42, 63, .92)), url('../images/back.jpg') center / cover fixed; padding: clamp(70px, 9vw, 120px) 0; }
body .atout-card { border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); text-align: left; padding: 2.4rem 2rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body .atout-card::before { background: linear-gradient(90deg, var(--b-orange), #fbbf24); }
body .atout-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, .12); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
body .atout-icon { margin: 0 0 1.2rem; background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .5); color: var(--b-orange); }
body .atout-card:hover .atout-icon { background: var(--b-orange); color: #fff; transform: rotate(-8deg) scale(1.08); }
body .atout-number { position: absolute; top: .6rem; right: 1.4rem; margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 4.2rem; line-height: 1; color: rgba(255, 255, 255, .07); transition: color .4s; }
body .atout-card:hover .atout-number { color: rgba(249, 115, 22, .3); }
body .atout-title { text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 700; }
body .atout-text { text-align: left; hyphens: none; text-justify: auto; color: #cbd5e1; }

/* ---------- Réalisations ---------- */
body .projets { background: var(--b-soft); padding: clamp(60px, 8vw, 110px) 1.5rem; }
body .filtre-btn { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .88rem; border-width: 1px; border-color: var(--b-line); color: var(--b-navy); }
body .filtre-btn:hover { background: #fff; border-color: var(--b-orange); color: var(--b-orange-dark); box-shadow: 0 6px 16px rgba(249, 115, 22, .18); }
body .filtre-btn.active { background: linear-gradient(135deg, var(--b-orange), var(--b-orange-dark)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, .35); }
body .projet-card { border-radius: 20px; height: 100% !important; box-shadow: var(--b-shadow-s); border: 1px solid var(--b-line); transition: opacity .8s var(--b-ease), transform .8s var(--b-ease), box-shadow .4s var(--b-ease); }
body .projet-card.visible:hover { box-shadow: var(--b-shadow-l); }
body .projet-image { height: 260px; }
body .projet-image img { transition: transform 1.1s var(--b-ease); }
body .projet-card:hover .projet-image img { transform: scale(1.08); }
body .projet-overlay { background: linear-gradient(to top, rgba(10, 42, 63, .92), transparent 65%); }
body .projet-categorie { background: #fff4ec; color: var(--b-orange-dark); font-family: 'Montserrat', sans-serif; font-weight: 700; }
body .projet-content h3 { color: var(--b-navy-deep); font-weight: 700; }
body .projet-content p, body .stat { color: var(--b-text); }
body .stat i { color: var(--b-orange); }
body .progress-bar { height: 8px; background: #e8eef4; }
body .progress-fill { background: linear-gradient(90deg, var(--b-orange), #fbbf24); position: relative; }
body .btn-en-savoir-plus { background: var(--b-navy); border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 600; transition: background .3s, transform .3s var(--b-ease), gap .3s; }
body .btn-en-savoir-plus:hover { background: var(--b-orange); transform: translateY(-2px); gap: .9rem; }
body .cta-btn { border-radius: 999px; }

/* ---------- Pied de page ---------- */
body .btis-footer { background: linear-gradient(180deg, var(--b-navy-deep), #071d2c); position: relative; }
body .btis-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--b-orange), #fbbf24, var(--b-orange)); }
body .btis-footer-main, body .btis-footer-newsletter { border-color: rgba(255, 255, 255, .1); }
body .btis-footer-title { position: relative; padding-bottom: .8rem; font-weight: 700; }
body .btis-footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--b-orange); }
body .btis-footer-description, body .btis-footer-links a, body .btis-contact-item span, body .btis-copyright p, body .btis-footer-legal a { color: #a9b8c6; }
body .btis-footer-links a:hover, body .btis-footer-legal a:hover { color: #fff; }
body .btis-footer-links a::before { background: var(--b-orange); }
body .btis-contact-item i { color: var(--b-orange); }
body .btis-social-link { background: rgba(255, 255, 255, .08); border-radius: 12px; transition: background .3s, transform .3s var(--b-ease); }
body .btis-social-link:hover { background: var(--b-orange); transform: translateY(-4px); }
body .btis-email-link:hover { color: var(--b-orange) !important; }
body .btis-input-group button { background: linear-gradient(135deg, var(--b-orange), var(--b-orange-dark)); }
body .btis-input-group button:hover { background: linear-gradient(135deg, #fb8a3c, var(--b-orange)); }
body .btis-back-to-top { background: var(--b-orange); box-shadow: 0 10px 24px rgba(249, 115, 22, .45); }
body .btis-back-to-top:hover { background: var(--b-orange-dark); }

/* ---------- Réponses mobile ---------- */
@media (max-width: 900px) {
    .hero-scroll { display: none; }
    body .hero-content > :nth-child(1) { margin-left: auto; margin-right: auto; }
    body .hero-title::after { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    body .btis-section { background-attachment: scroll; }
    body .item { padding: 1.5rem 1.3rem; }
    body .atout-card { padding: 2rem 1.4rem; }
    body .slider-prev, body .slider-next { display: none; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body *, body *::before, body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    body .hero-content > *, body .carte-competence { opacity: 1; transform: none; }
}

/* Grille des réalisations : jamais plus large que l'écran (350 px mini provoquait un débordement sur mobile) */
body .projets-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
body .hero-eyebrow { max-width: 100%; }
@media (max-width: 480px) { .hero-eyebrow { font-size: .68rem; letter-spacing: .08em; padding: .4rem .8rem; } }

/* ==========================================================================
   Espace membres : actualités, galerie, projets publiés, navigation
   ========================================================================== */
body .nav-link.nav-login { border: 1.5px solid var(--b-navy); border-radius: 999px; padding: .45rem 1rem; color: var(--b-navy); }
body .nav-link.nav-login::after { display: none; }
body .nav-link.nav-login:hover, body .nav-link.nav-login.is-active { background: var(--b-navy); color: #fff; }

.page-hero { padding: calc(var(--header-height, 70px) + 3.5rem) 1.5rem 3rem; text-align: center; background: linear-gradient(135deg, var(--b-navy-deep), var(--b-navy)); color: #fff; }
.page-hero h1 { font: 800 clamp(2rem, 5vw, 3.2rem)/1.1 'Montserrat', sans-serif; margin: 0 0 .8rem; color: #fff; }
.page-hero p { margin: 0 auto; max-width: 620px; color: #cbd5e1; font-size: 1.1rem; }
.dyn-block { padding: clamp(50px, 7vw, 90px) 1.5rem; background: #fff; }
.dyn-block.dyn-alt { background: var(--b-soft); }
.dyn-block.article { padding-top: calc(var(--header-height, 70px) + 3rem); min-height: 70vh; }
.dyn-wrap { max-width: 1200px; margin: 0 auto; }
.dyn-wrap.narrow { max-width: 820px; }
.dyn-title { font: 800 clamp(1.7rem, 3.2vw, 2.5rem) 'Montserrat', sans-serif; color: var(--b-navy-deep); text-align: center; margin: 0 0 2.6rem; padding-bottom: 1rem; position: relative; }
.dyn-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 4px; transform: translateX(-50%); background: linear-gradient(90deg, var(--b-orange), #fbbf24); }
.dyn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.8rem; }
.dyn-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--b-shadow-s); transition: transform .4s var(--b-ease), box-shadow .4s var(--b-ease); }
.dyn-card:hover { transform: translateY(-8px); box-shadow: var(--b-shadow-m); }
.dyn-img { position: relative; height: 220px; overflow: hidden; background: var(--b-line); }
.dyn-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--b-ease); }
.dyn-card:hover .dyn-img img { transform: scale(1.08); }
.dyn-badge { position: absolute; top: 1rem; right: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(249, 115, 22, .95); color: #fff; font: 600 .72rem 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.dyn-badge.ok { background: rgba(5, 150, 105, .95); }
.dyn-badge.inline { position: static; display: inline-block; margin-bottom: 1rem; }
.dyn-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.dyn-body h3 { margin: 0; font: 700 1.2rem/1.3 'Montserrat', sans-serif; color: var(--b-navy-deep); }
.dyn-body p { margin: 0; color: var(--b-text); line-height: 1.6; font-size: .95rem; flex: 1; }
.dyn-date { font-size: .8rem; font-weight: 600; color: var(--b-orange-dark); text-transform: uppercase; letter-spacing: .06em; }
.dyn-more { margin-top: .6rem; font-weight: 600; color: var(--b-navy); font-size: .9rem; }
.dyn-more i { transition: transform .3s; }
.dyn-card:hover .dyn-more i { transform: translateX(5px); }
.dyn-cta { text-align: center; margin: 2.4rem 0 0; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.dyn-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.8rem; border-radius: 999px; background: linear-gradient(135deg, var(--b-orange), var(--b-orange-dark)); color: #fff; font: 600 .95rem 'Montserrat', sans-serif; text-decoration: none; box-shadow: 0 10px 26px rgba(249, 115, 22, .35); transition: transform .3s var(--b-ease); }
.dyn-btn:hover { transform: translateY(-3px); }
.dyn-btn.ghost { background: #fff; color: var(--b-navy-deep); border: 1px solid var(--b-line); box-shadow: none; }
.dyn-empty { text-align: center; color: var(--b-text); padding: 3rem 0; }
.dyn-back { display: inline-block; margin-bottom: 1.4rem; color: var(--b-navy); text-decoration: none; font-weight: 600; }
.article h1 { font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.15 'Montserrat', sans-serif; color: var(--b-navy-deep); margin: .4rem 0 1.4rem; }
.article-cover { width: 100%; border-radius: 18px; margin-bottom: 1.8rem; box-shadow: var(--b-shadow-m); }
.article-body { font-size: 1.08rem; line-height: 1.85; color: #334155; }
.article-body a { color: var(--b-orange-dark); word-break: break-all; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--b-text); margin: 0 0 1.4rem; }
.proj-meta i { color: var(--b-orange); margin-right: .3rem; }
.progress-bar.big { height: 10px; border-radius: 10px; background: #e8eef4; overflow: hidden; margin-bottom: 1.6rem; }
.progress-bar.big .progress-fill { height: 100%; background: linear-gradient(90deg, var(--b-orange), #fbbf24); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .9rem; margin-top: 2rem; }
.gal-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--b-line); position: relative; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--b-ease); }
.gal-item:hover img { transform: scale(1.09); }
.gal-item::after { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(10, 42, 63, .45); opacity: 0; transition: opacity .3s; }
.gal-item:hover::after { opacity: 1; }
.lb { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 18, 28, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-cap { color: #e2e8f0; margin-top: 1rem; text-align: center; min-height: 1.4em; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: background .3s; }
.lb button:hover { background: var(--b-orange); }
.lb .x { top: 1rem; right: 1rem; }
.lb .p { left: 1rem; top: 50%; }
.lb .n { right: 1rem; top: 50%; }

#projets-recents.dyn-block { padding-top: calc(var(--header-height, 70px) + 3rem); }

/* ---------- En-tête : une seule ligne, icône de compte ---------- */
body .nav-container { max-width: 1320px; }
body .nav-menu { gap: clamp(1.2rem, 2.6vw, 2.6rem); flex-wrap: nowrap; }
body .nav-link { white-space: nowrap; font-size: 1rem; padding: .5rem 0; }
body .nav-link::before { display: none; }
body .nav-link::after { left: 0; right: 0; bottom: 0; }
body .devise-container { display: flex; align-items: center; gap: .9rem; }
body .devise { border-radius: 999px; padding: .5rem 1.1rem; }
.nav-account { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--b-navy); background: var(--b-soft); border: 1.5px solid var(--b-line); font-size: 1rem; transition: background .3s, color .3s, transform .3s var(--b-ease), border-color .3s; flex-shrink: 0; }
.nav-account:hover { background: var(--b-navy); color: #fff; border-color: var(--b-navy); transform: translateY(-2px); }
.nav-account.is-in::after { content: ''; position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #10b981; border: 2px solid #fff; }
@media (min-width: 769px) and (max-width: 1180px) { body .devise { display: none; } }
@media (max-width: 768px) { .nav-account { display: none; } }

/* Album dans « À propos › Nos réalisations » */
.album-grid-wrap { margin-top: 2.5rem; }
.album-grid-title { font: 700 1.15rem 'Montserrat', sans-serif; color: var(--b-navy-deep); margin: 0 0 .4rem; }
.album-grid-title i { color: var(--b-orange); margin-right: .4rem; }
