/* PC-INFORMATIQUE – fond d'arrière-plan (bannière complète) */
html { background:#0d0f16; }
body { background:transparent !important; }
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background:#0d0f16 url("images/fond-app-small.jpg") center top / cover no-repeat;
}
@media (min-width:700px){
  body::before{ background-image:url("images/fond-app.jpg"); }
}
/* voile léger pour garder les textes lisibles */
body::after{
  content:"";
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg,rgba(8,10,24,.25) 0%,rgba(8,10,24,.35) 100%);
}

/* En-tête transparent */
header, .header, [class*="header"], [class*="topbar"], [class*="top-bar"], [class*="appbar"], [class*="app-bar"], [class*="navbar-top"]{
  background:rgba(13,15,22,.18) !important;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  box-shadow:none !important;
}

/* Barre du bas transparente */
nav[class*="bottom"], [class*="bottom-nav"], [class*="bottomnav"], [class*="tabbar"], [class*="tab-bar"], [class*="navbar-bottom"]{
  background:rgba(13,15,22,.30) !important;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

/* Lisibilité : fond plus sombre + ombre sur les textes */
body::after{
  background:linear-gradient(180deg,rgba(6,8,20,.60) 0%,rgba(6,8,20,.70) 100%) !important;
}
h1,h2,h3,p,a,span,label,small{
  text-shadow:0 1px 3px rgba(0,0,0,.85);
}
button, input, select, textarea{ text-shadow:none; }

/* === Cadres type "Vos informations" === */
body::after{
  background:linear-gradient(180deg,rgba(6,8,20,.25) 0%,rgba(6,8,20,.35) 100%) !important;
}
.hero, .section-title, .about-btn-wrap{
  background:rgba(24,27,58,.93) !important;
  border:2px solid #2dd4bf !important;
  border-radius:28px !important;
  padding:20px 18px !important;
  margin:18px 12px !important;
  box-shadow:0 6px 24px rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  text-shadow:none !important;
}
.hero .contact{
  background:none !important; border:0 !important;
  padding:0 !important; margin:12px 0 0 !important;
}
.section-title{ text-align:center; }

/* Cadre du code QR */
#qrw{
  background:rgba(24,27,58,.93) !important;
  border:2px solid #2dd4bf !important;
  border-radius:28px !important;
  padding:20px 18px !important;
  margin:18px 12px !important;
  box-shadow:0 6px 24px rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  text-align:center;
  text-shadow:none !important;
}

/* Bandeau partenaires : fond opaque */
.pc-partners{
  background:rgba(24,27,58,.96) !important;
  border-radius:28px !important;
  overflow:hidden;
  text-shadow:none !important;
}
.pc-partners .pcp-track,
.pc-partners .pcp-half,
.pc-partners .pcp-i{
  background:transparent !important;
}

/* Titre en jaune */
.hero-title, .hero-title *{
  color:#ffd21f !important;
  -webkit-text-fill-color:#ffd21f !important;
  background:none !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  text-shadow:0 2px 6px rgba(0,0,0,.6) !important;
}
/* Pas d'ombre sur les boutons */
.nav-btns *, .btn, .btn *, button *, .visit-btn *{
  text-shadow:none !important;
}

/* === Fond moins intense === */
body::before{
  filter:brightness(.55) saturate(.85) !important;
}
body::after{
  background:linear-gradient(180deg,rgba(6,8,20,.40) 0%,rgba(6,8,20,.50) 100%) !important;
}

/* === Contour jaune qui groupait les 3 premières : supprimé === */
.card:has(.card){
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

/* === Tuiles identiques, couleur intérieure renforcée === */
.card:not(:has(.card)){
  background-color:#171b3d !important;
  border-width:2px !important;
  border-style:solid !important;
  border-radius:28px !important;
  margin:14px 12px !important;
  padding:0 !important;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.45);
}

/* === Titres bien centrés, même hauteur === */
.card-head{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-height:68px;
  padding:0 56px !important;
  text-align:center;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  margin:0 !important;
}
.card-head h3, .card-head b, .card-head span:not(.chevron):not(.badge){
  margin:0;
  text-align:center;
}
.card-head .chevron{
  position:absolute;
  right:20px;
  top:50%;
  margin-top:-.6em;
}

