/* ========== CUSTOM FONTS ========== */
@font-face {
  font-family: "CooperFiveOpti";
  src: url("fonts/CooperFiveOpti-Black 2.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

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

:root {
  --beige: #f6ead5;
  --blue: #90a6c9;
  --burgundy: #5b141d;
  --red-light: #eb3b51;
  --black-overlay: rgba(30, 30, 28, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--burgundy);
  background-color: var(--beige);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

h1, h2 {
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
}

/* ========== HEADER ========== */
.header {
  background-color: var(--beige);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 35px;
}

.nav-link {
  color: var(--burgundy);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition:
    color 0.3s,
    transform 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #90a6c9;
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.nav-link:hover {
  color: var(--burgundy);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link:active {
  transform: scale(0.95);
}

.nav-link.active,
.nav-link.up-current {
  color: var(--burgundy);
  font-weight: 600;
}

.nav-link.active::after,
.nav-link.up-current::after {
  width: 100%;
  left: 0;
}

/* Burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 2px;
  background-color: var(--burgundy);
  transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

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

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO ========== */
.hero {
  background-color: var(--beige);
  text-align: center;
  padding: 160px 30px 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco {
  position: absolute;
}

.deco-flower-1 {
  top: 15%;
  left: 5%;
  width: 45px;
}

.deco-flower-2 {
  bottom: 10%;
  right: 8%;
  width: 50px;
}

.deco-circle-big {
  top: 20%;
  right: 12%;
  width: 45px;
}

.deco-circle-med {
  bottom: 25%;
  left: 15%;
  width: 30px;
}

.deco-circle-small {
  top: 40%;
  right: 25%;
  width: 18px;
}

.deco-circle-red {
  bottom: 15%;
  left: 30%;
  width: 15px;
}

.deco-circle-red2 {
  top: 30%;
  left: 20%;
  width: 20px;
}

.deco-circle-red-big {
  bottom: 20%;
  right: 18%;
  width: 35px;
}

.hero-titre {
  position: relative;
  z-index: 2;
  max-width: 880px;
  width: 85%;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* ========== ABOUT SECTION ========== */
.about {
  background-color: var(--burgundy);
  padding: 70px 30px;
  position: relative;
  overflow: visible;
}

.about-container {
  max-width: 1050px;
  margin: 0 auto;
}

.about-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

/* Photo de profil avec forme organique */
.about-photo-container {
  flex-shrink: 0;
  position: relative;
  width: 270px;
  height: 270px;
}

.about-photo-wrapper {
  width: 250px;
  height: 250px;
  border-radius: 42% 58% 65% 35% / 45% 55% 45% 55%;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.2);
}

.about-photo-flower {
  position: absolute;
  top: -10px;
  right: -5px;
  width: 55px;
  height: 55px;
  z-index: 2;
}

.about-text {
  position: relative;
}

.about-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 15px;
}

.about-flower {
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
}

.about-top-flower-large {
  position: absolute;
  top: 30px;
  right: 130px;
  width: 85px;
  height: 85px;
  z-index: 2;
}

.about-top-flower-small {
  position: absolute;
  top: -80px;
  right: -85px;
  width: 220px;
  height: 220px;
  z-index: 2;
}

.about-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--beige);
  margin-bottom: 30px;
}

.about-me-label {
  color: var(--red-light);
  font-family: "Poppins", sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 10px 0 40px;
  text-align: right;
}

/* ========== BLUE BUTTONS (labeled) ========== */
.blue-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-blue-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 25px;
  background-color: var(--blue);
  color: var(--beige);
  font-size: 0.8rem;
  font-weight: 500;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-blue-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

/* Footer social buttons (round) */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--beige);
  font-size: 0.8rem;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

/* ========== FORMATION & EXPERIENCE ========== */
.formation-experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.section-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 25px;
}

.entry {
  margin-bottom: 22px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-title {
  font-family: "CooperFiveOpti", sans-serif;
  color: var(--red-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-subtitle {
  color: var(--beige);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.entry-text {
  color: var(--beige);
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.85;
}

.entry-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.entry-text ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  color: var(--beige);
  font-size: 0.8rem;
  line-height: 1.5;
}

.entry-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--blue);
}

.entry-date {
  display: inline-block;
  background-color: var(--blue);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
}

/* ========== COMPETENCES ========== */
.competences {
  background-color: var(--beige);
  padding: 60px 30px;
  position: relative;
  z-index: 1;
}

.competences-container {
  max-width: 1200px;
  margin: 0 auto;
}

.competences-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 40px;
}

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

.competence-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  border: 3.5px solid var(--burgundy);
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease;
}

