/* style.css */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6a5acd; /* Violet doux */
    --secondary: #87CEEB; /* Bleu ciel */
    --accent: #FF9F43; /* Orange doux */
    --light: #F8F9FA;
    --dark: #343A40;
    --success: #28a745;
    --cloud-white: #F5F7FF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--cloud-white);
    color: var(--dark);
    line-height: 1.6;
}

/* Typographie */
h1, h2, h3, h4 {
    font-family: 'Comfortaa', cursive, sans-serif;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    margin: 1.5rem 0;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--secondary);
}

/* Layout */
header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,248,255,0.95) 100%);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: white;
    background-color: var(--primary);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 70%;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Sections spécifiques */
.intro {
    background: white;
}

.atouts ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.atouts li {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.atouts li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Cartes de nuages */
.nuages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.nuage-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 90, 205, 0.2);
}

.nuage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 90, 205, 0.2);
}

.nuage-image {
    height: 200px;
    overflow: hidden;
}

.nuage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nuage-card:hover .nuage-image img {
    transform: scale(1.05);
}

.nuage-titre {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem 1rem 0.5rem;
    color: var(--primary);
}

.nuage-desc {
    padding: 0 1rem 1rem;
    color: #555;
}

.nuage-prix {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent);
    background-color: rgba(106, 90, 205, 0.05);
    text-align: right;
}

/* Boutons */
.bouton, .btn, button, input[type="submit"] {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.bouton:hover, .btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 90, 205, 0.4);
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.btn {
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.4);
}

/* Formulaire */
form {
    max-width: 800px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.nuages-liste {
    margin: 1.5rem 0;
}

.nuage-item {
    background-color: var(--light);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.nuage-item:hover {
    background-color: rgba(135, 206, 235, 0.1);
    transform: translateX(5px);
}

.nuage-item input[type="checkbox"] {
    margin-right: 0.8rem;
}

/* Tableau admin */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary);
    color: white;
}

tr:nth-child(even) {
    background-color: rgba(106, 90, 205, 0.05);
}

tr:hover {
    background-color: rgba(106, 90, 205, 0.1);
}

/* Messages */
.confirmation-message {
    text-align: center;
    padding: 3rem;
}

.confirmation-message h2 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.confirmation-message p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Login */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        gap: 0.8rem;
    }
    
    .nuages {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Effets spéciaux */
.cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1), rgba(135, 206, 235, 0.1));
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(106, 90, 205, 0.03);
    animation: move 60s linear infinite;
    z-index: -1;
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50px, -50px);
    }
}