/* --------------------
   RESET & VARIABLES
---------------------*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f3ee;
    --bg-dark: #111111;
    --text: #1a1a1a;
    --muted: #777777;
    --accent: #e3b6a3;
    --accent-strong: #c47c5a;
    --border: #e0d6cc;

    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", "Cormorant Garamond", serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 30px 80px rgba(0, 0, 0, 0.18);

    --max-width: 1120px;
}

/* --------------------
   GLOBAL
---------------------*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Container */
section {
    padding: 80px 24px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Titles */
h1, h2, h3 {
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    line-height: 1.1;
    color: #006576;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.3rem;
}

/* Text */
p {
    font-size: 0.98rem;
    color: var(--muted);
}

/* Links & buttons */
a {
    text-decoration: none;
    color: inherit;
}

/* --------------------
   NAVIGATION
---------------------*/
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(247, 243, 238, 0.9);
    border-bottom: 1px solid rgba(224, 214, 204, 0.7);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.nav.scrolled {
    padding: 8px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header.nav > div,
header.nav nav,
header.nav .cta-nav,.cta-burger {
    max-width: var(--max-width);
    margin: 0 auto;
}

header.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

header.nav .logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.18em;
}
.logo{
    cursor: pointer;
}
.img_logo{
    width: auto;
    height: 60px;
}
header.nav nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

header.nav nav a {
    position: relative;
    cursor: pointer;
}

header.nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--accent-strong);
    transition: width 0.25s ease;
}

header.nav nav a:hover::after {
    width: 100%;
}

header.nav .cta-nav,.cta-burger {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #006576;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #006576;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

header.nav .cta-nav:hover,.cta-burger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    background: #005463;
}

/* --------------------
   HERO (avec léger parallax)
---------------------*/
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 130vh;

    padding-left: 24px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* même effet que background-size: cover */
    object-position: center; /* recadrage */
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: -1;
}
.hero-content {
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    text-shadow: 0 3px 10px rgba(0,0,0,0.45);
    gap: 48px;
}
.hero-content h1,
.hero-content p,
.hero-content a {
    color: #fff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.45);

}

/* Colonne texte */
.hero-content h1 {
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #006576;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hard);
    background: #005463;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: black;
    box-shadow: var(--shadow-soft);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

.hero-badges span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

/* --------------------
   EXPERIENCE
---------------------*/
.experience {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    background: rgba(247, 243, 238, 0.9);
}
.text{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sous-text{
    display: flex;
    gap: 40px;
}
/* --------------------
   FONCTIONNEMENT
---------------------*/
.fonctionnement {
    background: #EDE8E1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fonctionnement .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.fonctionnement h2 {
    text-align: left;
}

.steps {
    display: flex;   
    gap: 24px;
    margin-top: 32px;
}

.step {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.step .num {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--accent-strong);
    display: block;
    margin-bottom: 8px;
}

/* --------------------
   GALERIE (masonry simple)
---------------------*/
.galerie {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    background: rgba(247, 243, 238, 0.9);
}

/* Grille propre */
.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Wrapper qui masque l’image */
.masonry-item {
    width: 100%;
    overflow: hidden; /* masque le zoom interne */
    border-radius: var(--radius-md);
    position: relative;
}

/* Image */
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* Zoom interne façon Figma */
.masonry-item:hover img {
    transform: scale(1.04); /* zoom interne */
    filter: brightness(1.05);
}

/* Option premium : légère montée + ombre */
.masonry-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* --------------------
   POURQUOI SELKA
---------------------*/
.pourquoi {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #006576;
}
.pourquoi h1, .pourquoi h3{
    color: white;
}
.pourquoi .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pourquoi p{
    color: #F7F3EE;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 50px;
}
.item1 {
    padding: 50px;
    border: 1px solid grey;
    border-top: none;
    border-left: none;
    background: #006576;
    font-size: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.item2 {
    padding: 50px;
    border: 1px solid grey;
    border-top: none;
    border-right: none;
    background: #006576;
    font-size: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.item3 {
    padding: 50px;
    border: 1px solid rgba(204, 204, 204, 0.37);
    border-bottom: none;
    border-left: none;
    background: #006576;
    font-size: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.item4 {
    padding: 50px;
    border: 1px solid grey;
    border-bottom: none;
    border-right: none;
    background: #006576;
    font-size: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.item1:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background-color: #005261; 
    border-top-left-radius: 20px;
}
.item2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background-color: #005261; 
    border-top-right-radius: 20px;
}
.item3:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background-color: #005261; 
    border-bottom-left-radius: 20px;
}
.item4:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background-color: #005261; 
    border-bottom-right-radius: 20px;
}
/* --------------------
   AVIS CLIENTS
---------------------*/
.avis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(247, 243, 238, 0.9);
}
.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
   
}
.avis-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #EDE8E1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.avis-card .quote {
    font-size: 14px;
    margin-bottom: 8px;
    max-width: 400px;
}
.stars {
    font-size: 0.85rem;
    color: #f5a623;
}

/* --------------------
   INSTAGRAM
---------------------*/
.instagram {
    background: #EDE8E1;
    text-align: center;
}

.instagram .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.insta-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 24px;
}
.insta-pic{
    max-width: 200px;
    overflow: hidden; /* masque le zoom interne */
    border-radius: var(--radius-md);
    position: relative;
  
}
.insta-pic i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centre parfait */
    font-size: 70px; /* taille du play */
    color: white; /* couleur du play */
    opacity: 0.85; /* léger effet vidéo */
    pointer-events: none; /* évite de bloquer le clic */
   
}
.insta-pic:hover i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    transition: 0.2s ease;
    
}
.insta-grid img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* Zoom interne façon Figma */
.insta-pic:hover img {
    transform: scale(1.04); /* zoom interne */
    filter: brightness(1.05);
}

