/* ============================= */
/* Général - Police et Background */
/* ============================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Dégradé animé respirant */
    background: linear-gradient(135deg, #1e3c72, #2a5298, #00d4ff, #6dd5ed);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
}

/* Animation du dégradé */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================= */
/* Header */
/* ============================= */
header {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

/* ============================= */
/* Footer */
/* ============================= */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #00d4ff;
}

/* ============================= */
/* Boutons */
/* ============================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00d4ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background-color: #007bff;
    transform: translateY(-5px);
}

/* ============================= */
/* Form Styles */
/* ============================= */
.form-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background-color: #218838;
}

/* ============================= */
/* Alertes */
/* ============================= */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* ============================= */
/* Tables */
/* ============================= */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

/* ============================= */
/* Parallax Background Animation */
/* ============================= */
.parallax {
    background-image: url('assets/images/glace-couleur.jpg');
    height: 100vh;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    animation: moveBackground 30s infinite linear;
    position: relative;
    z-index: -1;
}

@keyframes moveBackground {
    0% { background-position: center top; }
    100% { background-position: center bottom; }
}

/* ============================= */
/* Effet neige / flocons */
/* ============================= */
.snow {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/images/snowflakes.png');
    background-size: contain;
    animation: snowFall 10s linear infinite;
}

@keyframes snowFall {
    0% { top: -100px; }
    100% { top: 100vh; }
}

/* ============================= */
/* Bouton effet glace 3D */
/* ============================= */
.button-glass {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 16px;
    padding: 12px 25px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.button-glass:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s;
    border-radius: 50%;
}

.button-glass:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.button-glass:hover:before {
    transform: translate(-50%, -50%) scale(1);
}

/* ============================= */
/* Animation éléments slide-in 3D */
/* ============================= */
.slide-in {
    opacity: 0;
    transform: translateY(50px) perspective(500px) rotateX(60deg);
    transition: all 0.6s ease-out;
}

.slide-in.active {
    opacity: 1;
    transform: translateY(0) perspective(500px) rotateX(0);
}

/* ============================= */
/* Image flottante / rebond 3D */
/* ============================= */
.image-flottante {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0% { transform: translate(-50%, -50%) scale(1) rotateX(0); }
    50% { transform: translate(-50%, -60%) scale(1.2) rotateX(15deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotateX(0); }
}

/* ============================= */
/* Effet glace 3D sur blocs */
/* ============================= */
.glace3d {
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: rotateY(0deg);
    animation: iceEffect 5s infinite alternate;
}

@keyframes iceEffect {
    0% {
        transform: rotateY(0deg);
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    }
    100% {
        transform: rotateY(10deg);
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
    }
}

/* ============================= */
/* Traduction Google */
#google_translate_element {
    margin-left: 10px;
}
