/*
 * ============================================================================
 * FEUILLE DE STYLE PRINCIPALE - MAXIDEV05
 * ============================================================================
 * Description: Styles CSS pour le portfolio MaxiDev05
 * Auteur: Liweb
 * Adaptation: Pierrick DUVETTE
 * Date: Août 2025
 * Version: 1.0
 * Framework: TailwindCSS avec personnalisations
 * ============================================================================
 */

/* ============================================================================
   RESET & CONFIGURATION DE BASE
   ============================================================================ */

/* Reset universel et configuration box-sizing */
*,
:after,
:before {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

/* Configuration des pseudo-éléments */
:after,
:before {
  --tw-content: "";
}

/* Configuration HTML de base */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  scroll-behavior: smooth; /* Navigation fluide */
  -webkit-user-select: none; /* Désactiver la sélection de texte */
  -moz-user-select: none;
  user-select: none;
}

/* Configuration du body */
body {
  margin: 0;
  line-height: inherit;
}

/* ============================================================================
   ÉLÉMENTS HTML DE BASE
   ============================================================================ */

/* Configuration des séparateurs horizontaux */
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* Abréviations avec titre */
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/* Reset des titres */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Configuration des liens */
a {
  color: inherit;
  text-decoration: inherit;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Éléments en gras */
b, strong {
  font-weight: bolder;
}

/* Éléments de code */
code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    Liberation Mono, Courier New, monospace;
  font-size: 1em;
}

/* Texte petit */
small {
  font-size: 80%;
}

/* Exposants et indices */
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: initial;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* ============================================================================
   TABLEAUX ET FORMULAIRES
   ============================================================================ */

/* Configuration des tableaux */
table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

/* Éléments de formulaire */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Boutons et sélecteurs */
button, select {
  text-transform: none;
}

/* Types de boutons spécifiques */
[type="button"], [type="reset"], [type="submit"], button {
  -webkit-appearance: button;
  background-color: initial;
  background-image: none;
}

/* États focus pour Firefox */
:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

/* Barre de progression */
progress {
  vertical-align: initial;
}

/* Contrôles de nombre (spin buttons) */
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/* Champs de recherche */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Bouton d'upload de fichier */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* ============================================================================
   ÉLÉMENTS DE CONTENU
   ============================================================================ */

/* Élément summary */
summary {
  display: list-item;
}

/* Reset des marges pour les éléments de contenu */
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
  margin: 0;
}

/* Fieldsets */
fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Listes */
menu, ol, ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Zone de texte redimensionnable */
textarea {
  resize: vertical;
}

/* Placeholders */
input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