.competence-card:hover {
  transform: scale(1.04);
}

.card-flower {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.card-flower-bl {
  bottom: -30px;
  left: -30px;
}

.card-flower-blp {
  bottom: -40px;
  left: 10px;
  width: 20px;
  height: 20px;
}

.card-flower-tr {
  top: -30px;
  right: -30px;
  width: 70px;
  height: 70px;
}

.card-flower-r {
  top: 20%;
  right: -35px;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
}

.card-flower-bl2 {
  bottom: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
}

.competence-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 15px;
}

.competence-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  text-align: left;
}

.competence-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: var(--burgundy);
  line-height: 1.4;
}

.competence-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--blue);
}

.competence-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--burgundy);
}

.icon-badge.icon-ai {
  background-color: #ff9a00;
}

.icon-badge.icon-ps {
  background-color: #31a8ff;
}

.icon-badge.icon-id {
  background-color: #ff3366;
}

.icon-badge.icon-figma {
  background-color: #a259ff;
}

.icon-badge.icon-xd {
  background-color: #ff61f6;
}

.icon-software {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

/* ========== PROJETS ========== */
.projets {
  background-color: var(--burgundy);
  padding: 60px 30px;
  position: relative;
  z-index: 2;
}

.projets-flower-deco {
  position: absolute;
  top: -60px;
  left: -70px;
  width: 200px;
  height: 200px;
  z-index: 3;
  transform: rotate(-50deg);
}

.projets-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projets-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 35px;
}

.projets-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

.projets-track {
  position: relative;
  width: 1100px;
  height: 520px;
}

.projet-card {
  width: 370px;
  height: 370px;
  border-radius: 15px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.projet-card.active-card {
  transform: translate(-50%, calc(-50% - 20px)) scale(1.241);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.projet-card.side-card-left {
  transform: translate(calc(-50% - 330px), -50%) scale(0.88);
  opacity: 0.7;
  pointer-events: auto;
  z-index: 2;
}

.projet-card.side-card-right {
  transform: translate(calc(-50% + 330px), -50%) scale(0.88);
  opacity: 0.7;
  pointer-events: auto;
  z-index: 2;
}

.projet-card.hidden-card {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

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

.projet-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--black-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.projet-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--beige);
  text-align: center;
  line-height: 1.3;
}

.projet-card:hover .projet-overlay {
  opacity: 0;
}

.projet-card-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.projet-card-disabled .projet-img {
  filter: grayscale(30%);
}

.projet-card-disabled .projet-overlay {
  opacity: 0.75;
  flex-direction: column;
  gap: 8px;
}

/* Carousel arrows */
.carousel-arrow {
  background-color: #F6EAD5;
  border: none;
  color: #90A6C9;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  flex-shrink: 0;
  min-width: 45px;
  position: relative;
  z-index: 10;
}

.carousel-arrow svg {
  stroke-width: 3.5 !important;
}

.carousel-arrow-left {
  margin-left: 0px;
}

.carousel-arrow-right {
  margin-right: 0px;
}


.carousel-arrow:hover {
  background-color: #e8dcc8;
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--beige);
  opacity: 0.3;
  cursor: pointer;
  transition:
    opacity 0.3s,
    background-color 0.3s;
}

.dot.active {
  opacity: 1;
  background-color: var(--blue);
}

/* ========== CONTACT CTA ========== */
.contact-cta {
  background-color: var(--beige);
  padding: 50px 30px 40px;
  text-align: center;
}

.contact-cta-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.contact-cta-text {
  font-size: 0.9rem;
  color: var(--burgundy);
  margin-bottom: 25px;
}

.contact-cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta .contact-form {
  margin: 0 auto;
  text-align: left;
}

