/* =====================================================================
   Thème « Nautisme » — habillage (préfixe nt-) sur Bootstrap 5.3
   Maquettes validées : maquette/buchel.html, maquette/colson.html.
   Couleur principale et polices : Apparence › Thèmes ; tons secondaires du site : réglage d'en-tête nt_palette (includes/layout.php).
   Injecté aussi dans le page builder (config.json → editor_css).
   ===================================================================== */
:root {
  --nt-ink: #0d1b2e; --nt-soft: #eef3f9; --nt-sand: #f7f4ee; --nt-line: #dfe5ee; --nt-accent: #2bb3d6; --nt-muted: #5d6b7e;
  --nt-primary: var(--bs-primary, #1d4fa3); --nt-primary-dark: color-mix(in srgb, var(--nt-primary) 78%, #000);
  --nt-head: inherit; --nt-hd: 86px;
}
html { scroll-padding-top: calc(var(--nt-hd) + 16px); }
body { font-size: 1.02rem; line-height: 1.7; color: var(--nt-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; line-height: 1.08; color: var(--nt-ink); }
a { color: var(--nt-primary); }
img { max-width: 100%; }
.nt-sec { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.nt-soft { background: var(--nt-soft); }
.nt-white { background: #fff; }
.nt-dark { background: var(--nt-ink); color: #c9d2de; }
.nt-dark h2, .nt-dark h3 { color: #fff; }
.nt-sec:not(.nt-soft, .nt-dark) + .nt-sec:not(.nt-soft, .nt-dark), .nt-sec.nt-soft + .nt-sec.nt-soft { padding-top: 0; }
.nt-tag { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nt-primary); }
.nt-tag::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.nt-dark .nt-tag { color: var(--nt-accent); }
.nt-h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.btn { border-radius: 10px; padding: .85rem 1.4rem; font-weight: 600; }
.btn-line { border: 1.5px solid var(--nt-ink); color: var(--nt-ink); background: transparent; } .btn-line:hover { background: var(--nt-ink); color: #fff; }
.btn-white { background: #fff; color: var(--nt-ink); border: 0; } .btn-white:hover { background: var(--nt-soft); color: var(--nt-ink); }

/* Bandeau + en-tête */
.nt-top { background: var(--nt-ink); color: #c9d2de; font-size: .84rem; }
.nt-top .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.nt-top a { color: #fff; text-decoration: none; font-weight: 600; }
.nt-top i { color: var(--nt-accent); margin-right: .4rem; }
.nt-hd { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--nt-line); transition: box-shadow .3s; }
.nt-hd.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35); }
.nt-hd .container { display: flex; align-items: center; gap: 2rem; height: var(--nt-hd); }
.nt-logo { display: block; line-height: 0; flex: none; }
.nt-logo img { height: 62px; width: auto; }
.nt-logo b { font-size: 1.3rem; color: var(--nt-ink); line-height: 1.2; }
.nt-nav { margin-left: auto; }
.nt-nav > ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nt-nav li { position: relative; }
.nt-nav a { display: inline-flex; padding: .5rem .75rem; color: var(--nt-ink); text-decoration: none; font-weight: 500; }
.nt-nav a:hover, .nt-nav a.active { color: var(--nt-primary); }
.nt-nav a.dd::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); margin: .55rem 0 0 .5rem; }
.nt-nav .sub { position: absolute; top: 100%; left: 0; padding-top: .5rem; opacity: 0; visibility: hidden; transition: opacity .2s; }
.nt-nav .sub ul { list-style: none; margin: 0; min-width: 230px; background: #fff; border: 1px solid var(--nt-line); border-radius: 12px; padding: .4rem; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .3); }
.nt-nav .sub a { display: block; }
.nt-nav .has-sub:hover .sub, .nt-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.nt-hd-right { display: flex; align-items: center; gap: .75rem; }
.nt-lang a { font-size: .8rem; font-weight: 600; padding: .3rem .4rem; color: var(--nt-muted); text-decoration: none; } .nt-lang a.active { color: var(--nt-ink); }
.nt-burger { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nt-burger span { display: block; width: 22px; height: 2px; background: var(--nt-ink); margin: 5px auto; }
.nt-menu { --bs-offcanvas-width: min(400px, 100vw); padding: 1.25rem 1.5rem 1.75rem; }
.nt-menu .nt-logo img { height: 54px; }
.nt-menu-links { list-style: none; margin: 1.75rem 0; padding: 0; }
.nt-menu-links > li > a { display: block; font: 700 1.5rem/1.3 var(--nt-head); padding: .45rem 0; color: var(--nt-ink); text-decoration: none; }
.nt-menu-links ul { list-style: none; padding: 0 0 .5rem; } .nt-menu-links ul a { display: block; padding: .3rem 0; color: var(--nt-muted); text-decoration: none; }
.nt-menu-foot { margin-top: auto; display: grid; gap: .75rem; }
.nt-menu-tel a { font-weight: 600; text-decoration: none; } .nt-menu-tel i { margin-right: .4rem; }
@media (max-width: 1199.98px) { .nt-nav { display: none; } .nt-burger { display: block; } .nt-hd-right { margin-left: auto; } }
@media (max-width: 767.98px) {
  :root { --nt-hd: 72px; } .nt-logo img { height: 50px; } .nt-top-addr { display: none; } .nt-top .container { justify-content: center; }
  .nt-hd-right .nt-cta { padding: .55rem .9rem; font-size: .9rem; }
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } /* gouttière plus large que la marge du conteneur : défilement horizontal */
}
@media (max-width: 399.98px) { .nt-hd-right .nt-cta { display: none; } }

/* Accueil */
.nt-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); background: linear-gradient(180deg, var(--nt-soft), #fff); }
.nt-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); margin: 1.2rem 0 1.3rem; }
.nt-hero h1 span { color: var(--nt-primary); }
.nt-hero .lead { color: var(--nt-muted); max-width: 34rem; }
.nt-hero-img { position: relative; border-radius: 26px; overflow: hidden; height: 560px; }
.nt-hero-img > img { width: 100%; height: 100%; object-fit: cover; }
.nt-hero-card { position: absolute; left: 18px; bottom: 18px; right: 18px; max-width: 340px; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; display: flex; gap: .9rem; align-items: center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.nt-hero-card i { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--nt-primary); color: #fff; font-size: 1.3rem; }
.nt-hero-card b { display: block; font: 700 1.05rem var(--nt-head); }
.nt-hero-card span { font-size: .85rem; color: var(--nt-muted); line-height: 1.4; display: block; }
.nt-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.nt-chips span { background: #fff; border: 1px solid var(--nt-line); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; }
.nt-chips i { color: var(--nt-primary); margin-right: .35rem; }
@media (max-width: 991.98px) { .nt-hero-img { height: 420px; } }

/* En-tête des pages intérieures */
.nt-pagehead { position: relative; overflow: hidden; background: var(--nt-ink); color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.nt-pagehead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.nt-pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--nt-ink) 10%, transparent); opacity: .85; }
.nt-pagehead .container { position: relative; z-index: 1; }
.nt-pagehead .nt-tag { color: var(--nt-accent); }
.nt-pagehead h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin: 1rem 0; max-width: 900px; }
.nt-pagehead p { color: rgba(255, 255, 255, .85); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 680px; margin: 0; }
.nt-pagehead .btn { margin-top: 1.8rem; }

/* Services */
.nt-service { height: 100%; background: #fff; border: 1px solid var(--nt-line); border-radius: 20px; padding: 1.8rem; transition: transform .25s, box-shadow .25s; }
.nt-service:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35); }
.nt-service > i { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--nt-soft); color: var(--nt-primary); font-size: 1.5rem; }
.nt-service h3 { font-size: 1.3rem; margin: 1.2rem 0 .6rem; }
.nt-service p { color: var(--nt-muted); font-size: .95rem; }
.nt-service p:last-child, .nt-service ul:last-child { margin-bottom: 0; }
.nt-service ul { padding-left: 1.1rem; color: var(--nt-muted); font-size: .95rem; }

