/* ==========================================================================
   OGHAM 54 SP — Page de commercialisation
   Feuille de style dédiée. Chargée uniquement sur le template ogham54.php.
   N'affecte aucune autre page du site.
   Palette : charte OGHAM YACHTS (31.05.24)
   ========================================================================== */

.o54 {
    --o54-bleu:   #192441;  /* Delft blue      */
    --o54-rouge:  #CC2C1F;  /* Fire engine red */
    --o54-champ:  #F6E9CC;  /* Champagne       */
    --o54-blanc:  #FBFAF2;  /* Floral white    */
    --o54-gris:   #6F6F6F;

    --o54-bleu-05: rgba(25, 36, 65, .05);
    --o54-bleu-12: rgba(25, 36, 65, .12);
    --o54-bleu-60: rgba(25, 36, 65, .60);
    --o54-champ-25: rgba(246, 233, 204, .25);

    --o54-display: "ratiomodern", Georgia, serif;
    --o54-text: 'Euclid Circular A', sans-serif;

    background: var(--o54-blanc);
    color: var(--o54-bleu);
    font-family: var(--o54-text);
    overflow-x: hidden;
}

/* --- Primitives partagées ------------------------------------------------ */

.o54 .o54-eyebrow {
    font-family: var(--o54-text);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--o54-rouge);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.o54 .o54-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
    flex: none;
}
.o54 .o54-eyebrow.is-light { color: var(--o54-champ); }
.o54 .o54-eyebrow.is-centered { justify-content: center; }

.o54 .o54-display {
    font-family: var(--o54-display);
    font-weight: 500;
    font-style: normal;
    line-height: 1.06;
    letter-spacing: -.015em;
    margin: 0 0 28px;
    color: var(--o54-bleu);
    text-wrap: balance;
}
.o54 .o54-display.is-light { color: var(--o54-blanc); }

.o54 .o54-d1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.o54 .o54-d2 { font-size: clamp(2rem, 3.9vw, 3.25rem); }
.o54 .o54-d3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.o54 .o54-lead {
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
    line-height: 1.72;
    color: var(--o54-bleu);
    opacity: .82;
    max-width: 62ch;
}
.o54 .o54-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--o54-bleu);
    opacity: .78;
    max-width: 66ch;
}
.o54 .o54-lead.is-light,
.o54 .o54-body.is-light { color: var(--o54-champ); opacity: .88; }

.o54 .o54-rule {
    height: 1px;
    background: var(--o54-bleu-12);
    position: relative;
    margin: 34px 0;
}
.o54 .o54-rule::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 64px;
    height: 1px;
    background: var(--o54-rouge);
}
.o54 .o54-rule.is-light { background: var(--o54-champ-25); }
.o54 .o54-rule.is-light::before { background: var(--o54-champ); }

.o54 .o54-section { padding: clamp(72px, 9vw, 130px) 0; }
.o54 .o54-section--tight { padding: clamp(52px, 6vw, 84px) 0; }
.o54 .o54-section--navy { background: var(--o54-bleu); color: var(--o54-blanc); }
.o54 .o54-section--champ { background: var(--o54-champ); }

/* --- Boutons ------------------------------------------------------------- */

.o54 .o54-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    border-radius: 80px;
    border: 2px solid var(--o54-rouge);
    background: var(--o54-rouge);
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
}
.o54 .o54-btn:hover {
    background: var(--o54-bleu);
    border-color: var(--o54-bleu);
    color: #fff;
    transform: translateY(-2px);
}
.o54 .o54-btn--ghost {
    background: transparent;
    border-color: rgba(251, 250, 242, .55);
    color: var(--o54-blanc);
}
.o54 .o54-btn--ghost:hover {
    background: var(--o54-blanc);
    border-color: var(--o54-blanc);
    color: var(--o54-bleu);
}
.o54 .o54-btn--champ {
    background: var(--o54-champ);
    border-color: var(--o54-champ);
    color: var(--o54-bleu);
}
.o54 .o54-btn--champ:hover {
    background: transparent;
    border-color: var(--o54-champ);
    color: var(--o54-champ);
}

