@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@1,900&display=swap');

/* Titre Signature */
.title-phare {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -3px;
}

/* --- ANIMATION INPUTS UIVERSE --- */
.input-group { position: relative; }

.input {
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    background: none;
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}

.user-label {
    position: absolute;
    left: 15px;
    color: #9e9e9e;
    pointer-events: none;
    transform: translateY(1rem);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
    background-color: white;
    padding: 0 4px;
}

.input:focus, .input:valid { outline: none; border: 1.5px solid #0004ff; }

.input:focus ~ label, .input:valid ~ label {
    transform: translateY(-50%) scale(0.8);
    background-color: white;
    color: #0004ff;
}

/* --- BOUTON UIVERSE --- */
.uiverse-btn {
    position: relative;
    width: 100%;
    height: 55px;
    border-radius: 1rem;
    border: 2px solid #0004ff;
    background-color: transparent;
    color: #0004ff;
    font-weight: bold;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    cursor: pointer;
}

.uiverse-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background-color: #0004ff;
    transition: all 0.3s ease;
    z-index: -1;
}

.uiverse-btn:hover::before { left: 0; }
.uiverse-btn:hover { color: white; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- STYLE GLOBAL & TITRE --- */
.title-phare { font-family: 'Inter', sans-serif; font-weight: 900; font-style: italic; letter-spacing: -3px; }

/* --- INPUTS UNIFIÉS (UIVERSE STYLE) --- */
.input-group { position: relative; width: 100%; }

.input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    background: none;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}

.user-label {
    position: absolute;
    left: 15px;
    color: #9e9e9e;
    pointer-events: none;
    transform: translateY(1.2rem);
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
    background-color: white;
    padding: 0 6px;
}

/* Animation au focus ou si rempli */
.input:focus, .input:valid, .input:not([value=""]) { outline: none; border: 1.5px solid #0004ff; }
.input:focus ~ label, .input:valid ~ label {
    transform: translateY(-50%) scale(0.85);
    color: #0004ff;
}

/* Correction spécifique pour le Select */
.select-custom { cursor: pointer; appearance: none; }

/* --- RADIOS & CHECKBOX CUSTOM --- */
.radio-container, .checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.radio-container input, .checkbox-container input { position: absolute; opacity: 0; }

.checkmark, .custom-checkbox {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 50%; /* Cercle pour radio */
    border: 1.5px solid #e5e7eb;
}

.custom-checkbox { border-radius: 4px; } /* Carré pour checkbox */

.radio-container input:checked ~ .checkmark,
.checkbox-container input:checked ~ .custom-checkbox { background-color: #0004ff; border-color: #0004ff; }

/* --- BOUTON ENVOYER (EFFET REMPLISSAGE COMPLET) --- */
.uiverse-btn {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 1rem;
    border: 2px solid #0004ff;
    background-color: transparent;
    color: #0004ff;
    font-weight: 900;
    font-size: 1.1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    cursor: pointer;
}

.uiverse-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background-color: #0004ff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.uiverse-btn:hover::before { left: 0; }
.uiverse-btn:hover { color: white; transform: scale(1.02); }
.uiverse-btn:active { transform: scale(0.98); }

/* --- INPUTS UNIFIÉS & FIX SOCIÉTÉ --- */
.input-group { position: relative; }

.input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.2rem;
    background: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.user-label {
    position: absolute;
    left: 15px;
    top: 1.2rem;
    color: #9e9e9e;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
}

/* Le label monte si le champ est focus OU s'il n'est pas vide (fix société) */
.input:focus ~ .user-label, 
.input:not(:placeholder-shown) ~ .user-label,
.input:valid ~ .user-label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    color: #0004ff;
}

.input:focus { border-color: #0004ff; outline: none; }

/* --- BOUTON "ENVOYER" STYLE PREMIUM --- */
.uiverse-btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 100%;
    height: auto;
}

.uiverse-btn .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #0004ff;
    border-radius: 1.625rem;
}

.uiverse-btn .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0; bottom: 0;
    margin: auto;
    background: #fff;
}

.uiverse-btn .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

.uiverse-btn .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

.uiverse-btn .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #0004ff;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