/* Texte + photo, histoire */
.nt-photo { border-radius: 24px; overflow: hidden; min-height: 0; }
.nt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-split .nt-photo { aspect-ratio: 4 / 3; }
.nt-story .nt-photo { height: 520px; }
@media (max-width: 991.98px) { .nt-story .nt-photo { height: 380px; } }
.nt-quote { border-left: 3px solid var(--nt-primary); padding-left: 1.2rem; font: 600 1.2rem/1.5 var(--nt-head); margin: 1.5rem 0; }
.nt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.nt-steps div { border-top: 2px solid var(--nt-primary); padding-top: .8rem; }
.nt-steps b { display: block; font: 700 1.5rem/1.2 var(--nt-head); }
.nt-steps span { font-size: .88rem; color: var(--nt-muted); display: block; line-height: 1.45; margin-top: .3rem; }
@media (max-width: 575.98px) { .nt-steps { grid-template-columns: 1fr; } }
.nt-checks { list-style: none; padding: 0; margin: 1.2rem 0; }
.nt-checks li { padding: .5rem 0 .5rem 1.9rem; position: relative; border-bottom: 1px solid var(--nt-line); }
.nt-checks li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .45rem; color: var(--nt-primary); }
.nt-dark .nt-checks li { border-color: rgba(255, 255, 255, .1); } .nt-dark .nt-checks li::before { color: var(--nt-accent); }