.btn-contact {
  display: inline-block;
  background-color: var(--blue);
  color: var(--beige);
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--burgundy);
  padding: 40px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 75px;
  align-items: center;
  justify-content: center;
}

.footer-left {
  flex: 0 0 auto;
  text-align: center;
}

.footer-logo {
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.footer-copyright {
  color: var(--beige);
  font-size: 0.85rem;
  margin-top: 20px;
}

.footer-right {
  flex: 0 0 auto;
  display: flex;
  gap: 35px;
  align-items: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer-section-title {
  color: var(--beige);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
}

.footer-link {
  color: var(--beige);
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-divider {
  width: 2px;
  height: 80px;
  background-color: rgba(246, 234, 213, 1);
  margin: 0 30px;
  border-radius: 1px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ========== PAGE HERO (Realisations title) ========== */
.page-hero {
  background-color: var(--beige);
  padding: 50px 30px 40px;
  text-align: center;
}

.page-hero-container {
  position: relative;
  display: inline-block;
}

.page-hero-decos .deco {
  position: absolute;
}

.deco-title-1 {
  top: -10px;
  left: 30%;
  width: 14px;
}

.deco-title-2 {
  bottom: 5px;
  left: 10%;
  width: 10px;
}

.deco-title-3 {
  top: -5px;
  right: -30px;
  width: 30px;
}

.deco-title-4 {
  bottom: -10px;
  right: -15px;
  width: 25px;
}

.deco-title-5 {
  top: 50%;
  left: -20px;
  width: 12px;
}

.page-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--burgundy);
}

.page-hero-titre {
  max-width: 600px;
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== REALISATIONS GRID ========== */
.realisations {
  background-color: var(--beige);
  padding: 30px 30px 70px;
}

.realisations-container {
  max-width: 1200px;
  margin: 0 auto;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.realisation-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  cursor: pointer;
}

.realisation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.realisation-card:hover .realisation-img {
  transform: scale(1.05);
}

.realisation-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--black-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.realisation-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--beige);
  text-align: center;
  line-height: 1.3;
}

.realisation-card:hover .realisation-overlay {
  opacity: 0;
}

.realisation-card-disabled {
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

.realisation-card-disabled .realisation-img {
  filter: grayscale(30%);
}

.realisation-message {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--beige);
  text-align: center;
}

.realisation-card-disabled .realisation-overlay {
  flex-direction: column;
  gap: 8px;
}

/* ========== CONTACT CTA BLUE (Realisations page) ========== */
.contact-cta-blue {
  background-color: var(--blue);
  padding: 60px 30px;
  text-align: center;
}

.contact-cta-blue-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta-blue-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 10px;
}

.contact-cta-blue-text {
  font-size: 0.9rem;
  color: var(--beige);
  margin-bottom: 30px;
}

.contact-cta-blue-form {
  margin-bottom: 25px;
}

.input-email {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border: 2px solid var(--beige);
  border-radius: 8px;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--burgundy);
  outline: none;
}

.input-email::placeholder {
  color: #999;
}

.input-email:focus {
  border-color: var(--burgundy);
}

.contact-cta-blue-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-burgundy {
  display: inline-block;
  background-color: var(--burgundy);
  color: var(--beige);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    transform 0.3s,
    opacity 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(91, 20, 29, 0.3);
}

.btn-burgundy:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(91, 20, 29, 0.5);
}

