:root {
    /* Color Palette */
    --bg-color: #dbeef5;
    --primary-color: #457b9d;
    --accent-color: #e76f51;
    /* Coral/Pink for buttons/titles */
    --text-color-dark: #1d3557;
    --text-color-light: #f1faee;
    --card-bg: #457b9d;

    /* Typography */
    --font-heading: 'Abril Fatface', cursive;
    /* Example serif for headings */
    --font-body: 'Poppins', sans-serif;
    /* Example sans-serif for body */

    /* Spacing & Borders */
    --border-radius: 30px;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    margin: 20px;
    border-radius: 50px;
    /* Highly rounded header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.home-icon,
.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-icon:hover,
.search-icon:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    color: var(--text-color-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #e9c46a;
    /* Lighter shade/yellowish */
    transform: scale(1.05);
    color: var(--text-color-dark);
}

/* Navigation Active State */
nav a.active::after {
    width: 100%;
}

/* Page Title */
.page-title {
    font-size: 3rem;
    color: var(--accent-color);
    margin: 2rem 0;
    font-family: var(--font-heading);
    text-align: center;
    /* Ensure title is centered */
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    min-height: 250px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    /* More rounded as per mockup */
    height: 100%;
    /* Ensure full height */
}

/* Helper classes for the checkerboard pattern */
.about-grid .card:nth-child(1),
.about-grid .card:nth-child(4) {
    background-color: var(--card-bg);
    /* Blue background */
    color: white;
    border: none;
}

.about-grid .card:nth-child(2),
.about-grid .card:nth-child(3) {
    background-color: transparent;
    /* Light/Transparent background */
    color: var(--text-color-dark);
    border: 3px solid var(--primary-color);
    /* Blue border */
    box-shadow: none;
}

/* Placeholder Logo Styling */
.placeholder-logo {
    font-family: 'Impact', sans-serif;
    /* Thick font */
    font-size: 3rem;
    /* Larger */
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}

/* Wave Footer Section - Thick Line Style */
.wave-container {
    position: relative;
    width: 100%;
    margin-top: 50px;
    z-index: -1;
}

.wave-svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 20px;
    /* Thick stroke */
    stroke-linecap: round;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        border-radius: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== PROJETS (MAQUETTE OVERLAP) ===== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem 0 4rem;
}

/* Le bloc complet */
.project-item {
    position: relative;
    width: 100%;
    min-height: 260px;
}

