/* =========================================
   SECTION 1 : APP CTA & POPUP PLAY STORE
   ========================================= */

/* --- CONTENEUR PRINCIPAL --- */
.app-cuisine-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
}

/* --- TITRE PRINCIPAL --- */
.app-main-title {
    text-align: center;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --- LE BOX PRINCIPAL --- */
.app-cuisine-cta-box {
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

/* --- HEADER : TEXTE & BOUTON --- */
.app-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
}

.app-text-content {
    flex: 1;
    text-align: left;
}

.app-badge {
    display: inline-block;
    color: #27ae60;
    background-color: #f0fff4;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.app-price-title {
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.app-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
    max-width: 500px;
}

/* --- BOUTON D'ACTION --- */
.app-btn-black {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 18px 40px;
    border-radius: 14px; 
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    border: none;
}

.app-btn-black:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* --- GRILLE DES FONCTIONNALITÉS --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 15px;
    color: #111;
    margin-bottom: 4px;
    font-weight: 700;
}

.feature-text span {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: block;
}

/* --- NOUVEAU STYLE DU POPUP (THEME PLAY STORE) --- */
.app-modal-overlay {
    display: none; 
    position: fixed;
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.app-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    position: relative;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out;
    font-family: 'Roboto', Arial, sans-serif;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: normal;
    color: #5f6368;
    cursor: pointer;
    transition: color 0.2s;
}

.app-modal-close:hover {
    color: #202124;
}

/* En-tête Play Store */
.playstore-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.playstore-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.playstore-info {
    display: flex;
    flex-direction: column;
}

.playstore-title {
    font-size: 22px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 2px 0;
}

.playstore-dev {
    font-size: 14px;
    font-weight: 500;
    color: #01875f;
    margin: 0 0 4px 0;
}