.btn-voir-maquettes {
  display: inline-block;
  align-self: flex-start;
  background-color: #90A6C9;
  color: #F6EAD5;
  padding: 14px 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 50px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-voir-maquettes:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

/* ========== FOOTER NAV BUTTONS ========== */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-footer-nav {
  display: inline-block;
  background-color: var(--blue);
  color: var(--beige);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  transition:
    transform 0.3s,
    opacity 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-footer-nav:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

/* ========== CONTACT PAGE ========== */
.contact-section {
  background-color: var(--burgundy);
}

.contact-split {
  display: flex;
  min-height: 80vh;
}

.contact-form-side {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 10px;
}

.contact-form-text {
  font-size: 0.9rem;
  color: var(--beige);
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 550px;
}

.contact-form-side .contact-form {
  max-width: 480px;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 3.5px solid var(--burgundy);
  border-radius: 10px;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--burgundy);
  outline: none;
}

.input-field::placeholder {
  color: #999;
}

.input-textarea {
  min-height: 280px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  align-self: flex-start;
  background-color: #5B141D;
  color: var(--beige);
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

.contact-form-side .btn-submit {
  background-color: #90A6C9;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 1.2em;
}

.form-status.success {
  color: #a8d5a2;
}

.form-status.error {
  color: var(--red-light);
}

.contact-image-side {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.contact-image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

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

/* Footer beige (contact page) */
.footer-beige {
  background-color: var(--beige);
  padding: 40px 30px;
}

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

.footer-copyright-dark {
  color: var(--burgundy) !important;
}

.footer-section-title-dark {
  color: var(--burgundy) !important;
}

.footer-link-dark {
  color: var(--burgundy) !important;
}

.footer-link-dark:hover {
  opacity: 0.7;
}

.footer-divider-dark {
  background-color: rgba(63, 13, 19, 1) !important;
}

.footer-flower {
  width: 35px;
  margin: 10px auto 0;
}

.footer-logo-beige {
  height: 100px !important;
}

.btn-footer-nav-dark {
  display: inline-block;
  background-color: var(--burgundy);
  color: var(--beige);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  transition:
    transform 0.3s,
    opacity 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(91, 20, 29, 0.3);
}

.btn-footer-nav-dark:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(91, 20, 29, 0.5);
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #3F0D13;
  opacity: 0;
  visibility: hidden;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
}

.scroll-to-top.show {
  opacity: 0.5;
  visibility: visible;
}

.scroll-to-top:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #F6EAD5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== RESPONSIVE ========== */

/* Tablette */
@media (max-width: 900px) {
  .hero-titre {
    width: 90%;
  }

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

  .competences-grid .competence-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .projet-card {
    width: 210px;
    height: 210px;
  }

  .projet-card.active-card {
    transform: translate(-50%, calc(-50% - 15px)) scale(1.286);
  }

  .projet-card.side-card-left {
    transform: translate(calc(-50% - 250px), -50%) scale(0.88);
  }

  .projet-card.side-card-right {
    transform: translate(calc(-50% + 250px), -50%) scale(0.88);
  }

  .projets-track {
    width: 640px;
    height: 340px;
  }

  .projets-carousel {
    gap: 0;
  }

  .formation-experience {
    gap: 35px;
  }

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

  .contact-form-title {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

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

  .footer-right {
    justify-content: center;
    gap: 40px;
  }

  .footer-divider {
    height: 1px;
    width: 100px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 650px) {
  /* Header */
  .burger-menu {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--beige);
    padding: 20px 30px;
    gap: 15px;
    border-top: 1px solid rgba(91, 20, 29, 0.1);
    z-index: 99;
  }

  .nav-list.open {
    display: flex;
  }

  .nav {
    position: relative;
  }

  /* Header transparent mobile - fix text visibility */
  .header-transparent .nav-list .nav-link {
    color: var(--burgundy);
  }

  .header-transparent .nav-list .nav-link:hover {
    color: var(--burgundy);
  }

  .header-transparent .nav-list .nav-link::after {
    background-color: var(--burgundy);
  }

  .header-transparent .nav-list .nav-link.active,
  .header-transparent .nav-list .nav-link.up-current {
    color: var(--burgundy);
    font-weight: 600;
  }

  .header-transparent .nav-list .nav-link.active::after,
  .header-transparent .nav-list .nav-link.up-current::after {
    background-color: var(--burgundy);
  }

  /* Hero */
  .hero {
    padding: 30px 20px 40px;
  }

  .hero-titre {
    width: 95%;
  }

  .deco-circle-big {
    width: 30px;
  }

  /* About */
  .about {
    padding: 50px 20px;
  }

  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo-container {
    width: 170px;
    height: 170px;
  }

  .about-photo-wrapper {
    width: 150px;
    height: 150px;
  }

  .about-title {
    font-size: 1.7rem;
  }

  .about-me-label {
    text-align: center;
  }

  .blue-buttons {
    justify-content: center;
  }

  /* Formation */
  .formation-experience {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Compétences */
  .competences {
    padding: 50px 20px;
  }

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

  .competences-grid .competence-card:last-child {
    max-width: 100%;
  }

  /* Projets */
  .projets {
    padding: 50px 20px;
  }

  .projets-flower-deco {
    display: none;
  }



  .projets-carousel {
    gap: 10px;
  }

  .projets-carousel .carousel-arrow {
    display: flex !important;
    visibility: visible !important;
  }

  .projets-track {
    position: relative;
    width: 100%;
    height: 280px;
  }

  .projet-card {
    width: 240px;
    height: 240px;
  }

  .projet-card.active-card {
    transform: translate(-50%, calc(-50% - 15px)) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .projet-card.side-card-left {
    transform: translate(calc(-50% - 250px), -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }

  .projet-card.side-card-right {
    transform: translate(calc(-50% + 250px), -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }

  .projet-card.hidden-card {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }

  .projet-overlay {
    display: none;
  }

  .carousel-dots {
    display: none;
  }

  /* Carousel autres projets responsive */
  .projet-autres-carousel {
    flex-direction: column;
    gap: 15px;
  }

  .projet-autres-track {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    height: auto;
    width: 100%;
  }

  .projet-autres-card,
  .projet-autres-card.active-card,
  .projet-autres-card.side-card-left,
  .projet-autres-card.side-card-right,
  .projet-autres-card.hidden-card {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  .carousel-arrow {
    display: none !important;
  }

  .carousel-dots-autres {
    display: none;
  }

  .projet-name {
    font-size: 1.1rem;
  }

  /* Contact CTA */
  .contact-cta-title {
    font-size: 1.6rem;
  }

  /* Realisations */
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .contact-cta-blue-title {
    font-size: 1.7rem;
  }

  /* Contact page */
  .contact-split {
    flex-direction: column;
  }

  .contact-form-side {
    padding: 40px 20px;
  }

  .contact-image-side {
    height: 300px;
  }

  .contact-form-title {
    font-size: 1.8rem;
  }
}

/* ========== PAGES PROJET ========== */

/* Navbar transparente sur les pages projet */
.header-transparent {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: none;
}

.header-transparent .nav-link {
  color: var(--beige);
}

.header-transparent .nav-link:hover {
  color: var(--beige);
  opacity: 0.8;
}

.header-transparent .nav-link::after {
  background-color: rgba(246, 234, 213, 0.7);
}

.header-transparent .nav-link.active {
  color: var(--beige);
}

.header-transparent .burger-menu span {
  background-color: var(--beige);
}

.projet-hero {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
}

.projet-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projet-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: max(30px, calc((100% - 1200px) / 2));
  padding-right: max(30px, calc((100% - 1200px) / 2));
}

.projet-hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.projet-hero-desc {
  font-size: 1rem;
  color: var(--beige);
  margin-bottom: 22px;
  max-width: 480px;
  line-height: 1.6;
  opacity: 0.9;
}

.projet-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-back-projets {
  position: absolute;
  top: 95px;
  left: max(30px, calc((100% - 1200px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--beige);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.2s;
  z-index: 10;
}

.btn-back-projets:hover {
  background: rgba(91, 20, 29, 0.55);
}

.projet-tag {
  background-color: var(--blue);
  color: var(--beige);
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.projet-tag:hover {
  opacity: 0.85;
}

/* Section présentation + missions */
.projet-intro {
  background-color: var(--beige);
  padding: 75px 30px;
}

.projet-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.projet-presentation h2,
.projet-missions h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 22px;
}

.projet-presentation p,
.projet-missions p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--burgundy);
}

.projet-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.projet-badge {
  background-color: var(--burgundy);
  color: var(--beige);
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

.projet-badge-blue {
  background-color: var(--blue);
}

.projet-missions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.projet-missions li {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--burgundy);
  padding-left: 20px;
  position: relative;
}

.projet-missions li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1.7;
}

.projet-presentation-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 24px;
  display: block;
  object-fit: cover;
  max-height: 260px;
}

/* Section supports */
.projet-supports {
  background-color: var(--burgundy);
  padding: 75px 30px;
}

.projet-supports-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projet-supports > .projet-supports-container > h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 45px;
}

.projet-subsection {
  margin-bottom: 55px;
}

.projet-subsection:last-child {
  margin-bottom: 0;
}

.projet-subsection h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #F6EAD5;
  margin-bottom: 12px;
}

.projet-subsection p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--beige);
  opacity: 0.85;
  max-width: 750px;
  margin-bottom: 28px;
}

.projet-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.projet-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.projet-gallery-grid-tall img {
  aspect-ratio: 2 / 3;
}

.projet-maquettes-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.maquettes-row {
  display: grid;
  gap: 18px;
  align-items: center;
  min-height: 250px;
}

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

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

.projet-maquettes-grid img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.projet-brandbook-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.projet-brandbook-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.projet-brandbook-desc p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--beige);
  opacity: 0.85;
  margin-bottom: 0;
}