/* Fiche moteur */
.nt-engine { background: #fff; border-radius: 24px; padding: 1.5rem; }
.nt-engine img { width: 100%; height: auto; display: block; }
.nt-spec { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: .6rem 1.4rem; margin: 0; }
.nt-spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nt-spec div:last-child { border: 0; }
.nt-spec dt { color: #fff; font-weight: 600; } .nt-spec dd { margin: 0; text-align: right; }
.nt-sec:not(.nt-dark) .nt-spec { background: #fff; border-color: var(--nt-line); }
.nt-sec:not(.nt-dark) .nt-spec div { border-color: var(--nt-line); } .nt-sec:not(.nt-dark) .nt-spec dt { color: var(--nt-ink); } .nt-sec:not(.nt-dark) .nt-spec dd { color: var(--nt-muted); }

/* Produits */
.nt-product { height: 100%; background: #fff; border: 1px solid var(--nt-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.nt-product-img { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--nt-line); }
.nt-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.nt-product > div { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.nt-product h3 { font-size: 1.3rem; margin: 0 0 .4rem; } .nt-product h3 a { color: var(--nt-ink); text-decoration: none; }
.nt-product p { color: var(--nt-muted); font-size: .95rem; }
.nt-product-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.nt-product-links .btn { padding: .6rem 1rem; font-size: .92rem; }

/* Engagements */
.nt-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.nt-why i { font-size: 1.6rem; color: var(--nt-accent); }
.nt-why h3 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
.nt-why p { font-size: .93rem; margin: 0; }
@media (max-width: 991.98px) { .nt-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459.98px) { .nt-why { grid-template-columns: 1fr; } }

/* Galeries */
.nt-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.nt-strip figure { margin: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #fff; }
.nt-strip figure:first-child { grid-row: span 2; }
.nt-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nt-strip figure:hover img { transform: scale(1.04); }
@media (max-width: 767.98px) { .nt-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; } .nt-strip figure:first-child { grid-column: span 2; grid-row: auto; } }
.nt-gallery { columns: 3 260px; column-gap: 14px; }
.nt-gallery figure { margin: 0 0 14px; break-inside: avoid; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.nt-gallery img { width: 100%; height: auto; display: block; transition: transform .6s; }
.nt-gallery figure:hover img { transform: scale(1.03); }

/* Port d'attache */
.nt-port { position: relative; border-radius: 26px; overflow: hidden; color: #fff; }
.nt-port > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nt-port::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--nt-ink), transparent); opacity: .85; }
.nt-port > div { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 4rem); max-width: 640px; }
.nt-port h2 { color: #fff; } .nt-port .nt-tag { color: #fff; }

/* Devis et contact */
.nt-quoteform { background: #fff; border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .4); }
.nt-quoteform .form-control, .nt-quoteform .form-select { border-radius: 10px; padding: .75rem .9rem; border-color: var(--nt-line); background-color: var(--nt-sand); }
.nt-quoteform label, .nt-quoteform .form-label { font-size: .85rem; font-weight: 600; }
.nt-quoteform .btn { width: 100%; }
.nt-contact { list-style: none; padding: 0; display: grid; gap: .9rem; margin: 1.5rem 0 0; }
.nt-contact li { display: flex; gap: .9rem; align-items: flex-start; }
.nt-contact i { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--nt-primary); }
.nt-sec:not(.nt-soft) .nt-contact i { background: var(--nt-soft); }
.nt-contact b { display: block; } .nt-contact a { color: var(--nt-ink); text-decoration: none; }

/* Textes (mentions légales…) */
.nt-prose { max-width: 820px; font-size: 1.05rem; line-height: 1.8; }
.nt-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 .6em; }
.nt-prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.nt-prose h2:first-child, .nt-prose h3:first-child { margin-top: 0; }
.nt-prose a { word-break: break-word; }
.nt-dl { margin: 0 0 1.5rem; border: 1px solid var(--nt-line); border-radius: 14px; background: #fff; }
.nt-dl div { display: grid; grid-template-columns: minmax(9rem, 34%) 1fr; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--nt-line); }
.nt-dl div:last-child { border-bottom: 0; }
.nt-dl dt { font-weight: 600; font-size: .95rem; } .nt-dl dd { margin: 0; color: var(--nt-muted); }
@media (max-width: 575.98px) { .nt-dl div { grid-template-columns: 1fr; gap: .1rem; } }

/* Pied de page */
.nt-ft { background: var(--nt-ink); color: #aab4c2; font-size: .92rem; padding: 4rem 0 2rem; }
.nt-ft-logo { background: #fff; border-radius: 14px; padding: .6rem .9rem; display: inline-block; line-height: 0; }
.nt-ft-logo img { height: 56px; width: auto; }
.nt-ft-brand p { margin: 1.2rem 0; max-width: 380px; }
.nt-ft h4 { color: #fff; font-family: inherit; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.nt-ft a { color: #fff; text-decoration: none; } .nt-ft a:hover { color: var(--nt-accent); }
.nt-ft-links { list-style: none; display: grid; gap: .5rem; padding: 0; margin: 0; }
.nt-ft-social { display: flex; gap: .5rem; }
.nt-ft-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.nt-ft-bot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Formulaires du plugin (contactformV2) */
.eg-form .form-control, .eg-form .form-select { border-radius: 10px; }
