/* Modifications Menu Header */

/* Accueil */
#menu-item-20 > a:hover .menu-item-title {
  color: #4A4A4A !important;
}

/* Création de site internet */
#menu-item-23 > a:hover .menu-item-title {
  color: #FBB911 !important;
}

/* Développement sur mesure */
#menu-item-26 > a:hover .menu-item-title {
  color: #6F58D0 !important;
}

/* Branding / Graphisme */
#menu-item-27 > a:hover .menu-item-title {
  color: #52BFCF !important;
}

/* Marketing Digital */
#menu-item-28 > a:hover .menu-item-title {
  color: #8C8B8B !important;
}

/* Transition douce pour le texte du menu principal */
.headerMenu .menu > li > a .menu-item-title {
  transition: color 0.3s ease;
}

/* Sous-menus "Création de site internet" -> jaune */
#menu-item-23 ul.sub-menu li > a:hover .menu-item-title {
  color: #FBB911 !important;
  transition: color 0.3s ease;
}

/* Sous-menus "Développement sur mesure" -> violet */
#menu-item-26 ul.sub-menu li > a:hover .menu-item-title {
  color: #6F58D0 !important;
  transition: color 0.3s ease;
}

/* Sous-menus "Branding / Graphisme" -> bleu turquoise */
#menu-item-27 ul.sub-menu li > a:hover .menu-item-title {
  color: #52BFCF !important;
  transition: color 0.3s ease;
}

/* Sous-menus "Marketing Digital" -> gris */
#menu-item-28 ul.sub-menu li > a:hover .menu-item-title {
  color: #8C8B8B !important;
  transition: color 0.3s ease;
}

/* Modifications Body */

body {
    margin: 0 !important;
    padding: 0 !important;
}

p {
    margin: 0;
}

/* Modifications cartes page accueil */
.homeCard ul {
  list-style-type: "➥ ";
  padding: 0;
  display: inline-block;
  text-align: left;
  margin: 0 30px;
}

.homeCard ul li a {
  font-family: 'Poppins';
  font-size: 16px;
  text-decoration: none;
  color: #23272B;
  transition: color 0.2s ease;
}

.homeCard ul li {
  padding-left: 8px;
}

.homeCard.creation ul li:hover a {
  color: #FBB911;
  transition: color 0.2s ease;
}

.homeCard.developpement ul li:hover a {
  color: #6F58D0;
  transition: color 0.2s ease;
}

.homeCard.branding ul li:hover a {
  color: #52BFCF;
  transition: color 0.2s ease;
}

.homeCard.marketing ul li:hover a {
  color: #4A4A4A;
  transition: color 0.2s ease;
}

/* Modifications footer */
footer a {
    color: #C0C0C0;
}

footer a:hover {
    color: #E6E6E6;
}

footer .adevoLogo {
  display: flex;
  align-items: center;
}

footer .legals p a:after {
    content: " / ";
    padding: 0 5px;
    color: #111;
    font-weight: 600;
}

/* Modifications effet sur images */
/* Effet de flottement continu, sans hover ni dépendance externe */
.bob-continuous {
  /* Variables réglables */
  --bob-raise: 8px;      /* hauteur de montée initiale */
  --bob-range: 6px;      /* amplitude de l’oscillation */
  --bob-init: .3s;       /* durée de la montée initiale */
  --bob-speed: 1s;     /* durée d’un cycle haut/bas */

  display: inline-block;               /* important pour les <img> */
  will-change: transform;
  transform: translate3d(0,0,0);       /* GPU hint */

  /* Deux animations : 1) montée initiale  2) oscillation infinie */
  animation-name: bob-init, bob-loop;
  animation-duration: var(--bob-init), var(--bob-speed);
  animation-delay: 0s, var(--bob-init);
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards;
  animation-direction: normal, alternate;
}

@keyframes bob-init {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-1 * var(--bob-raise))); }
}

@keyframes bob-loop {
  0%   { transform: translateY(calc(-1 * var(--bob-raise))); }
  100% { transform: translateY(calc(-1 * (var(--bob-raise) + var(--bob-range)))); }
}

/* Accessibilité : désactiver l’animation si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .bob-continuous { animation: none; }
}

/* Modifications animation icônes check */

.boxCheck:hover .huge-checkmark-circle-03 {
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.huge-checkmark-circle-03 {
  transition: transform 0.3s ease;
}

/* ====== Formulaire CF7 – style minimal ====== */
/* Police */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
.ha-cf7-form { font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Champs : look simple et lisible */
.ha-cf7-form input[type="text"],
.ha-cf7-form input[type="email"],
.ha-cf7-form input[type="tel"],
.ha-cf7-form textarea,
.ha-cf7-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  line-height: 1.4;
  background: #fff;
}
.ha-cf7-form textarea { min-height: 150px; resize: vertical; }
.ha-cf7-form label { font-weight: 500; color: #222; }

/* Espacements cohérents */
.ha-cf7-form .form-row,
.ha-cf7-form .services-list,
.ha-cf7-form .switch-item,
.ha-cf7-form .privacy-accept { margin-bottom: 18px; }

/* ===== Grille des 6 champs (2 colonnes) ===== */
.ha-cf7-form .form-row:not(.services-list) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px){
  .ha-cf7-form .form-row:not(.services-list){
    grid-template-columns: 1fr 1fr;   /* 2 colonnes */
    gap: 20px;
  }
}

/* ===== Grille des 4 services (2 x 2) ===== */
.ha-cf7-form .services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
}
@media (min-width: 768px){
  .ha-cf7-form .services-list {
    grid-template-columns: 1fr 1fr;  /* 2 colonnes */
  }
}
.ha-cf7-form .service-item { display: flex; align-items: center; }
.ha-cf7-form .service-item input[type="checkbox"] { margin-top: .25rem; }
.ha-cf7-form .service-item .label-text { line-height: 1.25; }
.ha-cf7-form .service-item .sub { display: block; font-size: .875rem; opacity: .75; margin-top: .15rem; }