.playstore-rating {
    font-size: 12px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Zone du QR Code */
.playstore-qr-wrapper {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.playstore-qr-wrapper p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #5f6368;
}

.playstore-qr-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Bouton d'installation Play Store */
.playstore-install-btn {
    display: block;
    width: 100%;
    background-color: #01875f;
    color: #ffffff !important;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.playstore-install-btn:hover {
    background-color: #00704e;
}

/* --- RESPONSIVE SECTION 1 --- */
@media (max-width: 850px) {
    .app-main-title { font-size: 26px; }
    .app-cuisine-cta-box { padding: 30px; }
    .app-price-title { font-size: 30px; }
    .app-subtitle { font-size: 14px; }
    .app-btn-black { padding: 15px 30px; font-size: 15px; }
}

@media (max-width: 650px) {
    .app-main-title { font-size: 22px; margin-bottom: 20px; }
    .app-header-container { flex-direction: column; text-align: center; align-items: center; gap: 25px; }
    .app-text-content { text-align: center; }
    .app-subtitle { margin: 0 auto; }
    .app-btn-black { width: 100%; box-sizing: border-box; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-icon { font-size: 20px; }
}


/* =========================================
   SECTION 2 : POURQUOI CHOISIR CUISINOUS
   ========================================= */

/* --- CONFIGURATION GLOBALE --- */
.why-section { 
    background-color: #DC1C24; 
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.why-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- TITRE --- */
.why-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 56px;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* --- LISTE DES ÉLÉMENTS --- */
.why-list {
    display: flex;
    flex-direction: column;
}

.why-item {
    display: flex;
    align-items: center; 
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

.why-item:last-child {
    border-bottom: none;
}

/* ICÔNE */
.why-icon {
    flex: 0 0 50px; 
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-right: 30px;
}

/* CONTENEUR TEXTE */
.why-text-group {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.why-item-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 40%;
    margin: 0;
}

.why-item-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 400;
    flex: 1;
    margin: 0;
    padding-left: 30px;
    line-height: 1.5;
}

/* --- RESPONSIVE SECTION 2 : TABLETTE --- */
@media (max-width: 992px) {
    .why-title {
        font-size: 40px; 
        margin-bottom: 40px;
    }
    .why-item {
        padding: 20px 0;
    }
    .why-item-title {
        font-size: 18px; 
        flex: 0 0 45%;
    }
    .why-item-desc {
        font-size: 15px; 
        padding-left: 20px;
    }
    .why-icon {
        font-size: 24px;
        flex: 0 0 40px;
        margin-right: 20px;
    }
}

/* --- RESPONSIVE SECTION 2 : MOBILE --- */
@media (max-width: 600px) {
    .why-section {
        padding: 50px 15px;
    }
    .why-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .why-item {
        align-items: flex-start; 
    }
    .why-text-group {
        flex-direction: column; 
        align-items: flex-start;
    }
    .why-item-title {
        font-size: 17px;
        margin-bottom: 6px;
        width: 100%;
    }
    .why-item-desc {
        font-size: 14px;
        padding-left: 0;
        line-height: 1.4;
    }
    .why-icon {
        margin-top: 3px;
        font-size: 20px;
        flex: 0 0 35px;
        margin-right: 15px;
    }
}


/* =========================================
   SECTION 3 : FAQ (Foire aux questions)
   ========================================= */

/* Supprime le flash gris/bleu au clic sur mobile */
* { 
    -webkit-tap-highlight-color: transparent; 
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.faq-content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.rotate-icon { 
    transform: rotate(180deg); 
}

.faq-card { 
    border: 1px solid #f3f4f6; 
}

/* Empêche tout changement de background ou de couleur au survol/clic */
.faq-card button, 
.faq-card button:hover, 
.faq-card button:focus, 
.faq-card button:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
}


/* =========================================
   SECTION 4 : QU'EST CE QUE CUISINOUS (SLIDER)
   ========================================= */

/* --- STRUCTURE DE BASE (DESKTOP) --- */
.cuisinous-container {
    display: flex;
    flex-direction: row-reverse; /* Photo à droite, Texte à gauche */
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cuisinous-slider-part {
    flex: 0 0 380px;
    max-width: 100%;
}

.custom-slider-inner {
    width: 100%;
    aspect-ratio: 720 / 1080;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    position: relative;
    background: #f9f9f9;
}

.custom-slide-rail {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideTroisImages 12s infinite ease-in-out;
}

.slide-unit {
    width: 33.3333%;
    height: 100%;
}

.slide-unit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cuisinous-text-part {
    flex: 1;
}

.cuisinous-text-part h2 {
    color: #e31e24;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.cuisinous-text-part .tagline {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
    border-left: 4px solid #e31e24;
    padding-left: 15px;
}

.cuisinous-text-part p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cuisinous-text-part h3 {
    color: #e31e24;
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* --- ANIMATION SLIDER --- */
@keyframes slideTroisImages {
    0%, 28%   { transform: translateX(0); }
    33%, 61%  { transform: translateX(-33.3333%); }
    66%, 95%  { transform: translateX(-66.6666%); }
    100%      { transform: translateX(0); }
}

/* --- MODE TABLETTE --- */
@media (max-width: 1024px) {
    .cuisinous-container {
        gap: 30px;
        padding: 40px 5%;
    }
    .cuisinous-slider-part {
        flex: 0 0 280px; 
    }
    .cuisinous-text-part h2 {
        font-size: 26px;
    }
    .cuisinous-text-part .tagline {
        font-size: 18px;
    }
    .cuisinous-text-part p {
        font-size: 14px;
    }
}

/* --- MODE MOBILE --- */
@media (max-width: 600px) {
    .cuisinous-container {
        flex-direction: column; 
        text-align: center;
        padding: 30px 20px;
    }
    .cuisinous-slider-part {
        flex: 0 0 auto;
        width: 240px;
        margin-bottom: 20px;
    }
    .cuisinous-text-part .tagline {
        border-left: none;
        padding-left: 0;
    }
}


/* =========================================
   SECTION 5 : PAGE À PROPOS (NOTRE HISTOIRE)
   ========================================= */

.cuisinous-container-apropos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* IMAGE UNIQUE SANS ANIMATION */
.cuisinous-image-part-apropos {
    flex: 0 0 380px; 
    max-width: 100%;
}

.image-wrapper-apropos {
    width: 100%;
    aspect-ratio: 720 / 1080; 
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.image-wrapper-apropos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEXTE */
.cuisinous-text-part-apropos {
    flex: 1;
}

.cuisinous-text-part-apropos h2 {
    color: #e31e24;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.cuisinous-text-part-apropos .tagline-apropos {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
    border-left: 4px solid #e31e24;
    padding-left: 15px;
}

.cuisinous-text-part-apropos p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cuisinous-text-part-apropos h3 {
    color: #e31e24;
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* RESPONSIVE (TABLETTE ET MOBILE) */
@media (max-width: 900px) {
    .cuisinous-container-apropos {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .cuisinous-text-part-apropos {
        order: 1;
    }

    .cuisinous-image-part-apropos {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .cuisinous-text-part-apropos .tagline-apropos {
        border-left: none;
        padding-left: 0;
    }
}


/* =========================================
   SECTION 6 : EXPÉRIENCE (2 IMAGES)
   ========================================= */

.cuisinous-container-experience {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cuisinous-text-part-experience {
    flex: 1;
}

/* PILE D'IMAGES À DROITE SUR DESKTOP */
.cuisinous-images-stack-experience {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-wrapper-experience {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-wrapper-experience img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEXTES */
.cuisinous-text-part-experience h2 {
    color: #e31e24;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cuisinous-text-part-experience .tagline-experience {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    border-left: 4px solid #e31e24;
    padding-left: 15px;
    line-height: 1.3;
}

.cuisinous-text-part-experience p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-item-experience {
    margin-top: 25px;
}

.feature-item-experience h3 {
    color: #e31e24;
    font-size: 20px;
    margin-bottom: 8px;
}

.cuisinous-list-experience {
    list-style: none;
    padding: 0;
}

.cuisinous-list-experience li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 5px;
    color: #555;
    text-align: left;
}

.cuisinous-list-experience li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e31e24;
    font-weight: bold;
}

/* MOBILE ET TABLETTE (< 900px) */
@media (max-width: 900px) {
    .cuisinous-container-experience {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* Le texte passe en premier */
    .cuisinous-text-part-experience {
        order: 1;
    }

    /* Les images passent en dessous */
    .cuisinous-images-stack-experience {
        order: 2;
        width: 100%;
        flex-direction: row; 
        flex: none;
        gap: 15px;
    }

    .image-wrapper-experience {
        aspect-ratio: 1 / 1; 
        flex: 1;
    }

    .cuisinous-text-part-experience .tagline-experience {
        border-left: none;
        padding-left: 0;
    }

    .cuisinous-list-experience {
        display: inline-block; 
        margin: 0 auto;
    }
    
    .cuisinous-list-experience li {
        width: fit-content;
        margin: 5px auto;
    }
}


/* =========================================
   SECTION 7 : CONCRET (IMAGE À GAUCHE)
   ========================================= */

/* --- STRUCTURE GÉNÉRALE --- */
#cuisinous-wrapper-concret {
    all: unset;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#cuisinous-wrapper-concret * { box-sizing: border-box; }

#cuisinous-wrapper-concret .cuisinous-container-concret {
    display: flex;
    flex-direction: row; /* Image d'abord grâce à l'ordre HTML */
    align-items: stretch;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#cuisinous-wrapper-concret .cuisinous-image-part-concret { flex: 0 0 450px; }
#cuisinous-wrapper-concret .cuisinous-text-part-concret { flex: 1; text-align: left; }

#cuisinous-wrapper-concret .image-wrapper-concret {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

#cuisinous-wrapper-concret .image-wrapper-concret img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- TYPOGRAPHIE --- */
#cuisinous-wrapper-concret h2 {
    color: #e31e24;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 1.2;
}

#cuisinous-wrapper-concret .tagline-concret {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    border-left: 5px solid #e31e24;
    padding-left: 20px;
    line-height: 1.4;
}

#cuisinous-wrapper-concret .feature-item-concret h3 {
    color: #e31e24;
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

#cuisinous-wrapper-concret p, 
#cuisinous-wrapper-concret .text-concret {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

#cuisinous-wrapper-concret .quote-text-concret {
    margin-top: 20px;
    margin-bottom: 20px;
}

#cuisinous-wrapper-concret .cuisinous-list-concret {
    list-style: disc inside !important; 
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

#cuisinous-wrapper-concret .cuisinous-list-concret li {
    list-style: none; /* Pas de bullet */
    margin-bottom: 8px;
}

/* --- RESPONSIVE TABLETTE (960px) --- */
@media (max-width: 960px) {
    #cuisinous-wrapper-concret .cuisinous-container-concret {
        flex-direction: column; /* L'image passera au-dessus du texte */
        gap: 40px;
    }
    #cuisinous-wrapper-concret .cuisinous-image-part-concret { width: 100%; flex: none; }
    #cuisinous-wrapper-concret .image-wrapper-concret { height: 400px; }
}

/* --- RESPONSIVE MOBILE (600px) --- */
@media (max-width: 600px) {
    #cuisinous-wrapper-concret h2 {
        font-size: 24px;
    }
    #cuisinous-wrapper-concret .tagline-concret {
        font-size: 17px;
        padding-left: 15px;
    }
    #cuisinous-wrapper-concret .feature-item-concret h3 {
        font-size: 19px;
    }
    #cuisinous-wrapper-concret p, 
    #cuisinous-wrapper-concret .text-concret {
        font-size: 14px;
        line-height: 1.5;
    }
    #cuisinous-wrapper-concret .image-wrapper-concret {
        height: 300px;
    }
}