/* Curseurs */
[role="button"], button {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

/* ============================================================================
   MÉDIAS
   ============================================================================ */

/* Éléments média */
audio, canvas, embed, iframe, img, object, svg, video {
  display: block;
  vertical-align: middle;
}

/* Images et vidéos responsives */
img, video {
  max-width: 100%;
  height: auto;
}

/* ============================================================================
   PERSONNALISATIONS GLOBALES
   ============================================================================ */

/* Police personnalisée pour tout le site */
* {
  font-family: Manrope, sans-serif;
}

/* Masquer la barre de défilement */
::-webkit-scrollbar {
  width: 0;
}

/* ============================================================================
   ÉTATS DE FORMULAIRE
   ============================================================================ */

/* Bouton de soumission désactivé pour formulaire invalide */
form:invalid button[type="submit"] {
  pointer-events: none;
  opacity: 0.5;
  transition: all 0.5s;
}

/* Bouton de soumission activé pour formulaire valide */
form:valid button[type="submit"] {
  pointer-events: auto;
  opacity: 1;
  transition: all 0.5s;
}

/* ============================================================================
   VARIABLES CSS TAILWIND
   ============================================================================ */

/* Variables CSS pour les transformations et effets */
*, :after, :before {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

/* Variables pour les backdrop WebKit */
::-webkit-backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

/* Variables pour les backdrop standards */
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

/* ============================================================================
   SYSTÈME DE GRILLE RESPONSIVE
   ============================================================================ */

/* Container responsive */
.container {
  width: 100%;
}

/* Points de rupture responsives */
@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}

/* ============================================================================
   STRUCTURE PRINCIPALE
   ============================================================================ */

/* Corps de la page */
.body {
  height: 100%;
  display: flex;
  width: 100%;
  justify-content: center;
  --tw-bg-opacity: 1;
  background-color: rgb(26 26 27 / var(--tw-bg-opacity));
}

/* En-tête principal */
.header {
  display: flex;
  width: 100%;
  justify-content: center;
  position: fixed;
  left: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
  --tw-bg-opacity: 0.3;
  padding: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-backdrop-blur: blur(40px);
  backdrop-filter: var(--tw-backdrop-blur);
}

/* Container de l'en-tête */
.header-alt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive pour header-alt */
@media (min-width: 640px) { .header-alt { max-width: 640px; } }
@media (min-width: 768px) { .header-alt { max-width: 768px; } }
@media (min-width: 1024px) { .header-alt { max-width: 1024px; } }
@media (min-width: 1280px) { .header-alt { max-width: 1280px; } }
@media (min-width: 1536px) { .header-alt { max-width: 1536px; } }

/* ============================================================================
   NAVIGATION
   ============================================================================ */

/* Menu desktop (masqué sur mobile) */
.menu {
  display: none;
}

@media (min-width: 1024px) {
  .menu { display: block; }
}

/* Menu mobile (visible sur mobile) */
.mobile-menu {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* Panel du menu mobile */
.mobile-menu-items {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  --tw-translate-y: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-color: rgb(26 26 27);
  --tw-bg-opacity: 0.5;
  padding: 1.5rem 0.5rem;
  text-align: center;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  backdrop-filter: var(--tw-backdrop-blur);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .mobile-menu-items { display: none; }
}

/* État actif du menu mobile */
.mobile-menu-items.active {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  box-shadow: 0 0 0 max(100vh, 100vw) rgba(0, 0, 0, 0.6);
}

/* Éléments de menu */
.menu-item,
.mobile-menu-item {
  text-decoration-color: #fff;
  text-underline-offset: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* États hover et actif des éléments de menu */
.menu-item.active,
.menu-item:hover,
.mobile-menu-item.active,
.mobile-menu-item:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  --tw-text-opacity: 1;
  color: rgb(178 147 91 / var(--tw-text-opacity));
  text-decoration-line: underline;
}

.menu-item.active,
.mobile-menu-item.active {
  text-underline-offset: 8px;
}

/* ============================================================================
   ANIMATIONS D'APPARITION
   ============================================================================ */

/* Animation d'apparition progressive */
.showing-animate {
  opacity: 0;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .showing-animate { transition: none; }
}

.showing {
  opacity: 1 !important;
}

/* ============================================================================
   SECTIONS PRINCIPALES
   ============================================================================ */

/* Configuration générale des sections */
section {
  min-height: 100vh;
  max-width: 100%;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    scroll-margin-top: 100px;
  }

  .home-section::before {
    display: none; 
  }
}

@media (max-width: 480px) {
    section {
        scroll-margin-top: 90px; /* Encore plus petit sur très petits écrans */
    }
    
    section::before {
        height: 90px;
        margin-top: -90px;
    }
}

@media (max-width: 320px) {
    section {
        scroll-margin-top: 80px; /* Minimum pour iPhone SE */
    }
    
    section::before {
        height: 80px;
        margin-top: -80px;
    }
}

/* Section d'accueil */
.home-section {
  height: 100vh;
}

/* Section contact */
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Section à propos */
@media (min-width: 1024px) {
  .about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================================
   TYPOGRAPHIE
   ============================================================================ */

/* Titre principal */
.head-title {
  padding: 0.75rem;
  font-size: 3.75rem;
  line-height: 1.25;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  --tw-drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) 
                    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  filter: var(--tw-drop-shadow);
}

@media (min-width: 768px) {
  .head-title {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* Texte avec dégradé */
.gradient-text {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #b2935b;
  --tw-gradient-to: rgba(236, 72, 153, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #8f5d46;
  background-clip: text;
  color: transparent;
}

/* Titre de niveau 2 */
h2 {
  font-weight: 700;
}

/* ============================================================================
   BOUTONS
   ============================================================================ */

/* Bouton principal */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  --tw-bg-opacity: 1;
  background-color: rgb(142 92 69 / var(--tw-bg-opacity));
  padding: 0.5rem 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(116 94 89 / var(--tw-bg-opacity));
}

/* Bouton secondaire */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  --tw-bg-opacity: 1;
  background-color: rgb(39 39 42 / var(--tw-bg-opacity));
  padding: 0.5rem 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(63 63 70 / var(--tw-bg-opacity));
}

/* ============================================================================
   IMAGES ET MÉDIAS
   ============================================================================ */

/* Image de la section à propos */
.about-img {
  max-width: 100%;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(82 82 91 / var(--tw-border-opacity));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img:hover {
  --tw-border-opacity: 1;
  border-color: rgb(141 91 68 / var(--tw-border-opacity));
}

@media (min-width: 1024px) {
  .about-img {
    width: 75%;
  }
  
  .about-img:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
               skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
               scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }
}

/* ============================================================================
   TECHNOLOGIES
   ============================================================================ */

/* Grille des technologies */
.techs {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .techs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Éléments de technologie */
.techs li {
  display: flex;
  justify-content: center;
}

.techs li img {
  margin-right: 0.5rem;
  width: 6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.techs li img:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Tooltips des technologies */
.techs li span {
  visibility: hidden;
  position: absolute;
  display: none;
  border-radius: 0.125rem;
  --tw-bg-opacity: 1;
  background-color: rgb(39 39 42 / var(--tw-bg-opacity));
  padding: 0.25rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   SERVICES
   ============================================================================ */

/* Section des services */
.service-section {
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .service-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Grille des services */
.services {
  margin: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carte de service individuelle avec classe group pour les interactions */
.service {
  display: flex;
  height: 13rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity));
  text-align: center;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(116 94 89 / var(--tw-ring-opacity));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer; /* Classe manquante : cursor-pointer */
}

/* État hover pour la carte de service */
.service:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(82 82 91 / var(--tw-ring-opacity));
}

/* Responsive pour la hauteur des services */
@media (min-width: 768px) {
  .service { height: 16rem; }
}

/* Icône numérotée des services (en arrière-plan) */
.service span {
  position: absolute;
  margin-top: -6rem;
  display: block;
  font-size: 8rem;
  line-height: 1;
  --tw-text-opacity: 1;
  color: rgb(116 94 89 / var(--tw-text-opacity));
  opacity: 0.1;
}

/* Classes group pour les effets d'interaction (ajout des classes manquantes) */
.service.group {
  /* Groupe parent pour les interactions */
}

/* Interactions groupe pour les services */
.service.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.service.group:hover .group-hover\:text-accent {
  --tw-text-opacity: 1;
  color: rgb(178 147 91 / var(--tw-text-opacity)); /* Couleur accent */
}

.service.group:hover .group-hover\:opacity-20 {
  opacity: 0.2;
}

.service.group:hover .group-hover\:rotate-12 {
  --tw-rotate: 12deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* ============================================================================
   CARTES DE PROJETS
   ============================================================================ */

/* Section des réalisations */
.portfolio-section {
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .portfolio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Grille des cartes */
.cards {
  margin: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carte individuelle */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(24, 24, 27, 0.3);
  text-align: center;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Éléments de la carte */
.card img {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .card img {
    --tw-grayscale: grayscale(100%);
    filter: var(--tw-grayscale);
  }
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.card p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.card button {
  margin-bottom: 1.5rem;
}

/* ============================================================================
   SECTION CONTACT
   ============================================================================ */

/* Zone de contact */
.contact-area {
  height: 100%;
}

@media (min-width: 1024px) {
  .contact-area {
    display: flex;
    align-items: center;
  }
}

/* Côtés gauche et droit du contact */
.contact-left-side {
  margin-left: 1rem;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.contact-right-side {
  width: 100%;
  max-width: 100%;
}

/* Réseaux sociaux */
.social-medias {
  display: flex;
  flex-direction: row;
}

.social-medias a {
  margin: 0.5rem 1rem 0.5rem 0;
  border-radius: 0.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  padding: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-medias a:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  --tw-bg-opacity: 1;
  background-color: rgb(232 121 249 / var(--tw-bg-opacity));
}

/* Icônes sociales */
.social-icon {
  height: 1rem;
  width: 1rem;
  --tw-brightness: brightness(0);
  filter: var(--tw-brightness);
}

/* ============================================================================
   FORMULAIRE DE CONTACT
   ============================================================================ */

/* Container du formulaire */
.contact-form {
  margin-top: 0.75rem;
  padding: 1.25rem;
}

/* États du formulaire (loading, etc.) */
.contact-form .hidden {
  display: none !important;
}

.contact-form .loading-spinner.hidden {
  display: none !important;
}

.contact-form .button-text.hidden {
  display: none !important;
}

/* Champs de saisie */
.input {
  margin-bottom: 1rem;
  width: 100%;
  border-radius: 0.375rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(113 113 122 / var(--tw-border-opacity));
  background-color: initial;
  padding: 0.5rem;
  font-weight: 300;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Placeholders des inputs */
.input::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input::placeholder {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* États de validation */
.input:valid {
  --tw-border-opacity: 1;
  border-color: rgb(22 163 74 / var(--tw-border-opacity));
}

.input:invalid {
  --tw-border-opacity: 1;
  border-color: rgb(116 94 89 / var(--tw-border-opacity));
}

/* Focus sur les placeholders */
.input:focus::-moz-placeholder {
  color: hsla(240, 4%, 46%, 0.5);
}

.input:focus::placeholder {
  color: hsla(240, 4%, 46%, 0.5);
}

/* ============================================================================
   PIED DE PAGE
   ============================================================================ */

footer {
  padding: 1.75rem;
  text-align: center;
  font-weight: 300;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

/* ============================================================================
   ÉLÉMENTS D'INTERFACE
   ============================================================================ */

/* Bouton de retour en haut */
.scroll-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  display: none;
}

@media (min-width: 768px) {
  .scroll-top { display: block; }
}

.scroll-top button {
  display: none;
  padding: 0.5rem;
}

/* Alertes et notifications */
.alerts {
  display: flex;
  justify-content: center;
}

.alert-area {
  position: fixed;
  bottom: 3rem;
  z-index: 999;
  display: none;
  cursor: pointer;
  justify-content: space-between;
  border-radius: 0.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(232 121 249 / var(--tw-bg-opacity));
  padding: 0.75rem 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

@media (min-width: 768px) {
  .alert-area {
    right: 1.75rem;
    top: 6rem;
    bottom: auto;
  }
}

/* ============================================================================
   MODALES
   ============================================================================ */

/* Modal principale */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
  display: flex;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Corps de la modal */
.modal-body {
    background: #1a1a1a;
    border-radius: 12px;
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-body {
    display: flex;
    height: auto;
    width: 700px;
    text-align: left;
    max-height: 95vh;
  }
  
  .modal-body-lg {
    width: 1000px !important;
    max-width: 1000px;
  }

  .modal-content {
        padding: 30px 20px;
    }
}

/* Contenu de la modal */
.modal-content {
  overflow: auto;
  padding: 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  padding: 40px 30px;
}

/* Scrollbar pour le modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Bouton de fermeture */
.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 1001;
    color: #fff;
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal .close:hover {
    color: #eb3333;
    transform: scale(1.1);
}

/* ============================================================================
   PRELOADER
   ============================================================================ */

.preloader {
  position: fixed;
  z-index: 99999;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --tw-bg-opacity: 1;
  background-color: rgb(26 26 27 / var(--tw-bg-opacity));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

/* ============================================================================
   CLASSES UTILITAIRES TAILWIND
   ============================================================================ */

/* Classes de positionnement */
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.float-right { float: right; }

/* Classes de marge */
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.-ml-9 { margin-left: -2.25rem; }

/* Classes d'affichage */
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Classes de taille */
.h-full { height: 100%; }
.w-full { width: 100%; }
.w-10\/12 { width: 83.333333%; }

/* Curseur */
.cursor-pointer { cursor: pointer; }

/* Animations */
@keyframes pulse {
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Classes de flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Classes de padding */
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

/* Classes de texte */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-4xl { font-size: 2.25rem; line-height: 3rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

/* Classes de poids de police */
.font-semibold { font-weight: 600; }
.\!font-bold { font-weight: 700 !important; }
.font-extralight { font-weight: 200; }
.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }

/* Classes de couleur */
.text-marron-400 { --tw-text-opacity: 1; color: rgb(178 147 91 / var(--tw-text-opacity)); }
.text-marron-800 { --tw-text-opacity: 1; color: rgb(116 94 89 / var(--tw-text-opacity)); }
.text-white\/80 { color: hsla(0, 0%, 100%, 0.8); }
.text-white { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); }
.text-green-600 { --tw-text-opacity: 1; color: rgb(22 163 74 / var(--tw-text-opacity)); }
.text-green-500 { --tw-text-opacity: 1; color: rgb(34 197 94 / var(--tw-text-opacity)); }

/* Décoration de texte */
.underline { text-decoration-line: underline; }
.decoration-white { text-decoration-color: #fff; }
.underline-offset-4 { text-underline-offset: 4px; }

/* Opacité */
.opacity-0 { opacity: 0; }

/* Ombres portées */
.drop-shadow-md {
  --tw-drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) 
                    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  filter: var(--tw-drop-shadow);
}

.drop-shadow-lg {
  --tw-drop-shadow: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) 
                    drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
  filter: var(--tw-drop-shadow);
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.duration-300 { transition-duration: 0.3s; }

/* ============================================================================
   ÉTATS HOVER ET FOCUS
   ============================================================================ */

.hover\:tracking-wider:hover { letter-spacing: 0.05em; }
.hover\:text-fuchsia-500:hover { --tw-text-opacity: 1; color: rgb(217 70 239 / var(--tw-text-opacity)); }

/* États de groupe */
.group:hover .group-hover\:-translate-y-1 {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) 
             skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) 
             scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:text-fuchsia-400 {
  --tw-text-opacity: 1;
  color: rgb(232 121 249 / var(--tw-text-opacity));
}

.group:hover .group-hover\:text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity));
}

.group:hover .group-hover\:grayscale-0 {
  --tw-grayscale: grayscale(0);
  filter: var(--tw-grayscale);
}

/* États peer */
.peer:valid ~ .peer-valid\:opacity-100 { opacity: 1; }
.peer:hover ~ .peer-hover\:visible { visibility: visible; }
.peer:hover ~ .peer-hover\:block { display: block; }
.peer:hover ~ .peer-hover\:opacity-100 { opacity: 1; }

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (min-width: 768px) {
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  
  .md\:tracking-widest {
    letter-spacing: 0.1em;
  }
}

/*
 * ============================================================================
 * FIN DU FICHIER CSS
 * ============================================================================
 */