/* ==========================================================================
   GARYSOFT — adaptation du design au balisage des blocs WordPress
   (complète assets/css/style.css, chargé avant)
   ========================================================================== */

/* ---------- Généralités ---------- */
/* Thème classique : WordPress ajoute un conteneur intérieur aux groupes. On le rend « transparent »
   pour que les grilles et alignements du design s'appliquent directement aux blocs enfants. */
.wp-block-group__inner-container { display: contents; }

/* Les marges automatiques de WordPress entre blocs sont remplacées par celles du design. */
:where(.is-layout-flow) > * { margin-block-start: 0; }

.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-list { margin-top: 0; }
.wp-block-heading { margin-top: 0; }
main > :first-child { margin-top: 0; }

/* Les codes courts placés dans un paragraphe vide ne doivent pas créer d'espace. */
main p:empty { display: none; }

/* Texte d'introduction plus foncé dans les volets */
.lead.lead--fort { color: var(--encre); }

/* ---------- Boutons (bloc « Boutons ») ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font-family: var(--f-titre); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  background: var(--nuit); color: var(--blanc);
  box-shadow: 0 10px 22px -12px rgba(14, 33, 64, .7);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wp-block-button__link:hover { background: var(--nuit-2); color: var(--blanc); }
.is-style-garysoft-logo > .wp-block-button__link { background: var(--vert-logo); box-shadow: 0 10px 22px -12px rgba(23, 138, 0, .8); }
.is-style-garysoft-logo > .wp-block-button__link:hover { background: #127000; }
.is-style-garysoft-verre > .wp-block-button__link {
  background: var(--verre-fort); color: var(--nuit); border-color: var(--trait); box-shadow: none;
  -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou);
}
.is-style-garysoft-verre > .wp-block-button__link:hover { background: var(--blanc); border-color: var(--nuit); color: var(--nuit); }
.is-style-garysoft-vif > .wp-block-button__link { background: var(--vert); color: var(--nuit); box-shadow: none; }
.is-style-garysoft-vif > .wp-block-button__link:hover { background: #7BE05A; color: var(--nuit); }
/* Icônes des boutons */
.wp-block-button.ico-dl > .wp-block-button__link::before,
.wp-block-button.ico-tel > .wp-block-button__link::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url(../img/icones/download-blanc.svg) center / contain no-repeat;
}
.wp-block-button.ico-tel > .wp-block-button__link::before { background-image: url(../img/icones/phone-blanc.svg); }

/* ---------- Lien « bouton rond » ---------- */
.rond-lien-p { margin: 0; }
.rond-lien-p a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-titre); font-weight: 600; color: var(--nuit); text-decoration: none;
}
.rond-lien-p a::after {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--nuit) url(../img/icones/chevron-right-blanc.svg) center / 18px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.rond-lien-p a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rond-lien-p a:hover::after { background-color: var(--vert-logo); transform: translateX(3px); }

/* ---------- Pastilles d'icônes ---------- */
.a-pastille::before {
  content: ""; display: block; flex: none; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 18px;
  background: var(--ico, none) center / 24px no-repeat, linear-gradient(145deg, #F2FBEE 0%, var(--menthe-2) 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 138, 0, .14), 0 6px 14px -8px rgba(23, 138, 0, .45);
}
.ico-badge-check { --ico: url(../img/icones/badge-check.svg); }
.ico-building-2 { --ico: url(../img/icones/building-2.svg); }
.ico-calculator { --ico: url(../img/icones/calculator.svg); }
.ico-clock { --ico: url(../img/icones/clock.svg); }
.ico-code-xml { --ico: url(../img/icones/code-xml.svg); }
.ico-database-backup { --ico: url(../img/icones/database-backup.svg); }
.ico-file-text { --ico: url(../img/icones/file-text.svg); }
.ico-globe { --ico: url(../img/icones/globe.svg); }
.ico-graduation-cap { --ico: url(../img/icones/graduation-cap.svg); }
.ico-handshake { --ico: url(../img/icones/handshake.svg); }
.ico-hard-hat { --ico: url(../img/icones/hard-hat.svg); }
.ico-headset { --ico: url(../img/icones/headset.svg); }
.ico-laptop { --ico: url(../img/icones/laptop.svg); }
.ico-mail { --ico: url(../img/icones/mail.svg); }
.ico-mail-warning { --ico: url(../img/icones/mail-warning.svg); }
.ico-map-pin { --ico: url(../img/icones/map-pin.svg); }
.ico-monitor-smartphone { --ico: url(../img/icones/monitor-smartphone.svg); }
.ico-receipt-euro { --ico: url(../img/icones/receipt-euro.svg); }
.ico-refresh-cw { --ico: url(../img/icones/refresh-cw.svg); }
.ico-search { --ico: url(../img/icones/search.svg); }
.ico-server { --ico: url(../img/icones/server.svg); }
.ico-shield-check { --ico: url(../img/icones/shield-check.svg); }
.ico-smartphone { --ico: url(../img/icones/smartphone.svg); }
.ico-store { --ico: url(../img/icones/store.svg); }
.ico-users { --ico: url(../img/icones/users.svg); }
.ico-wrench { --ico: url(../img/icones/wrench.svg); }

/* ---------- Héros de l'accueil ---------- */
.js .titre-anime:not(.est-pret) { visibility: hidden; }
.hero__facts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
.hero__facts .fact { padding: 10px 18px; }
.hero__facts .fact + .fact { border-left: 1px solid var(--trait); }
.hero__facts .fact__label { margin: 0; font-size: var(--fs-xs); color: var(--ardoise); }
.hero__facts .fact__valeur { margin: 2px 0 0; font-family: var(--f-titre); font-weight: 650; font-size: 1.35rem; color: var(--nuit); line-height: 1.2; }
.hero__facts .fact:last-child .fact__valeur { font-size: 1.05rem; padding-top: 4px; }
.hero__text .btn-row { margin-top: 0; }
@media (max-width: 680px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts .fact:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--trait); }
}

