/**
 * FitGen - Styles pour les pages publiques (front)
 * Complément au thème Emanate
 */

/* ==========================================================================
   Variables de couleurs
   ========================================================================== */

:root {
    --color-primary: #f29ca3;
    --color-blue: #119fb8;
    --color-red: #64113f;
    --color-light: #f7cacd;
    --color-dark: #333333;
}

::selection {
    background-color: white;
    color: var(--color-primary);
}

::-moz-selection {
    background-color: white;
    color: var(--color-primary);
}

/* ==========================================================================
   Police personnalisée
   ========================================================================== */

@font-face {
  font-family: 'Fatkat';
  src: url('/assets/fonts/fatkat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

body {
    font-family: 'Varela Round', sans-serif;
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Varela Round', sans-serif;
}

h1 {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 8px;
}

h3 {
    color: var(--color-red);
}

.fatkat {
    font-family: 'Fatkat', sans-serif;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ==========================================================================
   Header personnalisé
   ========================================================================== */

.header-main.fade-in nav {
    background-color: var(--color-red);
}

.header-main .logo span {
    font-weight: 700;
}

.header-main a:not(.button),
.header-main.fade-in a:not(.button) {
    color: var(--color-light);
}

.header-main a:not(.button):not(.logo):hover ,
.header-main.fade-in a:not(.button):not(.logo):hover {
    color:white ;
}

/* Responsive header - masquer le menu burger et afficher le bouton CTA */
.header-main .nav-cta-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .header-main .nav-toggle,
    .header-main nav .nav-toggle,
    header.header-main .nav-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    
    .header-main nav ul.inline,
    .header-main ul.inline,
    header.header-main nav ul {
        display: none !important;
    }
    
    .header-main .nav-cta-mobile,
    .header-main nav .nav-cta-mobile,
    header.header-main .nav-cta-mobile {
        display: inline-block !important;
        visibility: visible !important;
        margin-left: auto;
        float: right;
        white-space: nowrap;
        font-size: 0.8rem !important;
        padding: 0.6rem 1.2rem !important;
        background-color: #119fb8 !important;
        border-color: #119fb8 !important;
        color: #ffffff !important;
        height: auto !important;
        line-height: 1.4 !important;
    }
    
    .header-main .nav-cta-mobile:hover,
    .header-main nav .nav-cta-mobile:hover {
        background-color: #ffffff !important;
        border-color: #ffffff !important;
        color: #119fb8 !important;
    }
}

/* ==========================================================================
   Section Hero
   ========================================================================== */

.overlay:before {
    background: rgba(100, 17, 63, 0.9);
}

.bg-image-01:after {
    background: url('/assets/images/hero_polaroids.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Responsive h1 */
.page-home h1 {
    font-size: 3rem;
}

@media only screen and (max-width: 1023px) {
    /* Tablet */
    .page-home h1 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }
}

@media only screen and (max-width: 767px) {
    /* Mobile */
    .page-home h1 {
        font-size: 1.75rem;
        letter-spacing: 4px;
    }

    .logo img {
        max-width: 150px;
        height: auto;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    color: var(--color-blue);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list li i {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-list li h6 {
    margin: 0 0 0.25rem 0;
}

.feature-list li p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Post-it style */
.post-it {
    background: #ffeb3b;
    background: linear-gradient(180deg, #fff176 0%, #ffeb3b 100%);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    margin-left: -1rem;
    font-size: 0.85rem;
    color: #333;
    position: relative;
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 -2px 3px rgba(0, 0, 0, 0.05);
    transform: rotate(1deg);
    font-family: 'Varela Round', sans-serif;
    line-height: 1.4;
}

.post-it::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40%;
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
}

.post-it-icon {
    margin-right: 0.4rem;
}

/* Scotch tape effect for images */
.scotch-effect {
    position: relative;
    display: inline-block;
}

.scotch-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.steps-list {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-item h5 {
    margin: 0 0 0.25rem 0;
}

.step-item p {
    margin: 0;
    opacity: 0.8;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--color-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-number.step-icon {
    font-weight: 400;
}

.step-number.step-icon i {
    font-size: 1.5rem;
}

/* How It Works - responsive 1 colonne sur mobile */
@media (max-width: 767px) {
    #how-it-works .row.min-two-columns {
        flex-direction: column !important;
    }
    
    #how-it-works .row.min-two-columns .col-one-fourth {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Tablette large : 3 + 2 */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablette : 2 colonnes */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--color-blue);
    transform: scale(1.02);
    z-index: 0;
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

@media (max-width: 600px) {
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-blue);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h5 {
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .pricing-price {
        font-size: 2.25rem;
    }
}

.pricing-credits {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card .button {
    margin-top: auto;
}

.pricing-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-blue);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Utilitaires supplémentaires
   ========================================================================== */

.rounded-xl {
    border-radius: 16px;
}

.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.button {
    border-radius: 0 !important;
}

.button.button-primary {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}

.button.button-primary:hover {
    background-color: var(--color-light);
    border-color: var(--color-red);
    color: var(--color-red);
}

.button.button-secondary:hover {
    color: var(--color-blue);
}

.lead {
    color: var(--color-light);
}

.space-top {
    color: var(--color-light);
    margin-top: 1rem !important;
    display:block;
}

/* ==========================================================================
   Footer simplifié
   ========================================================================== */

.footer-main.bg-light {
    background-color: var(--color-red) !important;
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
}

.footer-simple p,
.footer-simple a,
.footer-main .copyright {
    opacity: 1 !important;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem !important;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.75rem !important;
}

.footer-links a:hover {
    color: var(--color-blue) !important;
}

.footer-separator {
    color: #ccc !important;
}

/* Footer responsive - liens sur 1 colonne sur petits écrans */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links .footer-separator {
        display: none;
    }
}

.footer-main .copyright {
    font-size: 0.85rem;
    margin: 0;
}

.footer-main.bg-light .copyright,
.footer-main.bg-light .copyright *,
.footer-main.bg-light p,
.footer-main.bg-light .footer-simple p {
    color: #ffffff !important;
}

.footer-main .copyright a {
    text-decoration: none;
    font-weight: 600;
}

.footer-main .copyright a:hover {
    text-decoration: underline;
}

.footer-main .copyright .sykso-logo {
    height: 28px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ==========================================================================
   Images décoratives
   ========================================================================== */

.decorative-image-container {
    position: relative;
}

.decorative-image {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decorative-image-top-left {
    top: -30px;
    left: -30px;
    width: 150px;
    height: auto;
}

@media only screen and (max-width: 767px) {
    .decorative-image-top-left {
        top: -20px;
        left: -15px;
        width: 100px;
    }
}

.decorative-image-top-right {
    top: -30px;
    right: -30px;
    width: 120px;
    height: auto;
}

@media only screen and (max-width: 767px) {
    .decorative-image-top-right {
        top: -20px;
        right: -15px;
        width: 80px;
    }
}

/* Images décoratives footer */
.footer-main.decorative-image-container {
    overflow: visible;
}

.footer-pattern-left,
.footer-pattern-right {
    top: 0;
    width: 300px;
    height: auto;
}

.footer-pattern-left {
    left: -10px;
}

.footer-pattern-right {
    right: -10px;
}

@media only screen and (max-width: 767px) {
    .footer-pattern-left,
    .footer-pattern-right {
        width: 100px;
    }
}

/* ==========================================================================
   Pages Légales (Mentions légales, CGV/CGU)
   ========================================================================== */

.page-legal .legal-hero {
    min-height: 40vh;
    padding-top: 120px;
}

.page-legal .legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    .page-legal .legal-hero h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

.legal-content {
    background-color: #ffffff;
}

.legal-article {
    padding: 2rem 0;
}

.legal-article h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-light);
}

.legal-article h3:first-child {
    margin-top: 0;
}

.legal-article h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.legal-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555555;
}

.legal-article a {
    color: var(--color-blue);
    text-decoration: underline;
}

.legal-article a:hover {
    color: var(--color-red);
}

.hero-subtitle {
    color: var(--color-light);
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.legal-article ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

.legal-article ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555555;
}

.legal-article ul li strong {
    color: var(--color-dark);
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-light);
    text-align: center;
}

.legal-footer p {
    color: #888888;
    font-size: 0.875rem;
}