/* Progressive corrections for the existing export, not a replacement theme. */
:root { --tf-blue: #226098; }
html { scroll-padding-top: 100px; }
body h1, body h2, body h3, body a, body button { letter-spacing: 0 !important; }
body img { max-width: 100%; }
body input, body select, body textarea { max-width: 100%; box-sizing: border-box; }
body :focus-visible { outline: 2px solid var(--tf-blue); outline-offset: 4px; }
body .u-btn { white-space: normal; overflow-wrap: anywhere; }
.tf-skip-link { position: fixed; left: 16px; top: -80px; z-index: 100010; padding: 12px 18px; background: white; color: #123d63; }
.tf-skip-link:focus { top: 12px; }

/* The old drawer CSS forced a visible sidenav even when Nicepage closed it. */
html body header#sec-90a5 .u-nav-container-collapse { display: none !important; visibility: hidden !important; }
html body header#sec-90a5 .u-menu-close { border: 0 !important; padding: 0 !important; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
html body header#sec-90a5 .u-hamburger-link { border: 0; background: transparent; cursor: pointer; }
html body header#sec-90a5 .u-icon-1 { cursor: pointer; display: inline-flex !important; }
@media (min-width:1200px) {
  html body header#sec-90a5 .u-nav-container .u-nav-item:focus-within > .u-nav-popup { display: block !important; visibility: visible !important; opacity: 1 !important; }
}
html body header#sec-90a5 .u-icon-1 img { display: block; }
@media (max-width:1199px) {
  html { scroll-padding-top: 84px; }
  html body header#sec-90a5.tf-menu-open .u-nav-container-collapse {
    display: flex !important; visibility: visible !important; opacity: 1 !important;
    align-items: stretch !important; justify-content: flex-end !important;
    background: rgba(16, 27, 38, .36) !important; transform: none !important;
  }
  html body header#sec-90a5.tf-menu-open .u-sidenav {
    display: block !important; position: relative !important; inset: auto !important;
    width: min(340px, 90vw) !important; flex: 0 0 min(340px, 90vw) !important;
    transform: none !important; visibility: visible !important; opacity: 1 !important;
    border-radius: 0 !important; background: white !important; z-index: 1 !important;
  }
  html body header#sec-90a5 .u-menu-overlay { display: none !important; }
  html body header#sec-90a5 .u-nav-3 { width: 100% !important; }
  html body header#sec-90a5 .u-sidenav a { min-height: 44px; }
  html body header#sec-90a5 .u-sidenav .u-nav-popup { border-left: 0 !important; background: transparent !important; }
  html body header#sec-90a5 .u-sidenav .u-nav-4 { padding-left: 12px !important; }
}