/* ---------- Partenaires ---------- */
.partners__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; background: var(--blanc); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--trait-2); text-align: center; }
.partners__item .partners__meta { margin: 0; }
.wp-block-image.partners__logo { height: 56px; display: grid; place-items: center; }
.wp-block-image.partners__logo img { height: 28px; width: auto; max-width: 100%; }
.wp-block-image.partners__logo.badge img { height: 52px; }

/* ---------- Bento ---------- */
.tile > h3, .tile__body > h3 { margin-bottom: 0.35em; }
.tile .rond-lien-p, .tile__body .rond-lien-p { margin-top: auto; }
.tile--dev .tile__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 0; min-width: 0; }

/* ---------- Étapes : numéro dans un cercle (pseudo-élément) ---------- */
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; margin: 13px 13px 31px; border-radius: 50%;
  background: linear-gradient(145deg, var(--nuit-2), var(--nuit)); color: var(--vert);
  font-family: var(--f-titre); font-weight: 650; font-size: 1.35rem;
  box-shadow: 0 0 0 13px rgba(255, 255, 255, .85), 0 0 0 14px rgba(255, 255, 255, .95), 0 26px 50px -18px rgba(14, 33, 64, .35);
}
.steps--v .step::before { width: 48px; height: 48px; margin: 0; font-size: 1.15rem; box-shadow: none; grid-row: span 2; }
.steps--v .step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
.steps--v .step > h3, .steps--v .step > p { grid-column: 2; }

/* ---------- Pour qui ---------- */
.wp-block-image.cercle { position: absolute; margin: 0; }
.wp-block-image.cercle img { width: 100%; height: 100%; object-fit: cover; }
.audience__item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-items: start;
  padding: 18px 20px; border-radius: var(--r); background: var(--blanc); box-shadow: var(--ombre-1), inset 0 0 0 1px var(--trait-2);
}
.audience__item::before { grid-row: span 2; margin: 0; }
.audience__item > h3 { grid-column: 2; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.25em; }
.audience__item > p { grid-column: 2; margin: 0; color: var(--ardoise); font-size: 0.97rem; }
.audience .lead { margin-bottom: 28px; }

/* ---------- Arguments ---------- */
.arg p.arg__label { margin: 0; font-size: var(--fs-xs); color: var(--sur-nuit); }
.arg p.arg__year { margin: 4px 0 18px; font-family: var(--f-titre); font-size: 3.6rem; line-height: 1; font-weight: 650; letter-spacing: -0.04em; color: var(--vert); }
.arg p.avatar { display: grid; margin: 0 0 18px; color: var(--blanc); font-family: var(--f-titre); font-size: 1.1rem; font-weight: 650; }

/* ---------- Zone d'intervention ---------- */
.zone__groupe h3::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url(../img/icones/map-pin.svg) center / contain no-repeat;
}
.zone__groupe--distance h3::before { background-image: url(../img/icones/monitor-smartphone.svg); }
.zone__groupe { padding: 18px 20px; border-radius: var(--r); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2); }
.zone__groupe h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.4em; display: flex; align-items: center; gap: 8px; }
.zone__groupe p { margin: 0; color: var(--ardoise); font-size: 0.92rem; }

/* ---------- Engagements, services, produits ---------- */
.engagement, .service, .product, .arg { display: flex; flex-direction: column; align-items: flex-start; }
.product::before { width: 44px; height: 44px; margin-bottom: 14px; background-size: 20px, auto; }
.service::before { width: 50px; height: 50px; margin-bottom: 14px; }
.product > p:last-child, .service > p:last-child, .engagement > p:last-child { margin-bottom: 0; }

/* ---------- Bandeau d'appel ---------- */
.band > .wp-block-group > h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 0.3em; }
.band .btn-row { margin: 0; }
.band .wp-block-buttons { margin: 0; }
.wp-block-image.band__logo { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--blanc); box-shadow: var(--ombre-1), inset 0 0 0 1px var(--trait-2); padding: 18px; }
.wp-block-image.band__logo img { width: 100%; height: auto; }

