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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #4a90e2;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    position: relative;
}

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.search-container {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    height: 40px;
}

.search-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: #2d3748;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
}

.search-btn:hover {
    background: #1a202c;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 15px;
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
}

.dashboard-image {
    height: 40px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main Content */
.main-content {
    background: white;
    margin-top: 0;
    flex: 1;
}

.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #feca57;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Features */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #ff6b6b;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* Quick Access */
.quick-access {
    padding: 80px 0;
    background: white;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(72,219,251,0.3);
}

.quick-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left,
.footer-right {
    margin: 0;
}

.footer-left p,
.footer-right p {
    margin: 0;
}

.footer a {
    color: #feca57;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Search Results */
.search-results {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f7fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.result-description {
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-card:hover .feature-icon {
    animation: pulse 1s infinite;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}


/* Styles pour la page créer-macro */
.tutorial-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tutorial-intro {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.tutorial-intro h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

.tutorial-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

.tutorial-steps {
    margin-bottom: 50px;
}

.tutorial-steps h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 32px;
}

.step-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.step-number {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
}

.step-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.step-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.example-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.example-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

.example-section > p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.example-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.example-card h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 20px;
}

.example-card p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.example-card ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.example-card li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.execution-section {
    margin-bottom: 50px;
}

.execution-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 28px;
}

.execution-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.method-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #4a90e2;
}

.method-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.method-card ul {
    list-style: none;
    padding-left: 0;
}

.method-card li {
    padding: 5px 0;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.method-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.tips-section {
    margin-bottom: 50px;
}

.tips-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 28px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.tip-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tip-item:first-child {
    border-left: 4px solid #27ae60;
}

.tip-item:last-child {
    border-left: 4px solid #e74c3c;
}

.tip-item h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.tip-item:first-child h3 {
    color: #27ae60;
}

.tip-item:last-child h3 {
    color: #e74c3c;
}

.tip-item ul {
    list-style: none;
    padding-left: 0;
}

.tip-item li {
    padding: 8px 0;
    color: #555;
    padding-left: 25px;
    position: relative;
}

.tip-item:first-child li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.tip-item:last-child li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.security-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.security-section h2 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 24px;
}

.security-info p {
    color: #856404;
    font-weight: 500;
    margin-bottom: 15px;
}

.security-info ul {
    list-style: none;
    padding-left: 0;
}

.security-info li {
    padding: 8px 0;
    color: #856404;
    padding-left: 25px;
    position: relative;
}

.security-info li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #f39c12;
}

.next-steps {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.next-steps h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

.next-steps > p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

.next-steps ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    padding: 10px 0;
    color: #555;
    padding-left: 30px;
    position: relative;
}

.next-steps li:before {
    content: "🚀";
    position: absolute;
    left: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.cta-button.secondary {
    background: #6c757d;
}

.cta-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .execution-methods {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