.projet-brandbook-desc ul {
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--beige);
  opacity: 0.85;
}

.projet-brandbook-layout img {
  width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
}

.projet-brandbook-imgs {
  display: flex;
  gap: 12px;
}

.projet-brandbook-imgs img {
  flex: 1;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.projet-trois-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.projet-trois-colonnes img {
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.projet-single-img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  display: block;
}

/* Section maquettes */
.projet-dark {
  background-color: var(--beige);
  padding: 75px 30px;
}

.projet-dark-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projet-dark h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 18px;
}

.projet-dark p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--burgundy);
  max-width: 700px;
  margin-bottom: 40px;
}

.projet-dark-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Section refonte / résultat */
.projet-refonte {
  background-color: var(--burgundy);
  padding: 75px 30px;
}

.projet-refonte-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.projet-refonte-container h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 0;
}

.projet-refonte-descriptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.projet-refonte-desc {
  display: flex;
  flex-direction: column;
  justify-content: start;
  min-height: 120px;
}

.projet-refonte-desc p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--beige);
  opacity: 0.9;
  margin-bottom: 0;
}

.projet-refonte-container > p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--beige);
  opacity: 0.9;
  margin: 0;
}

.projet-refonte-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.projet-refonte-img img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.projet-refonte-images img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.projet-refonte-images img:first-child {
  object-fit: contain;
}