/* === Tuiles compactes (hauteur divisée par 2) === */
.card.pcinfo-self, #card-gfc, #card-gsc, .card.gsc, .card.ambi, .card.mage,
.card.malaga, .card.lework, .card.bijou, .card.troc, .card.lav, .card.aneg, .card.neoferme{
  border-width:1.5px !important;
  border-style:solid !important;
  border-radius:18px !important;
  margin:7px 14px !important;
  padding:0 !important;
  overflow:hidden !important;
  box-shadow:0 3px 10px rgba(0,0,0,.4) !important;
  display:block !important;
}
/* Gabon Sport Connect : tuile forcée */
#card-gsc, .card.gsc{
  background-color:#1f2b24 !important;
  border-color:#b7c94a !important;
}
#card-gfc, .card.pcinfo-self{
  background-color:#171b3d !important;
  border-color:#2dd4bf !important;
}

/* Têtes de tuiles : plus basses, police plus petite */
.card.pcinfo-self .card-head, #card-gfc .card-head, #card-gsc .card-head, .card.gsc .card-head,
.card.ambi .card-head, .card.mage .card-head, .card.malaga .card-head, .card.lework .card-head,
.card.bijou .card-head, .card.troc .card-head, .card.lav .card-head, .card.aneg .card-head,
.card.neoferme .card-head{
  min-height:46px !important;
  padding:0 38px !important;
  font-size:16px !important;
}
.card-head h3, .card-head b, .card-head span:not(.chevron):not(.badge){
  font-size:16px !important;
  line-height:1.2 !important;
}
.card-head .chevron{ right:14px !important; font-size:13px !important; }

/* === Tuiles plus larges, textes sur une ligne et centrés === */
.card.pcinfo-self, #card-gfc, #card-gsc, .card.gsc, .card.ambi, .card.mage,
.card.malaga, .card.lework, .card.bijou, .card.troc, .card.lav, .card.aneg, .card.neoferme{
  margin-left:6px !important;
  margin-right:6px !important;
  width:auto !important;
  max-width:none !important;
}
.card.pcinfo-self .card-head, #card-gfc .card-head, #card-gsc .card-head, .card.gsc .card-head,
.card.ambi .card-head, .card.mage .card-head, .card.malaga .card-head, .card.lework .card-head,
.card.bijou .card-head, .card.troc .card-head, .card.lav .card-head, .card.aneg .card-head,
.card.neoferme .card-head{
  padding:0 30px !important;
  justify-content:center !important;
  text-align:center !important;
}
.card-head h3, .card-head b, .card-head span:not(.chevron):not(.badge){
  white-space:nowrap !important;
  text-wrap:balance;
}
.card-head .chevron{ right:12px !important; }

