* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;            /* taille de base (avant : 16px par défaut) */
    background: #f5f7fa;
    color: #263238;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    color: #263238;
    text-decoration: none;
}

.brand span {
    color: #1565c0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #263238;
    text-decoration: none;
}

.main-nav a:hover {
    color: #1565c0;
}

.main-nav .language {
    color: #1565c0;
    font-weight: 700;
}

.menu-button {
    display: none;

    border: none;
    background: none;

    font-size: 24px;
    color: #263238;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 40px 28px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-text {
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.hero-text h1 {
    margin: 0 0 14px;

    font-size: 30px;
    line-height: 1.2;
    color: #263238;
}

.hero-text p {
    margin: 0 auto 14px;

    max-width: 680px;

    font-size: 15px;
    color: #546e7a;
}

.hero-visual {
    width: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.hero-visual img {
    display: block;

    width: 900px;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}

.hero-example-link {
    display: block;

    width: 100%;

    margin-top: 10px;

    text-align: center;
}

.hero-buttons {
    margin-top: 18px;
}

.hero-buttons .button {
    margin: 0 4px 6px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;

    padding: 9px 18px;

    border-radius: 6px;

    font-size: 13.5px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.button:hover {
    text-decoration: none;
}

.button-primary {
    background: #1565c0;
    color: #ffffff;
}

.button-primary:hover {
    background: #0d47a1;
}

.button-secondary {
    background: #ffffff;
    color: #1565c0;

    border: 1px solid #1565c0;
}

.button-secondary:hover {
    background: #e3f2fd;
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
    width: 100%;
}

.time-section {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 32px 28px;

    text-align: left;
}

.section-label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #1565c0;
    text-transform: uppercase;
}

.time-section h1,
.time-section h2 {
    margin-top: 0;
    margin-bottom: 14px;

    color: #263238;
}

.time-section h1 {
    font-size: 30px;
}

.time-section h2 {
    font-size: 23px;
}

.time-section p {
    max-width: 720px;

    margin: 0 0 14px;

    color: #546e7a;
}


/* =========================================================
   ADVANCED SECTION
   ========================================================= */

.advanced-section {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 32px 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;

    align-items: start;
}

.advanced-section h2 {
    margin-top: 0;

    font-size: 23px;
    color: #263238;
}

.advanced-section p {
    color: #546e7a;
}

.feature-list div {
    margin-bottom: 12px;
}

.feature-list strong {
    display: block;
    font-size: 15px;
}

.feature-list span {
    font-size: 13px;
    color: #546e7a;
}


/* =========================================================
   EXAMPLES
   ========================================================= */

.example-page {
    max-width: 1100px;

    text-align: left;
}

.example-page .advanced-text {
    max-width: 700px;
}

.example-content {
    grid-column: 1 / -1;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;
}

.example-content h2 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 23px;
    color: #263238;
}

.example-content h3 {
    margin-top: 22px;
    margin-bottom: 8px;

    font-size: 18px;
    color: #263238;
}

.example-content p {
    margin-bottom: 12px;

    color: #546e7a;
}

.example-content ul {
    margin-bottom: 14px;

    padding-left: 22px;
}

.example-content li {
    margin-bottom: 5px;
}

.example-figure {
    margin: 24px 0;
    text-align: center;
}

.example-figure img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}

.example-figure figcaption {
    margin-top: 8px;

    font-size: 12.5px;
    color: #78909c;
}

.text-link {
    display: inline-block;

    margin-top: 10px;

    font-size: 13.5px;
    font-weight: 600;
}


/* =========================================================
   CODE
   ========================================================= */

.code-example {
    margin: 14px 0;

    padding: 12px 14px;

    overflow-x: auto;

    background: #263238;
    color: #ffffff;

    border-radius: 6px;

    font-family: Consolas, "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.45;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    padding: 40px 28px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;

    font-size: 17px;
    color: #263238;
}

.card p {
    margin-bottom: 0;

    color: #546e7a;
}


/* =========================================================
   DOCUMENTATION
   ========================================================= */

.documentation {
    width: 100%;
    max-width: 880px;

    margin: 0 auto;

    padding: 40px 28px;
}

.documentation h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 30px;
}

.documentation h2 {
    margin-top: 28px;
    margin-bottom: 10px;

    font-size: 22px;
}

.documentation h3 {
    margin-top: 20px;
    margin-bottom: 8px;

    font-size: 18px;
}

.documentation p {
    margin-bottom: 12px;

    color: #546e7a;
}

.documentation ul,
.documentation ol {
    margin-bottom: 14px;
    padding-left: 22px;
}

.documentation li {
    margin-bottom: 5px;
}


/* =========================================================
   DOWNLOAD
   ========================================================= */

.download-section {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;

    padding: 45px 28px;

    text-align: center;
}

.download-section h1 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 30px;
}

.download-section h2 {
    margin-top: 28px;
    margin-bottom: 10px;

    font-size: 21px;
}

.download-section p {
    color: #546e7a;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    padding: 45px 28px;
}

.contact-section h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 30px;

    text-align: center;
}

.contact-form {
    width: 100%;
}

