/* ALGR Rénovation — static styles (v2) */
:root{
  --algr-bg:#1a1f24; --algr-fg:#f4f6f7;
  --algr-dark:#1a1f24;
  --algr-peach:#d8d0c8; --algr-peach-fg:#1f2a3a;
  --algr-card:#262c33;
  --algr-primary:#5fc1c7; --algr-primary-fg:#0f1f2a;
  --algr-muted:#a6adb3;
  --algr-border:rgba(255,255,255,.12);
  --algr-accent:#d97843;
  --algr-light:#f4f4f6;
  --algr-max:1200px;
}

.algr, .algr *{box-sizing:border-box;margin:0;padding:0;border-color:var(--algr-border)}
.algr{font-family:"Montserrat",ui-sans-serif,system-ui,sans-serif;background:var(--algr-bg);color:var(--algr-fg);-webkit-font-smoothing:antialiased;line-height:1.55;font-weight:400}
.algr img{max-width:100%;display:block}
.algr a{color:inherit;text-decoration:none}
.algr h1,.algr h2,.algr h3,.algr h4{font-family:"Libre Baskerville","Playfair Display",Georgia,serif;letter-spacing:-.005em;line-height:1.2;font-weight:700}
.algr ul{list-style:none}
.algr button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}

.algr .container{max-width:var(--algr-max);margin:0 auto;padding:0 24px}

.algr #site-header{position:fixed;inset:0 0 auto 0;z-index:50;background:#ecebea;border-bottom:1px solid rgba(0,0,0,.08)}
.algr .nav-row{height:128px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.algr .brand{display:flex;align-items:center;gap:16px;transform-origin:left center;transition:transform .25s ease-out}
.algr .brand-logo{width:96px;height:96px;background:transparent;overflow:hidden;display:grid;place-items:center;border:1px solid var(--algr-primary);border-radius:4px}
.algr .brand-logo.small{width:32px;height:32px}
.algr .brand-logo img{width:100%;height:100%;object-fit:cover}
.algr .brand-name{display:inline-flex;align-items:center;line-height:1}
.algr .brand-wordmark{height:96px;width:auto;display:block;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:980px){.algr .brand-wordmark{height:64px}}
@media(max-width:980px){.algr .bn-main{font-size:1.4rem}.algr .bn-sub{font-size:.6rem;letter-spacing:.32em}}
.algr .main-nav{display:flex;gap:28px;padding-right:24px}
.algr .nav-link{position:relative;padding-bottom:4px;font-size:.95rem;color:#111;transition:color .2s}
.algr .nav-link:hover,.algr .nav-link.active{color:var(--algr-primary)}
.algr .nav-link.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--algr-primary)}
.algr .burger{display:none;font-size:24px;color:#111}
@media(max-width:980px){
  .algr .main-nav{display:none;position:absolute;top:128px;left:0;right:0;flex-direction:column;background:#ecebea;padding:18px 24px;gap:14px;border-bottom:1px solid rgba(0,0,0,.08)}
  .algr .main-nav.open{display:flex}
  .algr .burger{display:block}
  .algr .brand-name{font-size:1.1rem}
  .algr .brand-logo{width:64px;height:64px}
  .algr .nav-row{height:88px}
}

.algr .hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:140px 24px 60px;overflow:hidden}
.algr .hero-bg{position:absolute;inset:0}
.algr .hero-bg img{width:100%;height:100%;object-fit:cover}
.algr .hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom, rgba(26,31,36,.7), rgba(26,31,36,.4), rgba(26,31,36,.85))}
.algr .hero-content{position:relative;z-index:2;text-align:center;max-width:880px;color:#f4f6f7}
.algr .hero-content h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(2.4rem,6vw,4.5rem);font-weight:700;letter-spacing:-.01em;line-height:1.15}
.algr .accent-italic{color:var(--algr-primary);font-style:italic}
.algr .hero-content p{margin-top:24px;font-size:clamp(1rem,1.4vw,1.2rem);color:rgba(244,246,247,.85);max-width:640px;margin-left:auto;margin-right:auto}
.algr .hero-cta{margin-top:36px;display:flex;flex-wrap:wrap;gap:14px;justify-content:center}

