/* Styles pour la page sonnerie.html */
:root {
    --primary-color: #1f262b;
    --primary-color-light: #2a3338;
    --secondary-color: #32494e;
    --accent-color: #96eec8;
    --accent-color-light: #bdf5dc;
    --accent-gradient: linear-gradient(135deg, #96eec8, #65c8a4);
    --text-color: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --shadow-light: 0 5px 15px rgba(150, 238, 200, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.25);
    --bg-color: #32494e;
}

/* Variables pour le thème clair */
[data-theme="light"] {
    --primary-color: #f5f7f6;
    --primary-color-light: #fafbfa;
    --secondary-color: #f0f4f2;
    --accent-color: #2e7d32;
    --accent-color-light: #4caf50;
    --accent-gradient: linear-gradient(135deg, #2e7d32, #4caf50);
    --text-color: #1a1a1a;
    --light-gray: #e8ebe9;
    --dark-gray: #2d2d2d;
    --shadow-light: 0 5px 15px rgba(46, 125, 50, 0.15);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bg-color: #f0f4f2;
}

/* Reset radical des marges et espacements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Espacement global nul */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.3;
    overflow-x: hidden;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5px;
}

/* En-tête du projet */
.project-header {
    text-align: center;
    padding: 12px 0;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

[data-theme="light"] .project-header {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

.project-header h1 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.2;
}

.back-home-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    padding: 8px 16px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .back-home-btn {
    color: #ffffff;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 3px 0;
    font-size: 0.8rem;
}

.project-date, .project-client, .project-role {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.project-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 3px;
    background-color: rgba(150, 238, 200, 0.1);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(150, 238, 200, 0.3);
    transition: all 0.3s ease;
}

[data-theme="light"] .project-tag {
    background-color: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
}

/* Sections principales */
.hero-section {
    margin: 10px 0;
    background-color: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.hero-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 38, 43, 0.4), rgba(31, 38, 43, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    padding: 0 15px;
    transition: background 0.3s ease;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(245, 247, 246, 0.4), rgba(250, 251, 250, 0.8));
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.project-section {
    margin: 10px 0;
    padding: 10px;
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .project-section {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(150, 238, 200, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease;
}

[data-theme="light"] .section-title {
    border-bottom-color: rgba(46, 125, 50, 0.3);
}

.section-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color-light);
    margin: 5px 0;
}

/* Grille des objectifs */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.objective-card {
    background-color: var(--primary-color-light);
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .objective-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
}

.objective-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.objective-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color-light);
    margin-bottom: 3px;
}

/* Technologies utilisées */
.tech-stack {
    margin-top: 8px;
}

.tech-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.tech-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.tech-item {
    text-align: left;
    padding: 12px;
    background-color: var(--primary-color-light);
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

[data-theme="light"] .tech-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
}

.tech-logo {
    max-width: 32px;
    max-height: 32px;
    margin-bottom: 5px;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.tech-item p {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.4;
}

/* Étapes d'implémentation */
.steps-container {
    margin-top: 10px;
}

.step {
    display: flex;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(150, 238, 200, 0.1);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .step {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    background: var(--accent-gradient);
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .step-number {
    color: #ffffff;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2px;
}

/* Fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.feature-card {
    background-color: var(--primary-color-light);
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .feature-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color-light);
    margin-bottom: 3px;
}

/* Résultats et statistiques */
.results-container {
    margin-top: 10px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background-color: var(--primary-color-light);
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

[data-theme="light"] .stat-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-color);
}

.result-items {
    margin-top: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(150, 238, 200, 0.1);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .result-item {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-icon {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Interface d'administration */
.admin-interface {
    margin-top: 10px;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.screenshot {
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: border-color 0.3s ease;
}

[data-theme="light"] .screenshot {
    border-color: rgba(46, 125, 50, 0.2);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 5px;
    background-color: var(--primary-color-light);
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .screenshot-caption {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Rendu final */
.final-render {
    margin-top: 15px;
}

.final-render p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.render-image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(150, 238, 200, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .render-image-container {
    border-color: rgba(46, 125, 50, 0.2);
}

.render-image-container:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.render-image {
    width: 100%;
    height: auto;
    display: block;
}

.render-caption {
    padding: 10px;
    background-color: var(--primary-color-light);
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .render-caption {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Défis rencontrés */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.challenge-item {
    padding: 10px;
    background-color: var(--primary-color-light);
    border: 1px solid rgba(150, 238, 200, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

[data-theme="light"] .challenge-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
}

.challenge-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.challenge-title i {
    color: #e74c3c;
}

.solution-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.solution-title i {
    color: var(--accent-color-light);
}

/* Pied de page du projet */
.project-footer {
    text-align: center;
    padding: 10px 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--primary-color-light);
    margin-top: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .project-footer {
    border-top-color: rgba(46, 125, 50, 0.2);
}

.back-link {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 15px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .back-link {
    color: #ffffff;
}

.back-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(150, 238, 200, 0.4);
}

.copyright {
    margin-top: 5px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, opacity 0.3s ease;
}

[data-theme="light"] .copyright {
    color: var(--text-color);
    opacity: 0.7;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    z-index: 1000;
    border: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .back-to-top {
    color: #ffffff;
}

.back-to-top i {
    font-size: 16px;
}

/* Animations et transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.5s forwards;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }
    
    .back-home-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px auto;
        display: inline-flex;
    }
    
    .project-header h1 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .objectives-grid,
    .features-grid,
    .challenges-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .results-stats {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .screenshots {
        grid-template-columns: 1fr;
    }
}

/* Styles pour petit mobile */
@media (max-width: 480px) {
    .project-header h1 {
        font-size: 1.4rem;
    }
    
    .objectives-grid,
    .features-grid,
    .challenges-grid,
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
} 