.ha-cf7-form .services-list .wpcf7-form-control-wrap[data-name="contact-service-1"],
.ha-cf7-form .services-list .wpcf7-form-control-wrap[data-name="contact-service-2"],
.ha-cf7-form .services-list .wpcf7-form-control-wrap[data-name="contact-service-3"],
.ha-cf7-form .services-list .wpcf7-form-control-wrap[data-name="contact-service-4"] {
  margin-right: 10px;
}

/* Supprimer le margin par défaut des items CF7 */
.ha-cf7-form .wpcf7-list-item { margin: 0; }

/* Masque les libellés auto CF7 pour ces contrôles */
.ha-cf7-form .services-list .wpcf7-list-item-label,
.ha-cf7-form .switch-item .wpcf7-list-item-label { display: none; }

/* ===== Horaires de préférence ===== */
.ha-cf7-form label[for="contact-pref"] { display: none; }

/* ===== Switch réutilisable (newsletter + privacy) ===== */
.ha-cf7-form .switch-item { display: flex; align-items: center; }
.ha-cf7-form .switch-item input[type="checkbox"],
.ha-cf7-form .privacy-accept input[type="checkbox"]{
  appearance: none; width: 38px; height: 22px; border-radius: 999px;
  background: #d1d5db; position: relative; transition: .2s;
  vertical-align: middle; margin-right: .5rem;
}
.ha-cf7-form .switch-item input[type="checkbox"]::after,
.ha-cf7-form .privacy-accept input[type="checkbox"]::after{
  content:""; position:absolute; top:2px; left:2px; width:18px; height:18px;
  border-radius:50%; background:#fff; transition:.2s;
}
.ha-cf7-form .switch-item input[type="checkbox"]:checked,
.ha-cf7-form .privacy-accept input[type="checkbox"]:checked{ background:#22c55e; }
.ha-cf7-form .switch-item input[type="checkbox"]:checked::after,
.ha-cf7-form .privacy-accept input[type="checkbox"]:checked::after{ transform:translateX(16px); }

.ha-cf7-form .switch-item .wpcf7-form-control-wrap[data-name="contact-staytuned"],
.ha-cf7-form .switch-item .wpcf7-form-control-wrap[data-name="privacy-consent"] {
  margin-right: 10px;
}

/* Bouton envoyer (sobre) */
.ha-cf7-form input[type="submit"]{
  display:inline-block; padding:14px 100px; border-radius:28px; border:0;
  background:#1f1f1f; color:#fff; font-weight:600; letter-spacing:.5px;
  transition: color 0.3s ease; cursor: pointer;
}
.ha-cf7-form input[type="submit"]:hover{ background-color:#505050; transition: color 0.3s ease; }

/* Astérisque “Champs requis” aligné à droite */
.ha-cf7-form p.small { text-align: end; }

/* Cases à cocher des services (création site, dev, graphisme, marketing) */
.ha-cf7-form .services-list input[type="checkbox"] {
  appearance: none;       /* supprime le style par défaut */
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
  background: #C0C0C0;    /* couleur quand non coché */
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

/* État coché */
.ha-cf7-form .services-list input[type="checkbox"]:checked {
  background: #FBB911;    /* couleur quand coché */
}

/* Optionnel : ajouter une petite coche blanche */
.ha-cf7-form .services-list input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Switch (newsletter + privacy) */

/* état normal (off) */
.ha-cf7-form .switch-item input[type="checkbox"],
.ha-cf7-form .privacy-accept input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db; /* gris clair off */
  position: relative;
  transition: .2s;
  vertical-align: middle;
  margin-right: .5rem;
}

/* petit rond */
.ha-cf7-form .switch-item input[type="checkbox"]::after,
.ha-cf7-form .privacy-accept input[type="checkbox"]::after {
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  transition:.2s;
}

/* état activé (on) → jaune #FBB911 */
.ha-cf7-form .switch-item input[type="checkbox"]:checked,
.ha-cf7-form .privacy-accept input[type="checkbox"]:checked {
  background:#FBB911;
}

.ha-cf7-form .switch-item input[type="checkbox"]:checked::after,
.ha-cf7-form .privacy-accept input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

/* Switch "J'ai lu et j'accepte..." : garder le label aligné
   et placer le message d'erreur sous le switch */
.ha-cf7-form .switch-item > .wpcf7-form-control-wrap[data-name="privacy-consent"]{
  position: relative;
  display: inline-block;   /* crée un bloc autour du switch */
  width: 38px;             /* même largeur que le switch */
  margin-right: 10px;      /* ton espacement souhaité */
  vertical-align: middle;
}

.ha-cf7-form .switch-item > .wpcf7-form-control-wrap[data-name="privacy-consent"] .wpcf7-not-valid-tip{
  position: absolute;
  left: 0;
  top: 26px;               /* juste sous le switch */
  white-space: nowrap;     /* évite le retour à la ligne */
  margin: 4px 0 0;
  font-size: 1em;
  color: #dc2626;
}

/* on continue de masquer "ok" généré par CF7 */
.ha-cf7-form .switch-item .wpcf7-list-item-label{ display:none; }

/* Message de confirmation / d'échec d'envoi */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #16b692;
    background-color: #16b692;
    border-radius: 4px;
    color: white;
    padding: 8px 20px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #ffb900;
    background-color: #ffb900;
    border-radius: 4px;
    color: black;
    padding: 8px 20px;
}