﻿
body {
	margin: 0;
    padding: 0;
    min-height: 100%;
	font-family:system-ui;
}

h1{
	font-size:clamp(
32px,
5vw,
42px
);

margin-bottom:24px;

}

.icon{

font-size:46px;

}


body {
 
   
background:#f6f8fb;

    color: #000000;
}
/* =========================================
   PAGE
========================================= */

.page {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 35px 0 30px;
}

/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;

    color: #607b96;

    font-size: 12px;

    padding-top: 10px;
}

.tips-section {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* ================================
   CARTE
================================ */

.tip-card {
    position: relative;

    min-height: 115px;
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 15px;

    border: 2px solid #8ecae6;
    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #e3f5fc,
        #c7e9f7
    );

    color: #174a63;

    cursor: pointer;
    text-align: left;

    box-shadow:
        0 4px 12px rgba(40, 120, 160, 0.15);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.tip-card:hover {
    transform: translateY(-4px);

    border-color: #219ebc;

    box-shadow:
        0 8px 18px rgba(40, 120, 160, 0.22);
}


/* Numéro */
.tip-number {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffcf4a;

    border: 2px solid #f4b400;

    color: #5c4300;

    font-size: 16px;
    font-weight: 900;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
/* Titre */
.tip-title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
	text-align:center;
    color: #174a63;
	margin:auto;
}

/* ================================
   MODALE
================================ */

.tip-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.tip-modal.active {
    display: flex;
}


/* Fond */

.tip-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(6px);
}


/* Fenêtre */
.tip-modal-box {
    position: relative;
    z-index: 2;

    width: min(650px, 100%);

    padding: 35px 40px;

    border-radius: 22px;

    /* Fond clair */
    background: linear-gradient(
        145deg,
        #ffffff,
        #eef9fd
    );

    border: 3px solid #8ecae6;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);

    color: #234052;

    animation: tipOpen .25s ease;
}

@keyframes tipOpen {

    from {
        opacity: 0;
        transform: scale(.88) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


/* Numéro */
.tip-modal-number {
    color: #219ebc;

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 6px;
}

/* Titre */
.tip-modal-box h2 {
    margin: 0 40px 25px 0;

    font-size: 30px;
    line-height: 1.15;

    color: #174a63;
}


/* Texte */
.tip-modal-content {
    font-size: 17px;
    line-height: 1.6;

    color: #405968;
}

.tip-modal-content p {
    margin: 0;
}


/* Exemple */
.tip-example {
    margin-top: 25px;

    padding: 20px;

    border-radius: 12px;

    background: #fff5c7;

    border: 2px solid #ffd54f;

    color: #604900;

    font-size: 20px;
    font-weight: 800;

    text-align: center;

    white-space: pre-line;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.08);
}



/* Bouton fermer */
.tip-modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: #e3f5fc;

    color: #174a63;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.tip-modal-close:hover {
    background: #ffcf4a;

    transform: rotate(90deg);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 850px) {

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 550px) {

    .tips-section {
        padding: 0 12px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        min-height: 95px;
    }

    .tip-modal {
        padding: 12px;
    }

    .tip-modal-box {
        padding: 30px 22px 25px;
    }

    .tip-modal-box h2 {
        font-size: 24px;
    }

    .tip-modal-content {
        font-size: 15px;
    }

    .tip-example {
        font-size: 18px;
        padding: 15px;
    }

}

/* =========================================
   NAVIGATION
========================================= */

.bottom-navigation {
    display: flex;

    justify-content: center;

    margin: 35px 0 20px;
}

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 48px;

    padding: 0 25px;

    border-radius: 10px;

    background: #0c1d33;

    border: 1px solid #367da9;

    color: #bfe8ff;

    text-decoration: none;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.back-button:hover {
    background: #12365a;
    transform: translateY(-2px);
}


/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;

    color: #607b96;

    font-size: 12px;

    padding-top: 10px;
}