/*********************************************
 * MAISON SORBETTI - REVEAL.JS THEME
 * Basé sur la charte graphique officielle
 *********************************************/

:root {
    /* Palette Maison Sorbetti */
    --or: #C9A961;
    --gris-fonce: #3C3C3C;
    --brun: #8B7355;
    --vert: #4A7C59;
    --rouge: #A64253;
    --beige: #F5EFE7;
    --beige-clair: #F9F7F4;
    --gris-clair: #E0E0E0;
    --blanc: #FFFFFF;

    /* Reveal.js variables override */
    --r-background-color: var(--beige-clair);
    --r-main-font: 'Montserrat', sans-serif;
    --r-main-font-size: 32px;
    --r-main-color: var(--gris-fonce);
    --r-heading-font: 'Montserrat', sans-serif;
    --r-heading-color: var(--gris-fonce);
    --r-heading-line-height: 1.2;
    --r-heading-letter-spacing: 0.02em;
    --r-heading-text-transform: none;
    --r-heading-font-weight: 600;
    --r-heading1-size: 2.2em;
    --r-heading2-size: 1.6em;
    --r-heading3-size: 1.2em;
    --r-heading4-size: 1em;
    --r-link-color: var(--or);
    --r-link-color-hover: var(--brun);
    --r-selection-background-color: rgba(201, 169, 97, 0.3);
    --r-selection-color: var(--gris-fonce);
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/

.reveal-viewport {
    background: var(--beige-clair);
}

.reveal {
    font-family: var(--r-main-font);
    font-size: var(--r-main-font-size);
    font-weight: 400;
    color: var(--r-main-color);
}

.reveal ::selection {
    color: var(--r-selection-color);
    background: var(--r-selection-background-color);
    text-shadow: none;
}

/*********************************************
 * HEADERS
 *********************************************/

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    margin: 0 0 20px 0;
    color: var(--r-heading-color);
    font-family: var(--r-heading-font);
    font-weight: var(--r-heading-font-weight);
    line-height: var(--r-heading-line-height);
    letter-spacing: var(--r-heading-letter-spacing);
    text-transform: var(--r-heading-text-transform);
    text-shadow: none;
    word-wrap: break-word;
}

.reveal h1 {
    font-size: var(--r-heading1-size);
}

.reveal h2 {
    font-size: var(--r-heading2-size);
}

.reveal h3 {
    font-size: var(--r-heading3-size);
    color: var(--brun);
}

.reveal h4 {
    font-size: var(--r-heading4-size);
}

/*********************************************
 * SECTION TITLE STYLE
 *********************************************/

.reveal .section-title {
    color: var(--gris-fonce);
    font-weight: 700;
    font-size: 1.8em;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.reveal .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--or), transparent);
}

.reveal .section-subtitle {
    color: var(--brun);
    font-size: 0.7em;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 40px;
}

/*********************************************
 * LINKS
 *********************************************/

.reveal a {
    color: var(--r-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.reveal a:hover {
    color: var(--r-link-color-hover);
    text-shadow: none;
    border: none;
}

/*********************************************
 * IMAGES
 *********************************************/

.reveal section img {
    margin: 15px 0;
    border: none;
    box-shadow: none;
}

.reveal section img.plain {
    border: 0;
    box-shadow: none;
}

/*********************************************
 * LISTS
 *********************************************/

.reveal ul,
.reveal ol {
    display: inline-block;
    text-align: left;
    margin: 0 0 0 1em;
}

.reveal ul {
    list-style-type: none;
}

.reveal ul li::before {
    content: "•";
    color: var(--or);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.reveal li {
    margin-bottom: 0.5em;
    font-size: 0.85em;
    line-height: 1.4;
}

/*********************************************
 * SLIDE NUMBER
 *********************************************/

.reveal .slide-number {
    position: fixed;
    display: block;
    right: 20px;
    bottom: 20px;
    z-index: 31;
    font-family: var(--r-main-font);
    font-size: 14px;
    color: var(--brun);
    background-color: transparent;
    padding: 5px;
}

/*********************************************
 * PROGRESS BAR
 *********************************************/

.reveal .progress {
    background: rgba(201, 169, 97, 0.2);
    color: var(--or);
    height: 4px;
}

.reveal .progress span {
    background: var(--or);
    transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
}

/*********************************************
 * CONTROLS
 *********************************************/

.reveal .controls {
    color: var(--or);
    z-index: 100;
}

.reveal .controls button {
    color: var(--or);
    opacity: 1;
    pointer-events: auto;
}

.reveal .controls button:hover {
    color: var(--brun);
}

.reveal .controls .controls-arrow {
    color: var(--or);
}

/*********************************************
 * FRAGMENTS
 *********************************************/

.reveal .fragment {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.reveal .fragment.visible {
    opacity: 1;
    visibility: inherit;
}

.reveal .fragment.fade-up {
    transform: translateY(40px);
}

.reveal .fragment.fade-up.visible {
    transform: translateY(0);
}

.reveal .fragment.fade-right {
    transform: translateX(-40px);
}

.reveal .fragment.fade-right.visible {
    transform: translateX(0);
}

.reveal .fragment.fade-left {
    transform: translateX(40px);
}

.reveal .fragment.fade-left.visible {
    transform: translateX(0);
}

.reveal .fragment.zoom-in {
    transform: scale(0.7);
}

.reveal .fragment.zoom-in.visible {
    transform: scale(1);
}

/*********************************************
 * SLIDE TRANSITIONS
 *********************************************/

.reveal .slides > section,
.reveal .slides > section > section {
    padding: 40px;
    box-sizing: border-box;
}

/*********************************************
 * PRINT STYLES
 *********************************************/

@media print {
    .reveal .slides > section,
    .reveal .slides > section > section {
        background: white !important;
    }

    .reveal .progress,
    .reveal .controls {
        display: none !important;
    }
}
