/* Variables et imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');


/* Animation du logo */
@keyframes logoAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        color: var(--accent-color);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
        color: #00b894;
    }
    50% {
        transform: translateY(0) rotate(0deg);
        color: #0984e3;
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
        color: #e84393;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        color: var(--accent-color);
    }
}

h1 {
    font-size: 3.5rem;
    margin: 1em 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    
    font-weight: 700;
    position: relative;
    /* Ajout de l'animation */
    animation: floatingLogo 3s ease-in-out infinite;
    /* Ajout d'un effet de brillance */
    background: linear-gradient(
        90deg,
        var(--accent-color) 0%,
        #a29bfe 25%,
        #74b9ff 50%,
        #a29bfe 75%,
        var(--accent-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
}

/* Effet au survol */
h1:hover {
    animation-play-state: paused; /* L'animation se met en pause au survol */
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Version alternative avec effet de flottement plus doux */
@keyframes floatingLogo {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(5px) rotate(-2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Effet de brillance */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Ajoutez ces effets supplémentaires au h1 si vous voulez une animation plus subtile */
h1 {
    /* Ajoutez ces lignes aux propriétés existantes du h1 */
    animation: 
        floatingLogo 3s ease-in-out infinite,
        shine 3s linear infinite;
    text-shadow: 
        0 0 10px rgba(108, 92, 231, 0.2),
        0 0 20px rgba(108, 92, 231, 0.1);
}

/* Responsive */
@media screen and (max-width: 780px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
}



:root {
    --primary-color: #2d3436;
    --accent-color: #6c5ce7;
    --success-color: #00b894;
    --danger-color: #ff7675;
    --background-color: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
html {
    overflow-y: scroll;
    color: var(--primary-color);
}

body {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* En-tête */
h1 {
    font-size: 3.5rem;
    margin: 1em 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: var(--transition);
}

h1:hover {
    transform: scale(1.02);
}

/* Table et grille */
table {
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 96%;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
}

td {
    width: 20px;
    height: 20px;
    border: 1px solid #dfe6e9;
    transition: var(--transition);
}

td:hover {
    transform: scale(1.1);
    z-index: 1;
}

/* Conteneur des contrôles */
.controls-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.controls {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* En-tête des contrôles */
.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.controls-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Contrôles des dimensions */
.dimension-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
}

.control-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Inputs numériques */
.dimension-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    transition: var(--transition);
}

.dimension-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Boutons de contrôle */
.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Actions de la grille */
.grid-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Sélecteur de couleur */
.color-picker {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.color-picker:hover {
    transform: scale(1.1);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn {
    background: var(--danger-color);
    color: white;
}

.create-btn {
    background: var(--success-color);
    color: white;
}

.reset-btn {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    opacity: 0.9;
}

/* Pied de page */
footer {
    margin-top: 40px;
    padding: 20px;
    color: #636e72;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
}

/* Media Queries */
@media screen and (max-width: 780px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .controls {
        padding: 1.5rem;
    }
    
    .dimension-controls {
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .controls {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .control-inputs {
        flex-wrap: wrap;
    }

    .dimension-input {
        width: 60px;
    }

    .control-btn {
        width: 35px;
        height: 35px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls {
    animation: fadeIn 0.5s ease-out;
}

/* États actifs et focus */
button:active,
input:active {
    transform: scale(0.98);
}

/* Style des liens sociaux */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

/* Style spécifique pour chaque réseau social */
.social-link:nth-child(1) {
    /* Twitter */
    --social-color: #1DA1F2;
}

.social-link:nth-child(2) {
    /* Telegram */
    --social-color: #0088cc;
}

.social-link:nth-child(3) {
    /* PumpFun */
    --social-color: #ff6b6b;
}

/* Effet de survol */
.social-link:hover {
    transform: translateY(-5px);
    background: var(--social-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Style des icônes */
.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Animation d'entrée */
.social-links {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        max-width: 300px;
    }

    .social-link {
        justify-content: center;
        width: 100%;
    }
}

/* Effet de pulse sur hover */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--social-color), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--social-color), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--social-color), 0);
    }
}

/* Effet supplémentaire pour les liens */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

/* Animation d'entrée séquentielle */
.social-link {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.2s; }
.social-link:nth-child(2) { animation-delay: 0.4s; }
.social-link:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


button:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

/* États désactivés */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Effets de survol supplémentaires */
.controls:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
