/* ═══════════════════════════════════════════════════════
   KAMGAENERGY SARL — Styles communs
   common.css — reset, nav, footer, typographie, animations
   Inclure en premier sur toutes les pages du site
   ═══════════════════════════════════════════════════════ */

/* ═══ KAMGAENERGY — Common Styles ═══ */

/* ── ACCESSIBILITY ── */
.skip-link{position:absolute;top:-100%;left:16px;padding:10px 20px;background:#05a705;color:#fff;border-radius:0 0 8px 8px;font-weight:600;font-size:.88rem;z-index:10000;transition:top .2s}
.skip-link:focus{top:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── ROOT VARIABLES ── */
:root {
  --primary:      #05a705;
  --primary-dark: #3a9100;
  --accent:       #13aa39;
  --gold:         #ffd60a;
  --dark:         #1d1d1f;
  --dark2:        #2d2d2f;
  --light:        #f5f7f5;
  --gray:         #86868b;
  --white:        #ffffff;
  --g-solar: linear-gradient(135deg,#09db64 0%,#00d809 50%,#30d158 100%);
  --g-dark:  linear-gradient(180deg,#010902 0%,#000000 55%,#001905 100%);
  --g-light: linear-gradient(180deg,#f5f5f7 0%,#ffffff 100%);
  --sh-s: 0 4px 24px rgba(0,0,0,.08);
  --sh-m: 0 10px 48px rgba(0,0,0,.16);
  --sh-l: 0 24px 72px rgba(0,0,0,.28);
  --r:   22px;
  --r-s: 14px;
}

/* ── RESET ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Outfit',-apple-system,sans-serif;background:var(--white);color:var(--dark);line-height:1.6;overflow-x:hidden}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:#000}
::-webkit-scrollbar-thumb{background:var(--primary);border-radius:4px}

/* ── KEYFRAMES ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes revealFade{to{opacity:1;transform:none}}
@keyframes widthGrow{from{width:0}to{width:100%}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}
@keyframes scrollTrack{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ── NAV ── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 52px;height:58px;
  background:rgba(0,0,0,.92);
  
  border-bottom:1px solid rgba(255,255,255,.07);
  transition:all .3s ease;
}
nav.scrolled{background:rgba(15,15,15,.96);height:52px}
.nav-logo{font-weight:700;font-size:1.18rem;color:var(--white);letter-spacing:-.3px}
.nav-logo span{background:var(--g-solar);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.nav-links{display:flex;gap:34px;list-style:none}
.nav-links a{color:rgba(245,245,245,.68);font-size:.82rem;font-weight:400;transition:color .25s}
.nav-links a:hover,.nav-links a.active{color:var(--white)}
.nav-links a.active{color:var(--accent)}
.nav-cta{background:var(--primary);color:var(--white);padding:8px 22px;border-radius:50px;font-size:.82rem;font-weight:600;box-shadow:0 0 22px rgba(5,167,5,.32);transition:all .3s ease}
.nav-cta:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 6px 24px rgba(5,167,5,.5)}
.menu-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer}
.menu-toggle span{width:22px;height:2px;background:var(--white);border-radius:2px;display:block}

/* ── NAV PROFILE ── */
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-profile{position:relative}
.profile-trigger{
  width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);cursor:pointer;display:flex;align-items:center;
  justify-content:center;transition:all .3s ease;overflow:hidden;padding:0;
}
.profile-trigger:hover{border-color:var(--accent);background:rgba(255,255,255,.12)}
.profile-trigger svg{width:18px;height:18px;color:rgba(255,255,255,.7);flex-shrink:0}
.profile-trigger img{width:100%;height:100%;object-fit:cover}
.profile-trigger.logged-in{border-color:var(--accent);box-shadow:0 0 12px rgba(5,167,5,.3)}
.profile-status{position:absolute;bottom:0;right:0;width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid #000;display:none}
.profile-trigger.logged-in~.profile-status{display:block}

.profile-dropdown{
  position:absolute;top:calc(100% + 12px);right:0;min-width:240px;
  background:rgba(20,20,20,.98);
  border:1px solid rgba(255,255,255,.1);border-radius:16px;
  padding:8px;opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:all .25s ease;z-index:1001;
  box-shadow:0 16px 48px rgba(0,0,0,.5);
}
.profile-dropdown.open{opacity:1;visibility:visible;transform:translateY(0)}
.profile-dropdown::before{
  content:'';position:absolute;top:-6px;right:14px;width:12px;height:12px;
  background:rgba(20,20,20,.98);border-left:1px solid rgba(255,255,255,.1);
  border-top:1px solid rgba(255,255,255,.1);transform:rotate(45deg);
}

.profile-header{padding:12px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:4px}
.profile-header-avatar{width:40px;height:40px;border-radius:50%;background:var(--g-solar);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;color:#000;flex-shrink:0;overflow:hidden}
.profile-header-avatar img{width:100%;height:100%;object-fit:cover}
.profile-header-info{overflow:hidden}
.profile-header-name{color:var(--white);font-size:.88rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-header-role{color:var(--accent);font-size:.72rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em}

.profile-dropdown a,.profile-dropdown button{
  display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;
  border:none;background:none;color:rgba(255,255,255,.7);font-family:inherit;
  font-size:.82rem;font-weight:400;border-radius:10px;cursor:pointer;
  transition:all .2s ease;text-align:left;
}
.profile-dropdown a:hover,.profile-dropdown button:hover{background:rgba(255,255,255,.08);color:var(--white)}
.profile-dropdown a svg,.profile-dropdown button svg{width:16px;height:16px;opacity:.6;flex-shrink:0}
.profile-sep{height:1px;background:rgba(255,255,255,.08);margin:4px 0}
.profile-dropdown .logout-btn{color:rgba(255,100,100,.8)}
.profile-dropdown .logout-btn:hover{background:rgba(255,60,60,.12);color:#ff6464}

/* Login form inside dropdown */
.login-form{padding:16px 12px}
.login-form h4{color:var(--white);font-size:.92rem;font-weight:600;margin-bottom:12px}
.login-form input{
  width:100%;padding:10px 12px;border:1px solid rgba(255,255,255,.12);
  border-radius:10px;background:rgba(255,255,255,.06);color:var(--white);
  font-family:inherit;font-size:.82rem;margin-bottom:8px;outline:none;
  transition:border-color .2s;
}
.login-form input::placeholder{color:rgba(255,255,255,.3)}
.login-form input:focus{border-color:var(--accent)}
.login-form .login-btn{
  width:100%;padding:10px;border:none;border-radius:10px;
  background:var(--primary);color:var(--white);font-family:inherit;
  font-size:.84rem;font-weight:600;cursor:pointer;transition:all .2s;
  margin-top:4px;
}
.login-form .login-btn:hover{background:var(--primary-dark)}
.login-form .login-error{color:#ff6464;font-size:.76rem;margin-top:6px;display:none}

/* ── NOTIFICATIONS BELL ── */
.notif-bell-wrap{position:relative}
.notif-bell{
  width:36px;height:36px;border-radius:50%;border:2px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);cursor:pointer;display:flex;align-items:center;
  justify-content:center;transition:all .3s ease;position:relative;padding:0;
}
.notif-bell:hover{border-color:var(--accent);background:rgba(255,255,255,.1)}
.notif-bell svg{color:rgba(255,255,255,.7);flex-shrink:0;transition:color .3s}
.notif-bell:hover svg{color:var(--white)}
.notif-bell.has-notif{border-color:rgba(5,167,5,.5);animation:bellPulse 2s ease infinite}
@keyframes bellPulse{0%,100%{box-shadow:0 0 0 0 rgba(5,167,5,.3)}50%{box-shadow:0 0 0 6px rgba(5,167,5,0)}}

.notif-badge{
  position:absolute;top:-4px;right:-4px;
  min-width:18px;height:18px;padding:0 5px;
  background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;
  border-radius:50px;display:flex;align-items:center;justify-content:center;
  border:2px solid #000;line-height:1;pointer-events:none;
}

/* ── NOTIFICATIONS PANEL ── */
.notif-panel{
  position:absolute;top:calc(100% + 12px);right:-60px;width:380px;max-height:520px;
  background:rgba(20,20,20,.98);
  border:1px solid rgba(255,255,255,.1);border-radius:16px;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:all .25s ease;z-index:1050;
  box-shadow:0 20px 56px rgba(0,0,0,.55);
  display:flex;flex-direction:column;overflow:hidden;
}
.notif-panel.open{opacity:1;visibility:visible;transform:translateY(0)}
.notif-panel::before{
  content:'';position:absolute;top:-6px;right:68px;width:12px;height:12px;
  background:rgba(20,20,20,.98);border-left:1px solid rgba(255,255,255,.1);
  border-top:1px solid rgba(255,255,255,.1);transform:rotate(45deg);
}

.notif-panel-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px 12px;border-bottom:1px solid rgba(255,255,255,.08);
}
.notif-panel-header h4{color:var(--white);font-size:.92rem;font-weight:600}
.notif-panel-actions{display:flex;gap:6px}
.notif-panel-actions button{
  width:28px;height:28px;border:none;border-radius:8px;
  background:rgba(255,255,255,.06);color:rgba(255,255,255,.5);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .2s;padding:0;
}
.notif-panel-actions button:hover{background:rgba(255,255,255,.12);color:var(--white)}

.notif-panel-body{flex:1;overflow-y:auto;max-height:380px;padding:6px}
.notif-panel-body::-webkit-scrollbar{width:3px}
.notif-panel-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}

/* Empty state */
.notif-empty{padding:48px 20px;text-align:center}
.notif-empty svg{color:rgba(255,255,255,.15);margin:0 auto 12px}
.notif-empty p{color:rgba(255,255,255,.5);font-size:.88rem;font-weight:500;margin-bottom:4px}
.notif-empty small{color:rgba(255,255,255,.3);font-size:.76rem}

/* Notification item */
.notif-item{
  display:flex;align-items:flex-start;gap:12px;
  padding:12px;border-radius:12px;cursor:pointer;
  transition:background .2s;position:relative;
}
.notif-item:hover{background:rgba(255,255,255,.05)}
.notif-item.unread{background:rgba(5,167,5,.06)}
.notif-item.unread::before{
  content:'';position:absolute;left:4px;top:50%;transform:translateY(-50%);
  width:6px;height:6px;border-radius:50%;background:var(--accent);
}

.notif-item-icon{
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
}

.notif-item-content{flex:1;min-width:0}
.notif-item-title{color:var(--white);font-size:.82rem;font-weight:600;margin-bottom:3px}
.notif-item-body{color:rgba(255,255,255,.55);font-size:.76rem;line-height:1.55;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.notif-item-meta{display:flex;align-items:center;gap:8px}
.notif-item-type{font-size:.65rem;font-weight:600;padding:2px 8px;border-radius:50px;letter-spacing:.02em}
.notif-type-cadeau{background:rgba(19,170,57,.12);color:#13aa39}
.notif-type-pourboire{background:rgba(0,136,204,.12);color:#0088cc}
.notif-item-time{font-size:.68rem;color:rgba(255,255,255,.3)}

.notif-item-dismiss{
  position:absolute;top:8px;right:8px;
  width:22px;height:22px;border:none;border-radius:6px;
  background:transparent;color:rgba(255,255,255,.3);
  font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:all .2s;padding:0;
}
.notif-item:hover .notif-item-dismiss{opacity:1}
.notif-item-dismiss:hover{background:rgba(255,60,60,.15);color:#ff6464}

/* Panel footer */
.notif-panel-footer{
  padding:10px 16px;border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.notif-sub-active{color:var(--accent);font-size:.72rem;font-weight:500;display:inline-flex;align-items:center;gap:5px}
.notif-sub-inactive{color:rgba(255,255,255,.35);font-size:.72rem;font-weight:400}

/* ── NOTIFICATION TOAST (floating) ── */
.notif-toast{
  position:fixed;top:72px;right:20px;z-index:1050;
  width:360px;max-width:calc(100vw - 40px);
  background:rgba(20,22,20,.97);
  border:1px solid rgba(5,167,5,.2);border-radius:16px;
  padding:16px;display:flex;align-items:flex-start;gap:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.4),0 0 0 1px rgba(5,167,5,.08);
  transform:translateX(120%);opacity:0;
  transition:all .4s cubic-bezier(.175,.885,.32,1.275);
  cursor:pointer;pointer-events:auto;
}
.notif-toast.show{transform:translateX(0);opacity:1}

.notif-toast-icon{
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
}
.notif-toast-content{flex:1;min-width:0}
.notif-toast-title{color:var(--white);font-size:.84rem;font-weight:600;margin-bottom:3px}
.notif-toast-body{color:rgba(255,255,255,.55);font-size:.76rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-toast-close{
  width:24px;height:24px;border:none;border-radius:8px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.5);
  font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;padding:0;
}
.notif-toast-close:hover{background:rgba(255,255,255,.15);color:var(--white)}

/* ── GIFT DETAIL MODAL ── */
.gift-modal-overlay{
  position:fixed;inset:0;z-index:2000;
  background:rgba(0,0,0,.65);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:all .3s ease;
}
.gift-modal-overlay.open{opacity:1;visibility:visible}
.gift-modal{
  width:420px;max-width:calc(100vw - 40px);
  background:rgba(20,22,20,.98);
  border:1px solid rgba(5,167,5,.2);border-radius:20px;
  padding:0;overflow:hidden;
  transform:translateY(16px) scale(.96);transition:all .35s cubic-bezier(.175,.885,.32,1.275);
  box-shadow:0 24px 64px rgba(0,0,0,.5);
}
.gift-modal-overlay.open .gift-modal{transform:translateY(0) scale(1)}
.gift-modal-header{
  background:linear-gradient(135deg,rgba(5,167,5,.15),rgba(48,209,88,.08));
  padding:28px 24px 20px;text-align:center;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.gift-modal-emoji{font-size:2.8rem;margin-bottom:10px;display:block}
.gift-modal-header h3{color:var(--white);font-size:1.15rem;font-weight:700;margin-bottom:4px}
.gift-modal-header p{color:rgba(255,255,255,.5);font-size:.78rem}
.gift-modal-body{padding:24px}
.gift-detail-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06);
}
.gift-detail-row:last-child{border-bottom:none}
.gift-detail-label{color:rgba(255,255,255,.5);font-size:.78rem;font-weight:500}
.gift-detail-value{color:var(--white);font-size:.88rem;font-weight:600;text-align:right}
.gift-detail-value.code{
  background:rgba(5,167,5,.12);color:var(--accent);
  padding:4px 14px;border-radius:8px;font-family:'Courier New',monospace;
  letter-spacing:.12em;font-size:.82rem;
}
.gift-modal-footer{
  padding:16px 24px 24px;display:flex;gap:10px;
}
.gift-modal-footer button{
  flex:1;padding:12px;border:none;border-radius:12px;
  font-family:inherit;font-size:.82rem;font-weight:600;cursor:pointer;transition:all .2s;
}
.gift-btn-use{background:var(--primary);color:var(--white)}
.gift-btn-use:hover{background:var(--primary-dark)}
.gift-btn-close{background:rgba(255,255,255,.08);color:rgba(255,255,255,.6)}
.gift-btn-close:hover{background:rgba(255,255,255,.12);color:var(--white)}

/* ── RESPONSIVE NOTIFICATIONS ── */
@media(max-width:480px){
  .notif-panel{right:-100px;width:calc(100vw - 24px)}
  .notif-panel::before{right:108px}
  .notif-toast{right:12px;width:calc(100vw - 24px)}
  .gift-modal{width:calc(100vw - 24px)}
}

/* ── FOOTER ── */
footer{background:var(--g-dark);color:var(--white);padding:80px 5% 32px;position:relative;overflow:hidden}
footer>*{position:relative;z-index:1}
footer::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;background-image:linear-gradient(rgba(48,209,88,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(48,209,88,.07) 1px,transparent 1px),linear-gradient(rgba(48,209,88,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(48,209,88,.03) 1px,transparent 1px);background-size:64px 64px,64px 64px,16px 16px,16px 16px;mask-image:radial-gradient(ellipse 100% 100% at 50% 50%,black 30%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 100% 100% at 50% 50%,black 30%,transparent 100%)}

.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:56px;max-width:1300px;margin:0 auto 56px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:56px}

.footer-brand h3{font-size:1.4rem;font-weight:700;margin-bottom:16px}
.footer-brand h3 span{background:var(--g-solar);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.footer-brand p{color:var(--gray);margin-bottom:28px;line-height:1.78;font-size:.92rem;font-weight:300}

.socials{display:flex;gap:10px}
.socials a{width:42px;height:42px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--white);transition:all .3s}
.socials a:hover{background:var(--primary);border-color:var(--primary);transform:translateY(-4px)}

.f-col h4{font-size:.78rem;font-weight:600;margin-bottom:20px;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.88)}
.f-col ul{list-style:none}
.f-col li{margin-bottom:10px}
.f-col a{color:var(--gray);font-size:.9rem;font-weight:300;transition:color .25s,padding-left .2s}
.f-col a:hover{color:var(--white);padding-left:5px}

.footer-bottom{max-width:1300px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-bottom p{color:var(--gray);font-size:.84rem;font-weight:300}

.f-legal{display:flex;gap:28px}
.f-legal a{color:var(--gray);font-size:.84rem;transition:color .25s}
.f-legal a:hover{color:var(--white)}

/* ── SECTION TITLES ── */
.s-title{font-size:clamp(2rem,4vw,3rem);font-weight:700;letter-spacing:-1.2px;line-height:1.18}
.s-tag{font-size:.76rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.on-dark .s-title{color:var(--white)}
.on-dark .s-title span{background:var(--g-solar);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ── REVEAL ANIMATIONS ── */
.reveal{opacity:0;transform:translateY(24px);animation:revealFade .6s ease forwards}
.hidden{opacity:0;transform:translateY(24px)}
.vis{opacity:1;transform:translateY(0)}
.reveal-d1{animation-delay:.1s}
.reveal-d2{animation-delay:.2s}
.reveal-d3{animation-delay:.3s}
.reveal-d4{animation-delay:.4s}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  footer{padding:64px 5% 28px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
}

@media(max-width:900px){
  nav{padding:0 24px}
  .nav-links{
    display:none;position:fixed;top:58px;left:0;right:0;
    background:rgba(0,0,0,.97);
    flex-direction:column;padding:28px 24px;gap:20px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }
  .nav-links.open{display:flex}
  .nav-cta{display:none}
  .menu-toggle{display:flex}
  .nav-actions{gap:10px}
  .profile-trigger{width:32px;height:32px}
  .profile-dropdown{right:-8px;min-width:220px}
}

@media(max-width:768px){
  nav{padding:0 20px}
  .footer-grid{grid-template-columns:1fr;gap:36px}
  .footer-bottom{flex-direction:column;text-align:center}
}

@media(max-width:600px){
  section{padding:64px 20px}
  footer{padding:56px 20px 24px}
}

/* ── SKELETON LOADER ── */
.skeleton{background:linear-gradient(90deg,#e8ede8 25%,#f5f7f5 50%,#e8ede8 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skeleton-text{height:14px;margin-bottom:8px;border-radius:4px}
.skeleton-title{height:22px;width:60%;margin-bottom:12px;border-radius:6px}
.skeleton-img{height:180px;border-radius:12px;margin-bottom:12px}
.skeleton-card{padding:16px;border-radius:14px;border:1px solid #e8ede8}