/* Option premium : légère montée + ombre */
.insta-pic:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    
}

/* --------------------
   FAQ
---------------------*/
.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: rgba(247, 243, 238, 0.9);
}

/* Bloc FAQ */
.faq details {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #faf7f3;
    width: 500px;
    position: relative;
    transition: background 0.5s ease;
}
/* Hover léger façon Figma */
.faq details:hover {
    background: #f5f1ec;
}
/* Le texte du summary */
.faq summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    list-style: none; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
}
/* Enlever la flèche native sur tous les navigateurs */
.faq summary::-webkit-details-marker {
    display: none;
}
/* Flèche custom */
.faq summary::after {
    content: ">"; /* petite flèche fine */
    transform: rotate(90deg);
    font-size: 1rem;
    color: #6b6b6b;
    transition: transform 0.25s ease;
}
/* Quand le bloc est ouvert → flèche vers le haut */
.faq summary.arrow-open::after {
    transform: rotate(-90deg);
}

/* Texte interne */
.faq p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4a4a4a;
}
.faq-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}


/*---------------------
    CREER
---------------------*/
.creer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: #006576;
}
.creer h1, .creer a{
    color: white;
}
.creer p{
    color: #F7F3EE;
}

/* --------------------
   FOOTER
---------------------*/
.footer {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #f5f1ec;
    color: #f5f5f5;
    padding: 80px;
}

.footer .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer .logo_footer {
    font-family: var(--font-serif);
    letter-spacing: 0.18em;
    font-size: 1.2rem;
}

.footer p {
    color: #4d4d4d;
    font-size: 0.85rem;
}

.footer .links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.footer .links a {
    color: #4d4d4d;
}
.haut_footer{
    display: flex;
    justify-content: space-between;
}
.haut_footer h4{
    color: black;
}
.bas_footer{
    display: flex;
    justify-content: space-between;
}
.bas_footer a:hover{
    color: black;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 99999; 
    position: relative;
}

.burger span {
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Animation burger → croix */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu mobile */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 30vh; 
    height: 40vh;
    background: rgba(247, 243, 238, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    transform: translateX(100%); /* caché à droite */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    -webkit-transition:transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    -moz-transition:transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    -o-transition:transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999; /* passe au-dessus du header */
}
.mobile-nav.active {
    transform: translateX(0); /* slide depuis la droite */
    opacity: 1;
    visibility: visible;
}
.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

/* -----------------------------
   STYLE DES PAGES LÉGALES SELKA
------------------------------*/

.legal-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: #333;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #006576;
}

.legal-page p {
    margin-bottom: 18px;
    font-size: 1rem;
}

.legal-page a {
    color: #006576;
    text-decoration: underline;
}

.legal-page strong {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        margin: 50px auto;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-page h2 {
        font-size: 1.2rem;
    }
}

/* --------------------
   RESPONSIVE
---------------------*/

/* --------------------
   GRAND ÉCRAN (1440+)
---------------------*/
@media (min-width: 1440px) {
    .hero-content {
        max-width: 1400px;
    }
    .masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------
   LAPTOP (1280)
---------------------*/
@media (max-width: 1280px) {
    .section-inner {
        max-width: 1000px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------
   TABLETTE LARGE (1024)
---------------------*/
@media (max-width: 1024px) {

    /* Centrage global */
    section {
        padding: 60px 20px;
    }

    .section-inner {
        margin: 0 auto;
        padding: 0;
        max-width: 900px;
    }

    /* Sections centrées */
    .experience,
    .galerie,
    .avis,
    .faq,
    .pourquoi,
    .creer {
        align-items: center;
        text-align: center;
    }

    /* Grilles centrées */
    .masonry,
    .avis-grid,
    .grid {
        margin: 0 auto;
    }

    /* Header */
    header.nav {
        padding: 14px 20px;
    }

    header.nav > div,
    header.nav nav,
    header.nav .cta-nav {
        margin: 0;
    }
}

/* --------------------
   TABLETTE (960)
---------------------*/
@media (max-width: 960px) {

    /* Menu */
    .desktop-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    header.nav .cta-nav {
        display: none;
    }

    /* Sections */
    .experience {
        flex-direction: column;
        padding: 40px 20px;
    }

    .steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .avis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pourquoi .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insta-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --------------------
   MOBILE LARGE (768)
---------------------*/
@media (max-width: 768px) {

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        min-height: 100vh;
        padding: 40px 16px;
    }

    .hero-content {
        gap: 24px;
    }

    .masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .avis-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* --------------------
   MOBILE STANDARD (480)
---------------------*/
@media (max-width: 480px) {

    section {
        padding: 50px 20px;
         
    }

    .section-inner {
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq details {
        width: 100%;
    }

    .footer {
        padding: 40px 20px;
    }
    .haut_footer,
    .bas_footer {
        flex-direction: column; /* 🔥 empile les éléments */
        gap: 20px;
        align-items: flex-start;
    }
    
    .pourquoi .grid {
        grid-template-columns: 1fr;
        padding: 20px; /* 🔥 au lieu de 50px */
    }

    .item1,
    .item2,
    .item3,
    .item4 {
        padding: 30px; /* 🔥 au lieu de 50px */
    }
}

/* --------------------
   MOBILE PETIT (360)
---------------------*/
@media (max-width: 360px) {

    h1 {
        font-size: 1.8rem;
    }

    .insta-grid {
        grid-template-columns: 1fr;
    }

    .avis-card {
        min-height: auto;
    }
}