/* --- 1. Hero ------------------------------------------------------------- */

.o54 .o54-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--o54-bleu) center/cover no-repeat;
    color: var(--o54-blanc);
    padding-top: 140px;
    overflow: hidden;
}
.o54 .o54-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(25, 36, 65, .62) 0%,
        rgba(25, 36, 65, .30) 38%,
        rgba(25, 36, 65, .80) 100%
    );
}
.o54 .o54-hero > * { position: relative; z-index: 2; }

.o54 .o54-hero__inner { padding-bottom: clamp(40px, 6vw, 72px); }

.o54 .o54-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 16px;
    border: 1px solid var(--o54-champ-25);
    border-radius: 80px;
    background: rgba(25, 36, 65, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 11.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--o54-champ);
    margin-bottom: 30px;
}
.o54 .o54-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--o54-rouge);
    box-shadow: 0 0 0 0 rgba(204, 44, 31, .8);
    animation: o54-pulse 2.4s infinite;
    flex: none;
}
@keyframes o54-pulse {
    70%  { box-shadow: 0 0 0 11px rgba(204, 44, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 44, 31, 0); }
}

.o54 .o54-hero__title {
    font-family: var(--o54-display);
    font-weight: 500;
    font-size: clamp(2.7rem, 6.6vw, 5.9rem);
    line-height: .96;
    letter-spacing: -.02em;
    color: var(--o54-blanc);
    margin: 0 0 18px;
    text-transform: uppercase;
}
.o54 .o54-hero__title sup {
    font-size: .32em;
    top: -.9em;
    letter-spacing: 0;
}
.o54 .o54-hero__title-accent { color: var(--o54-champ); }
.o54 .o54-intro__quote sup,
.o54 .o54-lead sup,
.o54 .o54-body sup { font-size: .6em; top: -.55em; }
.o54 .o54-hero__sub {
    font-size: clamp(.82rem, 1.25vw, 1rem);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--o54-champ);
    margin: 0 0 34px;
    line-height: 1.7;
}
.o54 .o54-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.o54 .o54-hero__origin {
    margin-top: 34px;
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(251, 250, 242, .62);
}

/* Bandeau de chiffres clés collé au bas du hero */
.o54 .o54-keyfacts {
    border-top: 1px solid var(--o54-champ-25);
    background: rgba(25, 36, 65, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.o54 .o54-keyfacts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.o54 .o54-keyfact {
    padding: 26px 10px 28px;
    text-align: center;
    border-left: 1px solid var(--o54-champ-25);
}
.o54 .o54-keyfact:first-child { border-left: 0; }
.o54 .o54-keyfact__value {
    font-family: var(--o54-display);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1;
    color: var(--o54-blanc);
    margin-bottom: 9px;
}
.o54 .o54-keyfact__label {
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--o54-champ);
    opacity: .85;
}

/* --- 2. Chapô ------------------------------------------------------------ */

.o54 .o54-intro__quote {
    font-family: var(--o54-display);
    font-size: clamp(1.6rem, 3.1vw, 2.6rem);
    line-height: 1.24;
    color: var(--o54-bleu);
    margin: 0;
    text-wrap: balance;
}
.o54 .o54-intro__mark {
    font-family: var(--o54-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: .7;
    color: var(--o54-rouge);
    display: block;
    margin-bottom: 8px;
}

/* --- 3. Piliers ---------------------------------------------------------- */

.o54 .o54-pillar {
    border-top: 1px solid var(--o54-champ-25);
    padding-top: 26px;
    height: 100%;
}
.o54 .o54-pillar__num {
    font-family: var(--o54-display);
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--o54-rouge);
    margin-bottom: 18px;
}
.o54 .o54-pillar__title {
    font-family: var(--o54-display);
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    line-height: 1.2;
    color: var(--o54-blanc);
    margin-bottom: 14px;
}
.o54 .o54-pillar__text {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--o54-champ);
    opacity: .8;
    margin: 0;
}

