/*********************************************
 * MAISON SORBETTI - CUSTOM STYLES
 * Styles spécifiques pour chaque section
 *********************************************/

/*********************************************
 * SLIDE 1: COVER
 *********************************************/

#cover {
    text-align: center;
}

#cover .cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#cover .logo-container {
    margin-bottom: 20px;
}

#cover .main-logo {
    width: 350px;
    height: auto;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#cover .brand-name {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--gris-fonce);
    margin: 10px 0;
}

#cover .tagline {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.2em;
    color: var(--or);
    margin: 5px 0 30px 0;
}

#cover .cover-subtitle {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

#cover .gold-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--or);
}

#cover .cover-subtitle p {
    font-size: 0.65em;
    color: var(--brun);
    margin: 0;
}

#cover .date {
    font-size: 0.6em;
    color: var(--brun);
    margin-top: 40px;
}

/*********************************************
 * SLIDE 2: HERO PRODUIT
 *********************************************/

#hero {
    padding: 0 !important;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-tagline {
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris-fonce);
    margin: 20px 0;
}

.hero-line {
    width: 80px;
    height: 2px;
    background: var(--or);
}

.hero-values {
    font-size: 0.65em;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--brun);
    margin-top: 25px;
    white-space: nowrap;
}

/*********************************************
 * SLIDE 3: MISSION
 *********************************************/

.two-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 30px;
}

.column-text {
    padding-right: 20px;
}

.column-image {
    display: flex;
    justify-content: center;
}

.info-block {
    margin-bottom: 25px;
}

.info-block .label {
    display: block;
    font-size: 0.5em;
    color: var(--brun);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.info-block .value {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--gris-fonce);
}

.info-block .detail {
    display: block;
    font-size: 0.55em;
    color: var(--brun);
    font-style: italic;
    margin-top: 3px;
}

.mission-statement,
.vision-statement {
    background: var(--beige);
    border-left: 4px solid var(--or);
    padding: 15px 20px;
    margin: 15px 0;
}

.mission-statement h3,
.vision-statement h3 {
    font-size: 0.7em;
    color: var(--or);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-statement p,
.vision-statement p {
    font-size: 0.6em;
    line-height: 1.5;
    margin: 0;
}

.team-photo {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/*********************************************
 * SLIDE 3: CONCEPT
 *********************************************/

.pillars-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.pillar {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar h3 {
    font-size: 0.75em;
    color: var(--gris-fonce);
    margin-bottom: 12px;
}

.pillar p {
    font-size: 0.55em;
    line-height: 1.5;
    color: var(--brun);
    margin: 0;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-vegan {
    background: rgba(74, 124, 89, 0.15);
    color: var(--vert);
    border: 1px solid var(--vert);
}

.badge-artisanal {
    background: rgba(201, 169, 97, 0.15);
    color: var(--or);
    border: 1px solid var(--or);
}

.badge-france {
    background: rgba(166, 66, 83, 0.15);
    color: var(--rouge);
    border: 1px solid var(--rouge);
}

.stamps-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
}

.stamp-logo {
    height: 70px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stamp-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/*********************************************
 * SLIDE 4b: PROCESSUS DE FABRICATION
 *********************************************/

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: center;
}

.process-video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-video video {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.process-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-step-h {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--blanc);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--or);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

.step-text h3 {
    font-size: 0.6em;
    color: var(--gris-fonce);
    margin: 0 0 4px 0;
}

.step-text p {
    font-size: 0.45em;
    color: var(--brun);
    line-height: 1.3;
    margin: 0;
}

/*********************************************
 * SLIDE 5: PRODUCTS GALLERY
 *********************************************/

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: scale(1.08);
    z-index: 10;
}

.product-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 0;
}

.product-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--blanc);
    font-size: 0.45em;
    padding: 20px 8px 8px;
    text-align: center;
}

.products-note {
    font-size: 0.55em;
    color: var(--brun);
    font-style: italic;
    margin-top: 20px;
}

/*********************************************
 * SLIDE 5: NUTRITION
 *********************************************/

