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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f4f8f4 0%, #e8f1e8 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid rgb(207,228,206);
    animation: slideUp 0.8s ease-out;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, rgb(207,228,206) 0%, rgba(207,228,206,0.8) 100%);
    padding: 40px;
    text-align: center;
    color: #2c3e50;
    position: relative;
    border-bottom: 4px solid rgba(207,228,206,0.7);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="rgba(44,62,80,0.1)"><circle cx="20" cy="10" r="2"/><circle cx="40" cy="10" r="2"/><circle cx="60" cy="10" r="2"/><circle cx="80" cy="10" r="2"/></svg>') repeat;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.avatar-container {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: white;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 3px solid #fff;
}

.avatar:hover {
    transform: scale(1.03);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-info {
    position: relative;
    z-index: 2;
}

.teacher-info h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    color: #2c3e50;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 5px;
    opacity: 0.9;
}

.school {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Contenu principal */
.main-content {
    padding: 40px;
    text-align: center;
}

.description {
    margin-bottom: 40px;
}

/* Blocs de contenu unifiés (intro, padlets, conclusion) */
.welcome-text p,
.closing-text p,
.padlet-info {
    font-size: 1.08rem;
    color: #4e5e6c;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(207,228,206,0.18) 0%, rgba(207,228,206,0.12) 100%);
    padding: 26px 30px 30px;
    border-radius: 12px;
    border: 1px solid rgba(207,228,206,0.7);
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: box-shadow .25s ease, transform .25s ease;
}

.welcome-text p strong,
.padlet-info strong,
.closing-text p strong { color: #2c3e50; }

.padlet-info p { /* reset interne */
    margin: 0 0 18px;
    background: none;
    padding: 0;
    border: 0;
    max-width: 100%;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.welcome-text p:hover,
.closing-text p:hover,
.padlet-info:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Correction effet visuel entre blocs : on espace proprement les cartes */
.description {
    display: flex;
    flex-direction: column;
    gap: 28px; /* espace vertical régulier */
}

.padlet-description {
    display: flex;
    flex-direction: column;
    gap: 28px; /* espace entre les deux padlets */
}

/* Placement du bouton padlet */
.padlet-link { 
    text-align: center; 
    margin: 6px 0 0; 
}

/* Section Padlet simplifiée */
.padlet-section {
    margin-bottom: 30px;
}

.padlet-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgb(207,228,206) 0%, rgba(207,228,206,0.9) 100%);
    color: #2c3e50;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207,228,206, 0.4);
    border: 2px solid transparent;
}

.padlet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207,228,206, 0.6);
    border-color: rgba(207,228,206,0.8);
    background: rgb(207,228,206);
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.padlet-button:hover .arrow {
    transform: translateX(5px);
}



/* Footer */
.footer {
    background: rgba(207,228,206,0.15);
    padding: 25px;
    text-align: center;
    color: #5a6c7d;
    font-size: 0.95rem;
    border-top: 2px solid rgba(207,228,206,0.5);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .teacher-info h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .school {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .description p {
        font-size: 1rem;
        padding: 20px;
    }
    
    .padlet-button {
        padding: 16px 28px;
        font-size: 1.1rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .teacher-info h1 {
        font-size: 1.8rem;
    }
    
    .description p {
        font-size: 0.95rem;
        padding: 18px;
    }
    
    .padlet-button {
        padding: 14px 25px;
        font-size: 1rem;
    }
}