.uiverse-btn:hover .circle { width: 100%; }
.uiverse-btn:hover .circle .icon.arrow { background: #fff; transform: translate(1rem, 0); }
.uiverse-btn:hover .button-text { color: #fff; }

/* --- CHECKBOX RGPD STYLISÉE --- */
.container-checkbox {
  --size: 20px;
  position: relative;
  width: var(--size);
  height: var(--size);
}

.container-checkbox input {
  display: none;
}

.checkmark-box {
  width: 100%;
  height: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background-color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.container-checkbox input:checked + .checkmark-box {
  background-color: #0004ff;
  border-color: #0004ff;
}

/* --- BOUTON ENVOYER "LEARN MORE" STYLE --- */
.btn-premium {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  background: transparent;
  width: 100%;
  height: auto;
}

.btn-premium .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  background: #0004ff;
  border-radius: 1.75rem;
}

.btn-premium .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0; bottom: 0; margin: auto;
}

.btn-premium .circle .icon.arrow {
  left: 0.8rem;
  width: 1.125rem;
  height: 0.125rem;
  background: white;
}

.btn-premium .circle .icon.arrow::before {
  content: "";
  position: absolute;
  top: -0.29rem;
  right: 0.06rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid white;
  border-right: 0.125rem solid white;
  transform: rotate(45deg);
}

.btn-premium .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 0;
  margin-left: 2rem;
  color: #0004ff;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.btn-premium:hover .circle { width: 100%; }
.btn-premium:hover .button-text { color: white; }

/* --- CHECKBOX RGPD PERSONNALISÉE --- */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* Cache la checkbox par défaut */
.checkbox-wrapper input {
  display: none;
}

/* Création de la nouvelle boîte bleue */
.checkbox-wrapper .custom-box {
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 6px; /* Bords arrondis */
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

/* Couleur quand c'est coché */
.checkbox-wrapper input:checked + .custom-box {
  background-color: #0004ff;
  border-color: #0004ff;
}

/* Dessin du petit "check" blanc */
.checkbox-wrapper .custom-box::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input:checked + .custom-box::after {
  display: block;
}

/* --- NOUVEAU BOUTON ENVOYER (EFFET REMPLISSAGE) --- */
.uiverse-btn {
  width: 100%;
  height: 55px;
  border-radius: 1rem;
  border: 2px solid #0004ff;
  background: transparent;
  color: #0004ff;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  z-index: 1;
  cursor: pointer;
}

.uiverse-btn::before {
  content: "";
  position: absolute;
  left: -100%; /* Part de la gauche */
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #0004ff;
  transition: 0.4s ease;
  z-index: -1;
}

.uiverse-btn:hover::before {
  left: 0;
}

.uiverse-btn:hover {
  color: #ffffff;
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Centrage du texte */
  gap: 4px;
  padding: 16px 36px;
  width: 100%; /* Largeur complète pour ton formulaire */
  border: 4px solid transparent;
  font-size: 16px;
  background-color: #ffffff;
  border-radius: 100px;
  font-weight: 900;
  color: #0004ff; /* Ton bleu */
  box-shadow: 0 0 0 2px #0004ff; /* Bordure bleue */
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #0004ff; /* Ton bleu */
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 { right: 16px; }
.animated-button .arr-2 { left: -25%; }

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #0004ff; /* Le cercle devient bleu au hover */
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #ffffff; /* Texte blanc sur fond bleu */
  border-radius: 20px; /* Devient moins arrondi au hover */
}

.animated-button:hover .arr-1 { right: -25%; }
.animated-button:hover .arr-2 { left: 16px; }
.animated-button:hover .text { transform: translateX(12px); }
.animated-button:hover svg { fill: #ffffff; }

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #0004ff;
}

.animated-button:hover .circle {
  width: 110%; /* Couvre tout le bouton */
  height: 400px;
  opacity: 1;
}

/* 1. LA BARRE : Pilule fine et centrée */
nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    padding: 0 30px !important;
    border-radius: 100px !important;
    width: auto !important;
    min-width: 800px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

/* 2. ALIGNEMENT Y-DESIGN (LOGO + NOM) */
.nav-logo-link {
    display: flex !important;
    flex-direction: row !important; /* Force l'horizontalité */
    align-items: center !important;
    gap: 10px !important;
}

.nav-logo {
    width: 32px !important;
    height: 32px !important;
}

.nav-brand-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin: 0 !important; /* Supprime les décalages */
    line-height: 1 !important; /* Centre verticalement par rapport au logo */
}

/* 3. ALIGNEMENT DES LIENS (Accueil, Services...) */
nav .flex.gap-8 {
    display: flex !important;
    align-items: center !important; /* Centre verticalement dans la barre */
    gap: 25px !important;
}

/* 1. STYLE DE BASE DES LIENS */
.nav-link {
    position: relative !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 8px 0 !important;
    transition: color 0.3s ease !important;
}

/* 2. CRÉATION DE LA BARRE SOUS LE LIEN */
.nav-link::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important; /* Invisible au départ */
    height: 2px !important;
    bottom: 0 !important;
    left: 0 !important;
    background-color: #0004ff !important; /* Même bleu que ton CV */
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1) !important; /* Animation fluide */
}