/* --- 4. Fiche technique -------------------------------------------------- */

.o54 .o54-specs__list { border-top: 1px solid var(--o54-bleu-12); }
.o54 .o54-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--o54-bleu-12);
}
.o54 .o54-spec__label {
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--o54-gris);
    flex: 1 1 auto;
}
.o54 .o54-spec__value {
    font-family: var(--o54-display);
    font-size: 1.12rem;
    color: var(--o54-bleu);
    text-align: right;
    flex: 0 0 auto;
    white-space: nowrap;
}
.o54 .o54-spec--hl .o54-spec__value { color: var(--o54-rouge); }

.o54 .o54-specs__media {
    position: sticky;
    top: 110px;
}
.o54 .o54-specs__media img {
    width: 100%;
    height: auto;
    display: block;
}
.o54 .o54-credits {
    background: var(--o54-bleu);
    color: var(--o54-blanc);
    padding: 30px 32px;
}
.o54 .o54-credits__title {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--o54-champ);
    margin-bottom: 20px;
}
.o54 .o54-credit {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--o54-champ-25);
    font-size: .92rem;
}
.o54 .o54-credit span:first-child { opacity: .7; }
.o54 .o54-credit span:last-child { font-family: var(--o54-display); }

/* --- 5. Plans ------------------------------------------------------------ */

/* Les plans sont des dessins très allongés : une ligne pleine largeur par plan,
   légende en colonne de gauche. */
.o54 .o54-plans { border-top: 1px solid rgba(25, 36, 65, .18); }
.o54 .o54-plan {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 44px;
    padding: 38px 0;
    margin: 0;
    border-bottom: 1px solid rgba(25, 36, 65, .18);
}
.o54 .o54-plan__caption { margin: 0; }
.o54 .o54-plan__num {
    font-family: var(--o54-display);
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--o54-rouge);
    margin-bottom: 12px;
}
.o54 .o54-plan__title {
    font-family: var(--o54-display);
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    line-height: 1.25;
    color: var(--o54-bleu);
    margin-bottom: 8px;
}
.o54 .o54-plan__meta {
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--o54-gris);
}
.o54 .o54-plan__img {
    display: block;
    overflow: hidden;
}
.o54 .o54-plan__img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.o54 .o54-plan__img:hover img { transform: scale(1.03); }

@media (max-width: 767px) {
    .o54 .o54-plan {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 0;
    }
}

/* --- 6. Galerie ---------------------------------------------------------- */

.o54 .o54-gal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}
.o54 .o54-gal__item {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--o54-bleu);
}
.o54 .o54-gal__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.o54 .o54-gal__item:hover img { transform: scale(1.06); }
.o54 .o54-gal__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(25, 36, 65, .55) 100%);
    opacity: 0;
    transition: opacity .4s ease;
}
.o54 .o54-gal__item:hover::after { opacity: 1; }
.o54 .o54-gal__item--wide { grid-column: span 2; }
.o54 .o54-gal__item--tall { grid-row: span 2; }

/* --- 7. Savoir-faire ----------------------------------------------------- */

.o54 .o54-craft__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--o54-bleu);
}
.o54 .o54-craft__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Duo d'images à hauteur commune (indépendant des ratios sources) */
.o54 .o54-media-duo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    height: clamp(280px, 34vw, 460px);
    margin-top: 56px;
}
.o54 .o54-media-duo > figure {
    margin: 0;
    overflow: hidden;
    background: var(--o54-bleu);
}
.o54 .o54-media-duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .o54 .o54-media-duo {
        grid-template-columns: 1fr;
        height: auto;
        grid-auto-rows: 210px;
    }
}

/* --- 8. Descriptif / options (accordéons natifs) ------------------------- */

