/* --- Styles Généraux --- */
:root {
    --violet-dark: #3E2F6F;
    --violet-soft: #5E5AA6;
    --terracotta: #BD5C57;
    --fuchsia: #8E2C73;
    --sage: #7C8F74;
    --beige: #FCF5E8;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--beige);
    color: var(--violet-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
}

/* Background decorative elements - Grid pattern with thin green lines */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(124, 143, 116, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 143, 116, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.section-padding { padding: 100px 0; }

/* --- Navigation --- */
.navbar {
    background: var(--beige);
}

.navbar a {
    color: var(--violet-dark);
}

.navbar a:hover {
    color: var(--fuchsia);
}
.navbar-brand { letter-spacing: 2px; }
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
}
/* --- Hero Section Responsive --- */
.hero {
    width: 100%;
    height: auto;                  /* s'adapte à la hauteur de l'image */
    min-height: 300px;             /* hauteur minimale */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px;             /* espace en haut */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;              /* marge en haut de l'image */
}

/* Conteneur texte + bouton centré */
.hero-content {
    z-index: 2;                     /* devant l'image */
    color: white;
    padding: 0 20px;
    width: 100%;                    /* pleine largeur */
    display: flex;
    justify-content: center;       /* centre horizontalement */
    margin-top: 50px;              /* espace sous l'image hero */
    position: relative;
}


/* Bouton centré */
.btn-custom {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--terracotta);
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: none;
}

.btn-custom:hover {
    background: var(--fuchsia);
    transform: translateY(-3px);
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {
    .hero {
        height: 60vh;               /* réduit sur petit écran */
    }
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}
/* Bouton centré */
.btn-custom {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--terracotta);
    color: white;
    transition: 0.3s;
    border: none;
    text-decoration: none;
}

.btn-custom:hover {
    background: var(--fuchsia);
    transform: translateY(-3px);
}
/* Carte service plus large et lisse */
.service-card {
    background: var(--white);
    border-radius: 25px;               /* coins plus arrondis */
    padding: 50px 30px;                /* plus d’espace intérieur */
    transition: 0.4s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07); /* ombre légère par défaut */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;                     /* prend toute la hauteur de la colonne */
}

/* Hover plus doux et pro */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(146,44,113,0.3); /* ombre plus visible en rose foncé */
}

/* Icônes plus grandes, espacées et couleurs douces */
.service-icon {
    font-size: 3.5rem;               /* taille plus impactante */
    margin-bottom: 25px;
    color: var(--terracotta);        /* couleur cohérente */
    transition: color 0.3s;
}

.service-card:hover .service-icon {
    color: var(--fuchsia);           /* changement couleur au hover */
}

/* Titres améliorés */
.service-card h3 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--violet-dark);
}
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* garde le reste pareil */
}
/* Paragraphe texte */
.service-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}
/* --- Section Portfolio --- */
#portfolio {
    background-color: #322462;      /* fond violet profond */
    padding: 100px 0;
    color: #E8E1D5;                 /* texte par défaut */
    text-align: center;
}

/* Titre Portfolio avec ombre moderne et concentrée */
#portfolio h2 {
    color: #E8E1D5;                 /* couleur terracotta */
    font-weight: 800;
    margin-bottom: 60px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.0);
}
/* --- Portfolio Item --- */
.portfolio-item {
    cursor: pointer;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 450px;                   /* cartes plus longues */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Image */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
}

/* Hover moderne */
.portfolio-item:hover img {
    transform: scale(1.08) rotate(1deg); /* léger zoom + rotation subtile */
    filter: brightness(0.85);            /* contraste plus marqué */
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(146,44,113,0.4); /* ombre dynamique */
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay text */
.portfolio-overlay h4 {
    color: #E8E1D5;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #E8E1D5;
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Contact --- */
#contact {
    background: linear-gradient(135deg, rgba(62, 47, 111, 0.03) 0%, rgba(189, 92, 87, 0.05) 100%);
    position: relative;
}

.contact-card {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(62, 47, 111, 0.12);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--violet-soft), var(--terracotta), var(--fuchsia));
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(62, 47, 111, 0.04);
    transition: 0.3s;
}

.contact-info-item:hover {
    background: rgba(62, 47, 111, 0.1);
    transform: translateY(-5px);
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--terracotta);
    margin-bottom: 15px;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--violet-dark);
    margin-bottom: 8px;
}

.contact-info-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.contact-info-item a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

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

/* Form improvements */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--violet-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-form .form-control {
    border: 2px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 0;
    background: var(--beige);
    transition: 0.3s;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--violet-soft);
    box-shadow: 0 0 0 4px rgba(94, 90, 166, 0.1);
    background: var(--white);
    outline: none;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Social connect section */
.social-connect {
    margin-top: 50px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(62, 47, 111, 0.1);
}

.social-connect h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--violet-dark);
    margin-bottom: 25px;
}

.social-connect .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-connect .social-links a {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--violet-soft);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-connect .social-links a:hover {
    background: var(--terracotta);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(189, 92, 87, 0.4);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 40px 25px;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Form button */
.btn-submit {
    display: inline-block;
    padding: 18px 50px;
    border-radius: 50px;
    background: #5b5699;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(91, 86, 153, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(91, 86, 153, 0.5);
}

footer {
    background: var(--violet-dark);
    color: var(--white);
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.social-links a {
    color: white;
    font-size: 1.2rem;
    margin: 0 15px;
    transition: 0.3s;
    opacity: 0.7;
}
.social-links a:hover { opacity: 1; transform: scale(1.2); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}
.project-carousel {
    max-width: 700px; /* Réduit la largeur du carousel */
    margin: 0; /* Aligné à gauche */
}

.project-carousel .carousel-inner .row {
    align-items: flex-start;
}

.project-carousel .carousel-item .col-md-6 img {
    height: 350px; /* Réduit la taille de l'image */
    object-fit: cover;
}
.project-carousel .carousel-item .col-md-6:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    .project-carousel {
        max-width: 100%;
    }
    .project-carousel .carousel-item img {
        height: 250px;
    }
}

/* --- Section Apropos --- */
#apropos {
    background-color: #922c71;
    padding: 100px 0;
    color: #E8E1D5;
    text-align: center;
}

/* Profile Image Animation - Modern & Sleek */
.profile-img-container {
    position: relative;
    display: inline-block;
}

.profile-img-container img {
    border-radius: 50%;
    border: 3px solid rgba(232, 225, 213, 0.4);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-img-container:hover img {
    transform: scale(1.1);
}

/* Modern corner accents */
.profile-img-container::before,
.profile-img-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(232, 225, 213, 0.6);
    transition: all 0.4s ease;
}

.profile-img-container::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.profile-img-container::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.profile-img-container:hover::before {
    top: -5px;
    left: -5px;
    width: 40px;
    height: 40px;
}

.profile-img-container:hover::after {
    bottom: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
}

/* Navbar brand matching projet-branding */
.navbar-brand { 
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
}