/* 3. EFFET AU SURVOL (HOVER) */
.nav-link:hover {
    color: #0004ff !important; /* Le texte devient bleu */
}

.nav-link:hover::after {
    width: 100% !important; /* La barre se déploie sur toute la largeur */
}

/* 4. ÉTAT ACTIF (La page où tu te trouves) */
.nav-link.active {
    color: #0004ff !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* --- BOUTON CV STYLE NAV --- */
.btn-cv-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100px !important; /* Largeur fixe pour l'effet de remplissage */
    height: 40px !important; /* Plus fin pour la nav */
    border-radius: 10px !important;
    border: 1px solid #0004ff !important;
    position: relative !important;
    overflow: hidden !important;
    background: white !important;
    cursor: pointer !important;
    z-index: 1 !important;
    text-decoration: none !important;
}

/* Les deux pans qui se rejoignent au survol */
.btn-cv-nav::before, 
.btn-cv-nav::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    width: 0 !important;
    height: 100% !important;
    transform: skew(15deg) !important;
    transition: 0.5s !important;
    z-index: -1 !important;
}

.btn-cv-nav::before {
    left: -10px !important;
    background: #0004ff !important; /* Bleu foncé */
}

.btn-cv-nav::after {
    right: -10px !important;
    background: #0004ff !important; /* Bleu primaire */
}

/* Animation au survol */
.btn-cv-nav:hover::before, 
.btn-cv-nav:hover::after {
    width: 65% !important;
}

.btn-cv-nav:hover span {
    color: #ffffff !important;
}

/* Texte interne */
.btn-cv-nav span {
    color: #0004ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: 0.3s !important;
    z-index: 2 !important;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Ajuster le titre principal */
    .title-phare {
        font-size: 2.5rem !important;
    }

    /* Ajuster le padding du body */
    body {
        padding: 20px;
    }

    /* Ajuster la boîte du formulaire */
    .bg-white {
        padding: 20px !important;
        max-width: 100% !important;
        margin: 0 10px;
    }

    /* Civilité : empiler verticalement sur mobile */
    .flex.gap-8.items-center.py-2 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Ajuster les radios pour qu'elles s'alignent bien */
    .radio-container {
        font-size: 14px !important;
        padding-left: 24px !important;
    }

    .checkmark {
        width: 16px !important;
        height: 16px !important;
    }

    /* Grille des inputs : une colonne sur mobile */
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Ajuster les inputs */
    .input {
        font-size: 16px !important; /* Empêche le zoom sur iOS */
        padding: 1rem !important;
    }

    .user-label {
        font-size: 14px !important;
    }

    /* Ajuster le textarea */
    textarea.input {
        rows: 3 !important;
    }

    /* Ajuster la checkbox */
    .checkbox-wrapper {
        align-items: flex-start !important;
    }

    .checkbox-wrapper .custom-box {
        margin-top: 2px !important;
    }

    /* Ajuster le bouton */
    .animated-button {
        font-size: 14px !important;
        padding: 12px 24px !important;
    }

    .animated-button .arr-1,
    .animated-button .arr-2 {
        width: 20px !important;
    }
}

@media (max-width: 480px) {
    /* Pour très petits écrans */
    .title-phare {
        font-size: 2rem !important;
    }

    .bg-white {
        padding: 15px !important;
    }

    /* Civilité : ajuster encore plus */
    .flex.gap-8.items-center.py-2 {
        gap: 8px !important;
    }

    .radio-container {
        padding-left: 20px !important;
    }
}
