/* ---------------------
   Import & Base
--------------------- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Raleway', sans-serif;
    background-color: #f0e8ff;
    background-image: radial-gradient(circle, rgb(229, 221, 251), rgba(173, 155, 220, 0.59));
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1; 
}
/* ---------------------
   Header
--------------------- */
header {
    padding: 20px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* ---------------------
   Section Accueil
--------------------- */
.accueil-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.texte-gauche {
    flex: 1;
    padding: 20px;
}

.texte-gauche h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.texte-gauche p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.btnrealisation {
     display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(46, 29, 95, 0.79);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btnrealisation:hover {
    background-color: #0e1035;
}

.image-droite {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.image-droite img {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 20px;
}

/* ---------------------
   Sections Générales
--------------------- */
section {
    padding: 60px 20px;
    text-align: center;
}

li,h3 {
    font-family: 'Anton', cursive;
    letter-spacing: 0.5px;
}

h1 {
    margin-bottom: 20px;
    font-family: 'Anton', cursive;
    font-size: 60px;
    font-weight: 800;
}

h2 {
    margin-bottom: 20px;
    font-family: 'Anton', cursive;
}

/* ---------------------
   Section Projets
--------------------- */
.projets-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-texte {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espace propre entre les projets */
}

.project-item {
    display: flex;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-img {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    color: black;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.category-badge.web { background-color: #fcd34d; }
.category-badge.com { background-color: #fca5a5; }
.category-badge.créa { background-color: #a5b4fc; }

.project-info {
    flex: 2;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #1f2937;
}

.project-info p {
    color: #4b5563;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }

    .project-img,
    .project-info {
        width: 100%;
    }
}

/* ---------------------
   Contact
--------------------- */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 100px auto 50px; /* espace sous le header */
    padding: 20px;
    gap: 40px;
}

.contact-left {
    flex: 1;
    min-width: 280px;
}

.contact-left h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-left p {
    font-size: 16px;
    color: #333;
}
.cv-button {
     display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(46, 29, 95, 0.79);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.cv-button:hover {
    background-color: #0e1035;
}
/* FORMULAIRE */
:root {
    --box-color: #f2eeff; /* 🎨 Change ici pour ta couleur encadré */
}

* {
    box-sizing: border-box;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* 🆗 Centrage vertical */
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    gap: 40px;
}

.contact-left {
    flex: 1;
    min-width: 280px;
}

.contact-left h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-left p {
    font-size: 16px;
    color: #333;
}

/* PARTIE FORMULAIRE */
.contact-right {
    flex: 1;
    min-width: 280px;
}

.contact-box {
    background-color: var(--box-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(153, 124, 216, 0.59);
    border-radius: 8px;
    font-size: 16px;
}

.contact-form button {
    padding: 15px;
    background-color: rgba(46, 29, 95, 0.79);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0e1035;
}

/* ---------------------
   Background Effects
--------------------- */
.effect-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: -1;
    animation: glow 6s infinite ease-in-out;
}

@keyframes glow {
    0%, 50%, 100% {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0));
    }
    25% {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));
    }
    75% {
        background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0));
    }
}

/*--------------------
        Page Merci
---------------------- */
.page-merci {
    background-color: #ffffff !important;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.page-merci .merci-container {
    max-width: 600px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-merci h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-merci p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.page-merci a {
    text-decoration: none;
    background-color: rgba(46, 29, 95, 0.79);
    color: #f2eeff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.page-merci a:hover {
    background-color: #0e1035;
}

/*------------
    A propos
--------------*/
.apropos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.texte-gauche {
    flex: 1;
    padding: 20px;
}

.texte-gauche h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.texte-gauche p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.cv-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(46, 29, 95, 0.79);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.cv-button:hover {
    background-color: #0e1035;
}

.image-droite {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.image-droite img {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 20px;
}

/*footer*/

.footer {
  background-color: #f8f9fa;
  padding: 20px 0;
  font-size: 14px;
  color: #333;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .footer-content p {
  margin: 0;
  margin-bottom: 10px;
}

.footer .footer-content a {
  color: #333;
  text-decoration: none;
}

.footer .footer-content a:hover {
  text-decoration: underline;
}

.footer .footer-icons a {
  margin: 0 10px;
  color: rgba(153, 124, 216, 0.59);
  font-size: 18px;
}

.footer .footer-icons a:hover {
  color: rgba(46, 29, 95, 0.79);
}

.footer-bottom {
     margin-bottom:80px;
}

 .tulipe {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 240px); /* 3 colonnes */
  grid-template-rows: repeat(1, 300px); /* 1 lignes */
  gap: 20px;
}

.interests-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 240px); /* 2 colonnes */
  grid-template-rows: repeat(1, 300px); /* 1 lignes */
  gap: 20px;
}

.interest-card {
  perspective: 1000px;
}

.interest-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.2s ease-in-out;
  transform-style: preserve-3d;
  cursor: pointer;
}

.interest-card:hover .interest-inner {
  transform: rotateY(180deg);
}

.interest-front,
.interest-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.interest-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.interest-back {
  background: #fffefe;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column; /* Ajouté pour empiler verticalement */
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  color: #000000;
}


.btn-apropos {
     display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: rgba(46, 29, 95, 0.79);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-apropos:hover {
    background-color: #0e1035;
}