.nutrition-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.nutrition-block {
    background: var(--blanc);
    border-radius: 16px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nutrition-block.maison-sorbetti {
    border: 3px solid var(--vert);
}

.nutrition-block.traditional {
    border: 3px solid var(--gris-clair);
    opacity: 0.7;
}

.nutrition-block h3 {
    font-size: 0.65em;
    margin-bottom: 15px;
}

.calorie-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.calorie-number {
    font-size: 2.5em;
    font-weight: 700;
}

.maison-sorbetti .calorie-number {
    color: var(--vert);
}

.traditional .calorie-number {
    color: var(--gris-clair);
}

.calorie-unit {
    font-size: 0.6em;
    color: var(--brun);
}

.nutrition-note {
    font-size: 0.5em;
    color: var(--brun);
    margin-top: 5px;
}

.versus {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--or);
}

.benefits-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

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

.benefit-icon {
    width: 48px;
    height: 48px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit span {
    font-size: 0.55em;
    color: var(--gris-fonce);
    font-weight: 500;
}

/*********************************************
 * SLIDE 6: CLIENTS
 *********************************************/

.clients-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.client-category h3 {
    font-size: 0.6em;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-align: left;
}

.client-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.client-logos img {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
    margin: 0;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Palaces & Hôtels 5* - logos légèrement plus petits */
.client-category:first-child .client-logos img {
    height: 80px;
    max-width: 160px;
}

/*********************************************
 * SLIDE 7: GROWTH CHART
 *********************************************/

.chart-container {
    width: 100%;
    max-width: 800px;
    height: 300px;
    margin: 20px auto;
}

.growth-highlights {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.highlight {
    text-align: center;
}

.highlight-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
}

.highlight-value.positive {
    color: var(--vert);
}

.highlight-value.negative {
    color: var(--rouge);
}

.highlight-label {
    display: block;
    font-size: 0.5em;
    color: var(--brun);
    margin-top: 5px;
}

/*********************************************
 * SLIDE 8: GEOGRAPHY
 *********************************************/

.charts-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin: 30px auto;
}

.chart-block {
    text-align: center;
    width: 380px;
}

.chart-block h3 {
    font-size: 0.7em;
    color: var(--gris-fonce);
    margin-bottom: 20px;
}

.chart-block canvas {
    max-height: 280px;
    max-width: 280px;
    margin: 0 auto;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.45em;
    color: var(--gris-fonce);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.btob { background: var(--or); }
.dot.btoc { background: var(--brun); }
.dot.paca { background: #4ECDC4; }
.dot.france { background: var(--or); }
.dot.export { background: var(--rouge); }
.dot.monaco { background: var(--vert); }

.chart-highlight {
    font-size: 0.5em;
    color: var(--vert);
    margin-top: 10px;
    font-weight: 500;
}

.chart-highlight strong {
    font-size: 1.3em;
    color: var(--vert);
}

.geo-note {
    font-size: 0.5em;
    color: var(--brun);
    font-style: italic;
    margin-top: 20px;
}

/*********************************************
 * SLIDE 9: EXPORT
 *********************************************/

.export-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 40px 0;
}

.export-stat {
    text-align: center;
}

.big-number {
    display: block;
    font-size: 4em;
    font-weight: 700;
    color: var(--vert);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.6em;
    color: var(--brun);
    margin-top: 10px;
    max-width: 200px;
}

.export-destinations h3 {
    font-size: 0.7em;
    color: var(--or);
    margin-bottom: 20px;
}

.destinations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.destination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blanc);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.destination .flag {
    font-size: 1.5em;
}

.destination span:last-child {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--gris-fonce);
}

.export-message {
    text-align: center;
    margin: 30px 0;
}

.export-message p {
    font-size: 0.7em;
    color: var(--gris-fonce);
}

.export-message strong {
    color: var(--vert);
}

.export-advantages {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.55em;
    color: var(--gris-fonce);
}

.advantage .check {
    color: var(--vert);
    font-weight: 700;
}

.export-note {
    font-size: 0.45em;
    color: var(--brun);
    font-style: italic;
    margin-top: 15px;
}

.highlight-destination {
    background: rgba(74, 124, 89, 0.15);
    border: 1px solid var(--vert);
}

.highlight-destination span:last-child {
    font-weight: 600;
    color: var(--vert);
}