.algr .btn{display:inline-block;padding:14px 28px;font-weight:600;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;border-radius:2px;transition:filter .2s,background .2s,color .2s}
.algr .btn-primary{background:var(--algr-primary);color:var(--algr-primary-fg)}
.algr .btn-primary:hover{filter:brightness(1.1)}
.algr .btn-primary.sm{padding:10px 18px;font-size:.7rem;border-radius:4px}
.algr .btn-outline{border:2px solid #f4f6f7;color:#f4f6f7}
.algr .btn-outline:hover{background:#f4f6f7;color:var(--algr-dark)}

.algr .section{padding:96px 0}
.algr .section-white{background:#fff;color:#000}
.algr .section-white .muted{color:rgba(0,0,0,.82)}
.algr .section-light{background:var(--algr-light);color:var(--algr-peach-fg)}
.algr .section-peach{background:var(--algr-peach);color:var(--algr-peach-fg)}
.algr .section-mute{background:#222831;color:#f4f6f7}
.algr .topline{border-top:1px solid rgba(0,0,0,.05)}
.algr .section-bordered{border-top:3px solid var(--algr-primary);border-bottom:3px solid var(--algr-primary);position:relative}
.algr .section-bordered+.section-bordered{border-top:none}
.algr .section-head{text-align:center;margin-bottom:60px}
.algr .section-head.narrow{max-width:640px;margin-left:auto;margin-right:auto;margin-bottom:56px}
.algr .section-head h2{font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:700}
.algr .divider{width:60px;height:3px;background:var(--algr-primary);margin:14px auto 0;border-radius:2px}
.algr .eyebrow{font-size:.72rem;letter-spacing:.3em;color:var(--algr-accent);font-weight:600;margin-bottom:12px}
.algr .muted{color:rgba(31,42,58,.92)}
.algr .section-mute .muted{color:var(--algr-muted)}
.algr .muted.small{font-size:.92rem}
.algr .h3{font-size:1.6rem;font-weight:700;margin-bottom:14px}
.algr .h2-left{font-size:clamp(1.7rem,3vw,2.2rem);font-weight:700;margin-bottom:18px}

.algr .grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:48px;align-items:center}
.algr .grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.algr .grid-2,.algr .grid-3{grid-template-columns:1fr}}

.algr .about-grid p+p{margin-top:14px}
.algr .about-img{border-radius:14px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.18)}
.algr .about-img img{width:100%;height:100%;object-fit:cover}
.algr .stats{margin-top:64px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:700px){.algr .stats{grid-template-columns:repeat(2,1fr)}}
.algr .stat{background:#fff;border-radius:14px;padding:30px;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.algr .stat-value{font-size:2.6rem;font-weight:700;color:var(--algr-primary);font-family:"Playfair Display",serif}
.algr .stat-label{margin-top:6px;font-size:.85rem;color:rgba(31,42,58,.92)}

.algr .service-card{background:var(--algr-card);border:1px solid var(--algr-border);border-radius:14px;padding:32px;transition:border-color .2s,box-shadow .2s,transform .2s}
.algr .service-card.light{background:linear-gradient(180deg,#eaf4f6 0%,#d8ecef 100%);border-color:rgba(95,193,199,.35);color:#0f2a3a}
.algr .service-card.light:hover{box-shadow:0 14px 34px rgba(15,42,58,.12);border-color:var(--algr-primary);transform:translateY(-3px)}
.algr .service-card h3{font-size:1.2rem;font-weight:700;text-align:center;margin-bottom:12px}
.algr .service-card p{font-size:.9rem;color:var(--algr-muted);text-align:center;line-height:1.6}
.algr .service-card.light p{color:rgba(0,0,0,.85)}
.algr .icon-pill{width:54px;height:54px;border-radius:10px;background:rgba(95,193,199,.1);display:grid;place-items:center;font-size:24px;margin:0 auto 18px;color:var(--algr-primary)}
.algr .icon-pill.alt{background:rgba(184,112,42,.15);color:#d68a3a;margin:0 0 16px}

.algr .ext-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.04);transition:box-shadow .25s;display:flex;flex-direction:column}
.algr .ext-card:hover{box-shadow:0 16px 40px rgba(0,0,0,.12)}
.algr .ext-img{padding:12px;height:260px}
.algr .ext-img img{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block}
.algr .ext-body{padding:6px 24px 24px}
.algr .ext-body.col{display:flex;flex-direction:column;flex:1}
.algr .ext-body h3{font-size:1.1rem;font-weight:700;margin-bottom:8px}
.algr .ext-body p{font-size:.9rem;color:rgba(31,42,58,.92);line-height:1.6}
.algr .ext-body .tag{margin-top:18px;padding-top:14px;border-top:1px solid rgba(0,0,0,.1);font-size:.7rem;letter-spacing:.18em;font-weight:600;color:var(--algr-accent)}

.algr .feature-list{margin-top:24px;display:flex;flex-direction:column;gap:18px}
.algr .feat{border-left:2px solid var(--algr-accent);padding-left:14px}
.algr .feat h4{font-size:.92rem;font-weight:700;margin-bottom:4px;font-family:"Inter",sans-serif}
.algr .feat p{font-size:.9rem;color:rgba(31,42,58,.92)}

.algr .bento{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(220px,auto);gap:22px}
@media(max-width:900px){.algr .bento{grid-template-columns:1fr}}
.algr .bento-card{background:#fff;border-radius:18px;padding:28px;box-shadow:0 4px 14px rgba(0,0,0,.04);transition:box-shadow .25s;display:flex;flex-direction:column}
.algr .bento-card:hover{box-shadow:0 16px 40px rgba(0,0,0,.1)}
.algr .bento-card h3{font-size:1.2rem;font-weight:700;margin-bottom:12px}
.algr .bento-card p{font-size:.9rem;color:rgba(31,42,58,.92);line-height:1.6}
.algr .bento-wide{grid-column:span 2;flex-direction:row;align-items:center;gap:24px}
.algr .bento-wide .bento-text{flex:1}
.algr .bento-wide .bento-img{width:200px;height:160px;border-radius:10px;overflow:hidden;flex-shrink:0}
.algr .bento-wide .bento-img.tall{height:220px;width:210px}
.algr .bento-wide .bento-img img{width:100%;height:100%;object-fit:cover}
.algr .bento-gray{background:#dcdcde}
.algr .bento-sky{background:#dff1fa;color:#0f2a3a}
.algr .bento-sky h3{color:#0f2a3a}
.algr .bento-sky p{color:rgba(15,42,58,.85)}
.algr .bento-dark{background:#0d1c3a;color:#fff}
.algr .bento-dark p{color:rgba(255,255,255,.7)}
@media(max-width:900px){.algr .bento-wide{grid-column:span 1;flex-direction:column;align-items:stretch}.algr .bento-wide .bento-img{width:100%;height:200px}}

.algr .proj-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.06);transition:transform .25s,box-shadow .25s}
.algr .proj-card:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(0,0,0,.18)}
.algr .proj-img{aspect-ratio:4/3;overflow:hidden}
.algr .proj-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.algr .proj-card:hover .proj-img img{transform:scale(1.05)}
.algr .proj-body{padding:24px}
.algr .proj-body h3{font-size:1.1rem;font-weight:700;margin-bottom:8px}
.algr .proj-body p{font-size:.9rem;color:rgba(31,42,58,.92);margin-bottom:16px}

.algr .contact-grid{align-items:start}
.algr .contact-info{display:flex;flex-direction:column;gap:26px}
.algr .ci-row{display:flex;gap:16px}
.algr .ci-icon{width:44px;height:44px;border-radius:50%;background:rgba(95,193,199,.15);display:grid;place-items:center;flex-shrink:0;color:var(--algr-primary);font-size:18px}
.algr .ci-row h4{font-family:"Inter",sans-serif;font-weight:700;margin-bottom:4px}
.algr .ci-row p{font-size:.9rem;color:var(--algr-muted)}
.algr .contact-form{display:flex;flex-direction:column;gap:14px}
.algr .contact-form input,.algr .contact-form select,.algr .contact-form textarea{width:100%;padding:14px 16px;border-radius:8px;background:var(--algr-card);border:1px solid var(--algr-border);color:var(--algr-fg);font-family:inherit;font-size:.95rem;outline:none;transition:border-color .2s}
.algr .contact-form input:focus,.algr .contact-form select:focus,.algr .contact-form textarea:focus{border-color:var(--algr-primary)}
.algr .contact-form textarea{resize:none}

.algr .map-link{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--algr-border);background:var(--algr-card);transition:transform .2s,box-shadow .2s}
.algr .map-link:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.25)}
.algr .map-link img{width:100%;height:180px;object-fit:cover;display:block}
.algr .map-link span{display:block;padding:12px 16px;font-size:.9rem;font-weight:600;color:var(--algr-primary)}

.algr .site-footer{background:var(--algr-dark);border-top:1px solid var(--algr-border);padding:64px 0 24px;color:#f4f6f7}
.algr .footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:36px}
@media(max-width:900px){.algr .footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.algr .footer-grid{grid-template-columns:1fr}}
.algr .site-footer h4{font-family:"Inter",sans-serif;font-weight:700;margin-bottom:14px;font-size:1rem}
.algr .site-footer h4.under{display:inline-block;border-bottom:2px solid var(--algr-primary);padding-bottom:4px}
.algr .site-footer .muted{color:var(--algr-muted)}
.algr .link-list{display:flex;flex-direction:column;gap:8px;font-size:.9rem;color:var(--algr-muted)}
.algr .link-list a:hover{color:var(--algr-primary)}
.algr .brand.mb{margin-bottom:14px}
.algr .brand.mb .brand-name{color:#f4f6f7;font-size:1rem}
.algr .socials{display:flex;gap:10px}
.algr .socials a{width:40px;height:40px;border-radius:50%;background:var(--algr-card);border:1px solid var(--algr-border);display:grid;place-items:center;transition:all .2s;font-weight:700}
.algr .socials a:hover{background:var(--algr-primary);color:var(--algr-primary-fg);border-color:var(--algr-primary)}
.algr .footer-copy{margin-top:48px;padding-top:24px;border-top:1px solid var(--algr-border);text-align:center;font-size:.85rem;color:var(--algr-muted)}

.algr #toTop{position:fixed;right:24px;bottom:24px;width:48px;height:48px;border-radius:50%;background:var(--algr-primary);color:var(--algr-primary-fg);box-shadow:0 8px 24px rgba(0,0,0,.25);display:none;place-items:center;font-size:20px;font-weight:700;z-index:40;border:0}
.algr #toTop.show{display:grid}
.algr #toTop:hover{filter:brightness(1.1)}

.algr-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:1rem}
.algr-modal.open{display:flex;animation:algrFadeIn .2s ease-out}
.algr-modal .modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.8);backdrop-filter:blur(4px)}
.algr-modal .modal-card{position:relative;background:#fff;color:#111;border-radius:16px;overflow:hidden;width:100%;max-width:980px;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 30px 80px rgba(0,0,0,.5);animation:algrZoomIn .2s ease-out}
.algr-modal .modal-close{position:absolute;top:14px;right:14px;z-index:5;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.95);color:#111;font-size:18px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2);transition:background .15s}
.algr-modal .modal-close:hover{background:#fff}
.algr-modal .modal-media{position:relative;background:#000}
.algr-modal .modal-media img{display:block;width:100%;max-height:60vh;object-fit:contain;background:#000}
.algr-modal .modal-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:none;background:rgba(255,255,255,.92);color:#111;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:background .15s}
.algr-modal .modal-nav:hover{background:#fff}
.algr-modal .modal-nav.prev{left:12px}
.algr-modal .modal-nav.next{right:12px}
.algr-modal .modal-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px}
.algr-modal .modal-dots .dot{height:6px;width:12px;border-radius:999px;border:none;background:rgba(255,255,255,.5);cursor:pointer;transition:all .2s;padding:0}
.algr-modal .modal-dots .dot.active{width:32px;background:#fff}
.algr-modal .modal-body{padding:1.8rem 2rem;overflow-y:auto}
.algr-modal .modal-body h3{margin:0 0 .6rem;font-size:1.6rem;font-weight:700}
.algr-modal .modal-body p{margin:0 0 1rem;color:rgba(0,0,0,.75);line-height:1.6}
.algr-modal .modal-duration{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:999px;background:rgba(184,112,42,.12);border:1px solid rgba(184,112,42,.25);color:#b8702a;font-size:.85rem;font-weight:600}
@keyframes algrFadeIn{from{opacity:0}to{opacity:1}}
@keyframes algrZoomIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
.algr .upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:24px 16px;border:2px dashed var(--algr-border);border-radius:10px;background:var(--algr-card);color:var(--algr-fg);text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.algr .upload-zone:hover,.algr .upload-zone.is-dragover{border-color:var(--algr-primary);background:rgba(184,112,42,.06)}
.algr .upload-zone .upload-icon{font-size:1.8rem;line-height:1}
.algr .upload-zone .upload-title{font-weight:600;font-size:1rem}
.algr .upload-zone .upload-hint{font-size:.85rem;opacity:.7}
.algr .upload-zone .upload-files{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;width:100%}

/* Base resets for standalone version */
html,body{margin:0;padding:0;background:#1a1f24}
body{font-family:"Montserrat",sans-serif}

/* Form status banner */
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}
.form-status-success { background:#e6f7ec; color:#14723a; border:1px solid #b7e3c6; }
.form-status-error   { background:#fdecec; color:#a32020; border:1px solid #f3c2c2; }
