/* ===================================================
   GLOBAL.CSS - BTS AV Picardie - Blog Audiovisuel
   Styles globaux - JAMAIS de styles header/footer/nav ici
   =================================================== */

/* RESET & BOX MODEL */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a2440;
    background-color: #f4f6fb;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, video, iframe, embed, object, svg, canvas {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: #1e3a8a;
    transition: color 0.2s;
}

a:hover, a:focus {
    color: #be185d;
}

a:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TYPOGRAPHIE GLOBALE */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.25;
    margin-top: 0;
    color: #0f2260;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* SCREEN READER ONLY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* TABLEAUX RESPONSIVE */
.table-responsive,
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table th,
table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #dde3f0;
}

table th {
    background-color: #1e3a8a;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table tbody tr:hover {
    background-color: #f0f3fb;
}

/* BOUTONS GLOBAUX */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.15s;
}

.btn:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #1e3a8a;
    color: #fff;
}

.btn-primary:hover {
    background-color: #162d6e;
    color: #fff;
}

.btn-secondary {
    background-color: #be185d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #9d1252;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background-color: #1e3a8a;
    color: #fff;
}

/* TAGS / BADGES */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tag-blue {
    background-color: #dbeafe;
    color: #1e3a8a;
}

.tag-pink {
    background-color: #fce7f3;
    color: #be185d;
}

.tag-amber {
    background-color: #fef3c7;
    color: #92400e;
}

/* SECTION COMMUNE */
.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-tag--light {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f2260;
    margin-bottom: 12px;
}

.section-title--light {
    color: #fff;
}

.section-sub {
    font-size: 1.05rem;
    color: #4a5888;
    max-width: 640px;
}

.section-sub--light {
    color: #c8d4f0;
}

.section-intro {
    margin-bottom: 48px;
}

.section-intro--light {
    margin-bottom: 48px;
}

/* FORMULAIRE - BASE */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid #c8d0e8;
    border-radius: 8px;
    padding: 11px 16px;
    background-color: #fff;
    color: #1a2440;
    transition: border-color 0.2s;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

input::placeholder, textarea::placeholder {
    color: #8898c0;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2440;
    margin-bottom: 6px;
}

/* RESPONSIVE GLOBAL */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-sub {
        font-size: 0.95rem;
    }

    .section-intro {
        margin-bottom: 32px;
    }

    table {
        font-size: 0.82rem;
    }

    table th, table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}