.projet-refonte-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.projet-refonte-side-by-side img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Responsive projet pages */
@media (max-width: 900px) {
  .projet-intro-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projet-refonte-descriptions {
    grid-template-columns: 1fr;
  }

  .projet-refonte-images {
    grid-template-columns: 1fr;
  }

  .projet-hero-title {
    font-size: 2.8rem;
  }

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

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

  .projet-brandbook-layout {
    grid-template-rows: auto;
  }
}

@media (max-width: 650px) {
  .projet-hero {
    height: 50vh;
    min-height: 280px;
  }

  .projet-hero-overlay {
    padding: 30px 25px;
  }

  .projet-hero-title {
    font-size: 2.2rem;
  }

  .projet-intro,
  .projet-supports,
  .projet-dark,
  .projet-refonte,
  .projet-autres {
    padding: 50px 20px;
  }

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

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

  .projet-brandbook-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .projet-brandbook-layout img {
    height: 150px;
  }

  .projet-autres-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ========== SECTION AUTRES PROJETS ========== */
.projet-autres {
  background-color: var(--beige);
  padding: 75px 30px;
}

.projet-autres-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projet-autres h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 40px;
  text-align: center;
}

.projet-autres-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  margin-bottom: 40px;
}

.projet-autres-carousel .carousel-arrow {
  background-color: #90A6C9;
  color: #F6EAD5;
}

.projet-autres-carousel .carousel-arrow svg {
  stroke-width: 3.5 !important;
}

.carousel-dots-autres .dot {
  background-color: rgba(144, 166, 201, 0.5);
}

.carousel-dots-autres .dot.active {
  background-color: #90A6C9;
}

.projet-autres-track {
  position: relative;
  width: 100%;
  height: 350px;
}