/* === Applications en grille de logos === */
.apps-grid-on [id^="card-"], .apps-grid-on .card.pcinfo-self, .apps-grid-on .card:has(.card), .apps-grid-on .pc-partners{
  display:none !important;
}
.apps-grid-box{
  margin:14px 6px; padding:18px 12px;
  border:2px solid #ffd21f; border-radius:28px;
  background:rgba(24,27,58,.96);
  box-shadow:0 0 14px rgba(255,210,31,.6),0 0 30px rgba(255,190,0,.3);
  animation:pcGlow 3s ease-in-out infinite;
}
.apps-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px 10px; justify-items:center; align-items:center;}
.apps-tile{
  width:74px; height:74px; padding:0; cursor:pointer;
  border-radius:50%; overflow:hidden;
  background:#0d1230; border:2px solid rgba(255,210,31,.85);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; font-weight:700;
}
.apps-tile img{width:100%; height:100%; object-fit:contain; border-radius:50%;}
.apps-tile:active{transform:scale(.94);}
.apps-sheet{
  position:fixed; inset:0; z-index:2147482000;
  background:rgba(4,6,16,.78);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.apps-sheet-box{
  position:relative; width:100%; max-width:480px; max-height:82vh; overflow:auto;
  background:#171b3d; border:2px solid #2dd4bf; border-radius:24px;
  padding:22px 18px 18px; color:#fff; text-align:center;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
}
.apps-sheet-box h3{margin:0 0 12px; font-size:20px;}
.apps-sheet-box .card-details, .apps-sheet-box .card-body{
  display:block !important; max-height:none !important; height:auto !important;
  opacity:1 !important; visibility:visible !important;
}
.apps-sheet-box img{max-width:100%; border-radius:14px; margin-bottom:10px;}
.apps-sheet-x{
  position:absolute; top:8px; right:12px; width:34px; height:34px;
  border:0; border-radius:50%; background:rgba(255,255,255,.12);
  color:#fff; font-size:22px; line-height:1; cursor:pointer;
}

/* === Correctif grille d'applications === */
html, body{ overflow-x:hidden !important; max-width:100% !important; }
.apps-grid-box{
  box-sizing:border-box !important;
  width:auto !important;
  max-width:calc(100% - 12px) !important;
  margin:14px 6px !important;
  padding:16px 10px !important;
}
.apps-grid{
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px 6px !important;
  justify-items:center !important;
  width:100% !important;
}
.apps-tile{
  box-sizing:border-box !important;
  width:68px !important; height:68px !important;
  min-width:0 !important; min-height:0 !important;
  max-width:68px !important; max-height:68px !important;
  flex:none !important; margin:0 !important; padding:0 !important;
  border-radius:50% !important;
  border:2px solid rgba(255,210,31,.9) !important;
  background:#0d1230 !important;
  overflow:hidden !important;
  display:flex !important; align-items:center; justify-content:center;
}
.apps-tile img{
  width:100% !important; height:100% !important;
  max-width:none !important; margin:0 !important;
  object-fit:cover !important; border-radius:50% !important;
}

/* Masquage des anciennes tuiles (sans toucher au reste de la page) */
body.apps-grid-on .card.gsc, body.apps-grid-on #card-gsc, body.apps-grid-on #card-gfc,
body.apps-grid-on .card.pcinfo-self, body.apps-grid-on #card-ambi, body.apps-grid-on #card-mage,
body.apps-grid-on #card-malaga, body.apps-grid-on #card-lework, body.apps-grid-on #card-bijou,
body.apps-grid-on #card-troc, body.apps-grid-on #card-lav, body.apps-grid-on #card-aneg,
body.apps-grid-on #card-neoferme, body.apps-grid-on .card.ambi, body.apps-grid-on .card.mage,
body.apps-grid-on .card.malaga, body.apps-grid-on .card.lework, body.apps-grid-on .card.bijou,
body.apps-grid-on .card.troc, body.apps-grid-on .card.lav, body.apps-grid-on .card.aneg,
body.apps-grid-on .card.neoferme, body.apps-grid-on .pc-partners{
  display:none !important;
}

/* === Fenêtre de présentation : tient sur un écran === */
.apps-sheet{ padding:12px !important; }
.apps-sheet-box{
  display:flex !important; flex-direction:column; align-items:center;
  max-height:calc(100vh - 24px) !important;
  max-height:calc(100dvh - 24px) !important;
  overflow:hidden !important;
  padding:14px 14px 14px !important;
}
.apps-sheet-box h3{ font-size:18px !important; margin:0 34px 8px !important; }
.apps-sheet-box .badge{ display:none !important; }
.apps-sheet-box .card-details, .apps-sheet-box .card-body{
  display:flex !important; flex-direction:column; align-items:center;
  width:100%; margin:0 !important; padding:0 !important;
  max-height:none !important; overflow:visible !important;
}
.apps-sheet-box .shot{
  width:100% !important; height:auto !important; aspect-ratio:auto !important;
  margin:0 0 8px !important; padding:0 !important; background:none !important;
  display:flex !important; justify-content:center; border:0 !important;
}
.apps-sheet-box .shot a{ display:flex; justify-content:center; }
.apps-sheet-box .shot img, .apps-sheet-box img{
  width:auto !important; height:auto !important;
  max-width:100% !important; max-height:30vh !important; max-height:30dvh !important;
  object-fit:contain !important; border-radius:12px !important;
  margin:0 !important; display:block !important;
}
.apps-sheet-box p{
  font-size:13.5px !important; line-height:1.4 !important;
  margin:0 0 10px !important; text-align:center !important;
}
.apps-sheet-box a.visit-btn, .apps-sheet-box .visit-btn{
  display:block !important; width:100%; box-sizing:border-box;
  padding:11px 14px !important; margin:0 !important; text-align:center;
  border-radius:14px !important; text-decoration:none !important;
  font-weight:800 !important; font-size:15px !important;
  color:#0d0f16 !important;
  background:linear-gradient(90deg,#2dd4bf,#ff4fa3) !important;
  border:0 !important; text-shadow:none !important;
}
.apps-sheet-box .visit-btn *{ color:#0d0f16 !important; text-shadow:none !important; }

/* === Tuile "Nouvelle demande de projet" : animation d'appel === */
#demande .section-title, #demande.section-title{
  position:relative;
  overflow:hidden !important;
  cursor:pointer;
  animation:pcCta 2.2s ease-in-out infinite;
}
#demande .section-title::before, #demande.section-title::before{
  content:"";
  position:absolute; top:0; bottom:0; left:-60%;
  width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-20deg);
  animation:pcShine 3.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes pcCta{
  0%,100%{
    border-color:#2dd4bf;
    box-shadow:0 0 0 0 rgba(45,212,191,.55),0 6px 24px rgba(0,0,0,.45);
    transform:scale(1);
  }
  50%{
    border-color:#ff4fa3;
    box-shadow:0 0 0 9px rgba(255,79,163,0),0 0 26px rgba(255,79,163,.55);
    transform:scale(1.025);
  }
}
@keyframes pcShine{
  0%{left:-60%}
  55%,100%{left:130%}
}
#wizard{ scroll-margin-top:170px; }
@media (prefers-reduced-motion:reduce){
  #demande .section-title, #demande.section-title,
  #demande .section-title::before, #demande.section-title::before{ animation:none; }
}

/* === Correctif images GFC / PC-INFORMATIQUE : centrées, taille imposée === */
.apps-sheet-box .shot, .apps-sheet-box .shot *:not(img){
  background:transparent !important; background-image:none !important;
  width:auto !important; height:auto !important; min-height:0 !important;
  aspect-ratio:auto !important; padding:0 !important; border:0 !important;
  display:flex !important; justify-content:center !important; align-items:center !important;
}
.apps-sheet-box .shot{ width:100% !important; }
.apps-sheet-box .shot img, .apps-sheet-box .card-details img, .apps-sheet-box .card-body img{
  height:30vh !important; height:30dvh !important; width:auto !important;
  max-width:100% !important; min-width:0 !important; min-height:0 !important;
  object-fit:contain !important; object-position:center !important;
  background:transparent !important; transform:none !important; zoom:1 !important;
  margin:0 auto !important; display:block !important;
  border-radius:12px !important; position:static !important;
}

/* === Cadre image IDENTIQUE pour toutes les fenêtres === */
.apps-sheet-box .shot{
  width:100% !important; height:34vh !important; height:34dvh !important;
  min-height:0 !important; max-height:none !important; flex:0 0 auto !important;
  margin:0 0 10px !important; padding:0 !important;
  background:transparent !important; border:0 !important;
  display:flex !important; justify-content:center !important; align-items:center !important;
  overflow:hidden !important;
}
.apps-sheet-box .shot a{
  width:100% !important; height:100% !important;
  display:flex !important; justify-content:center !important; align-items:center !important;
}
.apps-sheet-box .shot img, .apps-sheet-box .card-details img, .apps-sheet-box .card-body img{
  width:100% !important; height:34vh !important; height:34dvh !important;
  max-width:100% !important; max-height:34dvh !important;
  min-width:0 !important; min-height:0 !important;
  object-fit:contain !important; object-position:center !important;
  background:transparent !important; margin:0 auto !important;
  display:block !important; position:static !important;
  transform:none !important; zoom:1 !important; border-radius:12px !important;
}

/* === Étiquette masquée, images centrées === */
.apps-sheet-box .shot .badge, .apps-sheet-box .badge{
  display:none !important; position:absolute !important; visibility:hidden !important;
  width:0 !important; height:0 !important; font-size:0 !important;
}
.apps-sheet-box .shot{ justify-content:center !important; align-items:center !important; text-align:center !important; }
.apps-sheet-box .shot img{ margin:0 auto !important; }

/* === Cadre image unique : même largeur, même hauteur, image entière === */
.apps-sheet-box .shot{
  width:62% !important; max-width:240px !important;
  height:34vh !important; height:34dvh !important;
  margin:0 auto 10px !important; flex:0 0 auto !important;
  background:rgba(255,255,255,.06) !important; border-radius:14px !important;
  overflow:hidden !important; display:flex !important;
  justify-content:center !important; align-items:center !important;
}
.apps-sheet-box .shot a{ width:100% !important; height:100% !important; display:flex !important; justify-content:center !important; align-items:center !important; }
.apps-sheet-box .shot img{
  width:100% !important; height:100% !important;
  max-width:100% !important; max-height:100% !important;
  object-fit:contain !important; object-position:center !important;
  margin:0 !important; border-radius:0 !important;
}

/* === Tuile formulaire : couleur plus claire et moderne === */
.formbox{
  background:linear-gradient(145deg,#3556b8 0%,#5b3fb5 100%) !important;
  box-shadow:0 10px 30px rgba(40,50,140,.45), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.formbox h2,.formbox h3,.formbox h4,.formbox legend{ color:#fff !important; }
.formbox label,.formbox p,.formbox small,.formbox .sub,.formbox .hint{ color:#e9ecff !important; }
.formbox input,.formbox textarea,.formbox select{
  background:rgba(12,16,52,.50) !important; color:#fff !important;
}
.formbox input::placeholder,.formbox textarea::placeholder{ color:rgba(255,255,255,.55) !important; }

/* === Formulaire : contour jaune, titre centré, libellés jaunes === */
body .formbox{ border-color:#ffd43b !important; border-width:2px !important; }
body .formbox h2, body .formbox h3, body .formbox h4, body .formbox legend{
  text-align:center !important; width:100% !important;
}
body .formbox p{ text-align:center !important; }
body .formbox label{ color:#ffd43b !important; font-weight:700 !important; text-align:left !important; }
body .formbox input, body .formbox textarea, body .formbox select{ border-color:var(--logo-teal,#2dd4bf) !important; }

/* === Masquage doux de l'ancien affichage au chargement === */
@keyframes appsPreOff{ to{ visibility:visible; } }
html.apps-pre .pc-partners,
html.apps-pre [id^="card-"],
html.apps-pre .card.pcinfo-self,
html.apps-pre .card:has(.card){
  visibility:hidden; animation:appsPreOff 0s linear 5s forwards;
}

/* === Fenêtres des apps : plein écran avec bouton de fermeture === */
.apps-sheet{
  position:fixed !important; inset:0 !important; z-index:10000 !important;
  padding:0 !important; display:flex !important;
  align-items:stretch !important; justify-content:stretch !important;
}
.apps-sheet-box{
  position:relative !important; width:100% !important; max-width:none !important;
  height:100% !important; max-height:none !important; margin:0 !important;
  border-radius:0 !important; border-width:0 !important;
  padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom)) !important;
  overflow-y:auto !important; justify-content:flex-start !important;
}
.apps-sheet-box h3{ margin:0 56px 14px !important; font-size:21px !important; text-align:center !important; }
.apps-sheet-x{
  position:fixed !important; top:max(12px,env(safe-area-inset-top)) !important; right:14px !important;
  width:46px !important; height:46px !important; border-radius:50% !important;
  font-size:30px !important; line-height:1 !important; z-index:5 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
.apps-sheet-box .card-details{ flex:1 1 auto !important; min-height:0 !important; width:100% !important; }
.apps-sheet-box .card-body{ flex:1 1 auto !important; display:flex !important; flex-direction:column !important; width:100% !important; }
.apps-sheet-box .shot{
  height:46vh !important; height:46dvh !important; width:auto !important;
  aspect-ratio:9/19 !important; max-width:80% !important; margin:0 auto 14px !important;
}
.apps-sheet-box p{ font-size:15px !important; line-height:1.5 !important; margin:0 0 18px !important; }
.apps-sheet-box .visit-btn{ margin-top:auto !important; }
