/* ═══════════════════════════════════════
   Always Play Legally — style.css
   ═══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
    --cyan:       #0099bc;
    --cyan-dark:  #007a97;
    --cyan-light: #e0f5fa;
    --dark:       #1a2230;
    --grey:       #6b7a8d;
    --light:      #f6fbfc;
    --white:      #ffffff;
    --shadow:     0 8px 40px rgba(0,153,188,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 110px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,153,188,0.12);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.logo-container img { height: 90px; width: auto; }

nav { display: flex; align-items: center; gap: 35px; }
nav ul { list-style: none; display: flex; gap: 5px; }

nav a {
    text-decoration: none;
    color: var(--grey);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

nav a:hover          { color: var(--cyan); background: var(--cyan-light); }
nav li.active a      { color: var(--white); background: var(--cyan); }

.lang-switcher select {
    border: 1.5px solid var(--cyan);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--cyan);
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    background: transparent;
    font-size: 13px;
    outline: none;
}

/* ══════════════════════════════
   PAGES
══════════════════════════════ */
.page {
    display: none;
    min-height: calc(100vh - 110px - 130px);
    padding: 60px 5% 180px;
    max-width: 1180px;
    margin: 0 auto;
    animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page.active { display: block; }

/* ── Titres de page ── */
.page-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    color: var(--dark);
    letter-spacing: 0;
    margin-bottom: 10px;
}

.page-title em {
    color: var(--dark);
    font-style: normal;
}

.page-title em { color: var(-dark); font-style: normal; }

.divider {
    width: 48px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
    margin: 0 auto 50px;
}

.section-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    text-align: center;
    color: var(--dark);
    margin: 55px 0 30px;
}

/* ══════════════════════════════
   ACCUEIL
══════════════════════════════ */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.home-text { font-size: 16px; color: var(--grey); line-height: 1.8; }
.home-text { color: var(--dark); }

.home-illustration img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 50px rgba(0,153,188,0.15));
}

/* ── Boutons ── */
.btn-container {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 35px;
    align-items: center;
}

.btn {
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid var(--cyan);
    transition: all 0.25s ease;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.btn-filled { background: var(--cyan); color: white; }
.btn-filled:hover {
    background: var(--cyan-dark);
    border-color: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,153,188,0.3);
}

.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover {
    background: var(--cyan);
    color: white;
    transform: translateY(-2px);
}

/* ══════════════════════════════
   TABLEAU COMPARATIF (page Vidéos)
══════════════════════════════ */
.compare-wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.compare-col { flex: 1; padding: 0 30px; }

.compare-divider {
    width: 1px;
    background: #ddd;
    align-self: stretch;
    min-height: 320px;
}

.compare-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 4px;
    display: block;
    width: 100%;
}

.compare-title.legal   { border-bottom: 3px solid var(--cyan); color: var(--dark); }
.compare-title.illegal { border-bottom: 3px solid #aaa;        color: var(--dark); }

.blob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}

.blob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.blob {
    width: 110px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
    transition: transform 0.3s ease;
    cursor: default;
}

.blob:hover          { transform: scale(1.06); }
.blob.legal          { background: var(--cyan-light); }
.blob.illegal        { background: #ebebeb; }

.blob-label {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.blob-label.legal    { color: var(--cyan); }
.blob-label.illegal  { color: #777; }

/* ══════════════════════════════
   VIDÉOS (cards + embed)
══════════════════════════════ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.video-card {
    background: var(--light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0,153,188,0.1);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,153,188,0.18);
}

.video-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--dark) 0%, #2a3a50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,153,188,0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Miniature YouTube */
.yt-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.3s;
}
.video-thumb:hover .yt-thumb { opacity: 0.6; }

/* Bouton play */
.play-btn {
    width: 54px;
    height: 54px;
    background: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    padding-left: 4px;
}

.video-card:hover .play-btn { transform: scale(1.15); }

/* iFrame embed */
.video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info         { padding: 22px; }
.video-info h3      { margin: 0 0 8px; color: var(--dark); font-size: 17px; font-family: 'DM Sans', sans-serif; }
.video-info p       { font-size: 14px; color: var(--grey); margin: 0; }

.yt-link {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--grey);
}
.yt-link a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.yt-link a:hover { text-decoration: underline; }

/* ══════════════════════════════
   PAGES INFO / COMMISSION / CONTACT
══════════════════════════════ */
.content-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: start;
}

.content-text               { font-size: 15.5px; color: var(--grey); line-height: 1.85; }
.content-text         { color: var(--dark); }
.content-text ul            { margin: 15px 0 15px 20px; }
.content-text ul li         { margin-bottom: 10px; }

.content-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}
.content-image img:hover    { transform: scale(1.02); }

/* ── Badges stats ── */
.stat-row   { display: flex; gap: 20px; margin: 30px 0; }

.stat-card {
    background: var(--cyan-light);
    border-radius: 14px;
    padding: 18px 24px;
    flex: 1;
    text-align: center;
}

.stat-card .num {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    color: var(--cyan);
    display: block;
}

.stat-card .label {
    font-size: 12px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Contact email ── */
.contact-email-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--cyan-light);
    border-radius: 14px;
    padding: 18px 28px;
    margin-top: 20px;
    text-decoration: none;
    color: var(--cyan);
    font-weight: 700;
    font-size: 17px;
    transition: all 0.25s ease;
}

.contact-email-box:hover {
    background: var(--cyan);
    color: white;
    transform: translateY(-2px);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    background: var(--cyan);
    clip-path: ellipse(160% 100% at 50% 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 22px;
    z-index: 500;
    pointer-events: none;
}

.footer-inner {
    pointer-events: auto;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left            { color: rgba(255,255,255,0.85); font-size: 12px; }
.footer-left a          { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-left small      { display: block; margin-top: 4px; opacity: 0.65; }

.footer-pills           { display: flex; gap: 10px; }

.pill {
    background: white;
    color: var(--cyan);
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    white-space: nowrap;
}

.pill:hover { background: var(--cyan-light); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
    header { padding: 0 4%; }
    nav ul { gap: 2px; }
    nav a  { font-size: 11px; padding: 5px 10px; }
    .logo-container img { height: 70px; }

    .home-hero,
    .content-layout       { grid-template-columns: 1fr; gap: 40px; }
    .home-illustration    { order: -1; text-align: center; }
    .home-illustration img{ max-width: 320px; }
    .content-image        { order: -1; text-align: center; }
    .stat-row             { flex-direction: column; }
    .page                 { padding-bottom: 210px; }

    .btn-container        { flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .compare-wrap         { flex-direction: column; }
    .compare-divider      { width: 100%; height: 1px; min-height: unset; margin: 20px 0; }
    .compare-col          { padding: 0 10px; }
}

@media (max-width: 640px) {
    header                { flex-direction: column; height: auto; padding: 15px 4%; gap: 12px; }
    .logo-container img   { height: 60px; }
    .page-title           { font-size: 28px; }
    nav ul                { flex-wrap: wrap; justify-content: center; }
    .footer-pills         { flex-direction: column; gap: 8px; }
    footer                { height: 160px; }
    .page                 { padding-bottom: 240px; }
}
