/* Apple-inspired stylesheet for Xplorer */
:root {
    --background-color: #f5f5f7;
    --videos-section-bg: #f5f5f7; /* background used for the videos section and table headers */
    --card-background-color: #ffffff;
    --primary-text-color: #1d1d1f;
    --secondary-text-color: #6e6e73;
    --accent-color: #007aff;
    --divider-color: #d2d2d7;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.site-header {
    background-color: #373536;
    padding: 15px 30px;
    display: flex;
    flex-direction: column; /* stack logo and nav vertically */
    align-items: flex-start; /* keep children left-aligned */
}

/* Header navigation (inline, visually part of header) */
.header-nav {
    margin-top: 12px; /* place nav under the logo */
    display: flex;
    gap: 18px;
    align-items: center;
    align-self: flex-start; /* ensure nav starts at same left position as logo */
    margin-left: 0;
}
.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.header-nav a:hover,
.header-nav a:focus {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    outline: none;
}

@media (max-width: 720px) {
    .header-nav {
        margin-left: 12px;
        gap: 10px;
    }
    .header-nav a {
        padding: 6px 8px;
        font-size: 0.95rem;
    }
}

/* Make the H1 visually blend into the header background while keeping it in the DOM (indexable) */
.site-title {
    /* Accessible off-screen technique: keeps the element in the DOM and readable by
       search engines and screen readers while visually hiding it. */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important; /* prevent the text from wrapping */
    border: 0 !important;
}

.header-logo {
  
    width: auto;
}

body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.section {
    padding: 60px 0;
    text-align: center;
}

.section-eyebrow {
    color: var(--secondary-text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-headline {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
}

.section-subheadline {
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.4;
}

.hero-image-wrapper {
    margin-top: 40px;
    padding: 0 20px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 0; /* Suppression des bords arrondis */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-section {
    background-color: var(--card-background-color);
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Passage à une seule colonne */
    gap: 0; /* Suppression de l'écart entre les éléments de la grille */
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto; /* Centrer la grille */
    text-align: left;
    max-width: 580px; /* Réduire la largeur pour diminuer l'espace horizontal */
}

.feature-item {
    padding: 8px 20px; /* Réduction du padding vertical */
}

.feature-item::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
    max-width: 680px;
    margin: 20px auto;
    text-align: left;
}

/* Styles pour la nouvelle section de description */
.description-section {
    padding: 40px 0;
    background-color: #fff; /* Fond blanc pour la section */
    border-top: 1px solid var(--divider-color);
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
    max-width: 680px; /* Même largeur que le texte de description précédent */
    margin: 0 auto 1em auto; /* Centrer et ajouter un espace en bas */
}


/* Ajout des styles pour les boutons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.button-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.button-primary:hover {
    background-color: #0062cc;
}

.button-secondary {
    background-color: #e5e5ea;
    color: var(--primary-text-color);
    /* Ajouts pour l'icône */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-secondary:hover {
    background-color: #dcdce1;
}


@media (max-width: 768px) {
    .section-headline {
        font-size: 2.5rem;
    }
    .section-subheadline {
        font-size: 1.2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Videos grid styles */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr; /* une colonne : vidéos l'une sous l'autre */
    gap: 24px;
    margin-top: 20px;
}

/* Give the videos section an explicit background so the table header can match it */
.videos-section {
    background-color: var(--videos-section-bg);
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Resources section styles */
.resources-section {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid var(--divider-color);
}
.resource-subsection {
    margin: 30px 0;
}
.resources-section .description-text {
    /* Ensure resource description paragraphs align to the left edge of the table
       and take the full available width inside the container */
    max-width: 100%;
    margin: 0 0 1em 0;
    text-align: left;
}
.resource-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.resource-table th,
.resource-table td {
    border: 1px solid var(--divider-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}
.resource-table thead th {
    background-color: var(--videos-section-bg);
    color: var(--primary-text-color);
    font-weight: 700;
}
.resource-img {
    max-width: 120px;
    height: auto;
    display: block;
}
.download-link {
    color: var(--accent-color);
    font-weight: 600;
}
.video-caption {
    margin-top: 8px;
    color: var(--secondary-text-color);
    text-align: center;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer styling and liseret (thin border) */
.site-footer {
    background-color: #373536; /* same tone as header */
    color: #ffffff;
    padding: 30px 0;
    border-top: 1px solid var(--divider-color); /* liseret */
}
.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer .container {
    padding: 0 20px;
}
