*, *::before, *::after {
    box-sizing: border-box;
}

body {
	background-color:white;
 	margin:0px;
 	padding: 0px;
 	padding-top:48px; /* espace pour le menu top */
 	font-family:arial;
}

img{
	vertical-align: top;
}

p{
	font-family: arial;
	margin:0px;
}

a {
	text-decoration: none;
}

button {
    background: #f1f1f1;
    border: 0px;
    border-radius: 6px;
    padding: 12px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

input {
    background: #f8f8f8;
    border: 0px;
    border-radius: 6px;
    padding: 12px;
    color: #333;
    font-weight: bold;
    display: inline-block;
}

/* // CONTACT FORM // */

.contact-card {
    max-width: 450px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre douce */
    position: relative;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.header-section h2 {
    margin-top: 10px;
    color: #1a1f36;
    font-size: 1.8rem;
}

.header-section p {
    color: #697386;
    font-size: 0.95rem;
}

/* Style des champs */
.form-group label {
    color: #3c4257;
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-top: 10px;
    display: block;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    font-size: 1rem;
}

textarea.form-control {
    height: 120px;
    resize: vertical;
    min-height: 100px; 
    max-height: 400px;
}

.form-control:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

/* Zone email quand utilisateur non connecté */
.input-email.invalid {
    border-color: #d9534f;
    background-color: #fff9f8;
}

.input-email.valid {
    border-color: #5cb85c;
}

.email-error-hint {
    color: #d9534f;
    font-size: 0.75rem;
    display: none; /* Caché par défaut */
    margin-top: 4px;
}

/* Zone utilisateur connecté */
.logged-user-box {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
}

.user-email {
    color: #635bff;
    font-weight: bold;
}

#char-count-wrapper {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    transition: color 0.3s ease;
}

#char-count-wrapper.limit-near {
    color: #d9534f;
    font-weight: bold;
}

#char-count-wrapper.limit-reached {
    color: #ff0000 !important;
    font-weight: bold;
}

/* Bouton principal */
.btn-submit {
    width: 100%;
    background-color: #635bff;
    color: white;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #32325d;
}

/* Le spinner (caché par défaut) */
.spinner {
    display: none; /* Caché */
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* État quand le bouton est en train de charger */
.btn-submit:disabled {
    background-color: #a3acb9; /* Gris pour montrer que c'est bloqué */
    cursor: not-allowed;
}

.btn-submit.is-loading .spinner {
    display: inline-block; /* On affiche le spinner */
}

/* État de succès */
.btn-submit.success {
    background-color: #24b47e !important;
    border-color: #24b47e;
}

/* Optionnel : petite animation de "pop" quand il devient vert */
.btn-submit.success {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.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;
}

.url-group {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* // */

/* // STATUS MESSAGE // */

#status-message {
	display:none;
    position: fixed;
    top: 58px;
    left: 30px;
    right: 30px;
    border-radius: 10px;
    padding: 10px 15px;
    transition: opacity 0.5s ease;
    opacity: 1;
    z-index: 99;
    align-items: center;
    justify-content: center;
}

.status-icon {
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

#status-message.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

#status-message.alert-danger a {
    color: #c62828;
    font-weight: bold;
    text-decoration: underline;
}

#status-message.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Alternative syntaxe :
.alert-danger { background-color: #fee2e2; color: #b91c1c; border: 1px solid #f87171; }
.alert-success { background-color: #d1fae5; color: #047857; border: 1px solid #34d399; }
*/

/* // */

/* // AUTH FORM // */

.auth-card {
    max-width: 600px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre douce */
    position: relative;
}

.form-group {
    margin-bottom: 8px;
}

/* // */

#container {
    margin: auto;
    position: relative;
    max-width:1100px;
}

/* HORIZONTAL TABS (ul) */
.horizontal-tabs {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    z-index:98;
}

.horizontal-tabs li {
    display: inline-block;
    color:#888;
    padding:10px;
    position: relative;
}

.horizontal-tabs li.active{
    border-bottom:2px solid #339;
    color: #339;
}

/* Pour "No account yet" ou "Already an account" */
.js-auth-group p {
    font-weight: bold;
    color: #666;
    font-size: 0.8em;
}

#nav-menu-main{/*Menu top principal*/
	background-color: rgba(255,255,255,0.7);
	position:fixed;
	top:0px;
	width:100%;
	box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
	z-index:99;
}

#nav-menu-main img{ /* Only the logo img */
	margin:8px;
}

