/* CarteTunisie V31 — selected Concept 2: light editorial violet + curved sports-photo slideshow.
   The full-width UI is self-contained and does not alter login/authentication routes. */
:root{--ct31-ink:#0b1738;--ct31-muted:#4b5376;--ct31-purple:#6d18ed;--ct31-violet:#4a21be;--ct31-line:#c9b9f1;--ct31-white:#fff}
html:has(.ct31-page),body:has(.ct31-page){margin:0;min-height:100%;background:#f7f7ff}
body:has(.ct31-page)>.ct31-main{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100svh!important;overflow-x:clip!important}
.ct31-page,.ct31-page *{box-sizing:border-box}
.ct31-page{position:relative;isolation:isolate;width:100%;min-height:100svh;overflow:hidden;color:var(--ct31-ink);font-family:inherit;background:radial-gradient(ellipse at 18% 33%,rgba(176,159,251,.18),transparent 43%),linear-gradient(135deg,#fff 0%,#f5f4ff 45%,#ecebff 100%)}
.ct31-page::before{content:"";position:absolute;z-index:-1;bottom:-20vw;left:-20vw;width:70vw;height:37vw;border-radius:50%;background:radial-gradient(circle,rgba(124,60,244,.21),transparent 69%);pointer-events:none}
.ct31-layout{position:relative;display:flex;flex-direction:column;min-height:100svh;width:100%;margin:0 auto;padding:clamp(14px,2vw,32px) clamp(18px,5vw,96px) clamp(13px,1.8vh,32px);gap:clamp(14px,2vh,25px)}
.ct31-main-area{position:relative;isolation:isolate;flex:1 0 auto;min-height:clamp(490px,62svh,950px);padding-top:clamp(12px,1.8vh,26px);display:flex;flex-direction:column;align-items:stretch}
.ct31-top{position:relative;z-index:5;display:flex;align-items:flex-start;justify-content:space-between;gap:30px;width:min(100%,1160px)}
.ct31-brand{width:clamp(325px,46vw,690px);max-width:65%;position:relative;z-index:5}
.ct31-mark{display:block;width:clamp(68px,7.2vw,105px);height:clamp(68px,7.2vw,105px);object-fit:contain;padding:7px;border-radius:24px;background:#fff;box-shadow:0 13px 34px rgba(34,24,107,.13);margin-bottom:clamp(13px,2vh,24px)}
.ct31-wordmark{font-size:clamp(32px,4.1vw,72px);letter-spacing:-.043em;line-height:1.06;font-weight:950;white-space:nowrap;color:#0a173a}
.ct31-wordmark span{color:#159de8}
.ct31-brand p{font-size:clamp(15px,1.35vw,23px);line-height:1.4;color:#303b63;margin:9px 0 0;max-width:500px}
.ct31-lang{display:flex;gap:0;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto;min-width:clamp(164px,12.5vw,228px);padding:4px;border-radius:100px;border:1px solid rgba(114,66,229,.2);background:#fff9;box-shadow:0 8px 20px rgba(51,28,100,.08);margin-top:4px}
.ct31-lang a{display:grid;place-items:center;flex:1;text-align:center;min-height:39px;padding:4px 14px;text-decoration:none!important;color:#182044!important;font-weight:800;border-radius:100px;font-size:clamp(13px,1.2vw,17px)}
.ct31-lang a.current{color:#fff!important;background:linear-gradient(115deg,#b529ff,#6c08e5 75%,#5518b8);box-shadow:0 4px 14px rgba(108,8,229,.23)}
/* Violet curved composition. Both the original hero image and uploaded slides live
   inside the SAME clipped photo surface, with no persistent second image behind them. */
.ct31-photo-arc{position:absolute;pointer-events:none;z-index:0;right:-5vw;top:-60px;width:min(61vw,1020px);height:min(62vh,720px);border-radius:0 0 0 86%/0 0 0 70%;background:linear-gradient(140deg,#dfdcff 0%,#c5a6fa 50%,#7923e9 74%,#4e1aa8 100%);transform:rotate(-5deg);transform-origin:80% 20%;box-shadow:-13px 16px 0 1px #cbb8ff55}
.ct31-photo-mask{position:absolute;z-index:1;right:-5vw;top:-75px;width:min(58vw,950px);height:min(59vh,655px);overflow:hidden;border-radius:0 0 0 82% / 0 0 0 63%;clip-path:ellipse(94% 85% at 85% 10%);background:#f9f8ff;pointer-events:none;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 15%,#000 100%);mask-image:linear-gradient(to right,transparent 0%,#000 15%,#000 100%)}
.ct31-bg-frame{position:absolute;inset:0;display:block;opacity:0;transition:opacity .7s ease-in-out;background-size:cover;background-position:center 34%;background-repeat:no-repeat}
.ct31-bg-frame.ct31-bg-default{background-image:url('../img/login-concept2-v31-boy.webp');background-position:center 30%}
.ct31-bg-frame.ct31-visible{opacity:1}
.ct31-content{position:relative;z-index:4;width:min(100%,870px);max-width:62%;margin-top:auto;margin-bottom:clamp(20px,3.5vh,50px)}
.ct31-welcome{display:none}
.ct31-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.3vw,24px);margin-bottom:clamp(21px,3.6vh,42px)}
.ct31-feature{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:clamp(95px,13vh,160px);padding:14px 11px;border-radius:clamp(15px,1.6vw,28px);background:linear-gradient(145deg,#fff,#f9f8ff);border:1px solid #ffffff;box-shadow:0 11px 29px rgba(64,38,153,.13),0 1px 2px #c8baf455;text-align:center;color:#152347;font-size:clamp(12px,1.15vw,20px);font-weight:800;line-height:1.24}
.ct31-feature svg{width:clamp(27px,2.75vw,44px);height:clamp(27px,2.75vw,44px);color:#6d24e6;flex:0 0 auto}
.ct31-actions{display:flex;flex-direction:column;gap:clamp(9px,1.3vh,16px);width:100%}
.ct31-primary,.ct31-secondary,.ct31-submit{appearance:none!important;display:flex;align-items:center;justify-content:center;gap:clamp(11px,1.3vw,20px);width:100%;text-align:center;text-decoration:none!important;border-radius:100px;font:inherit;font-size:clamp(16px,1.45vw,25px);font-weight:850;line-height:1.25;min-height:clamp(51px,7.2vh,81px);padding:12px 21px;cursor:pointer;transition:transform .18s,box-shadow .18s}
.ct31-primary,.ct31-submit{background:linear-gradient(100deg,#b52efa,#8022f2 32%,#5311c9 88%)!important;border:1px solid #f0c7ff!important;color:white!important;box-shadow:0 9px 22px rgba(113,26,230,.25),inset 0 2px 0 #ffffff77!important}
.ct31-secondary{min-height:clamp(44px,5.2vh,61px);color:#121a3c!important;border:1.5px solid #7747cd!important;background:#ffffff33!important;box-shadow:none!important}
.ct31-primary svg,.ct31-secondary svg{width:clamp(19px,1.8vw,28px);height:clamp(19px,1.8vw,28px);color:inherit;flex:none}
.ct31-primary:hover,.ct31-secondary:hover,.ct31-submit:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(108,34,218,.14)}
.ct31-page :is(button,a,input):focus-visible{outline:3px solid #8240ee;outline-offset:3px}
.ct31-login{display:block;width:100%;max-width:630px;margin:0 auto}
.ct31-login-card{padding:clamp(17px,2vw,31px);background:rgba(255,255,255,.91);border:1px solid #fff;border-radius:24px;box-shadow:0 13px 43px rgba(72,35,145,.17)}
.ct31-back{display:flex;align-items:center;gap:6px;margin:0 0 3px;padding:0;background:none!important;border:0!important;color:#5d24b4!important;font:inherit;font-weight:750;cursor:pointer}
.ct31-back svg{width:18px;height:18px}
.ct31-lock{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 11px;border-radius:50%;background:linear-gradient(135deg,#ece3ff,#e4d8ff);color:#7034ce}
.ct31-lock svg{width:27px;height:27px}
.ct31-login-card h1{text-align:center;color:#17214a!important;font-size:clamp(24px,2.4vw,32px);margin:0 0 16px;line-height:1.2}
.ct31-form label{display:block;font-size:12px;color:#435075;margin:12px 0 5px;font-weight:750}
.ct31-input-wrap{display:flex;align-items:center;gap:10px;background:#f8f8ff;border:1px solid #c9b9e6;border-radius:13px;padding:0 12px;height:53px}
.ct31-input-wrap:focus-within{border-color:#7b32e7;box-shadow:0 0 0 3px #9d6cf11c}
.ct31-input-wrap>svg{width:21px;height:21px;flex:none;color:#8875bc}
.ct31-input-wrap input{display:block!important;flex:1 1 auto;min-width:0;width:100%;height:100%;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;color:#111b3f!important;font-size:16px!important}
.ct31-eye{display:grid;place-items:center;background:none!important;border:0!important;padding:4px;cursor:pointer;color:#7770a9}
.ct31-eye svg{width:22px;height:22px}
.ct31-submit{min-height:53px;margin-top:18px;font-size:17px}
.ct31-or{display:flex;align-items:center;justify-content:center;gap:10px;color:#7c75aa;margin:11px 0;font-size:12px;font-weight:750}
.ct31-or span{height:1px;width:35%;background:#d7c9ed}
.ct31-login-card>.ct31-secondary{font-size:14px;min-height:42px;margin:7px auto}
.ct31-flash{padding:8px 12px;border-radius:10px;margin:10px 0;font-size:13px}
.ct31-js .ct31-login{display:none}
.ct31-js .ct31-welcome{display:block}
.ct31-js .ct31-page.ct31-open .ct31-welcome,.ct31-js .ct31-page.ct31-has-feedback .ct31-welcome{display:none}
.ct31-js .ct31-page.ct31-open .ct31-login,.ct31-js .ct31-page.ct31-has-feedback .ct31-login{display:block}
/* Partner carousel matches the selected white-violet composition. */
.ct31-clients{position:relative;z-index:5;flex:0 0 auto;max-width:100%;margin-top:auto;margin-bottom:clamp(4px,1.1vh,13px);padding:7px 0;color:#19204d}
.ct31-section-heading{display:flex;align-items:center;justify-content:center;gap:clamp(9px,1.7vw,17px);margin:0 auto clamp(12px,1.7vh,22px)}
.ct31-section-heading>span{width:clamp(36px,9vw,136px);height:1px;background:linear-gradient(90deg,transparent,#8b46e7)}
.ct31-section-heading>span:last-child{transform:scaleX(-1)}
.ct31-section-heading svg{height:22px;width:22px;color:#7e33e9}
.ct31-section-heading h2{margin:0;white-space:nowrap;font-size:clamp(12px,1.55vw,20px);letter-spacing:.2em;font-weight:900;color:#171d4d}
.ct31-client-window{width:100%;overflow:hidden;position:relative;isolation:isolate}
.ct31-client-window:before,.ct31-client-window:after{content:"";position:absolute;top:0;bottom:0;width:clamp(14px,4vw,62px);pointer-events:none;z-index:2}
.ct31-client-window:before{left:0;background:linear-gradient(90deg,#f4f3ff,transparent)}
.ct31-client-window:after{right:0;background:linear-gradient(270deg,#f4f3ff,transparent)}
.ct31-client-track{display:flex;width:max-content;align-items:start;max-width:none}
.ct31-client-group{display:flex;flex:0 0 auto;gap:clamp(15px,2.3vw,42px);padding-right:clamp(15px,2.3vw,42px)}
.ct31-client{display:flex;align-items:center;flex-direction:column;text-align:center;flex:0 0 clamp(89px,10vw,143px);gap:8px}
.ct31-client-logo{width:clamp(67px,7.5vw,105px);height:clamp(67px,7.5vw,105px);border-radius:100%;display:grid;place-items:center;overflow:hidden;background:#fff;border:2px solid #ddd5fa;box-shadow:0 6px 15px #5e37992e}
.ct31-client-logo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.ct31-client-name{text-align:center;font-size:clamp(9px,.9vw,13px);font-weight:750;line-height:1.24;color:#24204d;overflow-wrap:anywhere;text-transform:uppercase;max-width:100%}
.ct31-moving{animation:ct31-marquee var(--ct31-duration,55s) linear infinite}
.ct31-moving:hover{animation-play-state:paused}
.ct31-static{width:100%;justify-content:center}
.ct31-static .ct31-client-group{padding:0}
@keyframes ct31-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ct31-footer{position:relative;z-index:4;display:flex;align-items:center;flex-direction:column;gap:4px;margin:0 auto;width:100%;padding:clamp(8px,1.25vh,16px) 0 clamp(7px,1vh,13px);color:#17154b}
.ct31-footer:before{content:"";position:absolute;z-index:-1;left:-20vw;right:-20vw;top:-13px;bottom:-100px;background:linear-gradient(155deg,transparent 10%,rgba(158,106,247,.10) 59%,rgba(126,59,231,.15) 100%);border-radius:50% 50% 0 0}
.ct31-sport-icons{display:flex;align-items:center;justify-content:center;gap:clamp(8px,1.4vw,19px)}
.ct31-sport-icons span{display:grid;place-items:center;width:clamp(36px,4.1vw,58px);height:clamp(36px,4.1vw,58px);border-radius:12px;border:1px solid #9168d4;background:#fff7;color:#551fa6}
.ct31-sport-icons svg{width:clamp(20px,2vw,27px);height:clamp(20px,2vw,27px);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ct31-footer p{font-size:clamp(9px,1.12vw,14px);letter-spacing:.1em;font-weight:750;margin:4px 0 0;text-align:center;color:#202552}
.ct31-footer p strong{color:#6931e8}
/* Medium desktop: keep the entire panel proportional and the athlete in the curved mask. */
@media(min-width:851px) and (max-height:750px){.ct31-main-area{min-height:430px}.ct31-mark{width:70px;height:70px}.ct31-feature{min-height:90px}.ct31-photo-mask{height:420px}.ct31-photo-arc{height:440px}}
@media(min-width:1600px){.ct31-content{max-width:60%;width:min(100%,1060px)}.ct31-photo-mask{height:min(67vh,860px);width:52vw}.ct31-photo-arc{height:min(69vh,900px)}.ct31-main-area{min-height:67svh}}
/* Mobile is the actual Concept 2 arrangement: left wordmark, right curved portrait,
   FR/AR below, three rounded tiles, violet login and customer strip. */
@media(max-width:850px){
 .ct31-layout{padding:12px clamp(12px,3vw,28px) 12px;gap:12px;min-height:100svh}
 .ct31-main-area{flex:0 0 auto;min-height:0;padding-top:clamp(9px,2.2svh,25px)}
 .ct31-top{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%;padding:0 clamp(3px,2vw,12px)}
 .ct31-brand{width:100%;max-width:100%;min-height:clamp(158px,27svh,252px);padding:5px 0 0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
 .ct31-mark{width:clamp(59px,13.5vw,91px);height:clamp(59px,13.5vw,91px);padding:6px;border-radius:19px;margin:0 0 10px}
 .ct31-wordmark{font-size:clamp(21px,5.3vw,39px);line-height:1.1;white-space:normal;max-width:70%;letter-spacing:-.04em}
 .ct31-brand p{font-size:clamp(11px,3vw,15px);line-height:1.4;max-width:46%;margin:6px 0 0}
 .ct31-lang{min-width:0;width:clamp(145px,45vw,218px);min-height:0;margin:0 0 11px;padding:3px}
 .ct31-lang a{min-height:31px;font-size:13px}
 .ct31-photo-arc{right:-15%;top:-18px;width:77%;height:clamp(215px,31svh,348px);border-radius:0 0 0 95%/0 0 0 58%;transform:rotate(-5deg)}
 .ct31-photo-mask{right:-13%;top:-30px;width:76%;height:clamp(210px,30svh,340px);border-radius:0 0 0 95%/0 0 0 65%;clip-path:ellipse(91% 85% at 82% 9%);-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 13%,#000 100%);mask-image:linear-gradient(to right,transparent 0%,#000 13%,#000 100%)}
 .ct31-bg-frame{background-position:center 23%}
 .ct31-bg-frame.ct31-bg-default{background-position:center 22%}
 .ct31-content{max-width:none;width:100%;margin:5px 0 0}
 .ct31-feature-grid{gap:clamp(7px,1.7vw,15px);margin-bottom:clamp(12px,2.5svh,23px)}
 .ct31-feature{border-radius:15px;min-height:clamp(76px,10.5svh,107px);padding:10px 5px;font-size:clamp(10px,2.8vw,13px);gap:6px}
 .ct31-feature svg{width:clamp(24px,6.5vw,32px);height:clamp(24px,6.5vw,32px)}
 .ct31-actions{gap:8px}
 .ct31-primary{min-height:clamp(49px,7svh,65px);font-size:clamp(16px,4.3vw,19px);padding:10px 8px}
 .ct31-secondary{min-height:clamp(42px,5.8svh,54px);font-size:clamp(14px,3.8vw,17px);padding:7px 10px}
 .ct31-primary svg,.ct31-secondary svg{height:21px;width:21px}
 .ct31-clients{margin:9px 0 0}
 .ct31-section-heading{margin-bottom:11px;gap:9px}
 .ct31-section-heading>span{width:clamp(34px,13vw,70px)}
 .ct31-section-heading h2{font-size:12px;letter-spacing:.15em}
 .ct31-section-heading svg{width:19px;height:19px}
 .ct31-client{flex-basis:clamp(90px,26vw,112px);gap:7px}
 .ct31-client-logo{width:clamp(64px,18vw,86px);height:clamp(64px,18vw,86px)}
 .ct31-client-name{font-size:clamp(9px,2.4vw,10px)}
 .ct31-footer{padding:8px 0 6px}
 .ct31-sport-icons{gap:clamp(6px,2vw,13px)}
 .ct31-sport-icons span{width:clamp(34px,9.4vw,51px);height:clamp(34px,9.4vw,51px);border-radius:10px}
 .ct31-sport-icons svg{width:20px;height:20px}
 .ct31-footer p{font-size:clamp(8px,2.2vw,11px)}
 .ct31-login{max-width:510px}.ct31-login-card{padding:16px}.ct31-login-card h1{font-size:25px}
}
@media(max-width:370px){
 .ct31-brand{min-height:148px}
 .ct31-wordmark{font-size:clamp(20px,5.1vw,26px)}
 .ct31-brand p{max-width:50%;font-size:10px}
 .ct31-photo-mask{height:215px}.ct31-photo-arc{height:220px}
 .ct31-feature{min-height:75px;font-size:9.6px}
 .ct31-client-logo{width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){.ct31-bg-frame{transition:none}.ct31-moving{animation:none}.ct31-client-window{overflow-x:auto}.ct31-moving .ct31-client-group[aria-hidden="true"]{display:none}.ct31-primary,.ct31-secondary{transition:none}}
html[dir="rtl"] .ct31-brand{text-align:start}html[dir="rtl"] .ct31-photo-mask{right:auto;left:-13%;transform:scaleX(-1)}html[dir="rtl"] .ct31-photo-arc{right:auto;left:-15%;transform:scaleX(-1) rotate(-5deg)}