.tf-modal { display: none !important; position: fixed; inset: 0; z-index: 100005; padding: 16px; align-items: center; justify-content: center; }
.tf-modal.is-open { display: flex !important; }
.tf-modal-backdrop { position: absolute; inset: 0; background: rgba(12,22,31,.62); }
.tf-modal-dialog { position: relative; width: 640px; max-width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: white; color: #202a33; border-radius: 8px; padding: 28px; }
.tf-modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: #24313c; font-size: 28px; cursor: pointer; }
.tf-modal-header { padding-right: 24px; margin-bottom: 24px; }
.tf-modal-badge { display: block; font-size: 13px; color: #226098; }
.tf-modal-header h3 { margin: 12px 0; font-size: 24px; line-height: 1.25; }
.tf-modal-header p { margin: 0; font-size: 14px; line-height: 1.6; color: #53616d; }
.tf-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tf-form-group { min-width: 0; margin-bottom: 16px; }
.tf-form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.tf-form-group input, .tf-form-group select, .tf-form-group textarea { width: 100%; border: 1px solid #a8b4c0; border-radius: 4px; background: #fff; color: #202a33; padding: 12px; min-height: 46px; }
.tf-form-group textarea { resize: vertical; }
.tf-form-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tf-form-actions button, .tf-form-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 4px; padding: 12px; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.tf-btn-primary { color: #fff; background: #226098; }
.tf-btn-whatsapp { color: #fff !important; background: #187d3d; }
.tf-form-actions button:disabled { opacity: .65; cursor: wait; }
.tf-alert-success { margin-top: 16px; color: #176636; }
.tf-modal .tf-form-group input, .tf-modal .tf-form-group select, .tf-modal textarea { font-size: 16px !important; }
.tf-form-error { color: #9c2433; margin: 12px 0 0; font-size: 14px; }
.tf-contact-status { min-height: 20px; }
.tf-contact-status:empty { display: none; }

/* Keep portfolio images uncropped; the rhythm comes from their real formats. */
.tf-reportage { padding: 72px 24px; background: #fff; color: #1d232a; }
.tf-reportage-inner { max-width: 1180px; margin: 0 auto; }
.tf-photo-grid { columns: 3; column-gap: 16px; }
.tf-photo-grid figure { margin: 0 0 16px; break-inside: avoid; }
.tf-photo-grid a { display: block; overflow: hidden; }
.tf-photo-grid img { display: block; width: 100%; height: auto; border-radius: 0; }
.tf-products-grid { margin: 32px 0; }
.tf-reportage-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 24px; }
.tf-reportage-caption h2 { font-size: 24px; line-height: 1.3; margin: 0; }
.tf-reportage-caption a { color: #226098; text-underline-offset: 5px; font-size: 15px; }
.tf-photo-grid a:focus-visible { outline-offset: -4px; }
.tf-photo-viewer { width: min(1100px, 96vw); max-width: 96vw; height: 92dvh; max-height: 92dvh; padding: 48px 48px 32px; border: 0; background: #101318; color: #fff; }
.tf-photo-viewer::backdrop { background: rgba(0,0,0,.82); }
.tf-photo-viewer img { display: block; width: 100%; height: calc(100% - 24px); object-fit: contain; }
.tf-photo-viewer button { position: absolute; background: #fff; color: #17232e; border: 0; width: 44px; height: 44px; cursor: pointer; font-size: 30px; line-height: 1; }
.tf-photo-close { top: 4px; right: 4px; }
.tf-photo-prev { left: 2px; top: 50%; }
.tf-photo-next { right: 2px; top: 50%; }
.tf-photo-count { display: block; text-align: center; font-size: 13px; line-height: 24px; }

/* Correct named containers, rather than masking overflow with body clipping. */
body .u-accordion-link { display: flex; align-items: center; gap: 12px; }
body .u-accordion-link-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
body .u-accordion-link-icon { flex: 0 0 auto; position: static !important; margin: 0 !important; }
body .tf-video-preview { position: relative; width: 100%; aspect-ratio: 16/9; }
body .tf-video-frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
body .tf-video-card { min-width: 0; }
body .tf-video-link { max-width: 100%; }
html body .u-immobilier-page section > .u-sheet { animation: none !important; }
html body .u-immobilier-page #accueil .u-layout-cell-2 { background-image: none !important; background-color: transparent !important; min-height: 0 !important; border: 0 !important; }
html body .u-immobilier-page #accueil .u-layout-cell-2 .u-container-layout { padding: 0 !important; }
html body .u-immobilier-page #accueil .u-block-im01-img { height: auto !important; min-height: 0 !important; width: 100% !important; object-fit: contain !important; border-radius: 0 !important; box-shadow: none !important; }
html body .u-immobilier-page #accueil .u-text-13 { position: static !important; color: #293c36 !important; margin: 16px 0 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 14px !important; padding: 0 !important; }
body .tf-filter-btn { min-height: 44px; }
body .tf-footer { background: #171c22 !important; }
html body .u-text { max-width: 100%; }
html body ul.u-text-default { display: block !important; width: auto !important; }
html body[data-tf-page="conditions-générales"] .u-layout { margin: 0 !important; width: 100% !important; }
html body[data-tf-page="index"] #sec-203e .u-list { width: 100% !important; overflow: visible !important; }
html body[data-tf-page="index"] #sec-203e .u-repeater { display: grid !important; width: 100% !important; grid-template-columns: repeat(7,minmax(0,1fr)) !important; gap: 20px !important; transform: none !important; }
html body[data-tf-page="index"] #sec-203e .u-list-item { width: auto !important; min-width: 0 !important; min-height: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
html body[data-tf-page="index"] #sec-203e .u-container-layout { padding: 12px 0 !important; }
html body[data-tf-page="index"] #sec-203e .u-icon { width: 80px !important; height: 72px !important; padding: 0 !important; margin: 0 auto !important; }
html body[data-tf-page="index"] #sec-203e { background: #fff !important; color: #202a33 !important; }
html body[data-tf-page="index"] #sec-203e .u-sheet { min-height: 0 !important; padding-top: 56px; padding-bottom: 56px; }
html body[data-tf-page="index"] #sec-203e h2.u-text { color: #202a33 !important; font-size: 28px !important; margin: 0 0 32px !important; }
html body[data-tf-page="index"] #sec-203e .u-list { margin-top: 0 !important; margin-bottom: 0 !important; }
html body[data-tf-page="index"] #sec-203e .u-list .u-text { font-size: 13px !important; color: #334252 !important; margin: 12px 0 0 !important; }
html body .tf-footer-lang-label, html body .tf-footer-legal a { color: #bcc7d2 !important; }
html body[data-tf-page="info"] #carousel_7d8d .u-list { overflow: visible !important; }
html body[data-tf-page="info"] #carousel_7d8d .u-repeater { width: 100% !important; transform: none !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
html body[data-tf-page="info"] #carousel_7d8d .u-list-item { width: auto !important; min-width: 0 !important; }
html body[data-tf-page="index"] #sec-203e .u-repeater,
html body[data-tf-page="info"] #carousel_7d8d .u-repeater { display: grid !important; grid-auto-flow: row !important; grid-auto-columns: minmax(0,1fr) !important; }
html body[data-tf-page="index"] #sec-203e .u-list-control, html body[data-tf-page="info"] #carousel_7d8d .u-list-control { display: none !important; }
@media (max-width:991px) {
  html body[data-tf-page="index"] #sec-203e .u-repeater { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  html body[data-tf-page="info"] #carousel_7d8d .u-repeater { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body .u-text-default, html body .tf-heading-h1 { display: block !important; max-width: 100% !important; width: auto !important; }
}
@media (max-width:575px) {
  html body main .u-sheet, html body .u-content-layout.u-sheet { width: calc(100% - 40px) !important; max-width: calc(100% - 40px) !important; }
  html body main .u-sheet .u-layout-wrap { max-width: 100% !important; }
  html body main .u-group, html body main .u-group-elements, html body main .u-slider, html body main .u-list { max-width: 100% !important; }
  html body main .u-accordion, html body main .u-blog, html body main .u-gallery, html body main .u-shape { max-width: 100% !important; }
  html body main .u-layout-col, html body main .u-layout-cell { min-width: 0 !important; }
  html body[data-tf-page="impression"] .u-layout-wrap,
  html body[data-tf-page="modèle-mariage"] .u-layout-wrap,
  html body[data-tf-page="votre-journée"] .u-layout-wrap { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
  html body[data-tf-page="votre-journée"] .u-layout { margin: 0 !important; width: 100% !important; }
  html body[data-tf-page="index"] #sec-d9ca .u-custom-html { position: static !important; width: 135px !important; margin: 20px auto !important; }
  html body[data-tf-page="prestations"] #sec-5c39 .u-list { width: calc(100% - 40px) !important; margin-left: auto !important; margin-right: auto !important; }
  html body[data-tf-page="prestations"] #sec-5c39 .u-repeater { grid-template-columns: minmax(0,1fr) !important; }
  html body[data-tf-page="prestations"] #sec-5c39 .u-image { width: 100% !important; }
  html body[data-tf-page="timfocus-photographe-mariage"] #carousel_dd5e .u-layout-wrap { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  html body[data-tf-page="nouveau-ne"] #sec-b474 .u-btn { margin-left: auto !important; margin-right: auto !important; max-width: 100%; }
}

@media (max-width:767px) {
  .tf-modal-dialog { padding: 24px 20px; }
  .tf-form-row, .tf-form-actions { grid-template-columns: minmax(0,1fr); }
  html body .u-text { max-width: 100%; overflow-wrap: break-word !important; }
  html body h1 { font-size: 32px !important; line-height: 1.16 !important; }
  html body h2 { font-size: 26px !important; line-height: 1.25 !important; }
  html body .u-form { max-width: 100%; }
  html body .u-inner-form { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  html body .u-inner-form > .u-form-group { padding-left: 0 !important; }
  html body .u-form-partition-factor-2 { width: 100% !important; }
  html body .u-form input:not([type=checkbox]):not([type=radio]), html body .u-form textarea, html body .u-form select { font-size: 16px !important; }
  html body .u-form-group { min-width: 0; }
  html body .u-form .u-form-submit .u-btn { width: 100%; margin-left: 0; margin-right: 0; }
  html body[data-tf-page="conditions-générales"] .u-layout-wrap { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  html body[data-tf-page="conditions-générales"] .u-layout > .u-layout-col > .u-size-60 > .u-layout-row { flex-direction: column; }
  html body[data-tf-page="conditions-générales"] .u-layout-cell { width: 100%; }
  html body[data-tf-page="info"] #carousel_7d8d .u-repeater { grid-template-columns: minmax(0,1fr) !important; }
  html body[data-tf-page="info"] #carousel_7d8d .u-list { width: 100% !important; }
  html body[data-tf-page="index"] #sec-203e .u-repeater { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body[data-tf-page="matériel"] .u-custom-html { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; overflow-wrap: anywhere; }
  html body[data-tf-page="copie-de-immobilier"] #sec-a5f7 .u-list { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  html body[data-tf-page="copie-de-immobilier"] #sec-a5f7 .u-repeater { grid-template-columns: minmax(0,1fr) !important; }
  html body[data-tf-page="timfocus-photographe-mariage"] #sec-54d2 img { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
  .tf-reportage { padding: 48px 20px; }
  .tf-photo-grid { columns: 2; column-gap: 10px; }
  .tf-photo-grid figure { margin-bottom: 10px; }
  .tf-reportage-caption { flex-direction: column; gap: 12px; margin-top: 20px; }
  html body .tf-reportage-caption h2 { font-size: 22px !important; }
  html body .u-immobilier-page section > .u-sheet { min-height: 0 !important; padding-top: 48px !important; padding-bottom: 48px !important; }
  html body .u-immobilier-page section .u-list-item, html body .u-immobilier-page section .u-layout-cell:not([data-image-width]) { min-height: 0 !important; }
  html body .u-immobilier-page .tf-video-card { min-height: 0 !important; }
  html body .u-immobilier-page .tf-video-link { margin-top: 20px !important; }
  html body .u-immobilier-page #accueil .u-layout-wrap { margin-top: 0 !important; margin-bottom: 0 !important; }
  html body .u-immobilier-page #accueil .u-layout-cell-2 { margin-top: 24px; }
  html body .u-immobilier-page #accueil .u-layout-row { flex-direction: column-reverse !important; }
  html body .u-immobilier-page #accueil .u-layout-cell-2 { margin-top: 0 !important; margin-bottom: 24px !important; }
  html body .u-immobilier-page #accueil .tf-proof-list { display: none !important; }
  html body .u-immobilier-page #accueil .u-text-4 { margin-top: 20px !important; }
}
@media (max-width:359px) { .tf-photo-grid { columns: 1; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  body *, body *::before, body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
