@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');
:root{--red:#ed101c;--ink:#1e2229;--muted:#69717c;--light:#f5f6f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Montserrat,Arial,sans-serif;line-height:1.14;letter-spacing:-.04em}h1{font-size:clamp(2.8rem,6vw,5.5rem);font-weight:800}h2{font-size:clamp(2rem,3.8vw,3.5rem)}h3{font-size:1.25rem}.container{width:min(1180px,calc(100% - 44px));margin:auto}.topbar{background:var(--ink);color:#d8dce2;font-size:.78rem;padding:8px 0}.topbar .container{display:flex;justify-content:space-between;gap:16px}.topbar a:hover,.footer a:hover{color:#ff555d}.header{position:sticky;top:0;background:#fff;z-index:30;border-bottom:1px solid #eceef1}.nav{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand img{width:235px;max-width:45vw;height:auto;display:block}.navlinks{display:flex;align-items:center;gap:32px;font-weight:700;font-size:.91rem}.navlinks a:hover,.navlinks .active{color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;background:var(--red);color:#fff!important;padding:15px 22px;font-weight:800;border-radius:7px;cursor:pointer;transition:transform .2s,background .2s}.btn:hover{background:#c90913;transform:translateY(-2px)}.btn.dark{background:var(--ink)}.btn.outline{background:transparent;border:1px solid #c8cbd1;color:var(--ink)!important}.menu-toggle{display:none;background:none;border:0;font-size:1.8rem;cursor:pointer}.hero{position:relative;overflow:hidden;background:#f8f8f8}.hero-inner{min-height:610px;display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:42px}.hero-copy{padding:76px 0 90px;position:relative;z-index:1}.eyebrow{color:var(--red);font-size:.79rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;margin-bottom:23px}.hero h1 span{color:var(--red)}.hero p.lead{font-size:1.14rem;color:#58616c;max-width:570px;margin-bottom:30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-visual{height:100%;min-height:590px;position:relative}.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-visual:before{content:'';position:absolute;z-index:1;left:-15px;top:-15%;width:18px;height:140%;background:var(--red);transform:rotate(17deg)}.hero:after{content:'';position:absolute;bottom:-62px;left:-5%;width:110%;height:90px;background:var(--red);transform:rotate(-2deg);border-radius:50% 50% 0 0}.section{padding:105px 0}.section.light{background:var(--light)}.section-head{max-width:760px;margin-bottom:44px}.section-head p{color:var(--muted);font-size:1.06rem}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:#fff;padding:32px 26px;border:1px solid #e8eaee;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.025)}.card .symbol{display:grid;place-items:center;width:58px;height:58px;border:2px solid var(--red);border-radius:50%;font-size:1.7rem;color:var(--red);margin-bottom:24px}.card p{color:var(--muted);font-size:.94rem;margin:0}.link{display:inline-block;color:var(--red);font-weight:800;margin-top:20px}.split{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}.feature-img{width:100%;height:430px;object-fit:cover;border-radius:14px}.checklist{padding:0;list-style:none}.checklist li{padding:10px 0 10px 29px;position:relative}.checklist li:before{content:'✓';position:absolute;left:0;color:var(--red);font-weight:900}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stat{border-left:3px solid var(--red);padding-left:24px}.stat strong{font-size:1.7rem;display:block}.stat p{color:var(--muted);margin:0}.cta{background:var(--ink);color:#fff;padding:76px 0;position:relative;overflow:hidden}.cta:before{content:'';position:absolute;right:-80px;top:-150px;width:390px;height:390px;border:55px solid var(--red);border-radius:50%;opacity:.18}.cta .container{position:relative;display:flex;align-items:center;justify-content:space-between;gap:30px}.cta h2{margin-bottom:10px}.cta p{color:#c5cbd4;margin:0}.footer{background:#171b21;color:#cbd0d8;padding:60px 0 25px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:50px}.footer h3{color:#fff;font-size:1rem;letter-spacing:0}.footer a{display:block;margin:8px 0}.footer-bottom{border-top:1px solid #363c46;margin-top:50px;padding-top:20px;font-size:.8rem;color:#929aa6}.page-hero{background:#f4f5f7;padding:80px 0;border-bottom:4px solid var(--red)}.page-hero h1{font-size:clamp(2.6rem,5vw,4.4rem);margin-bottom:15px}.page-hero p{max-width:720px;color:var(--muted);font-size:1.1rem}.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.service-card{padding:32px;background:#fff;border:1px solid #e5e8ed;border-radius:12px;border-top:4px solid var(--red)}.service-card .num{color:var(--red);font-weight:800;font-size:.8rem}.service-card p{color:#5d6570;margin-bottom:0}.contact-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:50px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{margin-bottom:19px}.field label{display:block;font-weight:700;font-size:.88rem;margin-bottom:6px}.field input,.field textarea{width:100%;padding:13px 14px;border:1px solid #cbd0d8;border-radius:7px;font:inherit}.field textarea{min-height:155px;resize:vertical}.note{font-size:.85rem;color:var(--muted)}.notice{padding:15px;border-radius:8px;background:#f3f5f7;margin-bottom:22px}.notice.error{border-left:4px solid #c11}.notice.success{border-left:4px solid #17864b}.archive{border-top:1px solid #e6e8ec;padding-top:25px;margin-top:35px;color:var(--muted)}.archive summary{cursor:pointer;font-weight:700}.archive li{margin:12px 0}.hidden{position:absolute;left:-9999px} @media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.split{gap:30px}.hero-inner{gap:25px}.navlinks{gap:15px}.brand img{width:190px}}@media(max-width:700px){.topbar .container{justify-content:center}.topbar .small-hide{display:none}.nav{min-height:75px}.menu-toggle{display:block}.navlinks{display:none;position:absolute;top:75px;left:0;right:0;background:white;padding:20px 25px;flex-direction:column;align-items:stretch;box-shadow:0 15px 30px #0002}.navlinks.open{display:flex}.hero-inner,.split,.contact-grid,.footer-grid{grid-template-columns:1fr}.hero-inner{gap:0}.hero-copy{padding:65px 0 45px}.hero-visual{min-height:310px;height:310px}.hero-visual:before{display:none}.hero:after{bottom:-75px}.section{padding:70px 0}.cards,.service-grid,.stats{grid-template-columns:1fr}.cta .container{align-items:flex-start;flex-direction:column}.form-row{grid-template-columns:1fr}.feature-img{height:300px}}

/* Gestion des contenus TEC3000 */
.cms-wrap{max-width:680px;margin:40px auto;padding:28px;background:#fff;color:#24262b;border-radius:16px;box-shadow:0 8px 35px #0001}.cms-wide{max-width:1050px}.cms-wrap form:not(.inline){display:grid;gap:16px}.cms-wrap label{display:grid;gap:7px;font-weight:650}.cms-wrap input:not([type=checkbox]),.cms-wrap textarea{width:100%;padding:12px;border:1px solid #b8bec8;border-radius:7px;font:inherit;color:#24262b;background:#fff}.cms-wrap button{padding:11px 18px;background:#d71920;color:#fff;border:0;border-radius:7px;cursor:pointer;font-weight:700}.cms-wrap .danger{background:#4d525a}.cms-wrap .inline{display:inline}.cms-wrap .cms-check{display:flex;align-items:center}.cms-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.cms-tabs a{padding:9px 12px;background:#f1f2f4;border-radius:7px;color:#222}.cms-top,.cms-item{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.cms-item{padding:15px 0;border-bottom:1px solid #ddd}.cms-items{margin:18px 0 35px}.cms-error{padding:12px;background:#ffe5e5;color:#a00}.cms-ok{padding:12px;background:#e6f7e8;color:#164b22}.cms-public-section{padding:65px 0}.cms-public-section:nth-of-type(even){background:#f3f4f5}.cms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.cms-public-card{background:#fff;border:1px solid #e5e5e5;border-radius:12px;overflow:hidden;padding:20px;color:#25272b}.cms-public-card img{width:100%;height:185px;object-fit:cover;margin:-20px -20px 16px;width:calc(100% + 40px);max-width:none}.cms-public-card p{white-space:normal}.cms-service-img{width:100%;height:180px;object-fit:cover;border-radius:8px;margin-bottom:12px}@media(max-width:600px){.cms-wrap{margin:12px;padding:16px}.cms-public-section{padding:35px 0}}

/* Animation accueil TEC3000 - cible explicite */
.hero-visual.tec-animated-hero {overflow:hidden;isolation:isolate;background:#e9edf2;}
.hero-visual.tec-animated-hero > img {display:block;width:100%;height:100%;object-fit:cover;object-position:52% 50%;animation:tec3000Entrance 2.8s cubic-bezier(.18,.75,.24,1) both;will-change:transform,opacity;}
@keyframes tec3000Entrance {0%{opacity:0;transform:scale(1.14) translateY(18px)}100%{opacity:1;transform:scale(1) translateY(0)}}
@media(prefers-reduced-motion:reduce){.hero-visual.tec-animated-hero > img{animation:none;will-change:auto}}

/* Correctif accueil V3 : image entière, animation discrète et responsive */
.hero-inner{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:28px}
.hero-visual.tec-animated-hero{height:auto;min-height:0;aspect-ratio:1000 / 735;align-self:center;overflow:hidden;isolation:isolate;background:#eef1f5}
.hero-visual.tec-animated-hero > img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;animation:tecHeroReveal 2.6s cubic-bezier(.2,.7,.2,1) both;will-change:transform,opacity}
.hero-visual.tec-animated-hero::before{left:-16px;z-index:2;pointer-events:none}
@keyframes tecHeroReveal{from{opacity:.35;transform:scale(1.045) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(max-width:700px){.hero-inner{grid-template-columns:1fr;gap:0}.hero-visual.tec-animated-hero{height:auto;min-height:0;aspect-ratio:1000 / 735}.hero-visual.tec-animated-hero::before{display:none}}
@media(prefers-reduced-motion:reduce){.hero-visual.tec-animated-hero > img{animation:none;will-change:auto}}

/* TEC3000 V4 : zoom d’accueil automatique sur 5 secondes, sans contrôles */
.hero-visual.tec-animated-hero > img {animation:tecHeroZoom5s 5s cubic-bezier(.22,.61,.36,1) both;}
@keyframes tecHeroZoom5s {0%{opacity:.55;transform:scale(1.13) translateY(10px)}100%{opacity:1;transform:scale(1) translateY(0)}}
@media(prefers-reduced-motion:reduce){.hero-visual.tec-animated-hero > img{animation:none}}

/* TEC3000: image 3:2 entière, logo original, animation de 5 secondes */
.hero-inner {grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:center;}
.hero-visual.tec-animated-hero {width:100%;height:auto;min-height:0;aspect-ratio:3 / 2;align-self:center;overflow:hidden;background:#f8f8f8;isolation:isolate;}
.hero-visual.tec-animated-hero > img {display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform-origin:center;animation:tecAccueil5s 5s ease-out both;}
.hero-visual.tec-animated-hero::before {display:none!important;} /* diagonale déjà dans la photo */
@keyframes tecAccueil5s {from {opacity:.55;transform:scale(.94)} to {opacity:1;transform:scale(1)}}
.hero {padding-bottom:35px;} /* la vague rouge passe sous l'image, pas dessus */
.hero::after {bottom:-66px;pointer-events:none;}
@media(max-width:700px){.hero-inner{grid-template-columns:1fr;gap:0}.hero-visual.tec-animated-hero{width:100%;aspect-ratio:3 / 2;height:auto;min-height:0}.hero{padding-bottom:30px}}
@media(prefers-reduced-motion:reduce){.hero-visual.tec-animated-hero > img{animation:none;transform:none;opacity:1}}
