Ehhee
This commit is contained in:
parent
73746f2f8d
commit
641fe99ea5
|
|
@ -71,148 +71,197 @@
|
|||
|
||||
<!-- Affichage mobile (cartes) -->
|
||||
<style>
|
||||
/* Empêche tout scroll horizontal */
|
||||
.mobile-app {
|
||||
width: 100%;
|
||||
/* Global mobile reset pour éviter les débordements */
|
||||
.mobile-portail-assure,
|
||||
.mobile-portail-assure * {
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
.mobile-portail-assure {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
overflow: hidden; /* pas de scroll horizontal ni vertical forcé ici */
|
||||
background: #1c1c1c; /* fond sombre proche d’un thème portail */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #e5e5e5;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* Contenu scrollable vertical uniquement */
|
||||
.mobile-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
/* Cartes compactes */
|
||||
.mobile-card {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 15px;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
|
||||
animation: fadeInUp 0.4s ease;
|
||||
}
|
||||
|
||||
/* Animation d’apparition */
|
||||
@keyframes fadeInUp {
|
||||
from { opacity: 0; transform: translateY(15px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Uniformisation des champs */
|
||||
.mobile-input, .mobile-select {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #ccc;
|
||||
.mobile-header {
|
||||
padding: 12px 16px;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
background: #fafafa;
|
||||
font-size: 20px;
|
||||
font-family: Play-Bold, Arial, sans-serif;
|
||||
color: #e5e5e5; /* même couleur que ton titre desktop */
|
||||
}
|
||||
|
||||
.mobile-main {
|
||||
flex: 1;
|
||||
padding: 8px 12px 4px 12px;
|
||||
overflow-y: auto; /* léger scroll vertical possible si petit écran */
|
||||
}
|
||||
|
||||
.mobile-card {
|
||||
background: #2a2a2a;
|
||||
border-radius: 10px;
|
||||
padding: 12px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
||||
animation: fadeInUpMobile 0.35s ease-out;
|
||||
}
|
||||
|
||||
.mobile-field {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.mobile-field label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.mobile-input,
|
||||
.mobile-select {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #444;
|
||||
background: #1f1f1f;
|
||||
color: #e5e5e5;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.mobile-input::placeholder {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.mobile-select:focus,
|
||||
.mobile-input:focus {
|
||||
outline: none;
|
||||
border-color: #007bff;
|
||||
box-shadow: 0 0 4px rgba(0,123,255,0.7);
|
||||
}
|
||||
|
||||
.mobile-alert {
|
||||
background: #8b1a1a;
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Bouton connexion */
|
||||
.mobile-btn {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border-radius: 30px;
|
||||
background: #1a73e8;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
height: 42px;
|
||||
border-radius: 20px;
|
||||
border: none;
|
||||
animation: fadeInUp 0.5s ease;
|
||||
background: #007bff; /* bleu type bouton bootstrap, proche de ce que tu as sûrement */
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
margin-top: 6px;
|
||||
transition: background 0.2s ease, transform 0.1s ease;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.mobile-header {
|
||||
background: #1a73e8;
|
||||
color: white;
|
||||
padding: 18px;
|
||||
text-align: center;
|
||||
font-size: 22px;
|
||||
font-family: Play-Bold;
|
||||
.mobile-btn:active {
|
||||
transform: scale(0.97);
|
||||
background: #0062cc;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.mobile-footer {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
font-size: 11px;
|
||||
padding: 4px 6px 6px 6px;
|
||||
color: #999999;
|
||||
background: #1c1c1c;
|
||||
}
|
||||
|
||||
.mobile-footer a {
|
||||
color: #e5e5e5;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@keyframes fadeInUpMobile {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="mobile-app d-md-none">
|
||||
<div class="mobile-portail-assure d-md-none">
|
||||
|
||||
<!-- HEADER -->
|
||||
<div class="mobile-header">
|
||||
Portail Assuré
|
||||
</div>
|
||||
|
||||
<!-- CONTENU -->
|
||||
<div class="mobile-content">
|
||||
<!-- CONTENU PRINCIPAL -->
|
||||
<div class="mobile-main">
|
||||
<div class="mobile-card">
|
||||
|
||||
<!-- Message d'erreur -->
|
||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||
<div class="alert alert-danger text-center mobile-card">
|
||||
<?= $msgErreur ?>
|
||||
<!-- Message d'erreur -->
|
||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||
<div class="mobile-alert">
|
||||
<?= $msgErreur ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div id="div_msgErreur"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($maintenance!='1'): ?>
|
||||
|
||||
<!-- Langue -->
|
||||
<div class="mobile-field">
|
||||
<label for="langue">Langue</label>
|
||||
<select class="mobile-select" id="langue" name="langue"
|
||||
required autocomplete="off"
|
||||
onchange="javascript:changer_langue_connexion();">
|
||||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div id="div_msgErreur"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($maintenance!='1'): ?>
|
||||
<!-- Entité -->
|
||||
<div class="mobile-field">
|
||||
<label for="codeSociete">Entité</label>
|
||||
<input class="mobile-input" type="text" name="codeSociete" id="codeSociete"
|
||||
value="<?= $codeSociete ?>" placeholder="Entité" required autocomplete="off"
|
||||
onchange="javascript:changer_entite_portail();">
|
||||
</div>
|
||||
|
||||
<!-- Langue -->
|
||||
<div class="mobile-card">
|
||||
<label for="langue">Langue</label>
|
||||
<select class="mobile-select" id="langue" name="langue"
|
||||
onchange="javascript:changer_langue_connexion();" required>
|
||||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||
</select>
|
||||
<!-- Identifiant -->
|
||||
<div class="mobile-field">
|
||||
<label for="login">Identifiant</label>
|
||||
<input class="mobile-input" type="text" name="login" id="login"
|
||||
value="<?= $codeUtilisateur ?>" placeholder="Identifiant" required autocomplete="off">
|
||||
</div>
|
||||
|
||||
<!-- Mot de passe -->
|
||||
<div class="mobile-field">
|
||||
<label for="mdp">Mot de passe</label>
|
||||
<input class="mobile-input" type="password" name="mdp" id="mdp"
|
||||
placeholder="Mot de passe" required autocomplete="off">
|
||||
</div>
|
||||
|
||||
<!-- Bouton -->
|
||||
<button name="btn_connexion" id="btn_connexion" class="mobile-btn">
|
||||
Connexion
|
||||
</button>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Entité -->
|
||||
<div class="mobile-card">
|
||||
<label for="codeSociete">Entité</label>
|
||||
<input class="mobile-input" type="text" name="codeSociete" id="codeSociete"
|
||||
value="<?= $codeSociete ?>" placeholder="Entité" autocomplete="off"
|
||||
onchange="javascript:changer_entite_portail();" required>
|
||||
</div>
|
||||
|
||||
<!-- Identifiant -->
|
||||
<div class="mobile-card">
|
||||
<label for="login">Identifiant</label>
|
||||
<input class="mobile-input" type="text" name="login" id="login"
|
||||
value="<?= $codeUtilisateur ?>" placeholder="Identifiant"
|
||||
autocomplete="off" required>
|
||||
</div>
|
||||
|
||||
<!-- Mot de passe -->
|
||||
<div class="mobile-card">
|
||||
<label for="mdp">Mot de passe</label>
|
||||
<input class="mobile-input" type="password" name="mdp" id="mdp"
|
||||
placeholder="Mot de passe" autocomplete="off" required>
|
||||
</div>
|
||||
|
||||
<!-- Bouton -->
|
||||
<button class="mobile-btn" id="btn_connexion" name="btn_connexion">
|
||||
Connexion
|
||||
</button>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- FOOTER -->
|
||||
<div class="mobile-footer">
|
||||
Tous droits réservés <a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||||
Tous droits réservés
|
||||
<a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user