/* La grande carte texte (celle avec la bordure bleue) */
.project-text {
    width: min(900px, 100%);
    margin-left: auto;
    /* pousse la carte à droite */
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 60px;
    padding: 2.5rem 2.5rem 2.5rem 260px;
    /* gros padding gauche = place pour le logo */
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

/* La carte logo (celle qui se superpose) */
.project-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 360px;
    height: 220px;
    background: var(--card-bg);
    border-radius: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

/* Variante grise du logo */
.project-logo.light {
    background: #ddd;
}

.project-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

/* Version inversée (logo à droite + texte à gauche) */
.project-item.reverse .project-text {
    margin-left: 0;
    margin-right: auto;
    padding: 2.5rem 260px 2.5rem 2.5rem;
    /* place à droite */
}

.project-item.reverse .project-logo {
    left: auto;
    right: 0;
}

/* Bouton */
.btn-small {
    padding: 0.6rem 2.2rem;
    font-size: 0.95rem;
    border-radius: 25px;
}

/* Responsive mobile : on empile */
@media (max-width: 900px) {
    .project-item {
        min-height: auto;
    }

    .project-logo {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto -30px;
        /* petit overlap vers le bas */
        height: 220px;
    }

    .project-text {
        margin: 0 auto;
        padding: 80px 1.5rem 2rem;
        /* place pour le logo au-dessus */
        border-radius: 50px;
    }

    .project-item.reverse .project-text {
        margin: 0 auto;
        padding: 80px 1.5rem 2rem;
    }

    .project-item.reverse .project-logo {
        right: auto;
    }
}


/* Contact Page Styles */
.contact-card {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 40px;
}

.contact-card input,
.contact-card textarea {
    font-family: var(--font-body);
}

.contact-card button {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.contact-card button:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Vibration Page Styles */
.vibration-intro {
    max-width: 1000px;
    margin: 4rem auto;
    position: relative;
}

.intro-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
}

.logo-box {
    background-color: #d1d1d1;
    border-radius: 40px;
    width: 300px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.desc-box {
    background-color: #dbeef5;
    /* Light blue bg */
    border: 3px solid var(--primary-color);
    border-radius: 0 40px 40px 0;
    padding: 2rem 2rem 2rem 4rem;
    /* Left padding for overlap */
    margin-left: -40px;
    /* Overlap */
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    position: relative;
    max-width: 600px;
}

.tools-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tools-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tools-icons {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tools-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: white;
    /* text/icon contrast */
    border-radius: 50%;
    /* Rounded icons */
    padding: 5px;
    /* Spacing inside circle */
}

.sun-burst {
    position: absolute;
    top: -50px;
    right: 100px;
    font-size: 5rem;
    z-index: 0;
    color: #f4a261;
    opacity: 0.5;
}

.blue-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    border-radius: 50px;
    margin: 3rem auto;
    max-width: 800px;
    font-size: 1.1rem;
}

/* Utility Class */
.text-center {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

.gallery-item {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 300px;
    /* Fixed height for equal size */
    transition: transform 0.3s ease;
    background-color: white;
    /* Optional: in case of transparency */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the area */
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Removed specific map-item and logo-mark-item sizing to ensure equality */


/* Footer Illustration */
.footer-illustration {
    background: linear-gradient(to top, #1d3557 80%, transparent);
    /* Simple gradient for building look */
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo-box {
    animation: float 4s ease-in-out infinite;
}

.sun-burst {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Vibration */
@media (max-width: 768px) {
    .intro-grid {
        flex-direction: column;
        margin-left: 0;
    }

    .desc-box {
        margin-left: 0;
        margin-top: -20px;
        border-radius: 40px;
        padding: 3rem 2rem 2rem 2rem;
        text-align: center;
    }

    .tools-container {
        align-items: center;
    }

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

    .map-item {
        grid-column: span 1;
    }
}

/* --- Home Page Redesign --- */

/* Hero Section */
.hero-section {
    margin-bottom: 5rem;
    padding-top: 2rem;
}

.hero-card {
    background-color: var(--card-bg);
    border-radius: 50px;
    height: 500px;
    position: relative;

    /* important : la carte devient le repère */
    overflow: hidden;
    /* si tu veux que tout reste dans le cadre bleu */
}

/* titre et noms AU-DESSUS de l'image */
.hero-title,
.hero-names {
    position: relative;
    z-index: 2;
}

/* couche qui prend toute la carte et centre l'image */
.hero-image-layer {
    position: absolute;
    inset: 0;
    /* = top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    /* centre vertical */
    justify-content: center;
    /* centre horizontal */
    z-index: 1;
    pointer-events: none;
}

/* image centrée, propre, sans déformation */
.hero-img {
    width: min(420px, 80%);
    height: auto;
    max-height: 95%;
    object-fit: contain;
    display: block;

    /* option : si tu veux la descendre un peu comme sur la maquette */
    transform: translateY(20px);
}

.hero-title {
    color: var(--accent-color);
    font-size: 4rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.hero-names {
    width: 100%;
    max-width: 900px;
    /* Constrain width to bring names closer */
    margin: 0 auto;
    /* Center the container */
    left: 0;
    right: 0;
    /* Ensure centering works with absolute */
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    /* Reduce padding slightly */
    position: absolute;
    top: 150px;
    z-index: 2;
}

.hero-names span {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Enlarge font size */
    color: white;
}

.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Dead center */
    width: 450px;
    height: auto;
    z-index: 10;
    /* Ensure on top if needed, but text is z-index 2. Text should be ON TOP of image? Mockup shows girl BEHIND text? No. Text is usually on top. Let's keep z-index 1 and ensure text is 2. */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    display: block;
    /* Blend mode or cropping might be needed if image has background. 
       Assuming PNG with transparency or full photo. Mockup shows cut-out style. */
}

/* Biography Section */
.bio-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 5rem;
    height: 400px;
}

.bio-photo-card {
    width: 300px;
    height: 350px;
    background-color: var(--card-bg);
    border-radius: 40px;
    border: 5px solid white;
    /* Mockup has border? */
    overflow: hidden;
    z-index: 2;
    position: absolute;
    left: 10%;
    /* Adjust positon */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text-card {
    width: 60%;
    background-color: #dbeef5;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    padding: 3rem 3rem 3rem 150px;
    /* Padding for overlap */
    margin-left: 100px;
    z-index: 1;
    text-align: center;
    position: relative;
}

.bio-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.bio-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-light {
    background-color: #ddd;
    color: var(--text-color-dark);
}

/* Projects Preview Section */
.projects-preview-section {
    position: relative;
    margin-bottom: 5rem;
}

.projects-preview-card {
    background-color: var(--card-bg);
    border-radius: 50px;
    border: 3px solid var(--primary-color);
    /* Double border look? */
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Add an outer border effect using box-shadow or container if needed */
    box-shadow: 0 0 0 10px white, 0 0 0 13px var(--primary-color);
    /* complex border hack */
}

.projects-title {
    color: white;
    /* Or light blue? Mockup shows white/light title on dark bg */
    font-size: 3rem;
}

.projects-circles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.circle-item {
    width: 150px;
    height: 150px;
    background-color: white;
    /* or light grey */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.circle-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sun-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 8rem;
    color: #f4a261;
    /* Sun color */
    z-index: 1;
    opacity: 0.5;
}

/* --- Global Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
    border-radius: 0;
    /* Full width? */
}

/* Actually, user wants it on all pages. Let's make it styled properly. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.crab-logo {
    width: 150px;
    /* Adjust size */
    opacity: 0.8;
}

.footer-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: transparent;
}

.btn-footer {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    width: 150px;
    /* Uniform width */
}

.footer-right {
    flex: 1;
    text-align: right;
}

.contact-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-list i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Responsive Redesign */
@media (max-width: 768px) {
    .hero-names {
        flex-direction: column;
        align-items: center;
        text-align: center;
        top: 100px;
    }

    .bio-section {
        flex-direction: column;
        height: auto;
    }

    .bio-photo-card {
        position: relative;
        left: 0;
        margin-bottom: -50px;
        /* Overlap downwards */
    }

    .bio-text-card {
        width: 100%;
        margin-left: 0;
        padding-top: 80px;
        /* Space for photo */
    }

    .projects-circles {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* ===== A PROPOS (MAQUETTE DAMIER) ===== */

.about-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 3rem 0 4rem;
}

.about-tile {
    border-radius: 60px;
    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2.5rem;
    text-align: center;
}

.about-tile.tile-dark {
    background: var(--primary-color);
}

.about-tile.tile-light {
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    color: var(--text-color-dark);
}

.tile-logo {
    width: 85%;
    height: 85%;
    object-fit: contain;
    display: block;
}

.about-tile.tile-light p {
    max-width: 420px;
    font-size: 1.05rem;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .about-grid-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-tile {
        min-height: 260px;
        border-radius: 45px;
        padding: 2rem;
    }

    .about-tile.tile-light p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* =========================
   CSS CONTACT (à coller dans style.css)
   Tu peux remplacer ton CSS contact actuel par ça
   ========================= */

:root {
    --bg-color: #dbeef5;
    --primary-color: #457b9d;
    --accent-color: #e76f51;
    --text-color-dark: #1d3557;
    --text-color-light: #f1faee;
    --card-bg: #457b9d;

    --font-heading: 'Abril Fatface', cursive;
    --font-body: 'Poppins', sans-serif;

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER (si tu l'as déjà, garde le tien) ===== */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    margin: 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: white;
    position: relative;
    font-weight: 500;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: .2s;
}

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

nav a.active::after {
    width: 100%;
}

/* ===== TITRE ===== */
.page-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 3.2rem;
    text-align: center;
    margin: 2.5rem 0 2rem;
}

/* =========================
   LAYOUT CONTACT (MAQUETTE)
   ========================= */
.contact-page {
    padding-bottom: 2rem;
    /* pas besoin de gros padding, la vague est dehors */
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* ---- Formulaire (gros bloc bleu) ---- */
.contact-form-card {
    background: var(--primary-color);
    border-radius: 50px;
    padding: 2.2rem;
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field label {
    display: block;
    font-weight: 500;
    margin-bottom: .4rem;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-color-dark);
}

.field textarea {
    resize: none;
    min-height: 170px;
}

.contact-send {
    margin-top: .6rem;
    border: none;
    cursor: pointer;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    border-radius: 25px;
    width: 190px;
    align-self: center;
}

/* ---- Colonne droite ---- */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: flex-start;
}

.info-card {
    width: 100%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 35px;
    padding: 1.4rem 1.6rem;
    text-align: center;
}

.info-card h2 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: .6rem;
    color: #000;
}

.info-card p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    font-size: 0.95rem;
}

/* Etoile de mer */
.starfish {
    width: 170px;
    height: auto;
    align-self: center;
    margin-top: .5rem;
}

/* ✅ VAGUE EN BAS (hors du formulaire) */
.contact-wave {
    display: block;
    width: min(1100px, 100%);
    height: auto;
    margin: 10px auto 0;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER (si tu l'as déjà, garde le tien) ===== */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
    /* important */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.crab-logo {
    width: 150px;
    opacity: .85;
}

.footer-center {
    text-align: center;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.btn-footer {
    background: var(--accent-color);
    color: white;
    padding: .5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    width: 150px;
    text-align: center;
}

.footer-right {
    text-align: right;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: .5rem;
    font-size: .9rem;
}

.contact-list i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-right {
        align-items: center;
    }

    .row-2 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* =========================
   VIBRATION (SCOPÉ -> ne casse pas les autres pages)
   ========================= */

.vibration-page .vibration-main {
    padding-bottom: 0;
}

.vibration-page .vibration-title {
    font-size: 4rem;
    margin-bottom: 1.2rem;
}

/* ----- INTRO ----- */
.vibration-page .vib-intro {
    margin-top: 0.5rem;
}

.vibration-page .vib-intro-card {
    position: relative;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 70px;
    padding: 2.2rem 2.2rem 3.2rem;
    min-height: 260px;

    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.8rem;
    align-items: center;
}

/* Logo gauche */
.vibration-page .vib-logo {
    background: #d6d6d6;
    border-radius: 55px;
    width: 260px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vibration-page .vib-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ✅ logo entier */
    object-position: center;
    /* centré */
}


/* Texte */
.vibration-page .vib-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.9rem;
    max-width: 720px;
}

.vibration-page .vib-meta {
    font-weight: 600;
    margin: 0;
}



/* Bloc logiciels (en bas à droite) */
.vibration-page .vib-tools {
    position: absolute;
    right: 30px;
    bottom: -35px;
    /* sort légèrement du cadre comme maquette */
    background: var(--primary-color);
    border-radius: 40px;
    padding: 1.1rem 1.2rem;
    color: white;
    width: 320px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.vibration-page .vib-tools-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.vibration-page .vib-tools-icons {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
}

.vibration-page .vib-tools-icons img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: white;
    border-radius: 14px;
    padding: 6px;
}

/* ----- BANDEAU ----- */
.vibration-page .vib-banner {
    margin: 2.6rem auto 2.2rem;
    width: min(920px, 100%);
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 1.2rem 1.6rem;
    text-align: center;
}

/* ----- GRID IMAGES ----- */
.vibration-page .vib-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* cartes images */
.vibration-page .vib-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
}

/* Carte du plan : pas de fond blanc */
.vibration-page .vib-plan.vib-card {
    background: transparent;
    /* ou var(--bg-color) si tu veux la couleur de la page */
    overflow: hidden;
    /* ✅ pour que les coins arrondis coupent l'image */
    border-radius: 40px;
    /* tes coins */
}



/* Logo uni (à droite du plan) */
.vibration-page .vib-mark {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.vibration-page .vib-mark img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Ligne du bas : 3 images */
.vibration-page .vib-shot {
    aspect-ratio: 16 / 10;
}

.vibration-page .vib-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* par défaut joli cadrage */
}

/* Pull : on veut voir la tête -> on cadre en haut */
.vibration-page .vib-hoodie img {
    object-position: top center;
    /* ✅ tête visible */
}

/* Flyer : tu peux centrer un peu plus si besoin */
.vibration-page .vib-flyer img {
    object-position: center;
}

/* Billboard : souvent OK en center */
.vibration-page .vib-billboard img {
    object-position: center;
}

/* Pour que les 3 images du bas prennent toute la largeur (2 colonnes) */
.vibration-page .vib-billboard,
.vibration-page .vib-hoodie,
.vibration-page .vib-flyer {
    grid-column: span 1;
}

/* On force la ligne du bas en 3 colonnes (comme ta maquette) */
@media (min-width: 900px) {
    .vibration-page .vib-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vibration-page .vib-plan {
        grid-column: span 2;
    }

    .vibration-page .vib-mark {
        grid-column: span 1;
    }
}

/* ----- Bouton ----- */
.vibration-page .vib-cta {
    display: flex;
    justify-content: center;
    margin: 2.3rem 0 1.8rem;
}

.vibration-page .vib-btn {
    border-radius: 50px;
    padding: 1rem 3rem;
}

/* ----- Bâtiment en bas ----- */
.vibration-page .vib-building {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
    pointer-events: none;
}

/* ----- Responsive mobile ----- */
@media (max-width: 900px) {
    .vibration-page .vib-intro-card {
        grid-template-columns: 1fr;
        padding-bottom: 4.6rem;
        /* place pour le bloc logiciels */
    }

    .vibration-page .vib-logo {
        width: 100%;
        height: 210px;
        margin: 0 auto;
    }

    .vibration-page .vib-tools {
        right: 50%;
        transform: translateX(50%);
        width: min(360px, 92%);
    }

    .vibration-page .vib-sun {
        right: 20px;
        top: 18px;
        width: 90px;
    }

    .vibration-page .vib-grid {
        grid-template-columns: 1fr;
    }

    .vibration-page .vib-plan,
    .vibration-page .vib-mark,
    .vibration-page .vib-shot {
        aspect-ratio: auto;
    }

    .vibration-page .vib-plan img {
        height: 320px;
        /* pour garder une bonne lisibilité */
    }

    .vibration-page .vib-shot img {
        height: 260px;
    }
}

/* =========================
   FIX PAGE VIBRATION UNIQUEMENT
   ========================= */

.page-vibration .logo-box {
    width: 320px;
    height: 240px;
    padding: 20px;
}

.page-vibration .logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* montre le logo en entier */
}

.page-vibration .vibration-intro {
    position: relative;
}

.page-vibration .sun-burst {
    position: absolute;
    top: -35px;
    /* au-dessus de la ligne */
    right: 120px;
    width: 140px;
    height: auto;
    z-index: 3;
}

/* =========================
   ACCUEIL (scopé) -> ne casse pas les autres pages
   ========================= */

.home-page .hero-section {
    padding-top: 1rem;
}

.home-page .hero-card {
    border-radius: 70px;
}

/* --- HERO : plus proche maquette --- */
.home-page .hero-title {
    font-size: 4.6rem;
    margin-top: 2.2rem;
    letter-spacing: 3px;
}

.home-page .hero-names {
    top: 170px;
    max-width: 980px;
    padding: 0 3rem;
}

.home-page .hero-names span {
    font-size: 4rem;
}

/* image un peu plus "posée" comme la maquette */
.home-page .hero-img {
    width: min(440px, 85%);
    transform: translateY(35px);
}

/* --- BIO : overlap + bordures plus "maquette" --- */
.home-page .bio-section {
    margin-bottom: 4.2rem;
    height: 430px;
}

.home-page .bio-photo-card {
    left: 12%;
    border-radius: 55px;
    border: 6px solid #fff;
}

.home-page .bio-text-card {
    width: min(860px, 100%);
    margin-left: 140px;
    border-radius: 70px;
    padding: 3.2rem 3.2rem 3.2rem 170px;
}

/* --- PROJETS : double bordure + soleil placé comme la maquette --- */
.home-page .projects-preview-section {
    position: relative;
    margin-bottom: 5rem;
}

/* carte principale : un peu plus arrondie + look maquette */
.home-page .projects-preview-card {
    border-radius: 70px;
    padding: 3.2rem 3rem;
    box-shadow: 0 0 0 10px white, 0 0 0 14px var(--primary-color);
}

/* SOLEIL bas droite (extérieur de la carte, comme sur la maquette) */
.home-page .projects-preview-section .sun-decoration {
    position: absolute;
    right: -55px;
    bottom: -55px;
    font-size: 10rem;
    color: #f4a261;
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

/* pour être sûr que la carte est au-dessus du soleil */
.home-page .projects-preview-card {
    position: relative;
    z-index: 2;
}

/* --- Responsive accueil --- */
@media (max-width: 768px) {
    .home-page .hero-card {
        height: 520px;
    }

    .home-page .hero-title {
        font-size: 3.2rem;
        margin-top: 1.6rem;
    }

    .home-page .hero-names {
        top: 110px;
        padding: 0 1.2rem;
    }

    .home-page .hero-names span {
        font-size: 3rem;
    }

    .home-page .hero-img {
        width: min(340px, 85%);
        transform: translateY(35px);
    }

    /* BIO en mode "maquette mobile" */
    .home-page .bio-section {
        height: auto;
        padding-bottom: 1.5rem;
    }

    .home-page .bio-photo-card {
        position: relative;
        left: 0;
        margin: 0 auto -55px;
    }

    .home-page .bio-text-card {
        width: 100%;
        margin-left: 0;
        padding: 4.5rem 1.8rem 2.2rem;
        border-radius: 60px;
    }

    /* soleil : pas trop dehors sur mobile */
    .home-page .projects-preview-section .sun-decoration {
        right: -25px;
        bottom: -25px;
        font-size: 7rem;
    }
}


/* =========================
   HOME (MAQUETTE) - NE TOUCHE QUE L’ACCUEIL
   ========================= */

.home-page .home-main {
    padding-bottom: 2rem;
}

/* ---------- HERO ---------- */
.home-page .home-hero {
    margin: 1.2rem 0 2.2rem;
}

.home-page .home-hero-card {
    position: relative;
    height: 520px;
    background: var(--card-bg);
    border-radius: 70px;
    overflow: hidden;
}

.home-page .home-hero-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-align: center;
    font-size: 4.2rem;
    margin-top: 2.2rem;
    letter-spacing: 3px;
}

/* NOMS : mieux positionnés */
/* NOMS : mieux positionnés */
.home-page .home-hero-names {
    position: absolute;
    top: 145px;
    /* Légèrement plus bas pour l'équilibre */
    left: 0;
    width: 100%;
    /* Prend toute la largeur */
    display: flex;
    justify-content: center;
    /* Centré */
    gap: 24rem;
    /* Espace restauré pour Pasgrimaud */
    z-index: 3;
    pointer-events: none;
}

.home-page .home-hero-names span {
    font-family: var(--font-heading);
    color: white;
    font-size: 3.6rem;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
    /* Ne pas réduire/agrandir */
}

/* Move Océane closer to center (Right) without moving Pasgrimaud */
.home-page .home-hero-names span:first-child {
    transform: translateX(6rem);
    /* Bring Océane closer */
}

/* option : sur écrans moyens, on rapproche encore */
/* option : sur écrans moyens, on rapproche */
@media (max-width: 1100px) {
    .home-page .home-hero-names {
        gap: 18rem;
    }
}


.home-page .home-hero-img {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: min(420px, 85%);
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

/* ---------- GRAND BOARD (BIO + PROJETS + SOLEIL) ---------- */
.home-page .home-board {
    margin-top: 1.4rem;
}

.home-page .home-board-frame {
    position: relative;
    border-radius: 70px;
    padding: 2.2rem;
    /* double bordure style maquette */
    box-shadow: 0 0 0 10px #fff, 0 0 0 14px var(--primary-color);
    background: transparent;
}

/* ---------- BIO (photo à gauche + texte à droite) ---------- */
.home-page .home-bio {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.6rem;
    align-items: center;
    margin-bottom: 2.2rem;
}

.home-page .home-bio-photo {
    background: var(--card-bg);
    border-radius: 55px;
    padding: 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.home-page .home-bio-photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 45px;
    border: 6px solid #fff;
}

.home-page .home-pill {
    background: #fff;
    color: var(--accent-color);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    display: inline-block;
}

.home-page .home-bio-card {
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 70px;
    padding: 2.2rem 2.2rem;
    text-align: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.home-page .home-bio-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 0.6rem;
}

.home-page .home-bio-text {
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.home-page .home-bio-btn {
    width: 170px;
    margin: 0.6rem auto 0;
}

/* ---------- PROJETS (carte en bas gauche) ---------- */
.home-page .home-projects {
    display: flex;
    justify-content: flex-start;
}

.home-page .home-projects-card {
    width: min(760px, 100%);
    background: var(--card-bg);
    border-radius: 70px;
    padding: 2rem 2rem 2.2rem;
    border: 3px solid var(--primary-color);
    text-align: center;
}

.home-page .home-projects-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.4rem;
}

.home-page .home-projects-circles {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
}

.home-page .home-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.home-page .home-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-page .home-projects-btn {
    width: 190px;
    margin: 0 auto;
}

/* ---------- SOLEIL (bas droite du board) ---------- */
.home-page .home-sun {
    position: absolute;
    right: 35px;
    bottom: 35px;
    font-size: 6.5rem;
    color: var(--accent-color);
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .home-page .home-hero-card {
        height: 520px;
    }

    .home-page .home-hero-title {
        font-size: 3.2rem;
    }

    .home-page .home-hero-names {
        top: 120px;
    }

    .home-page .home-hero-names span {
        font-size: 3rem;
    }

    .home-page .home-bio {
        grid-template-columns: 1fr;
    }

    .home-page .home-projects {
        justify-content: center;
    }

    .home-page .home-projects-circles {
        gap: 1rem;
    }

    .home-page .home-sun {
        right: 15px;
        bottom: 15px;
        font-size: 5rem;
    }
}

@media (max-width: 520px) {
    .home-page .home-circle {
        width: 120px;
        height: 120px;
    }
}

/* =========================
   SEARCH OVERLAY
   ========================= */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 53, 87, 0.95);
    /* Dark transparent blue */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    width: min(800px, 90%);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

#close-search:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

#search-input {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 3rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 0;
    outline: none;
    text-align: center;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#search-input:focus {
    border-bottom-color: var(--accent-color);
}

#search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
}

.search-result-item:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(10px);
}

.no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}