/*
Theme Name: CSNP Colmar Custom Theme
Theme URI: http://csnp-colmar.fr
Description: Thème WordPress sur mesure optimisé pour le Centre de Soins Non Programmés de Colmar. Rendu Pixel Perfect avec Tailwind CSS.
Author: Stitch AI
Version: 2.0
Text Domain: csnp-colmar
*/

/* Reset et base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f7f9fb;
    margin: 0;
    padding: 0;
}

/* Compatibilité Gutenberg */
.entry-content {
    max-width: 100%;
}

/* Forcer l'affichage pleine largeur pour les sections */
.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* Style des boutons WordPress pour correspondre à la maquette et écraser les styles par défaut */
.wp-block-button__link {
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    border: none !important;
    display: inline-block !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0.9;
}

/* Nettoyage des styles par défaut de WP qui pourraient entrer en conflit */
.wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-columns {
    margin-bottom: 0 !important;
}

/* Animation pour le badge "En direct" */
@keyframes pulse-custom {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* WP forms settings */

.wpforms-container-full {
    margin: 0 !important;
}

.wpforms-field-label {
    font-size: 20px !important;
}

/* WP forms custom CSS to add in the plugin directly */

/* Inputs + textarea */
.form-input input,
.form-textarea textarea{
  width: 100%;

  background: #f5f7fb;
  border: 1px solid #edf1f5;

  border-radius: 16px;

  padding: 0 22px;

  font-size: 18px;
  font-weight: 600;
  color: #2d2d2d;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

/* Input height */
.form-input input {
  height: 68px;
}

/* Textarea */
.form-textarea textarea {
  min-height: 140px;
  padding-top: 20px;
  padding-bottom: 20px;

  resize: vertical;
}

/* Placeholder */
.form-input input::placeholder,
.form-textarea textarea::placeholder {
  color: #a0a7b4;
  font-weight: 600;
}

/* Hover */
.form-input input:hover,
.form-textarea textarea:hover {
  background: #ffffff;
  border-color: #d8e2f0;
}

/* Focus */
.form-input input:focus,
.form-textarea textarea:focus {
  outline: none;

  background: #ffffff;
  border-color: #2f7de1;

  box-shadow:
    0 0 0 4px rgba(47, 125, 225, 0.12),
    0 10px 30px rgba(47, 125, 225, 0.08);

  transform: translateY(-1px);
}

/* Optional smooth click effect */
.form-input input:active,
.form-textarea textarea:active {
  transform: scale(0.995);
}

button {
height: auto;
width: 100%;
  background: #005eb8;
  color: #ffffff;

  padding: 22px 44px;

  border: none;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 900;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;

  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.2);
}

/* Hover */
button:hover {
  background: #004a91;

  transform: translateY(-2px);

  box-shadow: 0 16px 35px rgba(30, 58, 138, 0.28);
}

/* Focus */
button:focus {
  outline: none !important;

  box-shadow:
    0 0 0 4px rgba(0, 94, 184, 0.18),
    0 16px 35px rgba(30, 58, 138, 0.28);
}

/* Click */
button:active {
  transform: scale(0.98);
}

/* Animations */
@keyframes csnpHeartbeat {
    0%, 100% {
        transform: scale(1);
    }

    /* Premier battement */
    10% {
        transform: scale(1.15);
    }

    18% {
        transform: scale(1);
    }

    /* Deuxième battement */
    28% {
        transform: scale(1.10);
    }

    36% {
        transform: scale(1);
    }
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 1s cubic-bezier(0.16,1,0.3,1),
        transform 1s cubic-bezier(0.16,1,0.3,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .15s;
}

.reveal-delay-2 {
    transition-delay: .35s;
}

.reveal-delay-3 {
    transition-delay: .55s;
}

.reveal-delay-4 {
    transition-delay: .75s;
}

.reveal-delay-5 {
    transition-delay: .95s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpPremium {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpScalePremium {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mentions légales */
.legal-mentions section[id] {
    scroll-margin-top: 80px;
}

