/* Espace principal */
main {
    margin-top: 130px;
    background: #f8fafc;
    min-height: 100vh;
}

/* Container central pour limiter la largeur */
.audit-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px 16px;
    position: relative;
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 8px 40px #667eea11;
    min-height: 100vh;
}



/* Ombre et arrondi sur le header dashboard */
.dashboard-header {
    box-shadow: 0 4px 24px #667eea11;
    border-radius: 18px;
    background: #fff;
    margin-top: 32px;
    margin-bottom: 40px;
    padding: 32px 32px 24px 32px;
    position: relative;
    z-index: 2;
}

/* Animation légère sur hover des cards */
.dashboard-card {
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.dashboard-card:hover {
    background: #f3f0fa;
    box-shadow: 0 12px 36px #764ba233;
    transform: translateY(-6px) scale(1.04);
}

/* Responsive container */
@media (max-width: 1200px) {
    .audit-main { max-width: 100%; }
}
@media (max-width: 700px) {
    .dashboard-header {
        padding: 18px 6px 12px 6px;
        margin-top: 12px;
    }
    .audit-main { padding: 0 2vw 32px 2vw; }
}

/* Scroll doux pour toute la page */
html {
    scroll-behavior: smooth;
}
/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px 0 0 0;
}
.dashboard-header-ico {
    background: linear-gradient(135deg,#667eea 60%,#ffd700 100%);
    border-radius: 50%;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px #667eea33;
    animation: rotateIco 7s linear infinite;
}
.dashboard-header-ico svg { width: 48px; height: 48px; }
.dashboard-title {
    font-size: 2.3rem;
    font-weight: 800;
    background: linear-gradient(90deg,#667eea 30%,#ffd700 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin: 0;
}
.dashboard-desc {
    color: #555;
    font-size: 1.15em;
    margin-bottom: 18px;
    margin-top: 8px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.dashboard-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #667eea11;
    padding: 28px 32px 18px 32px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-card:hover {
    box-shadow: 0 8px 32px #764ba233;
    transform: translateY(-4px) scale(1.03);
}
.dashboard-card-ico {
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px #ffd70044);
}
.dashboard-card-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 8px;
    text-align: center;
}
.dashboard-card-desc {
    color: #555;
    font-size: 1em;
    text-align: center;
    margin-bottom: 10px;
}
.dashboard-card-action {
    margin-top: auto;
}
.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg,#667eea,#764ba2 80%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px #667eea22;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg,#ffd700 60%,#764ba2 100%);
    color: #222;
    transform: translateY(-2px) scale(1.04);
}

/* Accordéon */
.audit-accordion { max-width: 900px; margin: 0 auto; }
.accordion-item { margin-bottom: 24px; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 16px #667eea11; }
.accordion-toggle {
    width: 100%; text-align: left; background: linear-gradient(90deg,#667eea 60%,#ffd700 100%);
    color: #fff; font-size: 1.2em; font-weight: 700; padding: 18px 32px; border: none; cursor: pointer;
    outline: none; transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #eee;
}
.accordion-toggle.active, .accordion-toggle:hover {
    background: linear-gradient(90deg,#ffd700 60%,#764ba2 100%);
    color: #222;
}
.accordion-panel { background: #fff; padding: 32px 24px 24px 24px; display: none; }
.accordion-panel:first-child { display: block; }

/* SVG décoratif technique */
.audit-svg-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.13;
}
.audit-header-ico {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}
.audit-header-ico svg {
    width: 70px; height: 70px;
    filter: drop-shadow(0 0 24px #667eea88);
    animation: rotateIco 5s linear infinite;
}
@keyframes rotateIco {
    0% { transform: rotate(-10deg);}
    100% { transform: rotate(350deg);}
}

/* Lighthouse Section */
.lighthouse-audit-section {
    background: linear-gradient(120deg, #f8fafc 60%, #e9e6f7 100%);
    padding: 48px 0 56px 0;
    margin-top: 150px;
    border-radius: 24px;
    box-shadow: 0 8px 40px #667eea22, 0 1.5px 0 #764ba211;
    position: relative;
    overflow: hidden;
}
.lighthouse-audit-section h1 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg,#667eea 30%,#ffd700 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
}
.audit-desc {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 1.13em;
    font-weight: 500;
    letter-spacing: 0.2px;
}
#lighthouseForm {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    z-index: 1;
    position: relative;
}
#lighthouseForm input[type="url"] {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid #667eea55;
    width: 370px;
    max-width: 90vw;
    font-size: 1.1em;
    background: #fff;
    box-shadow: 0 2px 8px #667eea11;
    transition: border 0.2s, box-shadow 0.2s;
}
#lighthouseForm input[type="url"]:focus {
    border: 1.5px solid #764ba2;
    outline: none;
    box-shadow: 0 0 0 2px #ffd70044;
}
#lighthouseForm button {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg,#667eea,#764ba2 80%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 4px 16px #667eea22;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
}
#lighthouseForm button:hover, #lighthouseForm button:focus {
    background: linear-gradient(90deg,#ffd700 60%,#764ba2 100%);
    color: #222;
    transform: translateY(-2px) scale(1.04);
}
.lighthouse-result {
    text-align: center;
    font-size: 1.2rem;
    z-index: 1;
    position: relative;
}
.lighthouse-scores {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin: 28px 0 18px 0;
    flex-wrap: wrap;
}
.lighthouse-scores > div {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #667eea11;
    padding: 18px 28px;
    min-width: 170px;
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
}
.lighthouse-scores .score {
    font-size: 2em;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
    text-shadow: 0 2px 8px #667eea22;
}
.lighthouse-scores .score-ico {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px #ffd70044);
    transition: transform 0.2s;
}
.lighthouse-scores > div:hover .score-ico {
    transform: scale(1.15) rotate(-8deg);
}
.score-perf { color: #e96310; }
.score-access { color: #22c55e; }
.score-bp { color: #667eea; }
.score-seo { color: #ffd700; }
.lighthouse-link a {
    color: #764ba2;
    text-decoration: underline;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.2s;
}
.lighthouse-link a:hover {
    color: #ffd700;
}
.loading { color: #764ba2; font-weight: 600; }
.error { color: #ef4444; font-weight: 600; }

/* Backlinks & Keywords */
.backlink-section, .keyword-section { max-width: 700px; margin: 0 auto; }
.backlink-section form, .keyword-section form { display: flex; gap: 10px; margin-bottom: 18px; }
.backlink-section input, .keyword-section input { flex:1; padding: 10px 16px; border-radius: 8px; border: 1px solid #ddd; }
.backlink-section button, .keyword-section button {
    background: linear-gradient(90deg,#667eea,#764ba2 80%);
    color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.backlink-section button:hover, .keyword-section button:hover { background: #ffd700; color: #222; }
.backlink-result, .keyword-result { margin-top: 18px; }
.keyword-list { list-style: none; padding: 0; columns: 2; }
.keyword-list li { padding: 6px 0; font-size: 1.1em; color: #764ba2; }
.backlink-help, .backlink-tips, .backlink-pro { font-size: 1em; }
.backlink-tips ul { margin-bottom: 0; }
.backlink-tips h3 { margin-top: 0; }
.backlink-info { margin-top: 10px; color: #888; font-size: 0.95em; }
.keyword-info { margin-top: 10px; color: #888; font-size: 0.95em; }

/* Backlinks Section - Style moderne et technique */
.backlink-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #667eea11;
    padding: 32px 28px 24px 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.backlink-help {
    background: linear-gradient(90deg,#f8fafc 70%,#e9e6f7 100%);
    border-left: 4px solid #e96310;
    border-radius: 10px;
    padding: 18px 18px 14px 22px;
    margin-bottom: 22px;
    color: #555;
    font-size: 1.05em;
    box-shadow: 0 2px 8px #667eea08;
}

.backlink-tips {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px 18px 10px 22px;
    margin-top: 28px;
    box-shadow: 0 2px 8px #764ba208;
    border-left: 4px solid #764ba2;
}
.backlink-tips h3 {
    color: #764ba2;
    font-size: 1.13em;
    margin-top: 0;
    margin-bottom: 8px;
}
.backlink-tips ul {
    margin: 12px 0 0 18px;
    color: #333;
    font-size: 1em;
    padding-left: 0;
}
.backlink-tips li {
    margin-bottom: 4px;
    list-style: disc inside;
}

.backlink-pro {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 18px 10px 22px;
    margin-top: 22px;
    box-shadow: 0 2px 8px #667eea08;
    border-left: 4px solid #ffd700;
    color: #555;
    font-size: 1em;
}
.backlink-pro ul {
    margin: 8px 0 0 18px;
    padding-left: 0;
}
.backlink-pro li {
    margin-bottom: 4px;
    list-style: disc inside;
}
.backlink-pro a {
    color: #764ba2;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}
.backlink-pro a:hover {
    color: #ffd700;
}

.backlink-info {
    margin-top: 14px;
    color: #888;
    font-size: 0.97em;
    text-align: right;
}

/* Formulaire backlinks */
.backlink-section form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.backlink-section input[type="url"] {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #667eea44;
    font-size: 1.07em;
    background: #f8fafc;
    box-shadow: 0 2px 8px #667eea08;
    transition: border 0.2s, box-shadow 0.2s;
}
.backlink-section input[type="url"]:focus {
    border: 1.5px solid #764ba2;
    outline: none;
    box-shadow: 0 0 0 2px #ffd70044;
}
.backlink-section button {
    background: linear-gradient(90deg,#667eea,#764ba2 80%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px #667eea22;
}
.backlink-section button:hover, .backlink-section button:focus {
    background: linear-gradient(90deg,#ffd700 60%,#764ba2 100%);
    color: #222;
    transform: translateY(-2px) scale(1.04);
}

.backlink-result {
    margin-top: 18px;
    min-height: 32px;
    font-size: 1.08em;
}

/* Responsive */
@media (max-width: 700px) {
    .backlink-section {
        padding: 14px 4vw 10px 4vw;
    }
    .backlink-help, .backlink-tips, .backlink-pro {
        padding: 12px 8px 8px 12px;
        font-size: 0.98em;
    }
    .backlink-section form {
        flex-direction: column;
        gap: 8px;
    }
    .backlink-section input[type="url"] {
        font-size: 1em;
    }
    .backlink-info {
        text-align: left;
        font-size: 0.93em;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-cards { flex-direction: column; gap: 18px; }
    .dashboard-card { max-width: 100%; }
    .dashboard-header { flex-direction: column; gap: 12px; }
}
@media (max-width: 700px) {
    .accordion-panel { padding: 18px 6px; }
    .keyword-list { columns: 1; }
    #lighthouseForm input[type="url"] { width: 98vw; font-size: 1em; }
    .lighthouse-scores { flex-direction: column; gap: 18px; }
    .lighthouse-scores > div { min-width: unset; padding: 14px 10px; font-size: 1em; }
    .lighthouse-scores { gap: 24px; }
}