.contact-field {
    margin-bottom: 14px;
}

.contact-field label {
    display: block;

    margin-bottom: 5px;

    font-size: 13.5px;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    display: block;

    width: 100%;

    padding: 9px 11px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;

    color: #263238;
    background: #ffffff;

    border: 1px solid #cfd8dc;
    border-radius: 5px;

    outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #1565c0;
}

.contact-field textarea {
    min-height: 140px;

    resize: vertical;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;

    padding: 45px 28px;
}

.about-section h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 30px;
}

.about-section h2 {
    margin-top: 28px;
    margin-bottom: 10px;

    font-size: 22px;
}

.about-section p {
    margin-bottom: 14px;

    color: #546e7a;
}


/* =========================================================
   FINAL SECTION
   ========================================================= */

.final-section {
    width: 100%;
    max-width: 1020px;

    margin: 0 auto;

    padding: 38px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    border-top: 1px solid #e0e0e0;
}

.final-section h2 {
    margin: 0;

    font-size: 22px;
    color: #263238;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    max-width: 1020px;

    margin: 0 auto;

    padding: 24px 28px 20px;

    text-align: center;

    border-top: 1px solid #e0e0e0;

    background: #f5f7fa;
    color: #546e7a;
}

.footer-brand {
    margin-bottom: 6px;

    font-size: 20px;
    font-weight: 700;

    color: #263238;
}

.footer-brand span {
    color: #1565c0;
}

.site-footer p {
    margin: 0 0 14px;

    font-size: 13.5px;
    color: #78909c;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;

    margin-bottom: 14px;
}

.footer-links a {
    color: #546e7a;

    font-size: 12.5px;

    text-decoration: none;
}

.footer-links a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.site-footer small {
    font-size: 12px;
    color: #90a4ae;
}


/* =========================================================
   THREE COLUMNS
   ========================================================= */

.three-columns {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 28px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: left;
}

.feature-card h2 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 20px;
    color: #263238;
}

.feature-card p {
    color: #546e7a;
}

.feature-card a {
    display: inline-block;
    margin-top: 6px;

    font-size: 13.5px;
}


/* =========================================================
   MOBILE (tablette)
   ========================================================= */

@media (max-width: 900px) {

    .site-header {
        padding: 0 18px;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: 52px;
        left: 0;
        right: 0;

        z-index: 1000;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 6px 0;

        background: #ffffff;

        border-bottom: 1px solid #e0e0e0;
    }

    .main-nav.menu-open {
        display: flex;
    }

    .main-nav a {
        padding: 9px 18px;
        font-size: 14px;
    }

    .menu-button {
        display: block;
    }

    .hero {
        padding: 32px 18px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 14.5px;
    }

    .hero-visual {
        width: 100%;
    }

    .advanced-section {
        grid-template-columns: 1fr;

        padding: 16px 16px;
    }

    .cards {
        grid-template-columns: 1fr;

        padding: 32px 18px;
    }

    .time-section,
    .documentation,
    .download-section,
    .contact-section,
    .about-section {
        padding: 16px 16px;
    }

    .final-section {
        padding: 32px 18px;

        flex-direction: column;

        align-items: flex-start;
    }

    .site-footer {
        padding: 24px 18px 18px;
    }
}


/* =========================================================
   MOBILE (téléphone)
   ========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .site-header {
        min-height: 46px;
        padding: 0 14px;
    }

    .brand {
        font-size: 20px;
    }

    .menu-button {
        font-size: 22px;
    }

    .main-nav {
        top: 46px;
    }

    .hero {
        padding: 24px 14px;
    }

    .hero-text h1 {
        font-size: 23px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .time-section h1,
    .documentation h1,
    .download-section h1,
    .contact-section h1,
    .about-section h1 {
        font-size: 25px;
    }

    .time-section h2,
    .advanced-section h2 {
        font-size: 20px;
    }

    .site-footer {
        padding: 24px 14px 18px;
    }

    .footer-links {
        gap: 8px 14px;
    }

    .final-section h2 {
        font-size: 19px;
    }

    .three-columns {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 16px 16px;
    }

    .time-section,
    .advanced-section {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}


/* =========================================================
   EXEMPLE ACCUEIL : texte centré + cadre défilant de l'image
   ========================================================= */

.time-section.example-page {
    max-width: 1100px;      /* même largeur que les autres sections */
}

.example-block {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;       /* texte aligné à gauche comme le reste de la page */
}

.example-block > p {
    max-width: 720px;
    margin-left: 0;
    margin-right: 0;
}

.example-title {
    margin-bottom: 10px;
}

.scroll-frame {
    width: 100%;
    max-width: none;        /* le cadre prend toute la largeur du contenu */
    height: 720px;
    max-height: 80vh;

    overflow: auto;

    margin: 16px 0 8px;

    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 6px;

    text-align: left;
    cursor: grab;
}

.scroll-frame.dragging {
    cursor: grabbing;
    user-select: none;
}

.scroll-frame img {
    display: block;
    width: 1920px;
    max-width: none;
    height: auto;
}

.example-caption {
    margin: 0;
    font-size: 12.5px;
    color: #78909c;
}