/*********************************************
 * SLIDE 10: GROWTH LEVERS
 *********************************************/

.levers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.lever {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lever-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.lever-icon svg {
    width: 100%;
    height: 100%;
}

.lever h3 {
    font-size: 0.8em;
    color: var(--gris-fonce);
    margin-bottom: 15px;
}

.lever ul {
    text-align: left;
    margin: 0;
    padding: 0;
}

.lever li {
    font-size: 0.55em;
    margin-bottom: 8px;
    color: var(--brun);
}

.lever li::before {
    color: var(--or);
}

/*********************************************
 * SLIDE 11: TEAM
 *********************************************/

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 0.9em;
    color: var(--gris-fonce);
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 0.6em;
    color: var(--or);
    font-weight: 500;
    margin-bottom: 15px;
}

.bio-points {
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
}

.bio-points li {
    font-size: 0.5em;
    margin-bottom: 6px;
    color: var(--brun);
}

/*********************************************
 * SLIDE 12: CONTACT
 *********************************************/

#contact {
    color: var(--blanc);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-logo {
    width: 450px;
    height: auto;
    margin-bottom: 30px;
}

.contact-title {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--blanc);
    max-width: 700px;
    line-height: 1.4;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.5em;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--blanc);
    font-size: 0.7em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--or);
}

.contact-location {
    margin-top: 20px;
}

.contact-location p {
    font-size: 0.55em;
    color: rgba(255, 255, 255, 0.6);
}

/*********************************************
 * SLIDE 13: LIFESTYLE PATCHWORK
 *********************************************/

#lifestyle {
    padding: 30px !important;
    overflow: hidden;
}

.patchwork-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 85vh;
    max-height: 620px;
}

.patch {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(100px) rotate(0deg) scale(0.8);
}

.patch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.patch:hover img {
    transform: scale(1.08);
}

/* Yacht - grande à gauche */
.patch:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Gigi - haut centre */
.patch:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Transat - haut centre-droite */
.patch:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

/* Trio - grande à droite */
.patch:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
}

/* Opera - bas centre */
.patch:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* NY - bas centre-droite */
.patch:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Boite - cachée pour équilibre */
.patch:nth-child(7) {
    display: none;
}

/*********************************************
 * RESPONSIVE ADJUSTMENTS
 *********************************************/

@media screen and (max-width: 1200px) {
    .pillars-container,
    .levers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pillars-container,
    .levers-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

/*********************************************
 * GSAP ANIMATION HELPERS
 *********************************************/

.gsap-hidden {
    opacity: 0;
    visibility: hidden;
}

.gsap-fade-up {
    transform: translateY(30px);
}

.gsap-fade-right {
    transform: translateX(-30px);
}

.gsap-fade-left {
    transform: translateX(30px);
}

.gsap-scale {
    transform: scale(0.9);
}

/*********************************************
 * MOBILE ORIENTATION OVERLAY
 *********************************************/

#rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gris-fonce);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.rotate-message {
    text-align: center;
    color: var(--beige-clair);
}

.rotate-icon {
    font-size: 4em;
    animation: rotate-hint 1.5s ease-in-out infinite;
}

@keyframes rotate-hint {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

.rotate-message p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Afficher uniquement sur mobile en portrait */
@media screen and (max-width: 900px) and (orientation: portrait) {
    #rotate-overlay {
        display: flex;
    }
}

/*********************************************
 * PRINT / PDF EXPORT FIXES
 *********************************************/

@media print {
    /* Forcer tous les éléments à être visibles */
    .reveal .slides section * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* S'assurer que les grilles s'affichent correctement */
    .pillars-container,
    .levers-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
    }

    .benefits-row,
    .export-advantages {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .benefit,
    .advantage {
        display: flex !important;
    }

    .clients-categories {
        display: block !important;
    }

    .client-category {
        display: block !important;
        margin-bottom: 20px !important;
    }

    .destinations-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero slide */
    .hero-split {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .hero-left,
    .hero-tagline,
    .hero-values,
    .hero-line {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Contact slide */
    .contact-title {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Patchwork */
    .patch {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Masquer overlay rotation */
    #rotate-overlay {
        display: none !important;
    }
}