/* ---------- Pages intérieures ---------- */
.wp-block-image.page-hero__media { position: relative; display: grid; place-items: center; padding: 6%; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 20px; }
.split__aside .wp-block-image.brand img { height: 44px; width: auto; }
.split__aside .wp-block-image.brand { margin-bottom: 20px; }
.split__aside .wp-block-image.brand--sm img { height: 30px; }
.split__aside .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.split__aside .badges img { height: 84px; width: auto; }
.split__aside .statut::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url(../img/icones/badge-check.svg) center / contain no-repeat;
}
.split__main > .products, .split__main > .callout { margin-top: 32px; }
.split__main > .products:first-child { margin-top: 0; }
.titre-espace { margin-top: clamp(56px, 7vw, 88px); }

/* Listes à coches */
.checklist li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: var(--menthe) url(../img/icones/check-vert.svg) center / 16px no-repeat;
}
.section--nuit .checklist li::before { background-color: rgba(95, 212, 58, .16); }

/* Téléchargements */
.dl-item .wp-block-buttons { margin: 0; }
.dl-item > .wp-block-group > h3 { margin: 0 0 4px; }
.dl-item > .wp-block-group > p { margin: 0; }
.dl-list + .dl-list { margin-top: 12px; }
.callout { margin-top: 40px; }

/* Assistance */
.remote__card .wp-block-image img { height: 34px; width: auto; margin-bottom: 18px; }
.remote__card .titre-carte { font-size: 1.375rem; }
.remote__card .wp-block-buttons { margin: 8px 0 14px; }
.remote__card .wp-block-button { width: 100%; }
.remote__card .wp-block-button__link { width: 100%; justify-content: center; }
.remote__card .petit { font-size: var(--fs-sm); color: var(--ardoise); line-height: 1.5; margin: 0; }
.remote > .wp-block-group > h2 { margin-bottom: 32px; }

/* Contact */
.contact__form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl); background: var(--blanc); box-shadow: var(--ombre-2), inset 0 0 0 1px var(--trait-2); }
.contact__form > .muted { margin-bottom: 28px; }

/* Formulaire Contact Form 7 */
.wpcf7 form .form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .field input:not([type="submit"]), .wpcf7 .field select, .wpcf7 .field textarea {
  font: inherit; font-size: 1rem; color: var(--encre); background: var(--fond);
  border: 1.5px solid var(--trait); border-radius: var(--r-sm); padding: 12px 16px; min-height: 50px; width: 100%;
}
.wpcf7 .field textarea { min-height: 160px; resize: vertical; }
.wpcf7 .field input:not([type="submit"]):focus, .wpcf7 .field select:focus, .wpcf7 .field textarea:focus { outline: none; background: var(--blanc); border-color: var(--vert-logo); box-shadow: 0 0 0 4px rgba(23, 138, 0, .15); }
.wpcf7 .wpcf7-not-valid { border-color: #B42318 !important; background: #FFF6F5 !important; }
.wpcf7 .wpcf7-not-valid-tip { color: #B42318; font-size: 0.875rem; margin-top: 4px; display: block; }
.wpcf7 .consent { display: block; grid-column: 1 / -1; font-size: 0.925rem; color: var(--ardoise); }
.wpcf7 .consent .wpcf7-list-item { margin: 0; }
.wpcf7 .consent label { display: inline; }
.wpcf7 .consent input[type="checkbox"] { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--vert-logo); }
.wpcf7 input.wpcf7-submit {
  width: auto; min-height: 50px; padding: 12px 26px; border: 0; border-radius: var(--pill); cursor: pointer;
  background: var(--nuit); color: var(--blanc); font-family: var(--f-titre); font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 10px 22px -12px rgba(14, 33, 64, .7); transition: background-color .15s ease;
}
.wpcf7 input.wpcf7-submit:hover:not(:disabled) { background: var(--nuit-2); }
.wpcf7 .field--full:has(.wpcf7-submit) { flex-direction: row; align-items: center; }
.wpcf7 .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { margin: 0 12px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--r-sm); border-width: 1px; font-weight: 500; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--menthe); color: #1F5200; border-color: #A9D98A; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { background: #FDECEA; color: #8A1C12; border-color: #F1B0A8; }
@media (max-width: 640px) { .wpcf7 form .form { grid-template-columns: minmax(0, 1fr); } }

/* Mentions légales */
.mentions-liste { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
mark.todo { background: #FFF4C2; color: inherit; border-bottom: 1px dashed #C9A400; padding: 0 3px; }

/* Références : emplacements */
.slot > p { margin: 0; }
.slot .slot__tag { align-self: flex-start; }
.slot--logo .slot__tag { align-self: center; }
.slot__citation { font-size: 1.05rem; color: var(--encre); }
.slot__auteur { margin-top: auto; font-size: var(--fs-sm); }

/* Pied de page */
.footer-horaires { margin-top: 14px; }
.site-footer .menu-item a, .site-footer li a { color: var(--blanc); }