.projet-autres-card {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.projet-autres-card.active-card {
  transform: translate(-50%, calc(-50% - 15px)) scale(1.241);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.projet-autres-card.side-card-left {
  transform: translate(calc(-50% - 330px), -50%) scale(0.88);
  opacity: 0.7;
  pointer-events: auto;
  z-index: 2;
}

.projet-autres-card.side-card-right {
  transform: translate(calc(-50% + 330px), -50%) scale(0.88);
  opacity: 0.7;
  pointer-events: auto;
  z-index: 2;
}

.projet-autres-card.hidden-card {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.projet-autres-card-disabled {
  cursor: not-allowed;
}

.projet-autres-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projet-autres-card:hover img {
  transform: scale(1.05);
}

.projet-autres-card-disabled:hover img {
  transform: none;
}

.projet-autres-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 12, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}

.projet-autres-card:hover .projet-autres-overlay {
  background: rgba(30, 10, 12, 0.3);
}

.projet-autres-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--beige);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .projet-autres-card {
    width: 250px;
    height: 190px;
  }

  .projet-autres-card.side-card-left {
    transform: translate(calc(-50% - 280px), -50%) scale(0.88);
  }

  .projet-autres-card.side-card-right {
    transform: translate(calc(-50% + 280px), -50%) scale(0.88);
  }

  .projet-autres-track {
    height: 300px;
  }
}

/* Petit mobile */
@media (max-width: 400px) {
  .about-photo-container {
    width: 140px;
    height: 140px;
  }

  .about-photo-wrapper {
    width: 120px;
    height: 120px;
  }

  .about-photo-flower {
    width: 40px;
    height: 40px;
  }

  .projets-track {
    grid-template-columns: 1fr;
  }

  .projet-card,
  .projet-card.active-card,
  .projet-card.side-card-left,
  .projet-card.side-card-right,
  .projet-card.hidden-card {
    width: 180px;
    height: 180px;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-dots {
    display: none;
  }

  .projet-autres-card,
  .projet-autres-card.active-card,
  .projet-autres-card.side-card-left,
  .projet-autres-card.side-card-right,
  .projet-autres-card.hidden-card {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  .projet-autres-carousel {
    flex-direction: column;
    gap: 10px;
  }

  .projet-autres-track {
    position: static;
    height: auto;
  }

  .carousel-dots-autres {
    display: none;
  }
}

@media (max-width: 860px) {
  .deco-flower-1,
  .deco-flower-2,
  .about-top-flower-large,
  .about-top-flower-small,
  .about-photo-flower,
  .about-flower,
  .card-flower,
  .footer-flower,
  .projets-flower-deco {
    display: none;
  }
}

/* ========== FLIPBOOK MODAL ========== */
.flipbook-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.flipbook-modal.active {
  opacity: 1;
  visibility: visible;
}

.flipbook-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 12, 0.85);
}

.flipbook-modal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 95vw;
  max-height: 95vh;
}

.flipbook-close {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--burgundy);
  color: var(--beige);
  border: 2px solid var(--beige);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 10002;
  font-family: "Poppins", sans-serif;
  line-height: 1;
}

.flipbook-close:hover {
  transform: scale(1.1);
  background-color: var(--red-light);
}

.flipbook-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.flipbook-container {
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.flipbook-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  box-shadow: 0 2px 8px rgba(144, 166, 201, 0.3);
  flex-shrink: 0;
}

.flipbook-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 166, 201, 0.5);
}

.flipbook-nav:active {
  transform: scale(0.95);
}

.flipbook-nav svg {
  stroke: var(--beige);
}

.flipbook-page-indicator {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--beige);
  text-align: center;
}

.flipbook-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 10001;
}

.flipbook-loading.hidden {
  display: none;
}

.flipbook-loading p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--beige);
  white-space: nowrap;
}

.flipbook-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(246, 234, 213, 0.3);
  border-top-color: var(--beige);
  border-radius: 50%;
  animation: flipbook-spin 0.8s linear infinite;
  box-sizing: border-box;
}

@keyframes flipbook-spin {
  to { transform: rotate(360deg); }
}

.flipbook-trigger {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flipbook-trigger:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(91, 20, 29, 0.3);
}

@media (max-width: 900px) {
  .flipbook-wrapper {
    gap: 10px;
  }

  .flipbook-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 650px) {
  .flipbook-nav {
    display: none;
  }

  .flipbook-modal-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 10px;
  }

  .flipbook-close {
    top: 5px;
    right: 5px;
  }

  .flipbook-page-indicator {
    font-size: 0.8rem;
  }
}