.o54 .o54-acc { border-top: 1px solid var(--o54-bleu-12); }
.o54 .o54-acc__item { border-bottom: 1px solid var(--o54-bleu-12); }
.o54 .o54-acc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--o54-display);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--o54-bleu);
    transition: color .3s ease;
}
.o54 .o54-acc__head::-webkit-details-marker { display: none; }
.o54 .o54-acc__head:hover { color: var(--o54-rouge); }
.o54 .o54-acc__icon {
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--o54-bleu-12);
    border-radius: 50%;
    position: relative;
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.o54 .o54-acc__icon::before,
.o54 .o54-acc__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--o54-bleu);
    transform: translate(-50%, -50%);
    transition: background-color .3s ease, opacity .3s ease;
}
.o54 .o54-acc__icon::before { width: 11px; height: 1px; }
.o54 .o54-acc__icon::after  { width: 1px; height: 11px; }
.o54 .o54-acc__item[open] .o54-acc__icon {
    background: var(--o54-rouge);
    border-color: var(--o54-rouge);
}
.o54 .o54-acc__item[open] .o54-acc__icon::before { background: #fff; }
.o54 .o54-acc__item[open] .o54-acc__icon::after  { opacity: 0; }
.o54 .o54-acc__item[open] .o54-acc__head { color: var(--o54-rouge); }

.o54 .o54-acc__body { padding: 0 0 30px; }
.o54 .o54-acc__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 46px;
}
.o54 .o54-acc__body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 9px;
    font-size: .93rem;
    line-height: 1.65;
    color: var(--o54-bleu);
    opacity: .8;
    break-inside: avoid;
}
.o54 .o54-acc__body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 1px;
    background: var(--o54-rouge);
}
.o54 .o54-acc__note {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--o54-gris);
    margin-top: 22px;
}

/* --- 9. Vidéos ----------------------------------------------------------- */

.o54 .o54-video {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--o54-bleu);
    aspect-ratio: 16 / 10;
}
.o54 .o54-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .68;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.o54 .o54-video:hover img { transform: scale(1.05); opacity: .5; }
.o54 .o54-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--o54-blanc);
}
.o54 .o54-video__disc {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--o54-rouge);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s ease;
}
.o54 .o54-video:hover .o54-video__disc { transform: scale(1.08); }
.o54 .o54-video__disc::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 15px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.o54 .o54-video__label {
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* --- 10. CTA final ------------------------------------------------------- */

.o54 .o54-cta {
    background: var(--o54-bleu) center/cover no-repeat;
    position: relative;
    color: var(--o54-blanc);
    text-align: center;
}
.o54 .o54-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(25, 36, 65, .86);
}
.o54 .o54-cta > * { position: relative; z-index: 2; }
.o54 .o54-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}
.o54 .o54-cta__contact {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--o54-champ-25);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 44px;
    justify-content: center;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--o54-champ);
}
.o54 .o54-cta__contact a { color: var(--o54-champ); text-decoration: none; }
.o54 .o54-cta__contact a:hover { color: #fff; text-decoration: underline; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 991px) {
    .o54 .o54-gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .o54 .o54-specs__media { position: static; }
    .o54 .o54-acc__body ul { columns: 1; }
}

@media (max-width: 767px) {
    .o54 .o54-hero { min-height: 92vh; padding-top: 120px; }
    .o54 .o54-keyfacts__grid { grid-template-columns: repeat(2, 1fr); }
    .o54 .o54-keyfact:nth-child(3) { border-left: 0; }
    .o54 .o54-keyfact:nth-child(n+3) { border-top: 1px solid var(--o54-champ-25); }
    .o54 .o54-gal { grid-auto-rows: 150px; }
    .o54 .o54-gal__item--tall { grid-row: span 1; }
    .o54 .o54-hero__actions .o54-btn,
    .o54 .o54-cta__actions .o54-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .o54 *,
    .o54 *::before,
    .o54 *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
