/* ============================================
   THEME CLAIR STYLE APPLE HIG - PALETTE SYSTÈME VARIÉE
   PADDING 0 SUR SECTIONS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Palette couleurs système Apple */
:root {
    --apple-red-start: #ff453a;
    --apple-red-end: #ff375f;

    --apple-green-start: #30d158;
    --apple-green-end: #32d74b;

    --apple-cyan-start: #64d2ff;
    --apple-cyan-end: #0a84ff;

    --apple-orange-start: #ff9f0a;
    --apple-orange-end: #ff9500;

    --apple-purple-start: #bf5af2;
    --apple-purple-end: #af52de;

    --apple-yellow-start: #ffd60a;
    --apple-yellow-end: #f5d442;

    --apple-blue-start: #5ac8fa;
    --apple-blue-end: #007aff;

    --text-dark: #1c1c1e;
    --text-light: #fff;

    --bg-gradient: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

/* Police et fond */
.reveal {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    background: var(--bg-gradient);
}

.reveal .slides {
    text-align: left;
    font-size: 22px;
}

/* Sections sans padding */
.reveal .slides section {
    padding: 0;
    height: 100%;
    overflow: hidden !important;
}

/* TITRES */

/* H1 centré, cyan / bleu dégradé */
.reveal h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, var(--apple-cyan-start), var(--apple-blue-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    text-align: center !important;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

/* H2 à gauche, noir avec petite barre jaune sous le titre */
.reveal h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    text-transform: none;
    text-align: left;
    font-size: 1.7em;
    border-bottom: 3px solid var(--apple-yellow-end);
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
}

/* H3 à gauche, rouge dégradé */
.reveal h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--apple-red-start), var(--apple-red-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    text-align: left;
    font-size: 1.3em;
    margin-bottom: 0.5em;
}

/* Texte normal */
.reveal p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.8em;
    text-align: left;
}

.reveal section img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
/* Listes */

/* Puces vertes dégradées */
.reveal ul {
    list-style: none;
    padding-left: 0;
}

.reveal ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.6em;
    color: var(--text-dark);
    text-align: left;
}

.reveal ul li:before {
    content: '▸';
    position: absolute;
    left: 0;
    background: linear-gradient(90deg, var(--apple-green-start), var(--apple-green-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.2em;
}

/* Listes numérotées rouges dégradées */
.reveal ol {
    counter-reset: item;
    padding-left: 0;
}

.reveal ol li {
    counter-increment: item;
    position: relative;
    padding-left: 40px;
    margin-bottom: 0.6em;
    color: var(--text-dark);
    text-align: left;
}

.reveal ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--apple-red-start), var(--apple-red-end));
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85em;
}

/* Code */
.reveal code {
    background: rgba(6, 128, 250, 0.15);
    color: var(--apple-blue-end);
    padding: 0.3em 0.5em;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(6, 128, 250, 0.3);
}

.reveal pre code {
    background: #f0f5ff;
    color: var(--apple-purple-end);
    padding: 1em;
    border-radius: 10px;
    border: 1px solid rgba(175, 82, 222, 0.4);
    display: block;
}

/* Blockquotes */
.reveal blockquote {
    background: rgba(175, 82, 222, 0.1);
    border-left: 6px solid var(--apple-purple-end);
    padding: 1em 1.5em;
    border-radius: 0 12px 12px 0;
    color: var(--text-dark);
    font-style: italic;
    margin: 1em 0;
}

/* Tableaux */
.reveal table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
}

.reveal table th {
    background: linear-gradient(90deg, var(--apple-cyan-start), var(--apple-blue-end));
    color: white;
    padding: 0.9em 1em;
}

.reveal table td {
    color: var(--text-dark);
    padding: 0.8em 1em;
    border-top: 1px solid #eee;
}

/* Cartes */
.card {
    background: white;
    border: 1px solid rgba(6, 128, 250, 0.3);
    border-radius: 16px;
    padding: 1.8em;
    box-shadow: 0 6px 20px rgba(6, 128, 250, 0.12);
    margin: 1em 0;
}

/* Highlight */
.highlight {
    background: linear-gradient(135deg, var(--apple-cyan-start), var(--apple-blue-end));
    color: white;
    padding: 1.8em;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(6, 128, 250, 0.3);
    margin: 1em 0;
}

/* Badges */

/* Bleu cyan */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--apple-cyan-start), var(--apple-blue-end));
    color: white;
    padding: 0.4em 1em;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 700;
    margin: 0 0.4em 0.4em 0;
    text-transform: uppercase;
}

/* Orange */
.badge.warning {
    background: linear-gradient(135deg, var(--apple-orange-start), var(--apple-orange-end));
}

/* Violet */
.badge.success {
    background: linear-gradient(135deg, var(--apple-purple-start), var(--apple-purple-end));
}

/* Jaune */
.badge.yellow {
    background: linear-gradient(135deg, var(--apple-yellow-start), var(--apple-yellow-end));
    color: var(--text-dark);
}

/* Rouge */
.badge.danger {
    background: linear-gradient(135deg, var(--apple-red-start), var(--apple-red-end));
}

/* Vert */
.badge.green {
    background: linear-gradient(135deg, var(--apple-green-start), var(--apple-green-end));
    color: white;
}

/* Progress bar */
.reveal .progress span {
    background: linear-gradient(135deg, var(--apple-cyan-start), var(--apple-blue-end));
}

.reveal .slide-number {
  font-size: 1.8em;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);

  /* marges augmentées + safe area (TV qui rogne les bords) */
  bottom: max(48px, env(safe-area-inset-bottom));
  right:  max(56px, env(safe-area-inset-right));
  z-index: 10;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .reveal .slides {
        font-size: 20px;
    }
    
    .reveal .slides section {
        padding: 0;
    }
}