.div-left {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

.div-right {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    text-align: right;
}

.a-login-icon {   
    background-color: #f8f8f8;
    border: 2px solid #f2f2f2;
    border-radius: 15px;
    width: 27px;
    height: 27px;
    margin: 8px;
    display: inline-block;
    vertical-align: top;
    line-height: 27px;
    font-weight: bold;
    color: #ccc;
    font-family: arial;
    text-align: center;
    text-transform: uppercase;
}

.a-login-icon:hover {
    background-color: white;
    color: #6cf;
}

#section-intro{
	width:100%;
	height:487px;
	text-align:center;
}

#section-intro h1{
	background-color:rgba(255,255,255,0);
	font-size:3.5em;
	color:#666;
	margin-top:200px;
	display: inline-block;
}

#section_bottom {
	margin-top:20px;
	margin-bottom:20px;
	font-size: 0.8em;
	text-align:center;
	color:#666;
}

#section_bottom p a {/* Lien (e.g.: "contact") */
	color:#666;
}

.error {
    color: #e44;
    /*color:rgb(255, 115, 115);*/
}

.hide {
    display: none;
}

.tile-50 {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

.margin-bottom {
    margin-bottom: 20px;
}

/* TABS */
.js-tabs-content {
    display: none;
}

.js-tabs-content.show {
    display: initial;
}

/* ALTER - TO ALTERNATE BETWEEN ONE SECTION TO ANOTHER */
.js-alter-content {
    display: none;
}

.js-alter-content.show {
    display: initial;
}

.js-alter-trigger {
    cursor: pointer;
}

/* Dans sub/account */
.div-sub .card {
	background: linear-gradient(135deg, #ccc, #eee);
	padding: 20px;
	min-height: 200px;
	color: white;
}

.div-sub .card.basic-plan {
	background: linear-gradient(135deg, #6cf, #9cf);
}

.div-sub .card.premium-plan {
	background: linear-gradient(135deg, #f06, #f79);
}

.div-sub .card h1 {
	margin-top: 0px;
}

.div-sub .card p {
	font-size: 1.2em;
	margin-top: 10px;
}

.div-sub .card p a {
	color: white;
	text-decoration: underline;
}

.div-sub .card button {
	margin-top: 15px;
	padding: 10px 15px;
	background-color: white;
	border: none;
	color: #333;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
	transition: background-color 0.3s;
}

/* Style pour un lien élégant */
.div-sub .card p .cta-link {
    color: #635bff; /* Couleur violette typique de Stripe */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.div-sub .card p .cta-link:hover {
    color: #32325d;
    text-decoration: underline;
}

/* OU : Transformation en bouton secondaire */
.div-sub .card p .cta-link-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #f6f9fc;
    color: #635bff;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
}

/* Partie juste après "Choose your plan" dans /sub */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.pricing-container .card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.pricing-container .card.recommended-plan {
    border: 2px solid #635bff;
    transform: scale(1.05); /* Légèrement plus grande */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
}

.pricing-container .card ul {
	text-align: left;
	margin: 20px;
	padding: 0;
}

.badge { /* Le "Recommended" */
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #635bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.btn {
    display: block;
    margin-top: 20px;
    padding: 12px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-action {
    background: #635bff;
    color: white;
}

/* Used in account deletion request */
.btn-cancel {
    color: white;
    background-color: #ff5555;
}

.btn-cancel:hover {
    color: white;
    background-color: #bb1111;
}

.btn-cancel:disabled {
    background-color: #a3acb9; /* Gris pour montrer que c'est bloqué */
    cursor: not-allowed;
}

.btn-cancel.is-loading .spinner {
    display: inline-block; /* On affiche le spinner */
}
/* // */

/* Dans home, partie principale */
.hero {
    /* Un dégradé léger pour donner de la profondeur */
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px; /* Arrondi léger en bas pour un look moderne */
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1a1f36;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #4f566b;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Conteneur pour le badge Play Store, dans Home */
.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.store-buttons img {
    height: 60px; /* Taille standard pour le badge Google Play */
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-buttons img:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
    filter: brightness(1.1);
}

/* Une classe utilitaire pour cacher l'élément en douceur */
.fade-out {
    opacity: 0 !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media screen and (max-width: 500px) {    
	.tile-50{
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
}

/* Définition de l'animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe de base pour l'animation */
.reveal {
    opacity: 0; /* Caché au départ */
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.2s ease-in-out;
}

/* Délais pour l'effet "cascade" */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
