/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    color: #222;
    min-height: 100vh;
}
.demo-credit {
    display: inline-block;

    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /*font-size: 15px;*/

    color: #333;
    border-left: 4px solid #156082;
    font-size: clamp(15px, 2vw, 18px);

    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

    .hero-subtitle {
        font-size: clamp(15px, 2vw, 18px);
        color: #333;
        line-height: 1.7;
        margin-bottom: 28px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .demo-credit strong {
    color: #156082;
    font-weight: 700;
}

.demo-credit a {
    color: #156082;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 6px;
}

.demo-credit a:hover {
    text-decoration: underline;
}

/* HEADER */
header {
    text-align: center;
    padding: 20px 0 10px;
}

header h1 {
    font-size: clamp(20px, 5vw, 28px);
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 4px solid #272727;
    display: inline-block;
    padding-bottom: 5px;
}

/* LANGUES */
.language-switch {
    margin-top: 10px;
    font-size: 14px;
}

.language-switch a {
    text-decoration: none;
    color: #156082;
    margin: 0 8px;
    font-weight: bold;
}

.language-switch a:hover {
    text-decoration: underline;
}

/* PAGE ACCUEIL */
.prototype-page {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 0 60px;
}

.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: bold;
    display: inline-block;
    border-bottom: 4px solid #070707;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: #333;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* BOUTONS */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.guide-btn,
.quiz-btn {
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.guide-btn {
    background: white;
    border: 2px solid #156082;
    color: #156082;
}

.guide-btn:hover {
    background: #156082;
    color: white;
}

.quiz-btn {
    background: #17471a;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.quiz-btn:hover {
    transform: translateY(-2px);
}

/* STATUS AR */
.ar-status {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.ar-ok {
    color: #2e7d32;
}

.ar-ko {
    color: #c62828;
}

/* VIEWER */
.viewer-section {
    display: flex;
    justify-content: center;
}

.viewer-card {
    width: 100%;
    max-width: 1000px;
    padding: 25px;
    border-radius: 24px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

model-viewer {
    width: 100%;
    height: 60vh;
    border-radius: 18px;
    background: radial-gradient(circle, #f1f1f1, #d5d5d5);
}

/* GUIDE */
.guide-container {
    width: 92%;
    max-width: 950px;
    margin: 40px auto 60px;
    padding: 20px;
    text-align: center;
}

.guide-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: bold;
    display: inline-block;
    border-bottom: 4px solid #156082;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.guide-intro {
    max-width: 750px;
    margin: 0 auto 35px;
    font-size: clamp(15px, 2vw, 18px);
    color: #444;
    line-height: 1.7;
}

.guide-block {
    text-align: left;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 6px solid #156082;
}

.guide-block h2 {
    color: #156082;
    margin-bottom: 15px;
}

.guide-block li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* FOOTER GUIDE */
.guide-footer {
    text-align: center;
    margin-top: 35px;
}

.guide-footer a {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 40px;
    background: #156082;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.guide-footer a:hover {
    background: #0f4b64;
}

/* QUIZ */
.quiz-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px;
    min-height: 75vh;
}

.quiz-card {
    width: 100%;
    max-width: 760px;
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    padding: 55px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
    text-align: center;
}

.quiz-title {
    font-size: clamp(34px, 5vw, 44px);
    margin-bottom: 18px;
    border-bottom: 4px solid #156082;
    display: inline-block;
    padding-bottom: 8px;
}

.quiz-intro {
    color: #555;
    margin-bottom: 35px;
    font-size: 18px;
    line-height: 1.7;
}

.quiz-question h2 {
    color: #156082;
    font-size: 30px;
    margin-bottom: 15px;
}

.quiz-question p {
    font-size: 18px;
    margin-bottom: 28px;
}

.quiz-answers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quiz-answer {
    min-width: 150px;
    background: #f4f7fa;
    border: 2px solid transparent;
    padding: 18px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    transition: 0.25s;
}

.quiz-answer:hover {
    border-color: #156082;
    background: #eef7fb;
    transform: translateY(-2px);
}

#quizResult {
    margin-top: 28px;
    font-size: 22px;
    font-weight: bold;
}

/* FOOTER */
.main-footer {
    width: 100%;
    padding: 15px 20px;
    background: #f4f6f8;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.mobile-only-ar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.mobile-only-ar .viewer-card {
    max-width: 100%;
    padding: 10px;
}

.mobile-only-ar model-viewer {
    height: 75vh;
}
.desktop-qr {
    width: 200px;
    margin: 15px auto 0;
    display: block;
}
.viewer-help {
    font-size: 22px;
    text-align: center;
    margin-top: 12px;
    color: #555;
}
.prototype-info-card {
    max-width: 760px;
    margin: 20px auto;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.hero-subtitle {
    margin-bottom: 12px;
    line-height: 1.7;
}

.viewer-help {
    margin-top: 14px;
    font-size: 14px;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .desktop-qr {
        display: none;
    }
}
/* MOBILE */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .guide-btn,
    .quiz-btn {
        width: 90%;
    }

    model-viewer {
        height: 45vh;
    }

    .guide-block,
    .quiz-card {
        padding: 20px;
    }
}
