
/* ### LES ATELIERS MALINS .COM - 2025 ### */


@font-face {
    font-family: 'Cursive Standard';
    src: url('https://dev.lesateliersmalins.com/fonts/cursive_standard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px;
    background-color: #f5f5f5;
    color:#666;
}

#footer {
    margin-top:40px;
    width:300px;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

.h1text {
    position: absolute;
    left: -9999px;
} 

/* ========= EFFET COMBINÉ HEADER ========= */
.header-combined {
    /* Votre image de fond */
    background-image: url('/img/lesateliersmalins_header_1000.png');
    background-size: contain;
    background-repeat :no-repeat;
    background-position: center;
    
    /* Configuration de base */
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 0px;
}

/* === PARTICULES FLOTTANTES (TOUJOURS ACTIVES) === */
.header-combined::before,
.header-combined::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 70%);
    border-radius: 50%;
    animation: floatContinuous 6s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Particule 1 */
.header-combined::before {
    top: 35%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 7s;
}

/* Particule 1 */
.header-combined::after {
    top: 25%;
    right: 5%;
    animation-delay: 3s;
    animation-duration: 8s;
}

/* Particule 3 */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Particule 4 */
.particle-container::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    top: 85%;
    left: 30%;
    animation: floatContinuous 9s ease-in-out infinite;
    animation-delay: 1.5s;
}

.particle-container::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    top: 80%;
    left: 70%;
    animation: floatContinuous 5s ease-in-out infinite;
    animation-delay: 4s;
}

/* Animation des particules */
@keyframes floatContinuous {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-30px) translateX(15px) rotate(90deg) scale(1.2); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-20px) translateX(-12px) rotate(180deg) scale(0.8); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-40px) translateX(20px) rotate(270deg) scale(1.1); 
        opacity: 0.7; 
    }
}

/* === EFFET DE BRILLANCE (HOVER UNIQUEMENT) === */
.shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 4;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 20%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0.3) 60%,
        rgba(255,255,255,0.1) 80%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-combined:hover .shine-effect::before {
    left: 100%;
}

/* Contenu du header */
.header-content {
}

.header-content h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
}

/* ========= RESTE DU STYLE ========= */
.container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-style: italic;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus, select:focus {
    border-color: #0066cc;
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

button {
    background-color: #0066cc;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #0052a3;
}

button.vert {
    background-color: #00cc4e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

button.vert:hover {
    background-color: #0052a3;
}


.modele-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    min-height: 200px;
}

.modele-titre {
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.modele-ecriture {
    background-size: 100% 60px;
    background-repeat: repeat-y;
    padding: 20px;
    min-height: 120px;
    line-height: 60px;
    font-family: 'Cursive Standard', sans-serif;
    font-size: 30px;
    color: #333;
    letter-spacing: 1px;
    display: flex;
    align-items: end;
    padding-bottom: 25px;
}

.instructions {
    background-color: #e8f4fd;
    border-left: 4px solid #0066cc;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 5px 5px 0;
}

.instructions h3 {
    margin-top: 0;
    color: #0066cc;
}

.generation {
    background-color: #e8f4fd;
    /*border-left: 4px solid #0066cc;*/
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 5px 5px 0;
    text-align:center;
}

.generation h3 {
    margin-top: 0;
    color: #0066cc;
}

.print-button {
    background-color: #28a745;
    margin-left: 10px;
}

.print-button:hover {
    background-color: #218838;
}

@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
    }
    
    form, .instructions {
        display: none;
    }
    
    .modele-container {
        border: none;
        padding: 0;
    }
}

/* ###################################### */

#phrase {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#phrase:focus {
    outline: none;
    border-color: #007bff;
}

#phrase.limit-reached {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.character-counter {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.character-counter.warning {
    color: #ff6b35;
    font-weight: bold;
}

.character-counter.limit {
    color: #dc3545;
    font-weight: bold;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.popup-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

.popup-content button:hover {
    background-color: #0056b3;
}